diff --git a/.azure/pipelines/ci.yml b/.azure/pipelines/ci.yml index 11b06b530b..cb73aafae5 100644 --- a/.azure/pipelines/ci.yml +++ b/.azure/pipelines/ci.yml @@ -37,7 +37,7 @@ jobs: - template: jobs/iisintegration-job.yml parameters: TestGroupName: IISExpress - skipArgs: "/p:SkipIISBackwardsCompatibilityTests=false /p:SkipIISTests=true /p:SkipIISExpressTests=false /p:SkipIISForwardsCompatibilityTests=true" + skipArgs: "/p:SkipIISBackwardsCompatibilityTests=true /p:SkipIISTests=true /p:SkipIISExpressTests=false /p:SkipIISForwardsCompatibilityTests=true" - template: jobs/iisintegration-job.yml parameters: TestGroupName: IISForwardCompat diff --git a/.azure/pipelines/pr-validation-temp.yml b/.azure/pipelines/pr-validation-temp.yml index c6b3feeb1a..218598aaeb 100644 --- a/.azure/pipelines/pr-validation-temp.yml +++ b/.azure/pipelines/pr-validation-temp.yml @@ -28,3 +28,11 @@ jobs: jobDisplayName: "Build only : Linux" agentOs: Linux buildArgs: --all --pack +- job: Code_check + displayName: Code check + workspace: + clean: all + pool: + vmImage: vs2017-win2016 + steps: + - powershell: ./eng/scripts/CodeCheck.ps1 -ci diff --git a/.gitignore b/.gitignore index ac23b44637..6d3c5c15c6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ bin/ obj/ .vs/ +.vscode/ *.suo *.user _ReSharper.* diff --git a/Directory.Build.props b/Directory.Build.props index 43fb9fcfd1..5f7322d556 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -87,6 +87,15 @@ $(ArtifactsConfigurationDir)installers\ + + $(RepositoryRoot)bin\$(Configuration)\$(MSBuildProjectName)\ + $(BaseOutputPath) + $(RepositoryRoot)obj\$(MSBuildProjectName)\ + $(BaseIntermediateOutputPath)$(Configuration)\ + $(OutputPath)$(Platform)\ + $(IntermediateOutputPath)$(Platform)\ + + $([MSBuild]::MakeRelative($(RepositoryRoot), $(MSBuildProjectDirectory))) @@ -97,6 +106,13 @@ true + + + + + $(MSBuildThisFileDirectory)src\Mvc\src\Microsoft.AspNetCore.Mvc.Testing\Microsoft.AspNetCore.Mvc.Testing.targets + + diff --git a/Directory.Build.targets b/Directory.Build.targets index 4ac8ecef98..ba56410650 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -34,7 +34,8 @@ - $(BaselinePackageVersion).0 + $(BaselinePackageVersion.Substring(0, $(BaselinePackageVersion.IndexOf('-')))).0 + $(BaselinePackageVersion).0 true + + true + false @@ -61,7 +65,9 @@ $(NETStandardLibrary20PackageVersion) + + diff --git a/build.ps1 b/build.ps1 index 3214fbf70b..ed9e96583c 100644 --- a/build.ps1 +++ b/build.ps1 @@ -45,6 +45,9 @@ Build native projects (C++). .PARAMETER NodeJS Build NodeJS projects (TypeScript, JS). +.PARAMETER Installers +Build Windows Installers. Required .NET 3.5 to be installed (WiX toolset requirement). + .PARAMETER MSBuildArguments Additional MSBuild arguments to be passed through. @@ -96,6 +99,8 @@ param( [switch]$Native, [Parameter(ParameterSetName = 'Groups')] [switch]$NodeJS, + [Parameter(ParameterSetName = 'Groups')] + [switch]$Installers, # Other lifecycle targets [switch]$Help, # Show help @@ -236,18 +241,20 @@ elseif ($Projects) { } else { # When adding new sub-group build flags, add them to this check. - if((-not $Native) -and (-not $Managed) -and (-not $NodeJS)) { - Write-Warning "No default group of projects was specified, so building the 'managed' subset of projects. Run ``build.cmd -help`` for more details." + if((-not $Native) -and (-not $Managed) -and (-not $NodeJS) -and (-not $Installers)) { + Write-Warning "No default group of projects was specified, so building the 'managed' and 'native' subsets of projects. Run ``build.cmd -help`` for more details." # This goal of this is to pick a sensible default for `build.cmd` with zero arguments. - # We believe the most common thing our contributors will work on is C#, so if no other build group was picked, build the C# projects. + # Now that we support subfolder invokations of build.cmd, we will be pushing to have build.cmd build everything (-all) by default $Managed = $true + $Native = $true } $MSBuildArguments += "/p:BuildManaged=$Managed" $MSBuildArguments += "/p:BuildNative=$Native" $MSBuildArguments += "/p:BuildNodeJS=$NodeJS" + $MSBuildArguments += "/p:BuildWindowsInstallers=$Installers" } # Target selection diff --git a/build/artifacts.props b/build/artifacts.props index 512c58b689..8a5ed73567 100644 --- a/build/artifacts.props +++ b/build/artifacts.props @@ -36,7 +36,6 @@ This can be done once #4246 is complete, and done in conjunction with converting - @@ -79,7 +78,6 @@ This can be done once #4246 is complete, and done in conjunction with converting - @@ -92,12 +90,7 @@ This can be done once #4246 is complete, and done in conjunction with converting - - - - - diff --git a/build/buildorder.props b/build/buildorder.props index 76b9d518b3..82647f7811 100644 --- a/build/buildorder.props +++ b/build/buildorder.props @@ -7,11 +7,6 @@ - - - - - diff --git a/build/dependencies.props b/build/dependencies.props index 57a0b7efa4..39f51b3cfa 100644 --- a/build/dependencies.props +++ b/build/dependencies.props @@ -105,6 +105,9 @@ 3.0.0-preview.18604.3 3.0.0-preview.18604.3 3.0.0-preview.18604.3 + + + 3.0.0-preview.19053.2 @@ -139,15 +142,16 @@ 2.1.0 8.7.0 4.2.1 - 2.3.0-preview1-update2 - 2.3.0-preview1-update2 - 2.3.0-preview1-update1 + 2.3.0 + 2.3.0 + 2.3.0 3.1.0 1.10.0 1.7.3.4 2.1.1 2.2.0 2.2.0 + 2.0.0 2.2.1 2.2.0 5.2.6 diff --git a/build/repo.props b/build/repo.props index 0cb8c9d666..ec96979315 100644 --- a/build/repo.props +++ b/build/repo.props @@ -64,6 +64,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -84,12 +111,15 @@ $(RepositoryRoot)src\Hosting\**\*.*proj; $(RepositoryRoot)src\Http\**\*.*proj; $(RepositoryRoot)src\Html\**\*.*proj; + $(RepositoryRoot)src\Identity\**\*.*proj; $(RepositoryRoot)src\Servers\**\*.csproj; $(RepositoryRoot)src\Security\**\*.*proj; $(RepositoryRoot)src\Shared\**\*.*proj; $(RepositoryRoot)src\Tools\**\*.*proj; $(RepositoryRoot)src\Middleware\**\*.*proj; $(RepositoryRoot)src\Razor\**\*.*proj; + $(RepositoryRoot)src\Mvc\**\*.*proj; + $(RepositoryRoot)src\Azure\**\*.*proj; " Exclude=" @(ProjectToExclude); diff --git a/build/repo.targets b/build/repo.targets index 150edb552e..6e4b31e51b 100644 --- a/build/repo.targets +++ b/build/repo.targets @@ -168,14 +168,14 @@ - - + <_PackageArtifactWithoutMatchingInfo Include="@(_Temp)" Exclude="@(PackageArtifact)" /> diff --git a/build/submodules.props b/build/submodules.props index 1e139132e4..81d3c309c3 100644 --- a/build/submodules.props +++ b/build/submodules.props @@ -36,12 +36,7 @@ - - - - - diff --git a/src/Installers/Windows/InstallerTasks/GenerateGuid.cs b/build/tasks/GenerateGuid.cs similarity index 100% rename from src/Installers/Windows/InstallerTasks/GenerateGuid.cs rename to build/tasks/GenerateGuid.cs diff --git a/src/Installers/Windows/InstallerTasks/GetMsiProperty.cs b/build/tasks/GetMsiProperty.cs similarity index 97% rename from src/Installers/Windows/InstallerTasks/GetMsiProperty.cs rename to build/tasks/GetMsiProperty.cs index 90f3cd3d24..182a5f0af3 100644 --- a/src/Installers/Windows/InstallerTasks/GetMsiProperty.cs +++ b/build/tasks/GetMsiProperty.cs @@ -1,3 +1,4 @@ +#if BUILD_MSI_TASKS // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. @@ -36,3 +37,4 @@ namespace RepoTasks } } } +#endif diff --git a/build/tasks/JoinItems.cs b/build/tasks/JoinRepoItems.cs similarity index 99% rename from build/tasks/JoinItems.cs rename to build/tasks/JoinRepoItems.cs index facfd4fa53..97f0ab9d0f 100644 --- a/build/tasks/JoinItems.cs +++ b/build/tasks/JoinRepoItems.cs @@ -10,7 +10,7 @@ using Microsoft.Build.Utilities; namespace RepoTasks { - public class JoinItems : Task + public class JoinRepoItems : Task { [Required] public ITaskItem[] Left { get; set; } diff --git a/build/tasks/RepoTasks.csproj b/build/tasks/RepoTasks.csproj index 17c9981497..f0b7d88273 100644 --- a/build/tasks/RepoTasks.csproj +++ b/build/tasks/RepoTasks.csproj @@ -4,6 +4,7 @@ netcoreapp2.1 net461 + $(DefineConstants);BUILD_MSI_TASKS @@ -13,5 +14,16 @@ + + + + + $(WiXSdkPath)\Microsoft.Deployment.WindowsInstaller.dll + + + $(WiXSdkPath)\Microsoft.Deployment.WindowsInstaller.Package.dll + + + diff --git a/build/tasks/RepoTasks.tasks b/build/tasks/RepoTasks.tasks index c99d93e1c3..43323cf2e2 100644 --- a/build/tasks/RepoTasks.tasks +++ b/build/tasks/RepoTasks.tasks @@ -4,7 +4,9 @@ - + + + diff --git a/src/Installers/Windows/InstallerTasks/Uuid.cs b/build/tasks/Uuid.cs similarity index 100% rename from src/Installers/Windows/InstallerTasks/Uuid.cs rename to build/tasks/Uuid.cs diff --git a/docs/BuildFromSource.md b/docs/BuildFromSource.md index c13d20ec92..001b1c2206 100644 --- a/docs/BuildFromSource.md +++ b/docs/BuildFromSource.md @@ -61,13 +61,14 @@ Before opening our .sln files in Visual Studio or VS Code, you need to perform t 1. Executing the following on command-line: ``` - .\build.cmd + .\restore.cmd ``` This will download required tools and build the entire repository once. At that point, you should be able to open .sln files to work on the projects you care about. -2. Use the `startvs.cmd` script to open Visual Studio .sln files. This script first sets required environment variables. + > :bulb: Pro tip: you will also want to run this command after pulling large sets of changes. On the master branch, we regularly update the versions of .NET Core SDK required to build the repo. + > You will need to restart Visual Studio every time we update the .NET Core SDK. -> :bulb: Pro tip: you will also want to run this command after pulling large sets of changes. Visual Studio will only build projects in a solution file, and makes a best effort to use other files on disk. If you pull many changes, the files on disk may be stale and will need to re-build. +2. Use the `startvs.cmd` script to open Visual Studio .sln files. This script first sets required environment variables. ### Solution files diff --git a/docs/README.md b/docs/README.md index 98fe46e403..f055ea32b5 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2,4 +2,4 @@ Contributor documentation ========================= The primary audience for documentation in this folder is contributors to ASP.NET Core. -If you are looking for documentation on to *use* ASP.NET Core, go to . +If you are looking for documentation on how to *use* ASP.NET Core, go to . diff --git a/eng/Baseline.Designer.props b/eng/Baseline.Designer.props index 70ce243290..d5f685dc29 100644 --- a/eng/Baseline.Designer.props +++ b/eng/Baseline.Designer.props @@ -31,6 +31,50 @@ + + + 2.2.0-preview-35687 + + + + + + + + + + + + + 2.2.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2.2.0 @@ -39,19 +83,6 @@ 2.2.0 - - - 2.2.0 - - - - - - - - - - 2.2.0 @@ -61,6 +92,26 @@ + + + 2.2.0 + + + + + + + + + + 2.2.0 + + + + + + + 2.2.0 @@ -138,13 +189,18 @@ - - + + 2.2.0 - + + + + + + @@ -154,6 +210,38 @@ + + + 2.2.0 + + + + + + + + 2.2.0 + + + + + + + + + + + + + + + + 2.2.0 + + + + + 2.2.0 @@ -162,6 +250,15 @@ + + + 2.2.0 + + + + + + 2.2.0 @@ -173,15 +270,6 @@ - - - 2.2.0 - - - - - - 2.2.0 @@ -424,6 +512,48 @@ + + + 2.2.0 + + + + + + + + + 2.2.0 + + + + + + + + + + + + 2.2.0 + + + + + + + + + + + 2.2.0 + + + + + + + 2.2.0 @@ -459,6 +589,89 @@ + + + 2.2.0 + + + + + + + + 2.2.0 + + + + + 2.2.0 + + + + + + + 2.2.0 + + + + + + + + + + + + + + + + + + + + + 2.2.0 + + + + + + + + 2.2.0 + + + + + + + + + 2.2.0 + + + + + + + + 2.2.0 + + + + + + + 2.2.0 + + + + + + + 2.2.0 @@ -471,6 +684,98 @@ + + + 2.2.0 + + + + + + + + + + + + + + + + + + + + + + + 2.2.0 + + + + + + + 2.2.0 + + + + + + + + + + + + 2.2.0 + + + + + + + + 2.2.0 + + + + + + + + + + + + + + 2.2.0 + + + + + + + + + + + + + + + + + + + 2.2.0 + + + + + + 2.2.0 @@ -478,13 +783,6 @@ - - - 2.2.0 - - - - 2.2.0 @@ -504,6 +802,13 @@ + + + 2.2.0 + + + + 2.2.0 @@ -718,6 +1023,25 @@ + + + 2.2.0 + + + + + + + + + + 2.2.0 + + + + + + 2.2.0 @@ -755,21 +1079,6 @@ - - - 2.2.0 - - - - - - - - - - - - 2.2.0 @@ -794,6 +1103,21 @@ + + + 2.2.0 + + + + + + + + + + + + 2.2.0 @@ -803,6 +1127,25 @@ + + + 2.2.0 + + + + + + + + + + 2.2.0 + + + + + + 2.2.0 diff --git a/eng/Baseline.xml b/eng/Baseline.xml index 075e8e4d39..01ae10edf3 100644 --- a/eng/Baseline.xml +++ b/eng/Baseline.xml @@ -10,10 +10,13 @@ build of ASP.NET Core 2.2.x. Update this list when preparing for a new patch. + + - + + @@ -24,11 +27,14 @@ build of ASP.NET Core 2.2.x. Update this list when preparing for a new patch. - + + + + - + @@ -55,16 +61,36 @@ build of ASP.NET Core 2.2.x. Update this list when preparing for a new patch. + + + + + + + + + + + + + + + + + + + + - + @@ -81,13 +107,17 @@ build of ASP.NET Core 2.2.x. Update this list when preparing for a new patch. + + - + + + diff --git a/eng/Dependencies.props b/eng/Dependencies.props index 4c546e4768..d6f53d42ea 100644 --- a/eng/Dependencies.props +++ b/eng/Dependencies.props @@ -21,16 +21,21 @@ and are generated based on the last package release. + + + + + @@ -53,14 +58,17 @@ and are generated based on the last package release. + + + @@ -72,7 +80,9 @@ and are generated based on the last package release. + + @@ -80,10 +90,12 @@ and are generated based on the last package release. + + @@ -105,12 +117,18 @@ and are generated based on the last package release. + + + + + + diff --git a/eng/ProjectReferences.props b/eng/ProjectReferences.props index f89a94017f..6bb2293088 100644 --- a/eng/ProjectReferences.props +++ b/eng/ProjectReferences.props @@ -35,11 +35,18 @@ + + + + + + + - - - + + + @@ -60,11 +67,6 @@ - - - - - @@ -78,27 +80,38 @@ + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + diff --git a/eng/scripts/CodeCheck.ps1 b/eng/scripts/CodeCheck.ps1 new file mode 100644 index 0000000000..08e1902cbb --- /dev/null +++ b/eng/scripts/CodeCheck.ps1 @@ -0,0 +1,69 @@ +#requires -version 5 +<# +.SYNOPSIS +This script runs a quick check for common errors, such as checking that Visual Studio solutions are up to date or that generated code has been committed to source. +#> +param( + [switch]$ci +) + +$ErrorActionPreference = 'Stop' +Set-StrictMode -Version 1 +Import-Module -Scope Local -Force "$PSScriptRoot/common.psm1" + +$repoRoot = Resolve-Path "$PSScriptRoot/../../" + +[string[]] $errors = @() + +try { + # + # Solutions + # + + Write-Host "Checking that solutions are up to date" + + Get-ChildItem "$repoRoot/*.sln" -Recurse | % { + Write-Host " Checking $(Split-Path -Leaf $_)" + $slnDir = Split-Path -Parent $_ + $sln = $_ + & dotnet sln $_ list ` + | ? { $_ -ne 'Project(s)' -and $_ -ne '----------' } ` + | % { + $proj = Join-Path $slnDir $_ + if (-not (Test-Path $proj)) { + $errors += "Missing project. Solution references a project which does not exist: $proj. [$sln] " + } + } + } + + # + # Generated code check + # + + Write-Host "Re-running code generation" + + Invoke-Block { + [string[]] $generateArgs = @() + if ($ci) { + $generateArgs += '-ci' + } + & $repoRoot/build.cmd /t:GenerateProjectList @generateArgs + } + + Write-Host "git diff" + & git diff --ignore-space-at-eol --exit-code + if ($LastExitCode -ne 0) { + $status = git status -s | Out-String + $status = $status -replace "`n","`n " + $errors += "Generated code is not up to date." + } +} +finally { + foreach ($err in $errors) { + Write-Host -f Red "error : $err" + } + + if ($errors) { + exit 1 + } +} diff --git a/eng/scripts/common.psm1 b/eng/scripts/common.psm1 index 3a31f2a023..96544dc6f2 100644 --- a/eng/scripts/common.psm1 +++ b/eng/scripts/common.psm1 @@ -52,54 +52,6 @@ function LoadXml([string]$path) { return $obj } -function Get-MSBuildPath { - param( - [switch]$Prerelease, - [string[]]$Requires - ) - - $vsInstallDir = $null - if ($env:VSINSTALLDIR -and (Test-Path $env:VSINSTALLDIR)) { - $vsInstallDir = $env:VSINSTALLDIR - Write-Verbose "Using VSINSTALLDIR=$vsInstallDir" - } - else { - $vswhere = "${env:ProgramFiles(x86)}/Microsoft Visual Studio/Installer/vswhere.exe" - Write-Verbose "Using vswhere.exe from $vswhere" - - if (-not (Test-Path $vswhere)) { - Write-Error "Missing prerequisite: could not find vswhere" - } - - [string[]] $vswhereArgs = @() - - if ($Prerelease) { - $vswhereArgs += '-prerelease' - } - - if ($Requires) { - foreach ($r in $Requires) { - $vswhereArgs += '-requires', $r - } - } - - $installs = & $vswhere -format json -version '[15.0, 16.0)' -latest -products * @vswhereArgs | ConvertFrom-Json - if (!$installs) { - Write-Error "Missing prerequisite: could not find any installations of Visual Studio" - } - - $vs = $installs | Select-Object -First 1 - $vsInstallDir = $vs.installationPath - Write-Host "Using $($vs.displayName)" - } - - $msbuild = Join-Path $vsInstallDir 'MSBuild/15.0/bin/msbuild.exe' - if (!(Test-Path $msbuild)) { - Write-Error "Missing prerequisite: could not find msbuild.exe" - } - return $msbuild -} - function Get-RemoteFile([string]$RemotePath, [string]$LocalPath) { if ($RemotePath -notlike 'http*') { Copy-Item $RemotePath $LocalPath diff --git a/eng/targets/Packaging.targets b/eng/targets/Packaging.targets index fefa42496b..a49a65b988 100644 --- a/eng/targets/Packaging.targets +++ b/eng/targets/Packaging.targets @@ -27,4 +27,16 @@ + + + + + <_ProjectPathWithVersion Include="$(MSBuildProjectFullPath)"> + $(MSBuildProjectName) + $(PackageVersion) + + + + diff --git a/src/Servers/IIS/ResolveIisReferences.targets b/eng/targets/ResolveIisReferences.targets similarity index 65% rename from src/Servers/IIS/ResolveIisReferences.targets rename to eng/targets/ResolveIisReferences.targets index be3d68c00f..4beec3df91 100644 --- a/src/Servers/IIS/ResolveIisReferences.targets +++ b/eng/targets/ResolveIisReferences.targets @@ -8,30 +8,13 @@ with the right MSBuild incantations to get output copied to the right place. - - - - - - - - - - - - - - - - - Platform=%(Platform) - %(Platform)\%(HandlerPath)\ + %(Platform)\%(HandlerPath)\ false diff --git a/eng/targets/ResolveReferences.targets b/eng/targets/ResolveReferences.targets index 965da850bc..03d40146ca 100644 --- a/eng/targets/ResolveReferences.targets +++ b/eng/targets/ResolveReferences.targets @@ -86,7 +86,7 @@ <_ReferenceTemp Remove="@(_ReferenceTemp)" /> - + + $(MSBuildToolsPath32)\..\..\..\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets $(MSBuildToolsPath)\NuGet.targets diff --git a/eng/targets/Wix.Common.targets b/eng/targets/Wix.Common.targets index 3cdb0c3b86..7ff9e39fd6 100644 --- a/eng/targets/Wix.Common.targets +++ b/eng/targets/Wix.Common.targets @@ -41,5 +41,4 @@ - diff --git a/global.json b/global.json index 9dc0e10865..ec110d15d8 100644 --- a/global.json +++ b/global.json @@ -3,6 +3,6 @@ "version": "3.0.100-preview-009750" }, "msbuild-sdks": { - "Internal.AspNetCore.Sdk": "3.0.0-build-20181214.1" + "Internal.AspNetCore.Sdk": "3.0.0-build-20190104.3" } } diff --git a/korebuild-lock.txt b/korebuild-lock.txt index ea35aa286b..8349287fdf 100644 --- a/korebuild-lock.txt +++ b/korebuild-lock.txt @@ -1,2 +1,2 @@ -version:3.0.0-build-20181214.1 -commithash:0872134136bf3d181e3ca3fa700b7ff392c055b3 +version:3.0.0-build-20190104.3 +commithash:1cc7b8211d23fd469ad03c73ff45e4d291b24be7 diff --git a/korebuild.json b/korebuild.json index 274f6490dc..5e39f050bd 100644 --- a/korebuild.json +++ b/korebuild.json @@ -17,7 +17,7 @@ "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Win81", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", "Microsoft.VisualStudio.Component.VC.ATL", - "Microsoft.VisualStudio.Component.Windows10SDK.15063.Desktop" + "Microsoft.VisualStudio.Component.Windows10SDK.17134" ] } } diff --git a/src/AADIntegration/.gitignore b/src/AADIntegration/.gitignore deleted file mode 100644 index e38f0aa101..0000000000 --- a/src/AADIntegration/.gitignore +++ /dev/null @@ -1,43 +0,0 @@ -[Oo]bj/ -[Bb]in/ -TestResults/ -.nuget/ -.build/ -.testPublish/ -*.sln.ide/ -_ReSharper.*/ -packages/ -artifacts/ -PublishProfiles/ -.vs/ -bower_components/ -node_modules/ -debugSettings.json -project.lock.json -*.user -*.suo -*.cache -*.docstates -_ReSharper.* -nuget.exe -*net45.csproj -*net451.csproj -*k10.csproj -*.psess -*.vsp -*.pidb -*.userprefs -*DS_Store -*.ncrunchsolution -*.*sdf -*.ipch -.settings -*.sln.ide -node_modules -*launchSettings.json -*.orig -.vscode/ -global.json -BenchmarkDotNet.Artifacts/ -.idea/ -msbuild.binlog diff --git a/src/AADIntegration/AADIntegration.sln b/src/AADIntegration/AADIntegration.sln deleted file mode 100644 index 2ed6ef8876..0000000000 --- a/src/AADIntegration/AADIntegration.sln +++ /dev/null @@ -1,79 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26124.0 -MinimumVisualStudioVersion = 15.0.26124.0 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{75A812B0-D98C-45F3-B2A9-357BBDF7331A}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{8CF63E1D-F9F7-4CB4-AD90-88C4077F7BFF}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{57F46508-E53D-4F6B-B77C-2EFE95925AEF}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AzureADB2CSample", "samples\AzureADB2CSample\AzureADB2CSample.csproj", "{5D2378D4-9DDA-468F-82C6-AE4DAA54E96C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Authentication.AzureADB2C.UI", "src\Microsoft.AspNetCore.Authentication.AzureADB2C.UI\Microsoft.AspNetCore.Authentication.AzureADB2C.UI.csproj", "{16912327-C9B3-49FC-87E0-49FEDED0A065}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test", "test\Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test\Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test.csproj", "{454089F9-ED16-4A11-9C52-2BA74DCF5D35}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Authentication.AzureAD.UI", "src\Microsoft.AspNetCore.Authentication.AzureAD.UI\Microsoft.AspNetCore.Authentication.AzureAD.UI.csproj", "{1762840C-A14A-4498-9883-CC671956F0F2}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Authentication.AzureAD.UI.Test", "test\Microsoft.AspNetCore.Authentication.AzureAD.UI.Test\Microsoft.AspNetCore.Authentication.AzureAD.UI.Test.csproj", "{3D0CF896-3A9D-4A8F-A343-A2E1A131C861}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests", "test\Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests\Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests.csproj", "{1967296B-614B-43E5-B1BA-A601579961D5}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WebSites", "WebSites", "{2AEF59C3-7ADA-404D-B965-26B700FBD03F}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AzureAD.WebSite", "test\WebSites\AzureAD.WebSite\AzureAD.WebSite.csproj", "{4DB3C5B2-9FBF-42BC-80B2-2190EB1AE316}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {5D2378D4-9DDA-468F-82C6-AE4DAA54E96C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5D2378D4-9DDA-468F-82C6-AE4DAA54E96C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5D2378D4-9DDA-468F-82C6-AE4DAA54E96C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5D2378D4-9DDA-468F-82C6-AE4DAA54E96C}.Release|Any CPU.Build.0 = Release|Any CPU - {16912327-C9B3-49FC-87E0-49FEDED0A065}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {16912327-C9B3-49FC-87E0-49FEDED0A065}.Debug|Any CPU.Build.0 = Debug|Any CPU - {16912327-C9B3-49FC-87E0-49FEDED0A065}.Release|Any CPU.ActiveCfg = Release|Any CPU - {16912327-C9B3-49FC-87E0-49FEDED0A065}.Release|Any CPU.Build.0 = Release|Any CPU - {454089F9-ED16-4A11-9C52-2BA74DCF5D35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {454089F9-ED16-4A11-9C52-2BA74DCF5D35}.Debug|Any CPU.Build.0 = Debug|Any CPU - {454089F9-ED16-4A11-9C52-2BA74DCF5D35}.Release|Any CPU.ActiveCfg = Release|Any CPU - {454089F9-ED16-4A11-9C52-2BA74DCF5D35}.Release|Any CPU.Build.0 = Release|Any CPU - {1762840C-A14A-4498-9883-CC671956F0F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1762840C-A14A-4498-9883-CC671956F0F2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1762840C-A14A-4498-9883-CC671956F0F2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1762840C-A14A-4498-9883-CC671956F0F2}.Release|Any CPU.Build.0 = Release|Any CPU - {3D0CF896-3A9D-4A8F-A343-A2E1A131C861}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3D0CF896-3A9D-4A8F-A343-A2E1A131C861}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3D0CF896-3A9D-4A8F-A343-A2E1A131C861}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3D0CF896-3A9D-4A8F-A343-A2E1A131C861}.Release|Any CPU.Build.0 = Release|Any CPU - {1967296B-614B-43E5-B1BA-A601579961D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1967296B-614B-43E5-B1BA-A601579961D5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1967296B-614B-43E5-B1BA-A601579961D5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1967296B-614B-43E5-B1BA-A601579961D5}.Release|Any CPU.Build.0 = Release|Any CPU - {4DB3C5B2-9FBF-42BC-80B2-2190EB1AE316}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4DB3C5B2-9FBF-42BC-80B2-2190EB1AE316}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4DB3C5B2-9FBF-42BC-80B2-2190EB1AE316}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4DB3C5B2-9FBF-42BC-80B2-2190EB1AE316}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {5D2378D4-9DDA-468F-82C6-AE4DAA54E96C} = {8CF63E1D-F9F7-4CB4-AD90-88C4077F7BFF} - {16912327-C9B3-49FC-87E0-49FEDED0A065} = {75A812B0-D98C-45F3-B2A9-357BBDF7331A} - {454089F9-ED16-4A11-9C52-2BA74DCF5D35} = {57F46508-E53D-4F6B-B77C-2EFE95925AEF} - {1762840C-A14A-4498-9883-CC671956F0F2} = {75A812B0-D98C-45F3-B2A9-357BBDF7331A} - {3D0CF896-3A9D-4A8F-A343-A2E1A131C861} = {57F46508-E53D-4F6B-B77C-2EFE95925AEF} - {1967296B-614B-43E5-B1BA-A601579961D5} = {57F46508-E53D-4F6B-B77C-2EFE95925AEF} - {2AEF59C3-7ADA-404D-B965-26B700FBD03F} = {57F46508-E53D-4F6B-B77C-2EFE95925AEF} - {4DB3C5B2-9FBF-42BC-80B2-2190EB1AE316} = {2AEF59C3-7ADA-404D-B965-26B700FBD03F} - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {C6DBF56C-E862-46EA-A4E0-993D2950D78D} - EndGlobalSection -EndGlobal diff --git a/src/AADIntegration/Directory.Build.props b/src/AADIntegration/Directory.Build.props deleted file mode 100644 index 1c968415ec..0000000000 --- a/src/AADIntegration/Directory.Build.props +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - Microsoft ASP.NET Core AAD Integration - https://github.com/aspnet/AspNetCore - git - $(MSBuildThisFileDirectory) - $(MSBuildThisFileDirectory)..\..\eng\AspNetCore.snk - true - true - - - - - $(MSBuildThisFileDirectory)..\..\artifacts\ - $(ArtifactsDir)$(Configuration)\ - $(ArtifactsConfigurationDir)packages\ - $(BasePackageOutputPath)product\ - $(BasePackageOutputPath)internal\ - - - diff --git a/src/AADIntegration/Directory.Build.targets b/src/AADIntegration/Directory.Build.targets deleted file mode 100644 index f5a3f65909..0000000000 --- a/src/AADIntegration/Directory.Build.targets +++ /dev/null @@ -1,17 +0,0 @@ - - - $(MicrosoftNETCoreAppPackageVersion) - - - - - false - - $(ProductPackageOutputPath) - $(InternalPackageOutputPath) - - - diff --git a/src/AADIntegration/NuGetPackageVerifier.json b/src/AADIntegration/NuGetPackageVerifier.json deleted file mode 100644 index 66afb69831..0000000000 --- a/src/AADIntegration/NuGetPackageVerifier.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "Default": { - "rules": [ - "DefaultCompositeRule" - ], - "packages": { - "Microsoft.AspNetCore.Authentication.AzureADB2C.UI": { - "Exclusions": { - "DOC_MISSING": { - "lib/netcoreapp3.0/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Views.dll": "This library contains precompiled views." - } - } - }, - "Microsoft.AspNetCore.Authentication.AzureAD.UI": { - "Exclusions": { - "DOC_MISSING": { - "lib/netcoreapp3.0/Microsoft.AspNetCore.Authentication.AzureAD.UI.Views.dll": "This library contains precompiled views." - } - } - } - } - } -} \ No newline at end of file diff --git a/src/AADIntegration/README.md b/src/AADIntegration/README.md deleted file mode 100644 index 5155df07d9..0000000000 --- a/src/AADIntegration/README.md +++ /dev/null @@ -1,14 +0,0 @@ -ASP.NET Core Azure Active Directory Integration -=== - - - -ASP.NET Core Azure Active Directory Integration provides seamless authentication integration with different Azure Active Directory services like Azure Active Directory and Azure Active Directory B2C for ASP.NET Core applications. - -This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the [Home](https://github.com/aspnet/home) repo. - -## Building from source - -To run a complete build on command line only, execute `build.cmd` or `build.sh` without arguments. See [developer documentation](https://github.com/aspnet/Home/wiki) for more details. diff --git a/src/AADIntegration/build/dependencies.props b/src/AADIntegration/build/dependencies.props deleted file mode 100644 index 08ac3b8428..0000000000 --- a/src/AADIntegration/build/dependencies.props +++ /dev/null @@ -1,40 +0,0 @@ - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - - 3.0.0-build-20181114.5 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview1-26907-05 - 3.0.0-preview-18579-0056 - 15.6.1 - 4.10.0 - 2.0.3 - 0.10.0 - 2.3.1 - 2.4.0 - - - - - diff --git a/src/AADIntegration/build/repo.props b/src/AADIntegration/build/repo.props deleted file mode 100644 index 744ce282f7..0000000000 --- a/src/AADIntegration/build/repo.props +++ /dev/null @@ -1,11 +0,0 @@ - - - - - false - - - - - - diff --git a/src/AADIntegration/build/sources.props b/src/AADIntegration/build/sources.props deleted file mode 100644 index f23d255142..0000000000 --- a/src/AADIntegration/build/sources.props +++ /dev/null @@ -1,17 +0,0 @@ - - - - - $(DotNetRestoreSources) - - $(RestoreSources); - https://dotnet.myget.org/F/dotnet-core/api/v3/index.json; - https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json; - https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json; - - - $(RestoreSources); - https://api.nuget.org/v3/index.json; - - - \ No newline at end of file diff --git a/src/AADIntegration/samples/AzureADB2CSample/AzureADB2CSample.csproj b/src/AADIntegration/samples/AzureADB2CSample/AzureADB2CSample.csproj deleted file mode 100644 index 1e4e228ccf..0000000000 --- a/src/AADIntegration/samples/AzureADB2CSample/AzureADB2CSample.csproj +++ /dev/null @@ -1,26 +0,0 @@ - - - - netcoreapp3.0 - - - - true - - - - - - - - - - - - - - - - - - diff --git a/src/AADIntegration/samples/AzureADB2CSample/Properties/launchSettings.json b/src/AADIntegration/samples/AzureADB2CSample/Properties/launchSettings.json deleted file mode 100644 index 1ee213cd17..0000000000 --- a/src/AADIntegration/samples/AzureADB2CSample/Properties/launchSettings.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:59364/", - "sslPort": 44315 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "AzureADB2CSample": { - "commandName": "Project", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "applicationUrl": "https://localhost:44315/;http://localhost:59364/" - } - } -} \ No newline at end of file diff --git a/src/AADIntegration/src/Directory.Build.props b/src/AADIntegration/src/Directory.Build.props deleted file mode 100644 index 4b89a431e7..0000000000 --- a/src/AADIntegration/src/Directory.Build.props +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/src/AADIntegration/test/Directory.Build.props b/src/AADIntegration/test/Directory.Build.props deleted file mode 100644 index 35b63d60ae..0000000000 --- a/src/AADIntegration/test/Directory.Build.props +++ /dev/null @@ -1,18 +0,0 @@ - - - - - false - xUnit1026:$(WarningsNotAsErrors) - $(MSBuildThisFileDirectory)AADIntegration.ruleset - - - - - - - - - - - diff --git a/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests/Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests.csproj b/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests/Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests.csproj deleted file mode 100644 index be07303a4c..0000000000 --- a/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests/Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests.csproj +++ /dev/null @@ -1,20 +0,0 @@ - - - - netcoreapp3.0 - - - - - - - - - - - - - - - - diff --git a/src/AADIntegration/test/WebSites/AzureAD.WebSite/AzureAD.WebSite.csproj b/src/AADIntegration/test/WebSites/AzureAD.WebSite/AzureAD.WebSite.csproj deleted file mode 100644 index b23f727ae3..0000000000 --- a/src/AADIntegration/test/WebSites/AzureAD.WebSite/AzureAD.WebSite.csproj +++ /dev/null @@ -1,29 +0,0 @@ - - - - netcoreapp3.0 - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/AADIntegration/test/WebSites/Directory.Build.props b/src/AADIntegration/test/WebSites/Directory.Build.props deleted file mode 100644 index c8a4ec4440..0000000000 --- a/src/AADIntegration/test/WebSites/Directory.Build.props +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/AADIntegration/version.props b/src/AADIntegration/version.props deleted file mode 100644 index e796179bb9..0000000000 --- a/src/AADIntegration/version.props +++ /dev/null @@ -1,12 +0,0 @@ - - - 3.0.0 - 0.5.0 - alpha1 - $(VersionPrefix) - $(VersionPrefix)-$(VersionSuffix)-final - t000 - $(VersionSuffix)-$([System.Text.RegularExpressions.Regex]::Replace('$(FeatureBranchVersionSuffix)', '[^\w-]', '-')) - $(VersionSuffix)-$(BuildNumber) - - diff --git a/src/Azure/Azure.sln b/src/Azure/Azure.sln new file mode 100644 index 0000000000..50cfeb2ada --- /dev/null +++ b/src/Azure/Azure.sln @@ -0,0 +1,493 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26124.0 +MinimumVisualStudioVersion = 15.0.26124.0 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AzureAD", "AzureAD", "{B931802A-45BB-49A4-9919-B36C827100AC}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Authentication.AzureAD.UI", "Authentication.AzureAD.UI", "{312795E1-D5E2-4021-8FEA-342CA6F14CC8}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Authentication.AzureAD.UI", "AzureAD\Authentication.AzureAD.UI\src\Microsoft.AspNetCore.Authentication.AzureAD.UI.csproj", "{0579BC3C-DC2C-440F-9FB9-F47ABD9B8A58}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Authentication.AzureAD.UI.Test", "AzureAD\Authentication.AzureAD.UI\test\Microsoft.AspNetCore.Authentication.AzureAD.UI.Test.csproj", "{06817D18-5694-454E-A010-CDAECD8AF89B}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Authentication.AzureADB2C.UI", "Authentication.AzureADB2C.UI", "{79FE11AB-8D1E-4DEF-81C0-9B352769BFA4}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Authentication.AzureADB2C.UI", "AzureAD\Authentication.AzureADB2C.UI\src\Microsoft.AspNetCore.Authentication.AzureADB2C.UI.csproj", "{6EC81D5C-D17C-4F11-9471-A8CDBDD8B76C}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test", "AzureAD\Authentication.AzureADB2C.UI\test\Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test.csproj", "{C4703BE0-E8DE-4A22-8653-9E2A20E2BE51}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{A28A64CA-297E-4023-895A-483DFDA59FBE}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AzureADB2CSample", "AzureAD\samples\AzureADB2CSample\AzureADB2CSample.csproj", "{A81C6D14-8A7F-4AC0-B4E8-DF0A925C1ECE}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{F4F1E3C9-38E5-49EC-8688-A2D16AA8807B}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests", "AzureAD\test\FunctionalTests\Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests.csproj", "{B1FC9E6F-F2A2-4E3A-8CFC-0446C592C951}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "testassets", "testassets", "{0F577D33-2EA4-4182-9D89-2EFB022A2835}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AzureAD.WebSite", "AzureAD\test\testassets\AzureAD.WebSite\AzureAD.WebSite.csproj", "{84E67496-B000-4AAD-9626-2135F677C4F1}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "dependencies", "dependencies", "{84622717-F98A-4DE2-806E-1EF89C45C0EB}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.Kestrel", "..\Servers\Kestrel\Kestrel\src\Microsoft.AspNetCore.Server.Kestrel.csproj", "{CF6B45E8-BF6C-487F-A0D0-D3EA31D80529}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.Kestrel.Core", "..\Servers\Kestrel\Core\src\Microsoft.AspNetCore.Server.Kestrel.Core.csproj", "{B1385496-607F-4573-ABE9-D9FE88D96DB8}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.StaticFiles", "..\Middleware\StaticFiles\src\Microsoft.AspNetCore.StaticFiles.csproj", "{6EFFA596-23E7-498C-8D5E-331C6D8E945D}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.HttpsPolicy", "..\Middleware\HttpsPolicy\src\Microsoft.AspNetCore.HttpsPolicy.csproj", "{A3789DA9-2E0E-41D6-BDDD-11DA4D3DD72D}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.IISIntegration", "..\Servers\IIS\IISIntegration\src\Microsoft.AspNetCore.Server.IISIntegration.csproj", "{9631D314-7B0C-4CEC-8650-0259A8F4C77A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.Kestrel.Https", "..\Servers\Kestrel\Https\src\Microsoft.AspNetCore.Server.Kestrel.Https.csproj", "{01B31C53-7BAB-4DA7-A55D-C67D9B1FB4A2}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.DataProtection.Extensions", "..\DataProtection\Extensions\src\Microsoft.AspNetCore.DataProtection.Extensions.csproj", "{240BBDB1-3501-4637-8A17-996EA4EBB20B}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc", "..\Mvc\src\Microsoft.AspNetCore.Mvc\Microsoft.AspNetCore.Mvc.csproj", "{88EF760A-99A2-48C8-920F-78632A3BB57A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Testing", "..\Mvc\src\Microsoft.AspNetCore.Mvc.Testing\Microsoft.AspNetCore.Mvc.Testing.csproj", "{9593691E-1B65-4EB1-97AA-F8B292B0082A}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ApplicationInsights.HostingStartup", "ApplicationInsights.HostingStartup", "{EE98F905-C0E0-4A09-8B0E-5F8728EB14CF}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.ApplicationInsights.HostingStartup", "ApplicationInsights.HostingStartup\src\Microsoft.AspNetCore.ApplicationInsights.HostingStartup.csproj", "{12544BE3-B7B9-42EA-A6BD-C354C9F39568}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{9F1C63CA-BBE9-468A-B8E1-1C28A7D09F32}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "testassets", "testassets", "{D9A5379C-EA5B-4AAE-8C84-46FAF40E4EEB}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApplicationInsightsHostingStartupSample", "ApplicationInsights.HostingStartup\test\testassets\ApplicationInsightsHostingStartupSample\ApplicationInsightsHostingStartupSample.csproj", "{B76BE944-681D-4887-9F90-5A24AD5924CB}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AzureAppServices.HostingStartup", "AzureAppServices.HostingStartup", "{9EC158BE-EB9C-4627-931D-B1B95D3210B6}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.AzureAppServices.HostingStartup", "AzureAppServices.HostingStartup\src\Microsoft.AspNetCore.AzureAppServices.HostingStartup.csproj", "{4209F2B4-0388-47DF-A054-C974ABE78723}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AzureAppServicesIntegration", "AzureAppServicesIntegration", "{C6E2B73F-137E-4C37-84DE-0863B1C30D23}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.AzureAppServicesIntegration", "AzureAppServicesIntegration\src\Microsoft.AspNetCore.AzureAppServicesIntegration.csproj", "{215BC7AA-7275-44CA-A7B5-D62AEC7D4752}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.AzureAppServicesIntegration.Tests", "AzureAppServicesIntegration\test\Microsoft.AspNetCore.AzureAppServicesIntegration.Tests.csproj", "{15FAF776-E564-4ADF-9F10-20F3C0A8BA7C}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.ApplicationInsights.HostingStartup.Tests", "ApplicationInsights.HostingStartup\test\UnitTests\Microsoft.AspNetCore.ApplicationInsights.HostingStartup.Tests.csproj", "{F523DF0F-E297-4DA6-A6CF-DECAFBB95562}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{3DCECD76-8F99-481E-B828-9C674FF39B2A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AzureAppServicesHostingStartupSample", "samples\AzureAppServicesHostingStartupSample\AzureAppServicesHostingStartupSample.csproj", "{A52106C7-6539-4928-A6E3-A216292327E7}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AzureAppServicesSample", "samples\AzureAppServicesSample\AzureAppServicesSample.csproj", "{6B3083B3-FAEA-4626-B299-26D89AE1175A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Hosting.Abstractions", "..\Hosting\Abstractions\src\Microsoft.AspNetCore.Hosting.Abstractions.csproj", "{CDD2AA23-BC7A-4C2A-8C42-3442B1D6B481}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Hosting", "..\Hosting\Hosting\src\Microsoft.AspNetCore.Hosting.csproj", "{DF5A8E5A-77C7-48B7-B8CD-4D032BAC8989}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.IntegrationTesting", "..\Hosting\Server.IntegrationTesting\src\Microsoft.AspNetCore.Server.IntegrationTesting.csproj", "{38027842-48A7-4A64-A44F-004BAF0AB450}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.TestHost", "..\Hosting\TestHost\src\Microsoft.AspNetCore.TestHost.csproj", "{C520D48E-87A0-463D-B4CF-3E6B68F8F4D0}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Authorization", "..\Security\Authorization\Core\src\Microsoft.AspNetCore.Authorization.csproj", "{C57DFBC2-A887-44B4-A149-7ABFA6D98F7E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0579BC3C-DC2C-440F-9FB9-F47ABD9B8A58}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0579BC3C-DC2C-440F-9FB9-F47ABD9B8A58}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0579BC3C-DC2C-440F-9FB9-F47ABD9B8A58}.Debug|x64.ActiveCfg = Debug|Any CPU + {0579BC3C-DC2C-440F-9FB9-F47ABD9B8A58}.Debug|x64.Build.0 = Debug|Any CPU + {0579BC3C-DC2C-440F-9FB9-F47ABD9B8A58}.Debug|x86.ActiveCfg = Debug|Any CPU + {0579BC3C-DC2C-440F-9FB9-F47ABD9B8A58}.Debug|x86.Build.0 = Debug|Any CPU + {0579BC3C-DC2C-440F-9FB9-F47ABD9B8A58}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0579BC3C-DC2C-440F-9FB9-F47ABD9B8A58}.Release|Any CPU.Build.0 = Release|Any CPU + {0579BC3C-DC2C-440F-9FB9-F47ABD9B8A58}.Release|x64.ActiveCfg = Release|Any CPU + {0579BC3C-DC2C-440F-9FB9-F47ABD9B8A58}.Release|x64.Build.0 = Release|Any CPU + {0579BC3C-DC2C-440F-9FB9-F47ABD9B8A58}.Release|x86.ActiveCfg = Release|Any CPU + {0579BC3C-DC2C-440F-9FB9-F47ABD9B8A58}.Release|x86.Build.0 = Release|Any CPU + {06817D18-5694-454E-A010-CDAECD8AF89B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {06817D18-5694-454E-A010-CDAECD8AF89B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {06817D18-5694-454E-A010-CDAECD8AF89B}.Debug|x64.ActiveCfg = Debug|Any CPU + {06817D18-5694-454E-A010-CDAECD8AF89B}.Debug|x64.Build.0 = Debug|Any CPU + {06817D18-5694-454E-A010-CDAECD8AF89B}.Debug|x86.ActiveCfg = Debug|Any CPU + {06817D18-5694-454E-A010-CDAECD8AF89B}.Debug|x86.Build.0 = Debug|Any CPU + {06817D18-5694-454E-A010-CDAECD8AF89B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {06817D18-5694-454E-A010-CDAECD8AF89B}.Release|Any CPU.Build.0 = Release|Any CPU + {06817D18-5694-454E-A010-CDAECD8AF89B}.Release|x64.ActiveCfg = Release|Any CPU + {06817D18-5694-454E-A010-CDAECD8AF89B}.Release|x64.Build.0 = Release|Any CPU + {06817D18-5694-454E-A010-CDAECD8AF89B}.Release|x86.ActiveCfg = Release|Any CPU + {06817D18-5694-454E-A010-CDAECD8AF89B}.Release|x86.Build.0 = Release|Any CPU + {6EC81D5C-D17C-4F11-9471-A8CDBDD8B76C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6EC81D5C-D17C-4F11-9471-A8CDBDD8B76C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6EC81D5C-D17C-4F11-9471-A8CDBDD8B76C}.Debug|x64.ActiveCfg = Debug|Any CPU + {6EC81D5C-D17C-4F11-9471-A8CDBDD8B76C}.Debug|x64.Build.0 = Debug|Any CPU + {6EC81D5C-D17C-4F11-9471-A8CDBDD8B76C}.Debug|x86.ActiveCfg = Debug|Any CPU + {6EC81D5C-D17C-4F11-9471-A8CDBDD8B76C}.Debug|x86.Build.0 = Debug|Any CPU + {6EC81D5C-D17C-4F11-9471-A8CDBDD8B76C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6EC81D5C-D17C-4F11-9471-A8CDBDD8B76C}.Release|Any CPU.Build.0 = Release|Any CPU + {6EC81D5C-D17C-4F11-9471-A8CDBDD8B76C}.Release|x64.ActiveCfg = Release|Any CPU + {6EC81D5C-D17C-4F11-9471-A8CDBDD8B76C}.Release|x64.Build.0 = Release|Any CPU + {6EC81D5C-D17C-4F11-9471-A8CDBDD8B76C}.Release|x86.ActiveCfg = Release|Any CPU + {6EC81D5C-D17C-4F11-9471-A8CDBDD8B76C}.Release|x86.Build.0 = Release|Any CPU + {C4703BE0-E8DE-4A22-8653-9E2A20E2BE51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C4703BE0-E8DE-4A22-8653-9E2A20E2BE51}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C4703BE0-E8DE-4A22-8653-9E2A20E2BE51}.Debug|x64.ActiveCfg = Debug|Any CPU + {C4703BE0-E8DE-4A22-8653-9E2A20E2BE51}.Debug|x64.Build.0 = Debug|Any CPU + {C4703BE0-E8DE-4A22-8653-9E2A20E2BE51}.Debug|x86.ActiveCfg = Debug|Any CPU + {C4703BE0-E8DE-4A22-8653-9E2A20E2BE51}.Debug|x86.Build.0 = Debug|Any CPU + {C4703BE0-E8DE-4A22-8653-9E2A20E2BE51}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C4703BE0-E8DE-4A22-8653-9E2A20E2BE51}.Release|Any CPU.Build.0 = Release|Any CPU + {C4703BE0-E8DE-4A22-8653-9E2A20E2BE51}.Release|x64.ActiveCfg = Release|Any CPU + {C4703BE0-E8DE-4A22-8653-9E2A20E2BE51}.Release|x64.Build.0 = Release|Any CPU + {C4703BE0-E8DE-4A22-8653-9E2A20E2BE51}.Release|x86.ActiveCfg = Release|Any CPU + {C4703BE0-E8DE-4A22-8653-9E2A20E2BE51}.Release|x86.Build.0 = Release|Any CPU + {A81C6D14-8A7F-4AC0-B4E8-DF0A925C1ECE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A81C6D14-8A7F-4AC0-B4E8-DF0A925C1ECE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A81C6D14-8A7F-4AC0-B4E8-DF0A925C1ECE}.Debug|x64.ActiveCfg = Debug|Any CPU + {A81C6D14-8A7F-4AC0-B4E8-DF0A925C1ECE}.Debug|x64.Build.0 = Debug|Any CPU + {A81C6D14-8A7F-4AC0-B4E8-DF0A925C1ECE}.Debug|x86.ActiveCfg = Debug|Any CPU + {A81C6D14-8A7F-4AC0-B4E8-DF0A925C1ECE}.Debug|x86.Build.0 = Debug|Any CPU + {A81C6D14-8A7F-4AC0-B4E8-DF0A925C1ECE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A81C6D14-8A7F-4AC0-B4E8-DF0A925C1ECE}.Release|Any CPU.Build.0 = Release|Any CPU + {A81C6D14-8A7F-4AC0-B4E8-DF0A925C1ECE}.Release|x64.ActiveCfg = Release|Any CPU + {A81C6D14-8A7F-4AC0-B4E8-DF0A925C1ECE}.Release|x64.Build.0 = Release|Any CPU + {A81C6D14-8A7F-4AC0-B4E8-DF0A925C1ECE}.Release|x86.ActiveCfg = Release|Any CPU + {A81C6D14-8A7F-4AC0-B4E8-DF0A925C1ECE}.Release|x86.Build.0 = Release|Any CPU + {B1FC9E6F-F2A2-4E3A-8CFC-0446C592C951}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B1FC9E6F-F2A2-4E3A-8CFC-0446C592C951}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B1FC9E6F-F2A2-4E3A-8CFC-0446C592C951}.Debug|x64.ActiveCfg = Debug|Any CPU + {B1FC9E6F-F2A2-4E3A-8CFC-0446C592C951}.Debug|x64.Build.0 = Debug|Any CPU + {B1FC9E6F-F2A2-4E3A-8CFC-0446C592C951}.Debug|x86.ActiveCfg = Debug|Any CPU + {B1FC9E6F-F2A2-4E3A-8CFC-0446C592C951}.Debug|x86.Build.0 = Debug|Any CPU + {B1FC9E6F-F2A2-4E3A-8CFC-0446C592C951}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B1FC9E6F-F2A2-4E3A-8CFC-0446C592C951}.Release|Any CPU.Build.0 = Release|Any CPU + {B1FC9E6F-F2A2-4E3A-8CFC-0446C592C951}.Release|x64.ActiveCfg = Release|Any CPU + {B1FC9E6F-F2A2-4E3A-8CFC-0446C592C951}.Release|x64.Build.0 = Release|Any CPU + {B1FC9E6F-F2A2-4E3A-8CFC-0446C592C951}.Release|x86.ActiveCfg = Release|Any CPU + {B1FC9E6F-F2A2-4E3A-8CFC-0446C592C951}.Release|x86.Build.0 = Release|Any CPU + {84E67496-B000-4AAD-9626-2135F677C4F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {84E67496-B000-4AAD-9626-2135F677C4F1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {84E67496-B000-4AAD-9626-2135F677C4F1}.Debug|x64.ActiveCfg = Debug|Any CPU + {84E67496-B000-4AAD-9626-2135F677C4F1}.Debug|x64.Build.0 = Debug|Any CPU + {84E67496-B000-4AAD-9626-2135F677C4F1}.Debug|x86.ActiveCfg = Debug|Any CPU + {84E67496-B000-4AAD-9626-2135F677C4F1}.Debug|x86.Build.0 = Debug|Any CPU + {84E67496-B000-4AAD-9626-2135F677C4F1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {84E67496-B000-4AAD-9626-2135F677C4F1}.Release|Any CPU.Build.0 = Release|Any CPU + {84E67496-B000-4AAD-9626-2135F677C4F1}.Release|x64.ActiveCfg = Release|Any CPU + {84E67496-B000-4AAD-9626-2135F677C4F1}.Release|x64.Build.0 = Release|Any CPU + {84E67496-B000-4AAD-9626-2135F677C4F1}.Release|x86.ActiveCfg = Release|Any CPU + {84E67496-B000-4AAD-9626-2135F677C4F1}.Release|x86.Build.0 = Release|Any CPU + {CF6B45E8-BF6C-487F-A0D0-D3EA31D80529}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CF6B45E8-BF6C-487F-A0D0-D3EA31D80529}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CF6B45E8-BF6C-487F-A0D0-D3EA31D80529}.Debug|x64.ActiveCfg = Debug|Any CPU + {CF6B45E8-BF6C-487F-A0D0-D3EA31D80529}.Debug|x64.Build.0 = Debug|Any CPU + {CF6B45E8-BF6C-487F-A0D0-D3EA31D80529}.Debug|x86.ActiveCfg = Debug|Any CPU + {CF6B45E8-BF6C-487F-A0D0-D3EA31D80529}.Debug|x86.Build.0 = Debug|Any CPU + {CF6B45E8-BF6C-487F-A0D0-D3EA31D80529}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CF6B45E8-BF6C-487F-A0D0-D3EA31D80529}.Release|Any CPU.Build.0 = Release|Any CPU + {CF6B45E8-BF6C-487F-A0D0-D3EA31D80529}.Release|x64.ActiveCfg = Release|Any CPU + {CF6B45E8-BF6C-487F-A0D0-D3EA31D80529}.Release|x64.Build.0 = Release|Any CPU + {CF6B45E8-BF6C-487F-A0D0-D3EA31D80529}.Release|x86.ActiveCfg = Release|Any CPU + {CF6B45E8-BF6C-487F-A0D0-D3EA31D80529}.Release|x86.Build.0 = Release|Any CPU + {B1385496-607F-4573-ABE9-D9FE88D96DB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B1385496-607F-4573-ABE9-D9FE88D96DB8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B1385496-607F-4573-ABE9-D9FE88D96DB8}.Debug|x64.ActiveCfg = Debug|Any CPU + {B1385496-607F-4573-ABE9-D9FE88D96DB8}.Debug|x64.Build.0 = Debug|Any CPU + {B1385496-607F-4573-ABE9-D9FE88D96DB8}.Debug|x86.ActiveCfg = Debug|Any CPU + {B1385496-607F-4573-ABE9-D9FE88D96DB8}.Debug|x86.Build.0 = Debug|Any CPU + {B1385496-607F-4573-ABE9-D9FE88D96DB8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B1385496-607F-4573-ABE9-D9FE88D96DB8}.Release|Any CPU.Build.0 = Release|Any CPU + {B1385496-607F-4573-ABE9-D9FE88D96DB8}.Release|x64.ActiveCfg = Release|Any CPU + {B1385496-607F-4573-ABE9-D9FE88D96DB8}.Release|x64.Build.0 = Release|Any CPU + {B1385496-607F-4573-ABE9-D9FE88D96DB8}.Release|x86.ActiveCfg = Release|Any CPU + {B1385496-607F-4573-ABE9-D9FE88D96DB8}.Release|x86.Build.0 = Release|Any CPU + {6EFFA596-23E7-498C-8D5E-331C6D8E945D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6EFFA596-23E7-498C-8D5E-331C6D8E945D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6EFFA596-23E7-498C-8D5E-331C6D8E945D}.Debug|x64.ActiveCfg = Debug|Any CPU + {6EFFA596-23E7-498C-8D5E-331C6D8E945D}.Debug|x64.Build.0 = Debug|Any CPU + {6EFFA596-23E7-498C-8D5E-331C6D8E945D}.Debug|x86.ActiveCfg = Debug|Any CPU + {6EFFA596-23E7-498C-8D5E-331C6D8E945D}.Debug|x86.Build.0 = Debug|Any CPU + {6EFFA596-23E7-498C-8D5E-331C6D8E945D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6EFFA596-23E7-498C-8D5E-331C6D8E945D}.Release|Any CPU.Build.0 = Release|Any CPU + {6EFFA596-23E7-498C-8D5E-331C6D8E945D}.Release|x64.ActiveCfg = Release|Any CPU + {6EFFA596-23E7-498C-8D5E-331C6D8E945D}.Release|x64.Build.0 = Release|Any CPU + {6EFFA596-23E7-498C-8D5E-331C6D8E945D}.Release|x86.ActiveCfg = Release|Any CPU + {6EFFA596-23E7-498C-8D5E-331C6D8E945D}.Release|x86.Build.0 = Release|Any CPU + {A3789DA9-2E0E-41D6-BDDD-11DA4D3DD72D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A3789DA9-2E0E-41D6-BDDD-11DA4D3DD72D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A3789DA9-2E0E-41D6-BDDD-11DA4D3DD72D}.Debug|x64.ActiveCfg = Debug|Any CPU + {A3789DA9-2E0E-41D6-BDDD-11DA4D3DD72D}.Debug|x64.Build.0 = Debug|Any CPU + {A3789DA9-2E0E-41D6-BDDD-11DA4D3DD72D}.Debug|x86.ActiveCfg = Debug|Any CPU + {A3789DA9-2E0E-41D6-BDDD-11DA4D3DD72D}.Debug|x86.Build.0 = Debug|Any CPU + {A3789DA9-2E0E-41D6-BDDD-11DA4D3DD72D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A3789DA9-2E0E-41D6-BDDD-11DA4D3DD72D}.Release|Any CPU.Build.0 = Release|Any CPU + {A3789DA9-2E0E-41D6-BDDD-11DA4D3DD72D}.Release|x64.ActiveCfg = Release|Any CPU + {A3789DA9-2E0E-41D6-BDDD-11DA4D3DD72D}.Release|x64.Build.0 = Release|Any CPU + {A3789DA9-2E0E-41D6-BDDD-11DA4D3DD72D}.Release|x86.ActiveCfg = Release|Any CPU + {A3789DA9-2E0E-41D6-BDDD-11DA4D3DD72D}.Release|x86.Build.0 = Release|Any CPU + {9631D314-7B0C-4CEC-8650-0259A8F4C77A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9631D314-7B0C-4CEC-8650-0259A8F4C77A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9631D314-7B0C-4CEC-8650-0259A8F4C77A}.Debug|x64.ActiveCfg = Debug|Any CPU + {9631D314-7B0C-4CEC-8650-0259A8F4C77A}.Debug|x64.Build.0 = Debug|Any CPU + {9631D314-7B0C-4CEC-8650-0259A8F4C77A}.Debug|x86.ActiveCfg = Debug|Any CPU + {9631D314-7B0C-4CEC-8650-0259A8F4C77A}.Debug|x86.Build.0 = Debug|Any CPU + {9631D314-7B0C-4CEC-8650-0259A8F4C77A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9631D314-7B0C-4CEC-8650-0259A8F4C77A}.Release|Any CPU.Build.0 = Release|Any CPU + {9631D314-7B0C-4CEC-8650-0259A8F4C77A}.Release|x64.ActiveCfg = Release|Any CPU + {9631D314-7B0C-4CEC-8650-0259A8F4C77A}.Release|x64.Build.0 = Release|Any CPU + {9631D314-7B0C-4CEC-8650-0259A8F4C77A}.Release|x86.ActiveCfg = Release|Any CPU + {9631D314-7B0C-4CEC-8650-0259A8F4C77A}.Release|x86.Build.0 = Release|Any CPU + {01B31C53-7BAB-4DA7-A55D-C67D9B1FB4A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {01B31C53-7BAB-4DA7-A55D-C67D9B1FB4A2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {01B31C53-7BAB-4DA7-A55D-C67D9B1FB4A2}.Debug|x64.ActiveCfg = Debug|Any CPU + {01B31C53-7BAB-4DA7-A55D-C67D9B1FB4A2}.Debug|x64.Build.0 = Debug|Any CPU + {01B31C53-7BAB-4DA7-A55D-C67D9B1FB4A2}.Debug|x86.ActiveCfg = Debug|Any CPU + {01B31C53-7BAB-4DA7-A55D-C67D9B1FB4A2}.Debug|x86.Build.0 = Debug|Any CPU + {01B31C53-7BAB-4DA7-A55D-C67D9B1FB4A2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {01B31C53-7BAB-4DA7-A55D-C67D9B1FB4A2}.Release|Any CPU.Build.0 = Release|Any CPU + {01B31C53-7BAB-4DA7-A55D-C67D9B1FB4A2}.Release|x64.ActiveCfg = Release|Any CPU + {01B31C53-7BAB-4DA7-A55D-C67D9B1FB4A2}.Release|x64.Build.0 = Release|Any CPU + {01B31C53-7BAB-4DA7-A55D-C67D9B1FB4A2}.Release|x86.ActiveCfg = Release|Any CPU + {01B31C53-7BAB-4DA7-A55D-C67D9B1FB4A2}.Release|x86.Build.0 = Release|Any CPU + {240BBDB1-3501-4637-8A17-996EA4EBB20B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {240BBDB1-3501-4637-8A17-996EA4EBB20B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {240BBDB1-3501-4637-8A17-996EA4EBB20B}.Debug|x64.ActiveCfg = Debug|Any CPU + {240BBDB1-3501-4637-8A17-996EA4EBB20B}.Debug|x64.Build.0 = Debug|Any CPU + {240BBDB1-3501-4637-8A17-996EA4EBB20B}.Debug|x86.ActiveCfg = Debug|Any CPU + {240BBDB1-3501-4637-8A17-996EA4EBB20B}.Debug|x86.Build.0 = Debug|Any CPU + {240BBDB1-3501-4637-8A17-996EA4EBB20B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {240BBDB1-3501-4637-8A17-996EA4EBB20B}.Release|Any CPU.Build.0 = Release|Any CPU + {240BBDB1-3501-4637-8A17-996EA4EBB20B}.Release|x64.ActiveCfg = Release|Any CPU + {240BBDB1-3501-4637-8A17-996EA4EBB20B}.Release|x64.Build.0 = Release|Any CPU + {240BBDB1-3501-4637-8A17-996EA4EBB20B}.Release|x86.ActiveCfg = Release|Any CPU + {240BBDB1-3501-4637-8A17-996EA4EBB20B}.Release|x86.Build.0 = Release|Any CPU + {88EF760A-99A2-48C8-920F-78632A3BB57A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {88EF760A-99A2-48C8-920F-78632A3BB57A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {88EF760A-99A2-48C8-920F-78632A3BB57A}.Debug|x64.ActiveCfg = Debug|Any CPU + {88EF760A-99A2-48C8-920F-78632A3BB57A}.Debug|x64.Build.0 = Debug|Any CPU + {88EF760A-99A2-48C8-920F-78632A3BB57A}.Debug|x86.ActiveCfg = Debug|Any CPU + {88EF760A-99A2-48C8-920F-78632A3BB57A}.Debug|x86.Build.0 = Debug|Any CPU + {88EF760A-99A2-48C8-920F-78632A3BB57A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {88EF760A-99A2-48C8-920F-78632A3BB57A}.Release|Any CPU.Build.0 = Release|Any CPU + {88EF760A-99A2-48C8-920F-78632A3BB57A}.Release|x64.ActiveCfg = Release|Any CPU + {88EF760A-99A2-48C8-920F-78632A3BB57A}.Release|x64.Build.0 = Release|Any CPU + {88EF760A-99A2-48C8-920F-78632A3BB57A}.Release|x86.ActiveCfg = Release|Any CPU + {88EF760A-99A2-48C8-920F-78632A3BB57A}.Release|x86.Build.0 = Release|Any CPU + {9593691E-1B65-4EB1-97AA-F8B292B0082A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9593691E-1B65-4EB1-97AA-F8B292B0082A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9593691E-1B65-4EB1-97AA-F8B292B0082A}.Debug|x64.ActiveCfg = Debug|Any CPU + {9593691E-1B65-4EB1-97AA-F8B292B0082A}.Debug|x64.Build.0 = Debug|Any CPU + {9593691E-1B65-4EB1-97AA-F8B292B0082A}.Debug|x86.ActiveCfg = Debug|Any CPU + {9593691E-1B65-4EB1-97AA-F8B292B0082A}.Debug|x86.Build.0 = Debug|Any CPU + {9593691E-1B65-4EB1-97AA-F8B292B0082A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9593691E-1B65-4EB1-97AA-F8B292B0082A}.Release|Any CPU.Build.0 = Release|Any CPU + {9593691E-1B65-4EB1-97AA-F8B292B0082A}.Release|x64.ActiveCfg = Release|Any CPU + {9593691E-1B65-4EB1-97AA-F8B292B0082A}.Release|x64.Build.0 = Release|Any CPU + {9593691E-1B65-4EB1-97AA-F8B292B0082A}.Release|x86.ActiveCfg = Release|Any CPU + {9593691E-1B65-4EB1-97AA-F8B292B0082A}.Release|x86.Build.0 = Release|Any CPU + {12544BE3-B7B9-42EA-A6BD-C354C9F39568}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {12544BE3-B7B9-42EA-A6BD-C354C9F39568}.Debug|Any CPU.Build.0 = Debug|Any CPU + {12544BE3-B7B9-42EA-A6BD-C354C9F39568}.Debug|x64.ActiveCfg = Debug|Any CPU + {12544BE3-B7B9-42EA-A6BD-C354C9F39568}.Debug|x64.Build.0 = Debug|Any CPU + {12544BE3-B7B9-42EA-A6BD-C354C9F39568}.Debug|x86.ActiveCfg = Debug|Any CPU + {12544BE3-B7B9-42EA-A6BD-C354C9F39568}.Debug|x86.Build.0 = Debug|Any CPU + {12544BE3-B7B9-42EA-A6BD-C354C9F39568}.Release|Any CPU.ActiveCfg = Release|Any CPU + {12544BE3-B7B9-42EA-A6BD-C354C9F39568}.Release|Any CPU.Build.0 = Release|Any CPU + {12544BE3-B7B9-42EA-A6BD-C354C9F39568}.Release|x64.ActiveCfg = Release|Any CPU + {12544BE3-B7B9-42EA-A6BD-C354C9F39568}.Release|x64.Build.0 = Release|Any CPU + {12544BE3-B7B9-42EA-A6BD-C354C9F39568}.Release|x86.ActiveCfg = Release|Any CPU + {12544BE3-B7B9-42EA-A6BD-C354C9F39568}.Release|x86.Build.0 = Release|Any CPU + {B76BE944-681D-4887-9F90-5A24AD5924CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B76BE944-681D-4887-9F90-5A24AD5924CB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B76BE944-681D-4887-9F90-5A24AD5924CB}.Debug|x64.ActiveCfg = Debug|Any CPU + {B76BE944-681D-4887-9F90-5A24AD5924CB}.Debug|x64.Build.0 = Debug|Any CPU + {B76BE944-681D-4887-9F90-5A24AD5924CB}.Debug|x86.ActiveCfg = Debug|Any CPU + {B76BE944-681D-4887-9F90-5A24AD5924CB}.Debug|x86.Build.0 = Debug|Any CPU + {B76BE944-681D-4887-9F90-5A24AD5924CB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B76BE944-681D-4887-9F90-5A24AD5924CB}.Release|Any CPU.Build.0 = Release|Any CPU + {B76BE944-681D-4887-9F90-5A24AD5924CB}.Release|x64.ActiveCfg = Release|Any CPU + {B76BE944-681D-4887-9F90-5A24AD5924CB}.Release|x64.Build.0 = Release|Any CPU + {B76BE944-681D-4887-9F90-5A24AD5924CB}.Release|x86.ActiveCfg = Release|Any CPU + {B76BE944-681D-4887-9F90-5A24AD5924CB}.Release|x86.Build.0 = Release|Any CPU + {4209F2B4-0388-47DF-A054-C974ABE78723}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4209F2B4-0388-47DF-A054-C974ABE78723}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4209F2B4-0388-47DF-A054-C974ABE78723}.Debug|x64.ActiveCfg = Debug|Any CPU + {4209F2B4-0388-47DF-A054-C974ABE78723}.Debug|x64.Build.0 = Debug|Any CPU + {4209F2B4-0388-47DF-A054-C974ABE78723}.Debug|x86.ActiveCfg = Debug|Any CPU + {4209F2B4-0388-47DF-A054-C974ABE78723}.Debug|x86.Build.0 = Debug|Any CPU + {4209F2B4-0388-47DF-A054-C974ABE78723}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4209F2B4-0388-47DF-A054-C974ABE78723}.Release|Any CPU.Build.0 = Release|Any CPU + {4209F2B4-0388-47DF-A054-C974ABE78723}.Release|x64.ActiveCfg = Release|Any CPU + {4209F2B4-0388-47DF-A054-C974ABE78723}.Release|x64.Build.0 = Release|Any CPU + {4209F2B4-0388-47DF-A054-C974ABE78723}.Release|x86.ActiveCfg = Release|Any CPU + {4209F2B4-0388-47DF-A054-C974ABE78723}.Release|x86.Build.0 = Release|Any CPU + {215BC7AA-7275-44CA-A7B5-D62AEC7D4752}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {215BC7AA-7275-44CA-A7B5-D62AEC7D4752}.Debug|Any CPU.Build.0 = Debug|Any CPU + {215BC7AA-7275-44CA-A7B5-D62AEC7D4752}.Debug|x64.ActiveCfg = Debug|Any CPU + {215BC7AA-7275-44CA-A7B5-D62AEC7D4752}.Debug|x64.Build.0 = Debug|Any CPU + {215BC7AA-7275-44CA-A7B5-D62AEC7D4752}.Debug|x86.ActiveCfg = Debug|Any CPU + {215BC7AA-7275-44CA-A7B5-D62AEC7D4752}.Debug|x86.Build.0 = Debug|Any CPU + {215BC7AA-7275-44CA-A7B5-D62AEC7D4752}.Release|Any CPU.ActiveCfg = Release|Any CPU + {215BC7AA-7275-44CA-A7B5-D62AEC7D4752}.Release|Any CPU.Build.0 = Release|Any CPU + {215BC7AA-7275-44CA-A7B5-D62AEC7D4752}.Release|x64.ActiveCfg = Release|Any CPU + {215BC7AA-7275-44CA-A7B5-D62AEC7D4752}.Release|x64.Build.0 = Release|Any CPU + {215BC7AA-7275-44CA-A7B5-D62AEC7D4752}.Release|x86.ActiveCfg = Release|Any CPU + {215BC7AA-7275-44CA-A7B5-D62AEC7D4752}.Release|x86.Build.0 = Release|Any CPU + {15FAF776-E564-4ADF-9F10-20F3C0A8BA7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {15FAF776-E564-4ADF-9F10-20F3C0A8BA7C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {15FAF776-E564-4ADF-9F10-20F3C0A8BA7C}.Debug|x64.ActiveCfg = Debug|Any CPU + {15FAF776-E564-4ADF-9F10-20F3C0A8BA7C}.Debug|x64.Build.0 = Debug|Any CPU + {15FAF776-E564-4ADF-9F10-20F3C0A8BA7C}.Debug|x86.ActiveCfg = Debug|Any CPU + {15FAF776-E564-4ADF-9F10-20F3C0A8BA7C}.Debug|x86.Build.0 = Debug|Any CPU + {15FAF776-E564-4ADF-9F10-20F3C0A8BA7C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {15FAF776-E564-4ADF-9F10-20F3C0A8BA7C}.Release|Any CPU.Build.0 = Release|Any CPU + {15FAF776-E564-4ADF-9F10-20F3C0A8BA7C}.Release|x64.ActiveCfg = Release|Any CPU + {15FAF776-E564-4ADF-9F10-20F3C0A8BA7C}.Release|x64.Build.0 = Release|Any CPU + {15FAF776-E564-4ADF-9F10-20F3C0A8BA7C}.Release|x86.ActiveCfg = Release|Any CPU + {15FAF776-E564-4ADF-9F10-20F3C0A8BA7C}.Release|x86.Build.0 = Release|Any CPU + {F523DF0F-E297-4DA6-A6CF-DECAFBB95562}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F523DF0F-E297-4DA6-A6CF-DECAFBB95562}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F523DF0F-E297-4DA6-A6CF-DECAFBB95562}.Debug|x64.ActiveCfg = Debug|Any CPU + {F523DF0F-E297-4DA6-A6CF-DECAFBB95562}.Debug|x64.Build.0 = Debug|Any CPU + {F523DF0F-E297-4DA6-A6CF-DECAFBB95562}.Debug|x86.ActiveCfg = Debug|Any CPU + {F523DF0F-E297-4DA6-A6CF-DECAFBB95562}.Debug|x86.Build.0 = Debug|Any CPU + {F523DF0F-E297-4DA6-A6CF-DECAFBB95562}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F523DF0F-E297-4DA6-A6CF-DECAFBB95562}.Release|Any CPU.Build.0 = Release|Any CPU + {F523DF0F-E297-4DA6-A6CF-DECAFBB95562}.Release|x64.ActiveCfg = Release|Any CPU + {F523DF0F-E297-4DA6-A6CF-DECAFBB95562}.Release|x64.Build.0 = Release|Any CPU + {F523DF0F-E297-4DA6-A6CF-DECAFBB95562}.Release|x86.ActiveCfg = Release|Any CPU + {F523DF0F-E297-4DA6-A6CF-DECAFBB95562}.Release|x86.Build.0 = Release|Any CPU + {A52106C7-6539-4928-A6E3-A216292327E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A52106C7-6539-4928-A6E3-A216292327E7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A52106C7-6539-4928-A6E3-A216292327E7}.Debug|x64.ActiveCfg = Debug|Any CPU + {A52106C7-6539-4928-A6E3-A216292327E7}.Debug|x64.Build.0 = Debug|Any CPU + {A52106C7-6539-4928-A6E3-A216292327E7}.Debug|x86.ActiveCfg = Debug|Any CPU + {A52106C7-6539-4928-A6E3-A216292327E7}.Debug|x86.Build.0 = Debug|Any CPU + {A52106C7-6539-4928-A6E3-A216292327E7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A52106C7-6539-4928-A6E3-A216292327E7}.Release|Any CPU.Build.0 = Release|Any CPU + {A52106C7-6539-4928-A6E3-A216292327E7}.Release|x64.ActiveCfg = Release|Any CPU + {A52106C7-6539-4928-A6E3-A216292327E7}.Release|x64.Build.0 = Release|Any CPU + {A52106C7-6539-4928-A6E3-A216292327E7}.Release|x86.ActiveCfg = Release|Any CPU + {A52106C7-6539-4928-A6E3-A216292327E7}.Release|x86.Build.0 = Release|Any CPU + {6B3083B3-FAEA-4626-B299-26D89AE1175A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6B3083B3-FAEA-4626-B299-26D89AE1175A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6B3083B3-FAEA-4626-B299-26D89AE1175A}.Debug|x64.ActiveCfg = Debug|Any CPU + {6B3083B3-FAEA-4626-B299-26D89AE1175A}.Debug|x64.Build.0 = Debug|Any CPU + {6B3083B3-FAEA-4626-B299-26D89AE1175A}.Debug|x86.ActiveCfg = Debug|Any CPU + {6B3083B3-FAEA-4626-B299-26D89AE1175A}.Debug|x86.Build.0 = Debug|Any CPU + {6B3083B3-FAEA-4626-B299-26D89AE1175A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6B3083B3-FAEA-4626-B299-26D89AE1175A}.Release|Any CPU.Build.0 = Release|Any CPU + {6B3083B3-FAEA-4626-B299-26D89AE1175A}.Release|x64.ActiveCfg = Release|Any CPU + {6B3083B3-FAEA-4626-B299-26D89AE1175A}.Release|x64.Build.0 = Release|Any CPU + {6B3083B3-FAEA-4626-B299-26D89AE1175A}.Release|x86.ActiveCfg = Release|Any CPU + {6B3083B3-FAEA-4626-B299-26D89AE1175A}.Release|x86.Build.0 = Release|Any CPU + {CDD2AA23-BC7A-4C2A-8C42-3442B1D6B481}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CDD2AA23-BC7A-4C2A-8C42-3442B1D6B481}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CDD2AA23-BC7A-4C2A-8C42-3442B1D6B481}.Debug|x64.ActiveCfg = Debug|Any CPU + {CDD2AA23-BC7A-4C2A-8C42-3442B1D6B481}.Debug|x64.Build.0 = Debug|Any CPU + {CDD2AA23-BC7A-4C2A-8C42-3442B1D6B481}.Debug|x86.ActiveCfg = Debug|Any CPU + {CDD2AA23-BC7A-4C2A-8C42-3442B1D6B481}.Debug|x86.Build.0 = Debug|Any CPU + {CDD2AA23-BC7A-4C2A-8C42-3442B1D6B481}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CDD2AA23-BC7A-4C2A-8C42-3442B1D6B481}.Release|Any CPU.Build.0 = Release|Any CPU + {CDD2AA23-BC7A-4C2A-8C42-3442B1D6B481}.Release|x64.ActiveCfg = Release|Any CPU + {CDD2AA23-BC7A-4C2A-8C42-3442B1D6B481}.Release|x64.Build.0 = Release|Any CPU + {CDD2AA23-BC7A-4C2A-8C42-3442B1D6B481}.Release|x86.ActiveCfg = Release|Any CPU + {CDD2AA23-BC7A-4C2A-8C42-3442B1D6B481}.Release|x86.Build.0 = Release|Any CPU + {DF5A8E5A-77C7-48B7-B8CD-4D032BAC8989}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DF5A8E5A-77C7-48B7-B8CD-4D032BAC8989}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DF5A8E5A-77C7-48B7-B8CD-4D032BAC8989}.Debug|x64.ActiveCfg = Debug|Any CPU + {DF5A8E5A-77C7-48B7-B8CD-4D032BAC8989}.Debug|x64.Build.0 = Debug|Any CPU + {DF5A8E5A-77C7-48B7-B8CD-4D032BAC8989}.Debug|x86.ActiveCfg = Debug|Any CPU + {DF5A8E5A-77C7-48B7-B8CD-4D032BAC8989}.Debug|x86.Build.0 = Debug|Any CPU + {DF5A8E5A-77C7-48B7-B8CD-4D032BAC8989}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DF5A8E5A-77C7-48B7-B8CD-4D032BAC8989}.Release|Any CPU.Build.0 = Release|Any CPU + {DF5A8E5A-77C7-48B7-B8CD-4D032BAC8989}.Release|x64.ActiveCfg = Release|Any CPU + {DF5A8E5A-77C7-48B7-B8CD-4D032BAC8989}.Release|x64.Build.0 = Release|Any CPU + {DF5A8E5A-77C7-48B7-B8CD-4D032BAC8989}.Release|x86.ActiveCfg = Release|Any CPU + {DF5A8E5A-77C7-48B7-B8CD-4D032BAC8989}.Release|x86.Build.0 = Release|Any CPU + {38027842-48A7-4A64-A44F-004BAF0AB450}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {38027842-48A7-4A64-A44F-004BAF0AB450}.Debug|Any CPU.Build.0 = Debug|Any CPU + {38027842-48A7-4A64-A44F-004BAF0AB450}.Debug|x64.ActiveCfg = Debug|Any CPU + {38027842-48A7-4A64-A44F-004BAF0AB450}.Debug|x64.Build.0 = Debug|Any CPU + {38027842-48A7-4A64-A44F-004BAF0AB450}.Debug|x86.ActiveCfg = Debug|Any CPU + {38027842-48A7-4A64-A44F-004BAF0AB450}.Debug|x86.Build.0 = Debug|Any CPU + {38027842-48A7-4A64-A44F-004BAF0AB450}.Release|Any CPU.ActiveCfg = Release|Any CPU + {38027842-48A7-4A64-A44F-004BAF0AB450}.Release|Any CPU.Build.0 = Release|Any CPU + {38027842-48A7-4A64-A44F-004BAF0AB450}.Release|x64.ActiveCfg = Release|Any CPU + {38027842-48A7-4A64-A44F-004BAF0AB450}.Release|x64.Build.0 = Release|Any CPU + {38027842-48A7-4A64-A44F-004BAF0AB450}.Release|x86.ActiveCfg = Release|Any CPU + {38027842-48A7-4A64-A44F-004BAF0AB450}.Release|x86.Build.0 = Release|Any CPU + {C520D48E-87A0-463D-B4CF-3E6B68F8F4D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C520D48E-87A0-463D-B4CF-3E6B68F8F4D0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C520D48E-87A0-463D-B4CF-3E6B68F8F4D0}.Debug|x64.ActiveCfg = Debug|Any CPU + {C520D48E-87A0-463D-B4CF-3E6B68F8F4D0}.Debug|x64.Build.0 = Debug|Any CPU + {C520D48E-87A0-463D-B4CF-3E6B68F8F4D0}.Debug|x86.ActiveCfg = Debug|Any CPU + {C520D48E-87A0-463D-B4CF-3E6B68F8F4D0}.Debug|x86.Build.0 = Debug|Any CPU + {C520D48E-87A0-463D-B4CF-3E6B68F8F4D0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C520D48E-87A0-463D-B4CF-3E6B68F8F4D0}.Release|Any CPU.Build.0 = Release|Any CPU + {C520D48E-87A0-463D-B4CF-3E6B68F8F4D0}.Release|x64.ActiveCfg = Release|Any CPU + {C520D48E-87A0-463D-B4CF-3E6B68F8F4D0}.Release|x64.Build.0 = Release|Any CPU + {C520D48E-87A0-463D-B4CF-3E6B68F8F4D0}.Release|x86.ActiveCfg = Release|Any CPU + {C520D48E-87A0-463D-B4CF-3E6B68F8F4D0}.Release|x86.Build.0 = Release|Any CPU + {C57DFBC2-A887-44B4-A149-7ABFA6D98F7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C57DFBC2-A887-44B4-A149-7ABFA6D98F7E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C57DFBC2-A887-44B4-A149-7ABFA6D98F7E}.Debug|x64.ActiveCfg = Debug|Any CPU + {C57DFBC2-A887-44B4-A149-7ABFA6D98F7E}.Debug|x64.Build.0 = Debug|Any CPU + {C57DFBC2-A887-44B4-A149-7ABFA6D98F7E}.Debug|x86.ActiveCfg = Debug|Any CPU + {C57DFBC2-A887-44B4-A149-7ABFA6D98F7E}.Debug|x86.Build.0 = Debug|Any CPU + {C57DFBC2-A887-44B4-A149-7ABFA6D98F7E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C57DFBC2-A887-44B4-A149-7ABFA6D98F7E}.Release|Any CPU.Build.0 = Release|Any CPU + {C57DFBC2-A887-44B4-A149-7ABFA6D98F7E}.Release|x64.ActiveCfg = Release|Any CPU + {C57DFBC2-A887-44B4-A149-7ABFA6D98F7E}.Release|x64.Build.0 = Release|Any CPU + {C57DFBC2-A887-44B4-A149-7ABFA6D98F7E}.Release|x86.ActiveCfg = Release|Any CPU + {C57DFBC2-A887-44B4-A149-7ABFA6D98F7E}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {312795E1-D5E2-4021-8FEA-342CA6F14CC8} = {B931802A-45BB-49A4-9919-B36C827100AC} + {0579BC3C-DC2C-440F-9FB9-F47ABD9B8A58} = {312795E1-D5E2-4021-8FEA-342CA6F14CC8} + {06817D18-5694-454E-A010-CDAECD8AF89B} = {312795E1-D5E2-4021-8FEA-342CA6F14CC8} + {79FE11AB-8D1E-4DEF-81C0-9B352769BFA4} = {B931802A-45BB-49A4-9919-B36C827100AC} + {6EC81D5C-D17C-4F11-9471-A8CDBDD8B76C} = {79FE11AB-8D1E-4DEF-81C0-9B352769BFA4} + {C4703BE0-E8DE-4A22-8653-9E2A20E2BE51} = {79FE11AB-8D1E-4DEF-81C0-9B352769BFA4} + {A28A64CA-297E-4023-895A-483DFDA59FBE} = {B931802A-45BB-49A4-9919-B36C827100AC} + {A81C6D14-8A7F-4AC0-B4E8-DF0A925C1ECE} = {A28A64CA-297E-4023-895A-483DFDA59FBE} + {F4F1E3C9-38E5-49EC-8688-A2D16AA8807B} = {B931802A-45BB-49A4-9919-B36C827100AC} + {B1FC9E6F-F2A2-4E3A-8CFC-0446C592C951} = {F4F1E3C9-38E5-49EC-8688-A2D16AA8807B} + {0F577D33-2EA4-4182-9D89-2EFB022A2835} = {F4F1E3C9-38E5-49EC-8688-A2D16AA8807B} + {84E67496-B000-4AAD-9626-2135F677C4F1} = {0F577D33-2EA4-4182-9D89-2EFB022A2835} + {CF6B45E8-BF6C-487F-A0D0-D3EA31D80529} = {84622717-F98A-4DE2-806E-1EF89C45C0EB} + {B1385496-607F-4573-ABE9-D9FE88D96DB8} = {84622717-F98A-4DE2-806E-1EF89C45C0EB} + {6EFFA596-23E7-498C-8D5E-331C6D8E945D} = {84622717-F98A-4DE2-806E-1EF89C45C0EB} + {A3789DA9-2E0E-41D6-BDDD-11DA4D3DD72D} = {84622717-F98A-4DE2-806E-1EF89C45C0EB} + {9631D314-7B0C-4CEC-8650-0259A8F4C77A} = {84622717-F98A-4DE2-806E-1EF89C45C0EB} + {01B31C53-7BAB-4DA7-A55D-C67D9B1FB4A2} = {84622717-F98A-4DE2-806E-1EF89C45C0EB} + {240BBDB1-3501-4637-8A17-996EA4EBB20B} = {84622717-F98A-4DE2-806E-1EF89C45C0EB} + {88EF760A-99A2-48C8-920F-78632A3BB57A} = {84622717-F98A-4DE2-806E-1EF89C45C0EB} + {9593691E-1B65-4EB1-97AA-F8B292B0082A} = {84622717-F98A-4DE2-806E-1EF89C45C0EB} + {12544BE3-B7B9-42EA-A6BD-C354C9F39568} = {EE98F905-C0E0-4A09-8B0E-5F8728EB14CF} + {9F1C63CA-BBE9-468A-B8E1-1C28A7D09F32} = {EE98F905-C0E0-4A09-8B0E-5F8728EB14CF} + {D9A5379C-EA5B-4AAE-8C84-46FAF40E4EEB} = {9F1C63CA-BBE9-468A-B8E1-1C28A7D09F32} + {B76BE944-681D-4887-9F90-5A24AD5924CB} = {D9A5379C-EA5B-4AAE-8C84-46FAF40E4EEB} + {4209F2B4-0388-47DF-A054-C974ABE78723} = {9EC158BE-EB9C-4627-931D-B1B95D3210B6} + {215BC7AA-7275-44CA-A7B5-D62AEC7D4752} = {C6E2B73F-137E-4C37-84DE-0863B1C30D23} + {15FAF776-E564-4ADF-9F10-20F3C0A8BA7C} = {C6E2B73F-137E-4C37-84DE-0863B1C30D23} + {F523DF0F-E297-4DA6-A6CF-DECAFBB95562} = {9F1C63CA-BBE9-468A-B8E1-1C28A7D09F32} + {A52106C7-6539-4928-A6E3-A216292327E7} = {3DCECD76-8F99-481E-B828-9C674FF39B2A} + {6B3083B3-FAEA-4626-B299-26D89AE1175A} = {3DCECD76-8F99-481E-B828-9C674FF39B2A} + {CDD2AA23-BC7A-4C2A-8C42-3442B1D6B481} = {84622717-F98A-4DE2-806E-1EF89C45C0EB} + {DF5A8E5A-77C7-48B7-B8CD-4D032BAC8989} = {84622717-F98A-4DE2-806E-1EF89C45C0EB} + {38027842-48A7-4A64-A44F-004BAF0AB450} = {84622717-F98A-4DE2-806E-1EF89C45C0EB} + {C520D48E-87A0-463D-B4CF-3E6B68F8F4D0} = {84622717-F98A-4DE2-806E-1EF89C45C0EB} + {C57DFBC2-A887-44B4-A149-7ABFA6D98F7E} = {84622717-F98A-4DE2-806E-1EF89C45C0EB} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {81AADD49-473B-43ED-8A08-F6B7A058AA39} + EndGlobalSection +EndGlobal diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Controllers/AccountController.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Controllers/AccountController.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Controllers/AccountController.cs rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Controllers/AccountController.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Pages/Account/AccessDenied.cshtml b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/AccessDenied.cshtml similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Pages/Account/AccessDenied.cshtml rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/AccessDenied.cshtml diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Pages/Account/AccessDenied.cshtml.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/AccessDenied.cshtml.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Pages/Account/AccessDenied.cshtml.cs rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/AccessDenied.cshtml.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Pages/Account/Error.cshtml b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/Error.cshtml similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Pages/Account/Error.cshtml rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/Error.cshtml diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Pages/Account/Error.cshtml.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/Error.cshtml.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Pages/Account/Error.cshtml.cs rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/Error.cshtml.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Pages/Account/SignedOut.cshtml b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/SignedOut.cshtml similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Pages/Account/SignedOut.cshtml rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/SignedOut.cshtml diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Pages/Account/SignedOut.cshtml.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/SignedOut.cshtml.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Pages/Account/SignedOut.cshtml.cs rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/SignedOut.cshtml.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Pages/Account/_viewImports.cshtml b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/_viewImports.cshtml similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Pages/Account/_viewImports.cshtml rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/_viewImports.cshtml diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Pages/_ViewStart.cshtml b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/_ViewStart.cshtml similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Areas/AzureAD/Pages/_ViewStart.cshtml rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/_ViewStart.cshtml diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/AzureADAccountControllerFeatureProvider.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADAccountControllerFeatureProvider.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/AzureADAccountControllerFeatureProvider.cs rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADAccountControllerFeatureProvider.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/AzureADAuthenticationBuilderExtensions.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADAuthenticationBuilderExtensions.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/AzureADAuthenticationBuilderExtensions.cs rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADAuthenticationBuilderExtensions.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/AzureADDefaults.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADDefaults.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/AzureADDefaults.cs rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADDefaults.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/AzureADOptions.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOptions.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/AzureADOptions.cs rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOptions.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/AzureADOptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOptionsConfiguration.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/AzureADOptionsConfiguration.cs rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOptionsConfiguration.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/AzureADSchemeOptions.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADSchemeOptions.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/AzureADSchemeOptions.cs rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADSchemeOptions.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/CookieOptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/CookieOptionsConfiguration.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/CookieOptionsConfiguration.cs rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/CookieOptionsConfiguration.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/JwtBearerOptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/JwtBearerOptionsConfiguration.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/JwtBearerOptionsConfiguration.cs rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/JwtBearerOptionsConfiguration.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Microsoft.AspNetCore.Authentication.AzureAD.UI.csproj b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Microsoft.AspNetCore.Authentication.AzureAD.UI.csproj similarity index 72% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Microsoft.AspNetCore.Authentication.AzureAD.UI.csproj rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/Microsoft.AspNetCore.Authentication.AzureAD.UI.csproj index 1192afae5d..4a7df9d5a8 100644 --- a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Microsoft.AspNetCore.Authentication.AzureAD.UI.csproj +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Microsoft.AspNetCore.Authentication.AzureAD.UI.csproj @@ -15,11 +15,11 @@ - - - - - + + + + + diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/OpenIdConnectOptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/OpenIdConnectOptionsConfiguration.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/OpenIdConnectOptionsConfiguration.cs rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/OpenIdConnectOptionsConfiguration.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Properties/AssemblyInfo.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Properties/AssemblyInfo.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/Properties/AssemblyInfo.cs rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/Properties/AssemblyInfo.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/baseline.netcore.json b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/baseline.netcore.json similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/baseline.netcore.json rename to src/Azure/AzureAD/Authentication.AzureAD.UI/src/baseline.netcore.json diff --git a/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.UI.Test/AzureADAuthenticationBuilderExtensionsTests.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/test/AzureADAuthenticationBuilderExtensionsTests.cs similarity index 100% rename from src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.UI.Test/AzureADAuthenticationBuilderExtensionsTests.cs rename to src/Azure/AzureAD/Authentication.AzureAD.UI/test/AzureADAuthenticationBuilderExtensionsTests.cs diff --git a/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.UI.Test/Controllers/AccountControllerTests.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/test/Controllers/AccountControllerTests.cs similarity index 100% rename from src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.UI.Test/Controllers/AccountControllerTests.cs rename to src/Azure/AzureAD/Authentication.AzureAD.UI/test/Controllers/AccountControllerTests.cs diff --git a/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.UI.Test/Microsoft.AspNetCore.Authentication.AzureAD.UI.Test.csproj b/src/Azure/AzureAD/Authentication.AzureAD.UI/test/Microsoft.AspNetCore.Authentication.AzureAD.UI.Test.csproj similarity index 73% rename from src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.UI.Test/Microsoft.AspNetCore.Authentication.AzureAD.UI.Test.csproj rename to src/Azure/AzureAD/Authentication.AzureAD.UI/test/Microsoft.AspNetCore.Authentication.AzureAD.UI.Test.csproj index 554232c8a4..509d46fde9 100644 --- a/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.UI.Test/Microsoft.AspNetCore.Authentication.AzureAD.UI.Test.csproj +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/test/Microsoft.AspNetCore.Authentication.AzureAD.UI.Test.csproj @@ -12,7 +12,7 @@ - + diff --git a/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests/xunit.runner.json b/src/Azure/AzureAD/Authentication.AzureAD.UI/test/xunit.runner.json similarity index 100% rename from src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests/xunit.runner.json rename to src/Azure/AzureAD/Authentication.AzureAD.UI/test/xunit.runner.json diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Controllers/AccountController.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Controllers/AccountController.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Controllers/AccountController.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Controllers/AccountController.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Pages/Account/Error.cshtml b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/Error.cshtml similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Pages/Account/Error.cshtml rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/Error.cshtml diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Pages/Account/Error.cshtml.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/Error.cshtml.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Pages/Account/Error.cshtml.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/Error.cshtml.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Pages/Account/_viewImports.cshtml b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/_viewImports.cshtml similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Pages/Account/_viewImports.cshtml rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/_viewImports.cshtml diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Pages/_ViewStart.cshtml b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/_ViewStart.cshtml similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Areas/AzureADB2C/Pages/_ViewStart.cshtml rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/_ViewStart.cshtml diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/AzureADB2CAccountControllerFeatureProvider.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2CAccountControllerFeatureProvider.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/AzureADB2CAccountControllerFeatureProvider.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2CAccountControllerFeatureProvider.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/AzureAdB2CAuthenticationBuilderExtensions.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CAuthenticationBuilderExtensions.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/AzureAdB2CAuthenticationBuilderExtensions.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CAuthenticationBuilderExtensions.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/AzureAdB2CDefaults.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CDefaults.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/AzureAdB2CDefaults.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CDefaults.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/AzureAdB2COpenIDConnectEventHandlers.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COpenIDConnectEventHandlers.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/AzureAdB2COpenIDConnectEventHandlers.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COpenIDConnectEventHandlers.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/AzureAdB2COptions.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COptions.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/AzureAdB2COptions.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COptions.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/AzureAdB2COptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COptionsConfiguration.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/AzureAdB2COptionsConfiguration.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COptionsConfiguration.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/AzureAdB2CSchemeOptions.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CSchemeOptions.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/AzureAdB2CSchemeOptions.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CSchemeOptions.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/CookieOptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/CookieOptionsConfiguration.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/CookieOptionsConfiguration.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/CookieOptionsConfiguration.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/JwtBearerOptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/JwtBearerOptionsConfiguration.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/JwtBearerOptionsConfiguration.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/JwtBearerOptionsConfiguration.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.csproj b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.csproj similarity index 72% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.csproj rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.csproj index da8af667f8..3c3a584bfd 100644 --- a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.csproj +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.csproj @@ -15,11 +15,11 @@ - - - - - + + + + + diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/OpenIdConnectOptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/OpenIdConnectOptionsConfiguration.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/OpenIdConnectOptionsConfiguration.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/OpenIdConnectOptionsConfiguration.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Properties/AssemblyInfo.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Properties/AssemblyInfo.cs similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/Properties/AssemblyInfo.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Properties/AssemblyInfo.cs diff --git a/src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/baseline.netcore.json b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/baseline.netcore.json similarity index 100% rename from src/AADIntegration/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/baseline.netcore.json rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/baseline.netcore.json diff --git a/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test/AzureAdB2CAuthenticationBuilderExtensionsTests.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/AzureAdB2CAuthenticationBuilderExtensionsTests.cs similarity index 100% rename from src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test/AzureAdB2CAuthenticationBuilderExtensionsTests.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/AzureAdB2CAuthenticationBuilderExtensionsTests.cs diff --git a/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test/AzureAdB2COpenIDConnectEventHandlersTests.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/AzureAdB2COpenIDConnectEventHandlersTests.cs similarity index 100% rename from src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test/AzureAdB2COpenIDConnectEventHandlersTests.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/AzureAdB2COpenIDConnectEventHandlersTests.cs diff --git a/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test/Controllers/AccountControllerTests.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/Controllers/AccountControllerTests.cs similarity index 100% rename from src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test/Controllers/AccountControllerTests.cs rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/Controllers/AccountControllerTests.cs diff --git a/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test.csproj b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test.csproj similarity index 72% rename from src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test.csproj rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test.csproj index 7becca1b5e..6abd66f574 100644 --- a/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test.csproj +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test.csproj @@ -12,7 +12,7 @@ - + diff --git a/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.UI.Test/xunit.runner.json b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/xunit.runner.json similarity index 100% rename from src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.UI.Test/xunit.runner.json rename to src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/xunit.runner.json diff --git a/src/AADIntegration/test/AADIntegration.ruleset b/src/Azure/AzureAD/AzureAD.ruleset similarity index 69% rename from src/AADIntegration/test/AADIntegration.ruleset rename to src/Azure/AzureAD/AzureAD.ruleset index 23f2deac4a..57375fd55d 100644 --- a/src/AADIntegration/test/AADIntegration.ruleset +++ b/src/Azure/AzureAD/AzureAD.ruleset @@ -1,7 +1,7 @@  - + - diff --git a/src/Azure/AzureAD/Directory.Build.props b/src/Azure/AzureAD/Directory.Build.props new file mode 100644 index 0000000000..647d706b5a --- /dev/null +++ b/src/Azure/AzureAD/Directory.Build.props @@ -0,0 +1,8 @@ + + + + + xUnit1026:$(WarningsNotAsErrors) + $(MSBuildThisFileDirectory)AzureAD.ruleset + + diff --git a/src/Azure/AzureAD/README.md b/src/Azure/AzureAD/README.md new file mode 100644 index 0000000000..6086294419 --- /dev/null +++ b/src/Azure/AzureAD/README.md @@ -0,0 +1,4 @@ +Azure Active Directory Integration +================================== + +ASP.NET Core Azure Active Directory Integration provides seamless authentication integration with different Azure Active Directory services like Azure Active Directory and Azure Active Directory B2C for ASP.NET Core applications. \ No newline at end of file diff --git a/src/Azure/AzureAD/samples/AzureADB2CSample/AzureADB2CSample.csproj b/src/Azure/AzureAD/samples/AzureADB2CSample/AzureADB2CSample.csproj new file mode 100644 index 0000000000..6b9a99731f --- /dev/null +++ b/src/Azure/AzureAD/samples/AzureADB2CSample/AzureADB2CSample.csproj @@ -0,0 +1,23 @@ + + + + netcoreapp3.0 + + + + true + + + + + + + + + + + + + + + diff --git a/src/AADIntegration/samples/AzureADB2CSample/Pages/Index.cshtml b/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/Index.cshtml similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/Pages/Index.cshtml rename to src/Azure/AzureAD/samples/AzureADB2CSample/Pages/Index.cshtml diff --git a/src/AADIntegration/samples/AzureADB2CSample/Pages/Index.cshtml.cs b/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/Index.cshtml.cs similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/Pages/Index.cshtml.cs rename to src/Azure/AzureAD/samples/AzureADB2CSample/Pages/Index.cshtml.cs diff --git a/src/AADIntegration/samples/AzureADB2CSample/Pages/Shared/_Layout.cshtml b/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/Shared/_Layout.cshtml similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/Pages/Shared/_Layout.cshtml rename to src/Azure/AzureAD/samples/AzureADB2CSample/Pages/Shared/_Layout.cshtml diff --git a/src/AADIntegration/samples/AzureADB2CSample/Pages/Shared/_LoginPartial.cshtml b/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/Shared/_LoginPartial.cshtml similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/Pages/Shared/_LoginPartial.cshtml rename to src/Azure/AzureAD/samples/AzureADB2CSample/Pages/Shared/_LoginPartial.cshtml diff --git a/src/AADIntegration/samples/AzureADB2CSample/Pages/_ViewImports.cshtml b/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/_ViewImports.cshtml similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/Pages/_ViewImports.cshtml rename to src/Azure/AzureAD/samples/AzureADB2CSample/Pages/_ViewImports.cshtml diff --git a/src/AADIntegration/samples/AzureADB2CSample/Pages/_ViewStart.cshtml b/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/_ViewStart.cshtml similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/Pages/_ViewStart.cshtml rename to src/Azure/AzureAD/samples/AzureADB2CSample/Pages/_ViewStart.cshtml diff --git a/src/AADIntegration/samples/AzureADB2CSample/Program.cs b/src/Azure/AzureAD/samples/AzureADB2CSample/Program.cs similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/Program.cs rename to src/Azure/AzureAD/samples/AzureADB2CSample/Program.cs diff --git a/src/AADIntegration/samples/AzureADB2CSample/Startup.cs b/src/Azure/AzureAD/samples/AzureADB2CSample/Startup.cs similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/Startup.cs rename to src/Azure/AzureAD/samples/AzureADB2CSample/Startup.cs diff --git a/src/AADIntegration/samples/AzureADB2CSample/appsettings.Development.json b/src/Azure/AzureAD/samples/AzureADB2CSample/appsettings.Development.json similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/appsettings.Development.json rename to src/Azure/AzureAD/samples/AzureADB2CSample/appsettings.Development.json diff --git a/src/AADIntegration/samples/AzureADB2CSample/appsettings.json b/src/Azure/AzureAD/samples/AzureADB2CSample/appsettings.json similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/appsettings.json rename to src/Azure/AzureAD/samples/AzureADB2CSample/appsettings.json diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/css/site.css b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/css/site.css similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/css/site.css rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/css/site.css diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/css/site.min.css b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/css/site.min.css similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/css/site.min.css rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/css/site.min.css diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/favicon.ico b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/favicon.ico similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/favicon.ico rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/favicon.ico diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/images/banner1.svg b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/images/banner1.svg similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/images/banner1.svg rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/images/banner1.svg diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/images/banner2.svg b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/images/banner2.svg similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/images/banner2.svg rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/images/banner2.svg diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/images/banner3.svg b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/images/banner3.svg similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/images/banner3.svg rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/images/banner3.svg diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/images/banner4.svg b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/images/banner4.svg similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/images/banner4.svg rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/images/banner4.svg diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/js/site.js b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/js/site.js similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/js/site.js rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/js/site.js diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/js/site.min.js b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/js/site.min.js similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/js/site.min.js rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/js/site.min.js diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/.bower.json b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/.bower.json similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/.bower.json rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/.bower.json diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/LICENSE b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/LICENSE similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/LICENSE rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/LICENSE diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap.css b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap.css similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap.css rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap.css diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/js/bootstrap.js b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/js/bootstrap.js similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/js/bootstrap.js rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/js/bootstrap.js diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/js/npm.js b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/js/npm.js similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/js/npm.js rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/bootstrap/dist/js/npm.js diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery-validation-unobtrusive/.bower.json b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery-validation-unobtrusive/.bower.json similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery-validation-unobtrusive/.bower.json rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery-validation-unobtrusive/.bower.json diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery-validation/.bower.json b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery-validation/.bower.json similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery-validation/.bower.json rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery-validation/.bower.json diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery-validation/LICENSE.md b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery-validation/LICENSE.md similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery-validation/LICENSE.md rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery-validation/LICENSE.md diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery-validation/dist/additional-methods.js b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery-validation/dist/additional-methods.js similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery-validation/dist/additional-methods.js rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery-validation/dist/additional-methods.js diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery-validation/dist/jquery.validate.js b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery-validation/dist/jquery.validate.js similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery-validation/dist/jquery.validate.js rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery-validation/dist/jquery.validate.js diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery/.bower.json b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery/.bower.json similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery/.bower.json rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery/.bower.json diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery/LICENSE.txt b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery/LICENSE.txt similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery/LICENSE.txt rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery/LICENSE.txt diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery/dist/jquery.js b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery/dist/jquery.js similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery/dist/jquery.js rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery/dist/jquery.js diff --git a/src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery/dist/jquery.min.map b/src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery/dist/jquery.min.map similarity index 100% rename from src/AADIntegration/samples/AzureADB2CSample/wwwroot/lib/jquery/dist/jquery.min.map rename to src/Azure/AzureAD/samples/AzureADB2CSample/wwwroot/lib/jquery/dist/jquery.min.map diff --git a/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests/ApiAuthenticationTests.cs b/src/Azure/AzureAD/test/FunctionalTests/ApiAuthenticationTests.cs similarity index 100% rename from src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests/ApiAuthenticationTests.cs rename to src/Azure/AzureAD/test/FunctionalTests/ApiAuthenticationTests.cs diff --git a/src/Azure/AzureAD/test/FunctionalTests/Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests.csproj b/src/Azure/AzureAD/test/FunctionalTests/Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests.csproj new file mode 100644 index 0000000000..ed2253ef17 --- /dev/null +++ b/src/Azure/AzureAD/test/FunctionalTests/Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests.csproj @@ -0,0 +1,21 @@ + + + + netcoreapp3.0 + + + + + + + + + + + + + + + + + diff --git a/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests/WebAuthenticationTests.cs b/src/Azure/AzureAD/test/FunctionalTests/WebAuthenticationTests.cs similarity index 100% rename from src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureAD.FunctionalTests/WebAuthenticationTests.cs rename to src/Azure/AzureAD/test/FunctionalTests/WebAuthenticationTests.cs diff --git a/src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test/xunit.runner.json b/src/Azure/AzureAD/test/FunctionalTests/xunit.runner.json similarity index 100% rename from src/AADIntegration/test/Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Test/xunit.runner.json rename to src/Azure/AzureAD/test/FunctionalTests/xunit.runner.json diff --git a/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/AzureAD.WebSite.csproj b/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/AzureAD.WebSite.csproj new file mode 100644 index 0000000000..73b832bf22 --- /dev/null +++ b/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/AzureAD.WebSite.csproj @@ -0,0 +1,25 @@ + + + + netcoreapp3.0 + + + + + + + + + + + + + + + + + + + + + diff --git a/src/AADIntegration/test/WebSites/AzureAD.WebSite/Controllers/TestController.cs b/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Controllers/TestController.cs similarity index 100% rename from src/AADIntegration/test/WebSites/AzureAD.WebSite/Controllers/TestController.cs rename to src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Controllers/TestController.cs diff --git a/src/AADIntegration/test/WebSites/AzureAD.WebSite/Program.cs b/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Program.cs similarity index 100% rename from src/AADIntegration/test/WebSites/AzureAD.WebSite/Program.cs rename to src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Program.cs diff --git a/src/AADIntegration/test/WebSites/AzureAD.WebSite/Startup.cs b/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Startup.cs similarity index 100% rename from src/AADIntegration/test/WebSites/AzureAD.WebSite/Startup.cs rename to src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Startup.cs diff --git a/src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup/AssemblyInfo.cs b/src/Azure/AzureAppServices.HostingStartup/src/AssemblyInfo.cs similarity index 100% rename from src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup/AssemblyInfo.cs rename to src/Azure/AzureAppServices.HostingStartup/src/AssemblyInfo.cs diff --git a/src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup/AzureAppServicesHostingStartup.cs b/src/Azure/AzureAppServices.HostingStartup/src/AzureAppServicesHostingStartup.cs similarity index 100% rename from src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup/AzureAppServicesHostingStartup.cs rename to src/Azure/AzureAppServices.HostingStartup/src/AzureAppServicesHostingStartup.cs diff --git a/src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup/HostingStartupConfigurationExtensions.cs b/src/Azure/AzureAppServices.HostingStartup/src/HostingStartupConfigurationExtensions.cs similarity index 100% rename from src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup/HostingStartupConfigurationExtensions.cs rename to src/Azure/AzureAppServices.HostingStartup/src/HostingStartupConfigurationExtensions.cs diff --git a/src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup/Microsoft.AspNetCore.AzureAppServices.HostingStartup.csproj b/src/Azure/AzureAppServices.HostingStartup/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup.csproj similarity index 51% rename from src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup/Microsoft.AspNetCore.AzureAppServices.HostingStartup.csproj rename to src/Azure/AzureAppServices.HostingStartup/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup.csproj index fc57aaf3cb..ac74adf4d7 100644 --- a/src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup/Microsoft.AspNetCore.AzureAppServices.HostingStartup.csproj +++ b/src/Azure/AzureAppServices.HostingStartup/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup.csproj @@ -1,6 +1,6 @@  - + ASP.NET Core lightup integration with Azure AppServices. @@ -11,11 +11,8 @@ - - - - - + + diff --git a/src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup/baseline.netcore.json b/src/Azure/AzureAppServices.HostingStartup/src/baseline.netcore.json similarity index 100% rename from src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup/baseline.netcore.json rename to src/Azure/AzureAppServices.HostingStartup/src/baseline.netcore.json diff --git a/src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup/baseline.netframework.json b/src/Azure/AzureAppServices.HostingStartup/src/baseline.netframework.json similarity index 100% rename from src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServices.HostingStartup/baseline.netframework.json rename to src/Azure/AzureAppServices.HostingStartup/src/baseline.netframework.json diff --git a/src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServicesIntegration/AppServicesWebHostBuilderExtensions.cs b/src/Azure/AzureAppServicesIntegration/src/AppServicesWebHostBuilderExtensions.cs similarity index 100% rename from src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServicesIntegration/AppServicesWebHostBuilderExtensions.cs rename to src/Azure/AzureAppServicesIntegration/src/AppServicesWebHostBuilderExtensions.cs diff --git a/src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServicesIntegration/Microsoft.AspNetCore.AzureAppServicesIntegration.csproj b/src/Azure/AzureAppServicesIntegration/src/Microsoft.AspNetCore.AzureAppServicesIntegration.csproj similarity index 65% rename from src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServicesIntegration/Microsoft.AspNetCore.AzureAppServicesIntegration.csproj rename to src/Azure/AzureAppServicesIntegration/src/Microsoft.AspNetCore.AzureAppServicesIntegration.csproj index 4370120fc2..fbbef613fd 100644 --- a/src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServicesIntegration/Microsoft.AspNetCore.AzureAppServicesIntegration.csproj +++ b/src/Azure/AzureAppServicesIntegration/src/Microsoft.AspNetCore.AzureAppServicesIntegration.csproj @@ -11,8 +11,8 @@ - - + + diff --git a/src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServicesIntegration/Properties/AssemblyInfo.cs b/src/Azure/AzureAppServicesIntegration/src/Properties/AssemblyInfo.cs similarity index 100% rename from src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServicesIntegration/Properties/AssemblyInfo.cs rename to src/Azure/AzureAppServicesIntegration/src/Properties/AssemblyInfo.cs diff --git a/src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServicesIntegration/baseline.netcore.json b/src/Azure/AzureAppServicesIntegration/src/baseline.netcore.json similarity index 100% rename from src/AzureIntegration/src/Microsoft.AspNetCore.AzureAppServicesIntegration/baseline.netcore.json rename to src/Azure/AzureAppServicesIntegration/src/baseline.netcore.json diff --git a/src/AzureIntegration/test/Microsoft.AspNetCore.AzureAppServicesIntegration.Tests/AppServicesWebHostBuilderExtensionsTest.cs b/src/Azure/AzureAppServicesIntegration/test/AppServicesWebHostBuilderExtensionsTest.cs similarity index 100% rename from src/AzureIntegration/test/Microsoft.AspNetCore.AzureAppServicesIntegration.Tests/AppServicesWebHostBuilderExtensionsTest.cs rename to src/Azure/AzureAppServicesIntegration/test/AppServicesWebHostBuilderExtensionsTest.cs diff --git a/src/Azure/AzureAppServicesIntegration/test/Microsoft.AspNetCore.AzureAppServicesIntegration.Tests.csproj b/src/Azure/AzureAppServicesIntegration/test/Microsoft.AspNetCore.AzureAppServicesIntegration.Tests.csproj new file mode 100644 index 0000000000..d325471015 --- /dev/null +++ b/src/Azure/AzureAppServicesIntegration/test/Microsoft.AspNetCore.AzureAppServicesIntegration.Tests.csproj @@ -0,0 +1,13 @@ + + + + netcoreapp3.0 + + + + + + + + + diff --git a/src/Azure/build.cmd b/src/Azure/build.cmd new file mode 100644 index 0000000000..033fe6f614 --- /dev/null +++ b/src/Azure/build.cmd @@ -0,0 +1,3 @@ +@ECHO OFF +SET RepoRoot=%~dp0..\.. +%RepoRoot%\build.cmd -projects %~dp0\**\*.*proj %* diff --git a/src/AzureIntegration/build/hostingstartup.targets b/src/Azure/hostingstartup.targets similarity index 100% rename from src/AzureIntegration/build/hostingstartup.targets rename to src/Azure/hostingstartup.targets diff --git a/src/Azure/samples/AzureAppServicesHostingStartupSample/AzureAppServicesHostingStartupSample.csproj b/src/Azure/samples/AzureAppServicesHostingStartupSample/AzureAppServicesHostingStartupSample.csproj new file mode 100644 index 0000000000..6985ea6c0c --- /dev/null +++ b/src/Azure/samples/AzureAppServicesHostingStartupSample/AzureAppServicesHostingStartupSample.csproj @@ -0,0 +1,15 @@ + + + + netcoreapp3.0 + + + + + + + + + + + diff --git a/src/AzureIntegration/sample/AzureAppServicesHostingStartupSample/Startup.cs b/src/Azure/samples/AzureAppServicesHostingStartupSample/Startup.cs similarity index 100% rename from src/AzureIntegration/sample/AzureAppServicesHostingStartupSample/Startup.cs rename to src/Azure/samples/AzureAppServicesHostingStartupSample/Startup.cs diff --git a/src/Azure/samples/AzureAppServicesSample/AzureAppServicesSample.csproj b/src/Azure/samples/AzureAppServicesSample/AzureAppServicesSample.csproj new file mode 100644 index 0000000000..9f7be59933 --- /dev/null +++ b/src/Azure/samples/AzureAppServicesSample/AzureAppServicesSample.csproj @@ -0,0 +1,15 @@ + + + + netcoreapp3.0 + + + + + + + + + + + diff --git a/src/AzureIntegration/sample/AzureAppServicesSample/Startup.cs b/src/Azure/samples/AzureAppServicesSample/Startup.cs similarity index 100% rename from src/AzureIntegration/sample/AzureAppServicesSample/Startup.cs rename to src/Azure/samples/AzureAppServicesSample/Startup.cs diff --git a/src/Azure/startvs.cmd b/src/Azure/startvs.cmd new file mode 100644 index 0000000000..458c43b11a --- /dev/null +++ b/src/Azure/startvs.cmd @@ -0,0 +1,3 @@ +@ECHO OFF + +%~dp0..\..\startvs.cmd %~dp0Azure.sln diff --git a/src/AzureIntegration/.gitignore b/src/AzureIntegration/.gitignore deleted file mode 100644 index 5c05ff5f40..0000000000 --- a/src/AzureIntegration/.gitignore +++ /dev/null @@ -1,34 +0,0 @@ -[Oo]bj/ -[Bb]in/ -TestResults/ -.nuget/ -_ReSharper.*/ -packages/ -artifacts/ -PublishProfiles/ -*.user -*.suo -*.cache -*.docstates -_ReSharper.* -nuget.exe -*net45.csproj -*net451.csproj -*k10.csproj -*.psess -*.vsp -*.pidb -*.userprefs -*DS_Store -*.ncrunchsolution -*.*sdf -*.ipch -*.sln.ide -project.lock.json -.vs -.build/ -.testPublish/ -global.json -msbuild.binlog -.test-dotnet/ -.deps/ \ No newline at end of file diff --git a/src/AzureIntegration/AzureIntegration.sln b/src/AzureIntegration/AzureIntegration.sln deleted file mode 100644 index 4ae8e28927..0000000000 --- a/src/AzureIntegration/AzureIntegration.sln +++ /dev/null @@ -1,90 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.28315.86 -MinimumVisualStudioVersion = 15.0.26730.03 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.AzureAppServicesIntegration", "src\Microsoft.AspNetCore.AzureAppServicesIntegration\Microsoft.AspNetCore.AzureAppServicesIntegration.csproj", "{5916BEB5-0969-469B-976C-A392E015DFAC}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{FF9B744E-6C59-40CC-9E41-9D2EBD292435}" - ProjectSection(SolutionItems) = preProject - src\Directory.Build.props = src\Directory.Build.props - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2FFE2B87-BF8A-4B38-ADAB-2FE2F9BC4A7C}" - ProjectSection(SolutionItems) = preProject - build\dependencies.props = build\dependencies.props - Directory.Build.props = Directory.Build.props - Directory.Build.targets = Directory.Build.targets - NuGet.config = NuGet.config - EndProjectSection -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AzureAppServicesSample", "sample\AzureAppServicesSample\AzureAppServicesSample.csproj", "{05A4D308-B162-4194-BC5E-88CCB4DBD318}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{37237C93-6855-40D9-9E60-418B093EF49A}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{CD650B4B-81C2-4A44-AEF2-A251A877C1F0}" - ProjectSection(SolutionItems) = preProject - test\Directory.Build.props = test\Directory.Build.props - EndProjectSection -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.AzureAppServicesIntegration.Tests", "test\Microsoft.AspNetCore.AzureAppServicesIntegration.Tests\Microsoft.AspNetCore.AzureAppServicesIntegration.Tests.csproj", "{9BA1B692-B313-4E22-A864-F0ADBBE3C3FA}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.AzureAppServices.HostingStartup", "src\Microsoft.AspNetCore.AzureAppServices.HostingStartup\Microsoft.AspNetCore.AzureAppServices.HostingStartup.csproj", "{AC023B45-7995-4D4A-8108-E512AE8E5734}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AzureAppServicesHostingStartupSample", "sample\AzureAppServicesHostingStartupSample\AzureAppServicesHostingStartupSample.csproj", "{939EA897-CA31-4F2E-BA51-22B570B64671}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Extensions.ApplicationModelDetection", "src\Microsoft.Extensions.ApplicationModelDetection\Microsoft.Extensions.ApplicationModelDetection.csproj", "{F0CABFE8-A5B1-487B-A451-A486D26742D3}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Extensions.ApplicationModelDetection.Tests", "test\Microsoft.Extensions.ApplicationModelDetection.Tests\Microsoft.Extensions.ApplicationModelDetection.Tests.csproj", "{15664836-2B94-4D2D-AC18-6DED01FCCCBD}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {5916BEB5-0969-469B-976C-A392E015DFAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5916BEB5-0969-469B-976C-A392E015DFAC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5916BEB5-0969-469B-976C-A392E015DFAC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5916BEB5-0969-469B-976C-A392E015DFAC}.Release|Any CPU.Build.0 = Release|Any CPU - {05A4D308-B162-4194-BC5E-88CCB4DBD318}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {05A4D308-B162-4194-BC5E-88CCB4DBD318}.Debug|Any CPU.Build.0 = Debug|Any CPU - {05A4D308-B162-4194-BC5E-88CCB4DBD318}.Release|Any CPU.ActiveCfg = Release|Any CPU - {05A4D308-B162-4194-BC5E-88CCB4DBD318}.Release|Any CPU.Build.0 = Release|Any CPU - {9BA1B692-B313-4E22-A864-F0ADBBE3C3FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9BA1B692-B313-4E22-A864-F0ADBBE3C3FA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9BA1B692-B313-4E22-A864-F0ADBBE3C3FA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9BA1B692-B313-4E22-A864-F0ADBBE3C3FA}.Release|Any CPU.Build.0 = Release|Any CPU - {AC023B45-7995-4D4A-8108-E512AE8E5734}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AC023B45-7995-4D4A-8108-E512AE8E5734}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AC023B45-7995-4D4A-8108-E512AE8E5734}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AC023B45-7995-4D4A-8108-E512AE8E5734}.Release|Any CPU.Build.0 = Release|Any CPU - {939EA897-CA31-4F2E-BA51-22B570B64671}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {939EA897-CA31-4F2E-BA51-22B570B64671}.Debug|Any CPU.Build.0 = Debug|Any CPU - {939EA897-CA31-4F2E-BA51-22B570B64671}.Release|Any CPU.ActiveCfg = Release|Any CPU - {939EA897-CA31-4F2E-BA51-22B570B64671}.Release|Any CPU.Build.0 = Release|Any CPU - {F0CABFE8-A5B1-487B-A451-A486D26742D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F0CABFE8-A5B1-487B-A451-A486D26742D3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F0CABFE8-A5B1-487B-A451-A486D26742D3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F0CABFE8-A5B1-487B-A451-A486D26742D3}.Release|Any CPU.Build.0 = Release|Any CPU - {15664836-2B94-4D2D-AC18-6DED01FCCCBD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {15664836-2B94-4D2D-AC18-6DED01FCCCBD}.Debug|Any CPU.Build.0 = Debug|Any CPU - {15664836-2B94-4D2D-AC18-6DED01FCCCBD}.Release|Any CPU.ActiveCfg = Release|Any CPU - {15664836-2B94-4D2D-AC18-6DED01FCCCBD}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {5916BEB5-0969-469B-976C-A392E015DFAC} = {FF9B744E-6C59-40CC-9E41-9D2EBD292435} - {05A4D308-B162-4194-BC5E-88CCB4DBD318} = {37237C93-6855-40D9-9E60-418B093EF49A} - {9BA1B692-B313-4E22-A864-F0ADBBE3C3FA} = {CD650B4B-81C2-4A44-AEF2-A251A877C1F0} - {AC023B45-7995-4D4A-8108-E512AE8E5734} = {FF9B744E-6C59-40CC-9E41-9D2EBD292435} - {939EA897-CA31-4F2E-BA51-22B570B64671} = {37237C93-6855-40D9-9E60-418B093EF49A} - {F0CABFE8-A5B1-487B-A451-A486D26742D3} = {FF9B744E-6C59-40CC-9E41-9D2EBD292435} - {15664836-2B94-4D2D-AC18-6DED01FCCCBD} = {CD650B4B-81C2-4A44-AEF2-A251A877C1F0} - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {5743DFE7-1AA5-439D-84AE-A480EA389927} - EndGlobalSection -EndGlobal diff --git a/src/AzureIntegration/Directory.Build.props b/src/AzureIntegration/Directory.Build.props deleted file mode 100644 index 9a82191584..0000000000 --- a/src/AzureIntegration/Directory.Build.props +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - Microsoft ASP.NET Core - https://github.com/aspnet/AspNetCore - git - $(MSBuildThisFileDirectory) - $(MSBuildThisFileDirectory)..\..\eng\AspNetCore.snk - true - true - $(MSBuildThisFileDirectory)..\Shared\ - - - - - $(MSBuildThisFileDirectory)..\..\artifacts\ - $(ArtifactsDir)$(Configuration)\ - $(ArtifactsConfigurationDir)packages\ - $(BasePackageOutputPath)product\ - $(BasePackageOutputPath)internal\ - - - diff --git a/src/AzureIntegration/Directory.Build.targets b/src/AzureIntegration/Directory.Build.targets deleted file mode 100644 index f5a3f65909..0000000000 --- a/src/AzureIntegration/Directory.Build.targets +++ /dev/null @@ -1,17 +0,0 @@ - - - $(MicrosoftNETCoreAppPackageVersion) - - - - - false - - $(ProductPackageOutputPath) - $(InternalPackageOutputPath) - - - diff --git a/src/AzureIntegration/NuGetPackageVerifier.json b/src/AzureIntegration/NuGetPackageVerifier.json deleted file mode 100644 index cf7178529c..0000000000 --- a/src/AzureIntegration/NuGetPackageVerifier.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "adx": { // Packages written by the ADX team and that ship on NuGet.org - "rules": [ - "AdxVerificationCompositeRule" - ], - "packages": { - "Microsoft.AspNetCore.AzureAppServicesIntegration": { }, - "Microsoft.Extensions.ApplicationModelDetection": { } - } - }, - "Default": { // Rules to run for packages not listed in any other set. - "rules": [ - "DefaultCompositeRule" - ] - } -} \ No newline at end of file diff --git a/src/AzureIntegration/README.md b/src/AzureIntegration/README.md deleted file mode 100644 index 1eeece66ef..0000000000 --- a/src/AzureIntegration/README.md +++ /dev/null @@ -1,27 +0,0 @@ -AzureIntegration -=== - -Features that integrate ASP.NET Core with Azure. - -This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the [Home](https://github.com/aspnet/home) repo. - - -SiteExtensions -=== - -To install a nightly preview of the ASP.NET Core runtime site extension for testing purposes: -1. In the Azure portal select App Services -> your site -> Application settings -1. Set `SCM_SITEEXTENSIONS_FEED_URL` application setting to `https://dotnet.myget.org/F/aspnetcore-dev/` -1. Go to `DEVELOPMENT TOOLS` -> `Advanced Tools` -> `Site extensions` -> `Gallery` -1. Enter `AspNetCoreRuntime` into `Search` box and click `Search` -1. Click `+` to install site extension and wait untill installation animation finishes -1. `Extensions` tab should now show newly installed site extension -1. Click `Restart site` on the right side of the page when installation finishes (this would only restart Kudu site, not the main one) -1. Restart site in `Overview` tab of `App service` - - -To update ASP.NET Core runtime site extension: -1. Stop site in `Overview` tab of `App service` -1. Go to `DEVELOPMENT TOOLS` -> `Advanced Tools` -> `Site extensions` -1. Click update on site extension -1. Start site in `Overview` tab of `App service` \ No newline at end of file diff --git a/src/AzureIntegration/build/dependencies.props b/src/AzureIntegration/build/dependencies.props deleted file mode 100644 index 3c6817fc61..0000000000 --- a/src/AzureIntegration/build/dependencies.props +++ /dev/null @@ -1,46 +0,0 @@ - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - - 3.0.0-build-20181114.5 - 3.0.0-build-20181114.5 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 0.7.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 1.1.3 - 1.0.3 - 3.0.0-alpha1-10670 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview1-26907-05 - 3.0.0-preview-18579-0056 - 15.6.1 - 1.4.0 - 4.10.0 - 2.0.3 - 12.0.1 - 1.7.0-preview1-26907-04 - 8.1.4 - 2.3.1 - 2.4.0 - - - - diff --git a/src/AzureIntegration/build/repo.props b/src/AzureIntegration/build/repo.props deleted file mode 100644 index 4b07653315..0000000000 --- a/src/AzureIntegration/build/repo.props +++ /dev/null @@ -1,35 +0,0 @@ - - - - - false - - - - $(RepositoryRoot)test\Microsoft.AspNetCore.AzureAppServices.FunctionalTests\Microsoft.AspNetCore.AzureAppServices.FunctionalTests.csproj - - - - - - - - - - - - - - - - - - - - - diff --git a/src/AzureIntegration/build/repo.targets b/src/AzureIntegration/build/repo.targets deleted file mode 100644 index 9dcc1240cc..0000000000 --- a/src/AzureIntegration/build/repo.targets +++ /dev/null @@ -1,94 +0,0 @@ - - - - True - <_SdkVersion>$(SITE_EXTENSION_SDK_VERSION) - <_SdkVersion Condition="'$(_SdkVersion)' == ''">$([System.IO.Path]::GetFileName($([System.IO.Path]::GetDirectoryName('$(MSBuildExtensionsPath)')))) - <_SdkFeed>$(SITE_EXTENSION_SDK_FEED) - <_SdkFeed Condition="'$(_SdkFeed)' == ''">$(DefaultDotNetAssetFeed) - $(RepositoryRoot).test-dotnet\ - $(RepositoryRoot)artifacts\apps - $(TestDotNetPath)extension\$(SiteExtensionArch)\ - $(RepositoryRoot)artifacts\build - $(RepositoryRoot)\test\Microsoft.AspNetCore.AzureAppServices.FunctionalTests\ - https://dotnet.myget.org/F/aspnetcore-dev/ - $(MicrosoftNETCoreAppPackageVersion) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/AzureIntegration/build/sources.props b/src/AzureIntegration/build/sources.props deleted file mode 100644 index 9215df9751..0000000000 --- a/src/AzureIntegration/build/sources.props +++ /dev/null @@ -1,17 +0,0 @@ - - - - - $(DotNetRestoreSources) - - $(RestoreSources); - https://dotnet.myget.org/F/dotnet-core/api/v3/index.json; - https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json; - https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json; - - - $(RestoreSources); - https://api.nuget.org/v3/index.json; - - - diff --git a/src/AzureIntegration/sample/AzureAppServicesHostingStartupSample/AzureAppServicesHostingStartupSample.csproj b/src/AzureIntegration/sample/AzureAppServicesHostingStartupSample/AzureAppServicesHostingStartupSample.csproj deleted file mode 100644 index a2f447ed5e..0000000000 --- a/src/AzureIntegration/sample/AzureAppServicesHostingStartupSample/AzureAppServicesHostingStartupSample.csproj +++ /dev/null @@ -1,18 +0,0 @@ - - - - netcoreapp3.0 - - - - - - - - - - - - - - diff --git a/src/AzureIntegration/sample/AzureAppServicesHostingStartupSample/Properties/launchSettings.json b/src/AzureIntegration/sample/AzureAppServicesHostingStartupSample/Properties/launchSettings.json deleted file mode 100644 index 731d8620e9..0000000000 --- a/src/AzureIntegration/sample/AzureAppServicesHostingStartupSample/Properties/launchSettings.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:22071/", - "sslPort": 0 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development", - "ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.AzureAppServices.HostingStartup;Microsoft.AspNetCore.Server.IISIntegration" - } - }, - "AzureAppServicesHostingStartupSample": { - "commandName": "IISExpress", - "launchBrowser": true - } - } -} \ No newline at end of file diff --git a/src/AzureIntegration/sample/AzureAppServicesSample/AzureAppServicesSample.csproj b/src/AzureIntegration/sample/AzureAppServicesSample/AzureAppServicesSample.csproj deleted file mode 100644 index 4b03ef5612..0000000000 --- a/src/AzureIntegration/sample/AzureAppServicesSample/AzureAppServicesSample.csproj +++ /dev/null @@ -1,18 +0,0 @@ - - - - netcoreapp3.0 - - - - - - - - - - - - - - diff --git a/src/AzureIntegration/sample/AzureAppServicesSample/Properties/launchSettings.json b/src/AzureIntegration/sample/AzureAppServicesSample/Properties/launchSettings.json deleted file mode 100644 index 93ebc1db03..0000000000 --- a/src/AzureIntegration/sample/AzureAppServicesSample/Properties/launchSettings.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:64358/", - "sslPort": 0 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development", - "ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.Server.IISIntegration" - } - }, - "AzureAppServicesSample": { - "commandName": "IISExpress", - "launchBrowser": true - } - } -} \ No newline at end of file diff --git a/src/AzureIntegration/src/Directory.Build.props b/src/AzureIntegration/src/Directory.Build.props deleted file mode 100644 index 4f07cbc45d..0000000000 --- a/src/AzureIntegration/src/Directory.Build.props +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/src/AzureIntegration/src/Microsoft.Extensions.ApplicationModelDetection/AppModelDetectionResult.cs b/src/AzureIntegration/src/Microsoft.Extensions.ApplicationModelDetection/AppModelDetectionResult.cs deleted file mode 100644 index 96e53dc52d..0000000000 --- a/src/AzureIntegration/src/Microsoft.Extensions.ApplicationModelDetection/AppModelDetectionResult.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.Extensions.ApplicationModelDetection -{ - public class AppModelDetectionResult - { - public RuntimeFramework? Framework { get; set; } - public string FrameworkVersion { get; set; } - public string AspNetCoreVersion { get; set; } - } -} \ No newline at end of file diff --git a/src/AzureIntegration/src/Microsoft.Extensions.ApplicationModelDetection/AppModelDetector.cs b/src/AzureIntegration/src/Microsoft.Extensions.ApplicationModelDetection/AppModelDetector.cs deleted file mode 100644 index e42a8f2918..0000000000 --- a/src/AzureIntegration/src/Microsoft.Extensions.ApplicationModelDetection/AppModelDetector.cs +++ /dev/null @@ -1,250 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.IO; -using System.Linq; -using System.Reflection.Metadata; -using System.Reflection.PortableExecutable; -using System.Xml.Linq; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; - -namespace Microsoft.Extensions.ApplicationModelDetection -{ - public class AppModelDetector - { - // We use Hosting package to detect AspNetCore version - // it contains light-up implemenation that we care about and - // would have to be used by aspnet core web apps - private const string AspNetCoreAssembly = "Microsoft.AspNetCore.Hosting"; - - /// - /// Reads the following sources - /// - web.config to detect dotnet framework kind - /// - *.runtimeconfig.json to detect target framework version - /// - *.deps.json to detect Asp.Net Core version - /// - Microsoft.AspNetCore.Hosting.dll to detect Asp.Net Core version - /// - /// The application directory - /// The instance containing information about application - public AppModelDetectionResult Detect(DirectoryInfo directory) - { - string entryPoint = null; - - // Try reading web.config and resolving framework and app path - var webConfig = directory.GetFiles("web.config").FirstOrDefault(); - - bool webConfigExists = webConfig != null; - bool? usesDotnetExe = null; - - if (webConfigExists && - TryParseWebConfig(webConfig, out var dotnetExe, out entryPoint)) - { - usesDotnetExe = dotnetExe; - } - - // If we found entry point let's look for .deps.json - // in some cases it exists in desktop too - FileInfo depsJson = null; - FileInfo runtimeConfig = null; - - if (!string.IsNullOrWhiteSpace(entryPoint)) - { - depsJson = new FileInfo(Path.ChangeExtension(entryPoint, ".deps.json")); - runtimeConfig = new FileInfo(Path.ChangeExtension(entryPoint, ".runtimeconfig.json")); - } - - if (depsJson == null || !depsJson.Exists) - { - depsJson = directory.GetFiles("*.deps.json").FirstOrDefault(); - } - - if (runtimeConfig == null || !runtimeConfig.Exists) - { - runtimeConfig = directory.GetFiles("*.runtimeconfig.json").FirstOrDefault(); - } - - string aspNetCoreVersionFromDeps = null; - string aspNetCoreVersionFromDll = null; - - - // Try to detect ASP.NET Core version from .deps.json - if (depsJson != null && - depsJson.Exists && - TryParseDependencies(depsJson, out var aspNetCoreVersion)) - { - aspNetCoreVersionFromDeps = aspNetCoreVersion; - } - - // Try to detect ASP.NET Core version from .deps.json - var aspNetCoreDll = directory.GetFiles(AspNetCoreAssembly + ".dll").FirstOrDefault(); - if (aspNetCoreDll != null && - TryParseAssembly(aspNetCoreDll, out aspNetCoreVersion)) - { - aspNetCoreVersionFromDll = aspNetCoreVersion; - } - - // Try to detect dotnet core runtime version from runtimeconfig.json - string runtimeVersionFromRuntimeConfig = null; - if (runtimeConfig != null && - runtimeConfig.Exists) - { - TryParseRuntimeConfig(runtimeConfig, out runtimeVersionFromRuntimeConfig); - } - - var result = new AppModelDetectionResult(); - if (usesDotnetExe == true) - { - result.Framework = RuntimeFramework.DotNetCore; - result.FrameworkVersion = runtimeVersionFromRuntimeConfig; - } - else - { - if (depsJson?.Exists == true && - runtimeConfig?.Exists == true) - { - result.Framework = RuntimeFramework.DotNetCoreStandalone; - } - else - { - result.Framework = RuntimeFramework.DotNetFramework; - } - } - - result.AspNetCoreVersion = aspNetCoreVersionFromDeps ?? aspNetCoreVersionFromDll; - - return result; - } - - private bool TryParseAssembly(FileInfo aspNetCoreDll, out string aspNetCoreVersion) - { - aspNetCoreVersion = null; - try - { - using (var stream = aspNetCoreDll.OpenRead()) - using (var peReader = new PEReader(stream)) - { - var metadataReader = peReader.GetMetadataReader(); - var assemblyDefinition = metadataReader.GetAssemblyDefinition(); - aspNetCoreVersion = assemblyDefinition.Version.ToString(); - return true; - } - } - catch (Exception) - { - return false; - } - } - - /// - /// Search for Microsoft.AspNetCore.Hosting entry in deps.json and get it's version number - /// - private bool TryParseDependencies(FileInfo depsJson, out string aspnetCoreVersion) - { - aspnetCoreVersion = null; - try - { - using (var streamReader = depsJson.OpenText()) - using (var jsonReader = new JsonTextReader(streamReader)) - { - var json = JObject.Load(jsonReader); - - var libraryPrefix = AspNetCoreAssembly+ "/"; - - var library = json.Descendants().OfType().FirstOrDefault(property => property.Name.StartsWith(libraryPrefix)); - if (library != null) - { - aspnetCoreVersion = library.Name.Substring(libraryPrefix.Length); - return true; - } - } - } - catch (Exception) - { - } - return false; - } - - private bool TryParseRuntimeConfig(FileInfo runtimeConfig, out string frameworkVersion) - { - frameworkVersion = null; - try - { - using (var streamReader = runtimeConfig.OpenText()) - using (var jsonReader = new JsonTextReader(streamReader)) - { - var json = JObject.Load(jsonReader); - frameworkVersion = (string)json?["runtimeOptions"] - ?["framework"] - ?["version"]; - - return true; - } - } - catch (Exception) - { - return false; - } - } - - private bool TryParseWebConfig(FileInfo webConfig, out bool usesDotnetExe, out string entryPoint) - { - usesDotnetExe = false; - entryPoint = null; - - try - { - var xdocument = XDocument.Load(webConfig.FullName); - var aspNetCoreHandler = xdocument.Root? - .Element("system.webServer") - .Element("aspNetCore"); - - if (aspNetCoreHandler == null) - { - return false; - } - - var processPath = (string) aspNetCoreHandler.Attribute("processPath"); - var arguments = (string) aspNetCoreHandler.Attribute("arguments"); - - if (processPath.EndsWith("dotnet", StringComparison.OrdinalIgnoreCase) || - processPath.EndsWith("dotnet.exe", StringComparison.OrdinalIgnoreCase) && - !string.IsNullOrWhiteSpace(arguments)) - { - usesDotnetExe = true; - var entryPointPart = arguments.Split(new[] {" "}, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault(); - - if (!string.IsNullOrWhiteSpace(entryPointPart)) - { - try - { - entryPoint = Path.GetFullPath(Path.Combine(webConfig.DirectoryName, entryPointPart)); - } - catch (Exception) - { - } - } - } - else - { - usesDotnetExe = false; - - try - { - entryPoint = Path.GetFullPath(Path.Combine(webConfig.DirectoryName, processPath)); - } - catch (Exception) - { - } - } - } - catch (Exception) - { - return false; - } - - return true; - } - } -} \ No newline at end of file diff --git a/src/AzureIntegration/src/Microsoft.Extensions.ApplicationModelDetection/Microsoft.Extensions.ApplicationModelDetection.csproj b/src/AzureIntegration/src/Microsoft.Extensions.ApplicationModelDetection/Microsoft.Extensions.ApplicationModelDetection.csproj deleted file mode 100644 index ccb195cee2..0000000000 --- a/src/AzureIntegration/src/Microsoft.Extensions.ApplicationModelDetection/Microsoft.Extensions.ApplicationModelDetection.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - ASP.NET Core integration with Azure AppServices. - netcoreapp3.0 - $(NoWarn);CS1591 - true - true - aspnetcore;azure;appservices - - - - - - - diff --git a/src/AzureIntegration/src/Microsoft.Extensions.ApplicationModelDetection/RuntimeFramework.cs b/src/AzureIntegration/src/Microsoft.Extensions.ApplicationModelDetection/RuntimeFramework.cs deleted file mode 100644 index b182c79eec..0000000000 --- a/src/AzureIntegration/src/Microsoft.Extensions.ApplicationModelDetection/RuntimeFramework.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.Extensions.ApplicationModelDetection -{ - public enum RuntimeFramework - { - DotNetCore, - DotNetCoreStandalone, - DotNetFramework - } -} \ No newline at end of file diff --git a/src/AzureIntegration/src/Microsoft.Extensions.ApplicationModelDetection/baseline.netcore.json b/src/AzureIntegration/src/Microsoft.Extensions.ApplicationModelDetection/baseline.netcore.json deleted file mode 100644 index d94df11f0a..0000000000 --- a/src/AzureIntegration/src/Microsoft.Extensions.ApplicationModelDetection/baseline.netcore.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "AssemblyIdentity": "Microsoft.Extensions.ApplicationModelDetection, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", - "Types": [ - { - "Name": "Microsoft.Extensions.ApplicationModelDetection.AppModelDetectionResult", - "Visibility": "Public", - "Kind": "Class", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_Framework", - "Parameters": [], - "ReturnType": "System.Nullable", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_Framework", - "Parameters": [ - { - "Name": "value", - "Type": "System.Nullable" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_FrameworkVersion", - "Parameters": [], - "ReturnType": "System.String", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_FrameworkVersion", - "Parameters": [ - { - "Name": "value", - "Type": "System.String" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_AspNetCoreVersion", - "Parameters": [], - "ReturnType": "System.String", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_AspNetCoreVersion", - "Parameters": [ - { - "Name": "value", - "Type": "System.String" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.Extensions.ApplicationModelDetection.AppModelDetector", - "Visibility": "Public", - "Kind": "Class", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Detect", - "Parameters": [ - { - "Name": "directory", - "Type": "System.IO.DirectoryInfo" - } - ], - "ReturnType": "Microsoft.Extensions.ApplicationModelDetection.AppModelDetectionResult", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.Extensions.ApplicationModelDetection.RuntimeFramework", - "Visibility": "Public", - "Kind": "Enumeration", - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Field", - "Name": "DotNetCore", - "Parameters": [], - "GenericParameter": [], - "Literal": "0" - }, - { - "Kind": "Field", - "Name": "DotNetCoreStandalone", - "Parameters": [], - "GenericParameter": [], - "Literal": "1" - }, - { - "Kind": "Field", - "Name": "DotNetFramework", - "Parameters": [], - "GenericParameter": [], - "Literal": "2" - } - ], - "GenericParameters": [] - } - ] -} \ No newline at end of file diff --git a/src/AzureIntegration/test/Directory.Build.props b/src/AzureIntegration/test/Directory.Build.props deleted file mode 100644 index f1ae8d1fe4..0000000000 --- a/src/AzureIntegration/test/Directory.Build.props +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/src/AzureIntegration/test/Microsoft.AspNetCore.AzureAppServicesIntegration.Tests/Microsoft.AspNetCore.AzureAppServicesIntegration.Tests.csproj b/src/AzureIntegration/test/Microsoft.AspNetCore.AzureAppServicesIntegration.Tests/Microsoft.AspNetCore.AzureAppServicesIntegration.Tests.csproj deleted file mode 100644 index 039fe663b8..0000000000 --- a/src/AzureIntegration/test/Microsoft.AspNetCore.AzureAppServicesIntegration.Tests/Microsoft.AspNetCore.AzureAppServicesIntegration.Tests.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - netcoreapp3.0 - - - - - - - - - - - - diff --git a/src/AzureIntegration/test/Microsoft.Extensions.ApplicationModelDetection.Tests/AppModelTests.cs b/src/AzureIntegration/test/Microsoft.Extensions.ApplicationModelDetection.Tests/AppModelTests.cs deleted file mode 100644 index 02e420d2e4..0000000000 --- a/src/AzureIntegration/test/Microsoft.Extensions.ApplicationModelDetection.Tests/AppModelTests.cs +++ /dev/null @@ -1,229 +0,0 @@ -// // Copyright (c) .NET Foundation. All rights reserved. -// // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.IO; -using Microsoft.AspNetCore.Hosting; -using Xunit; - -namespace Microsoft.Extensions.ApplicationModelDetection.Tests -{ - public class AppModelTests - { - private const string EmptyWebConfig = @""; - - [Theory] - [InlineData("dotnet")] - [InlineData("dotnet.exe")] - [InlineData("%HOME%/dotnet")] - [InlineData("%HOME%/dotnet.exe")] - [InlineData("DoTNeT.ExE")] - public void DetectsCoreFrameworkFromWebConfig(string processPath) - { - using (var temp = new TemporaryDirectory() - .WithFile("web.config",GenerateWebConfig(processPath, ".\\app.dll"))) - { - var result = new AppModelDetector().Detect(temp.Directory); - Assert.Equal(RuntimeFramework.DotNetCore, result.Framework); - } - } - - [Theory] - [InlineData("app")] - [InlineData("app.exe")] - [InlineData("%HOME%/app")] - [InlineData("%HOME%/app.exe")] - public void DetectsFullFrameworkFromWebConfig(string processPath) - { - using (var temp = new TemporaryDirectory() - .WithFile("web.config", GenerateWebConfig(processPath, ".\\app.dll"))) - { - var result = new AppModelDetector().Detect(temp.Directory); - Assert.Equal(RuntimeFramework.DotNetFramework, result.Framework); - } - } - - [Theory] - [InlineData("2.0.0")] - [InlineData("2.0.0-preview1")] - [InlineData("1.1.3")] - public void DetectsRuntimeVersionFromRuntimeConfig(string runtimeVersion) - { - using (var temp = new TemporaryDirectory() - .WithFile("web.config", GenerateWebConfig("dotnet", ".\\app.dll")) - .WithFile("app.runtimeconfig.json", @"{ - ""runtimeOptions"": { - ""tfm"": ""netcoreapp2.0"", - ""framework"": { - ""name"": ""Microsoft.NETCore.App"", - ""version"": """+ runtimeVersion + @""" - }, - ""configProperties"": { - ""System.GC.Server"": true - } - } -}")) - { - var result = new AppModelDetector().Detect(temp.Directory); - Assert.Equal(RuntimeFramework.DotNetCore, result.Framework); - Assert.Equal(runtimeVersion, result.FrameworkVersion); - } - } - - - [Theory] - [InlineData("2.0.0")] - [InlineData("2.0.0-preview1")] - [InlineData("1.1.3")] - public void DetectsRuntimeVersionFromRuntimeConfigWitoutEntryPoint(string runtimeVersion) - { - using (var temp = new TemporaryDirectory() - .WithFile("web.config", GenerateWebConfig("dotnet", "%HOME%\\app.dll")) - .WithFile("app.runtimeconfig.json", @"{ - ""runtimeOptions"": { - ""tfm"": ""netcoreapp2.0"", - ""framework"": { - ""name"": ""Microsoft.NETCore.App"", - ""version"": """+ runtimeVersion + @""" - }, - ""configProperties"": { - ""System.GC.Server"": true - } - } -}")) - { - var result = new AppModelDetector().Detect(temp.Directory); - Assert.Equal(RuntimeFramework.DotNetCore, result.Framework); - Assert.Equal(runtimeVersion, result.FrameworkVersion); - } - } - - [Theory] - [InlineData("2.0.0")] - [InlineData("2.0.0-preview1")] - [InlineData("1.1.3")] - public void DetectsAspNetCoreVersionFromDepsFile(string runtimeVersion) - { - using (var temp = new TemporaryDirectory() - .WithFile("web.config", GenerateWebConfig("dotnet", "app.dll")) - .WithFile("app.deps.json", @"{ - ""targets"": { - "".NETCoreApp,Version=v2.7"": { - ""Microsoft.AspNetCore.Hosting/" + runtimeVersion + @""": { } - } - } -}")) - { - var result = new AppModelDetector().Detect(temp.Directory); - Assert.Equal(RuntimeFramework.DotNetCore, result.Framework); - Assert.Equal(runtimeVersion, result.AspNetCoreVersion); - } - } - - [Theory] - [InlineData("2.0.0")] - [InlineData("2.0.0-preview1")] - [InlineData("1.1.3")] - public void DetectsAspNetCoreVersionFromDepsFileWithoutEntryPoint(string runtimeVersion) - { - using (var temp = new TemporaryDirectory() - .WithFile("web.config", GenerateWebConfig("dotnet", "%HOME%\\app.dll")) - .WithFile("app.deps.json", @"{ - ""targets"": { - "".NETCoreApp,Version=v2.7"": { - ""Microsoft.AspNetCore.Hosting/" + runtimeVersion + @""": { } - } - } -}")) - { - var result = new AppModelDetector().Detect(temp.Directory); - Assert.Equal(RuntimeFramework.DotNetCore, result.Framework); - Assert.Equal(runtimeVersion, result.AspNetCoreVersion); - } - } - - [Fact] - public void DetectsFullFrameworkWhenWebConfigExists() - { - using (var temp = new TemporaryDirectory() - .WithFile("web.config", EmptyWebConfig)) - { - var result = new AppModelDetector().Detect(temp.Directory); - Assert.Equal(RuntimeFramework.DotNetFramework, result.Framework); - } - } - - [Fact] - public void DetectsStandalone_WhenBothDepsAndRuntimeConfigExist() - { - using (var temp = new TemporaryDirectory() - .WithFile("web.config", GenerateWebConfig("app.exe", "")) - .WithFile("app.runtimeconfig.json", "{}") - .WithFile("app.deps.json", "{}")) - { - var result = new AppModelDetector().Detect(temp.Directory); - Assert.Equal(RuntimeFramework.DotNetCoreStandalone, result.Framework); - } - } - - [Fact] - public void DetectsAspNetCoreVersionFromHostingDll() - { - using (var temp = new TemporaryDirectory() - .WithFile(typeof(WebHostBuilder).Assembly.Location)) - { - var result = new AppModelDetector().Detect(temp.Directory); - Assert.Equal(typeof(WebHostBuilder).Assembly.GetName().Version.ToString(), result.AspNetCoreVersion); - } - } - - private static string GenerateWebConfig(string processPath, string arguments) - { - return $@" - - - - - - - - -"; - } - - private class TemporaryDirectory: IDisposable - { - public TemporaryDirectory() - { - Directory = new DirectoryInfo(Path.GetTempPath()) - .CreateSubdirectory(Guid.NewGuid().ToString("N")); - } - - public DirectoryInfo Directory { get; } - - public void Dispose() - { - try - { - Directory.Delete(true); - } - catch (IOException) - { - } - } - - public TemporaryDirectory WithFile(string name, string value) - { - File.WriteAllText(Path.Combine(Directory.FullName, name), value); - return this; - } - - - public TemporaryDirectory WithFile(string name) - { - File.Copy(name, Path.Combine(Directory.FullName, Path.GetFileName(name))); - return this; - } - } - } -} \ No newline at end of file diff --git a/src/AzureIntegration/test/Microsoft.Extensions.ApplicationModelDetection.Tests/Microsoft.Extensions.ApplicationModelDetection.Tests.csproj b/src/AzureIntegration/test/Microsoft.Extensions.ApplicationModelDetection.Tests/Microsoft.Extensions.ApplicationModelDetection.Tests.csproj deleted file mode 100644 index b95c066f61..0000000000 --- a/src/AzureIntegration/test/Microsoft.Extensions.ApplicationModelDetection.Tests/Microsoft.Extensions.ApplicationModelDetection.Tests.csproj +++ /dev/null @@ -1,11 +0,0 @@ - - - - netcoreapp3.0 - - - - - - - diff --git a/src/AzureIntegration/version.props b/src/AzureIntegration/version.props deleted file mode 100644 index 39e69414a0..0000000000 --- a/src/AzureIntegration/version.props +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/Components/Components.sln b/src/Components/Components.sln index 8119ccce36..bc11818870 100644 --- a/src/Components/Components.sln +++ b/src/Components/Components.sln @@ -1,24 +1,55 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.28306.52 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.28414.68 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{F5FDD4E5-6A52-4A86-BE5E-5E42CB1DC8DA}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{B867E038-B3CE-43E3-9292-61568C46CDEB}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{ADA3AE29-F6DE-49F6-8C7C-B321508CAE8E}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "HostedInAspNet", "HostedInAspNet", "{4D367450-96E9-4C8C-8B56-EED8ADE3A20D}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MonoSanity", "MonoSanity", "{2A076721-6081-4517-8329-B9E5110D6DAC}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "testapps", "testapps", "{4AE0D35B-D97A-44D0-8392-C9240377DCCE}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "templates", "templates", "{E8EBA72C-D555-43AE-BC98-F0B2D05F6A07}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BlazorHosted-CSharp", "BlazorHosted-CSharp", "{73DA1DFD-79F0-4BA2-B0B6-4F3A21D2C3F8}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tooling", "tooling", "{F563ABB6-85FB-4CFC-B0D2-1D5130E8246D}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "benchmarks", "benchmarks", "{36A7DEB7-5F88-4BFB-B57E-79EEC9950E25}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ComponentsApp", "ComponentsApp", "{3173A9C0-4F66-4064-83EC-3C206F1430FB}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "blazor", "blazor", "{E5DDF29D-DFC9-43E3-AC3A-5B6D54B786D5}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "benchmarks", "benchmarks", "{DDE4B710-6936-4E17-9CA0-54C45333ED15}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{C7B9207E-BF85-422D-9EBC-E243C399F619}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{AD41FFD8-2C0C-4F0C-9537-25C2A3A7A1F4}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "shared", "shared", "{A63F9FCD-29D7-4D49-BC70-7E0F57D0BA60}" + ProjectSection(SolutionItems) = preProject + src\shared\ComponentsApi.cs = src\shared\ComponentsApi.cs + src\shared\ConventionBasedStartup.cs = src\shared\ConventionBasedStartup.cs + src\shared\IBlazorStartup.cs = src\shared\IBlazorStartup.cs + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{32B33872-B599-4913-9F90-EDB5F9E24B18}" +EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MonoSanity", "blazor\samples\MonoSanity\MonoSanity.csproj", "{7C53BB6B-5906-4753-B507-C9FCC2F7E5B7}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Components.Server", "src\Microsoft.AspNetCore.Components.Server\Microsoft.AspNetCore.Components.Server.csproj", "{5A694793-3257-4D37-BB74-4A41B3894685}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{ADA3AE29-F6DE-49F6-8C7C-B321508CAE8E}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Components.E2ETest", "test\Microsoft.AspNetCore.Components.E2ETest\Microsoft.AspNetCore.Components.E2ETest.csproj", "{5BC2A10D-B6CA-43AE-B73C-2A41AE1039F9}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MonoSanityClient", "blazor\samples\MonoSanityClient\MonoSanityClient.csproj", "{06AAAE9E-96DE-4574-97DA-9C4C7D9FE990}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "HostedInAspNet", "HostedInAspNet", "{4D367450-96E9-4C8C-8B56-EED8ADE3A20D}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HostedInAspNet.Client", "blazor\samples\HostedInAspNet.Client\HostedInAspNet.Client.csproj", "{B4335F7C-4E86-4559-821F-F1B1C75F5FAE}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HostedInAspNet.Server", "blazor\samples\HostedInAspNet.Server\HostedInAspNet.Server.csproj", "{F8996835-41F7-4663-91DF-3B5652ADC37D}" @@ -27,8 +58,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Compon EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StandaloneApp", "blazor\samples\StandaloneApp\StandaloneApp.csproj", "{B241434A-1642-44CC-AE9A-2012B5C5BD02}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MonoSanity", "MonoSanity", "{2A076721-6081-4517-8329-B9E5110D6DAC}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Components.Build.Test", "test\Microsoft.AspNetCore.Components.Build.Test\Microsoft.AspNetCore.Components.Build.Test.csproj", "{709C7EBE-EB93-4F6D-9491-D714B0D2E898}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Components.Build", "src\Microsoft.AspNetCore.Components.Build\Microsoft.AspNetCore.Components.Build.csproj", "{8B3D0F1C-0E38-4E6D-BFF1-C4FDA0CD9815}" @@ -37,34 +66,20 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Compon EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Components.Test", "test\Microsoft.AspNetCore.Components.Test\Microsoft.AspNetCore.Components.Test.csproj", "{8FD8636E-AFA5-434D-8857-06D02686741A}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "testapps", "testapps", "{4AE0D35B-D97A-44D0-8392-C9240377DCCE}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BasicTestApp", "test\testapps\BasicTestApp\BasicTestApp.csproj", "{2838CB6F-D2C7-4C0A-A994-C72E56F16984}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Components.Razor.Extensions", "src\Microsoft.AspNetCore.Components.Razor.Extensions\Microsoft.AspNetCore.Components.Razor.Extensions.csproj", "{D652A019-B765-4922-B7B8-3AB1C58338D7}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestServer", "test\testapps\TestServer\TestServer.csproj", "{29CD3FC6-49E3-4756-B5DF-E03B46E5CD45}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Blazor.Cli", "blazor\src\Microsoft.AspNetCore.Blazor.Cli\Microsoft.AspNetCore.Blazor.Cli.csproj", "{AF79BB84-BAE6-4F9A-9AD5-B0E3D7455288}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Blazor.Templates", "blazor\src\Microsoft.AspNetCore.Blazor.Templates\Microsoft.AspNetCore.Blazor.Templates.csproj", "{8C160273-0A1D-4D79-9F7B-7687B2D2F7C4}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "templates", "templates", "{E8EBA72C-D555-43AE-BC98-F0B2D05F6A07}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BlazorHosted-CSharp", "BlazorHosted-CSharp", "{73DA1DFD-79F0-4BA2-B0B6-4F3A21D2C3F8}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Components.Razor.Extensions.Test", "test\Microsoft.AspNetCore.Components.Razor.Extensions.Test\Microsoft.AspNetCore.Components.Razor.Extensions.Test.csproj", "{FF25111E-5A3E-48A3-96D8-08A2C5A2A91C}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tooling", "tooling", "{F563ABB6-85FB-4CFC-B0D2-1D5130E8246D}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.Blazor", "blazor\tooling\Microsoft.VisualStudio.LanguageServices.Blazor\Microsoft.VisualStudio.LanguageServices.Blazor.csproj", "{43E39257-7DC1-46BD-9BD9-2319A1313D07}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.VisualStudio.BlazorExtension", "blazor\tooling\Microsoft.VisualStudio.BlazorExtension\Microsoft.VisualStudio.BlazorExtension.csproj", "{9088E4E4-B855-457F-AE9E-D86709A5E1F4}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestContentPackage", "test\testapps\TestContentPackage\TestContentPackage.csproj", "{C57382BC-EE93-49D5-BC40-5C98AF8AA048}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "benchmarks", "benchmarks", "{36A7DEB7-5F88-4BFB-B57E-79EEC9950E25}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Components.Performance", "benchmarks\Microsoft.AspNetCore.Components.Performance\Microsoft.AspNetCore.Components.Performance.csproj", "{50F6820F-D058-4E68-9E15-801F893F514E}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Components.Analyzers", "src\Microsoft.AspNetCore.Components.Analyzers\Microsoft.AspNetCore.Components.Analyzers.csproj", "{6DDD6A29-0A3E-417F-976C-5FE3FDA74055}" @@ -73,24 +88,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Compon EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Components.Server.Test", "test\Microsoft.AspNetCore.Components.Server.Test\Microsoft.AspNetCore.Components.Server.Test.csproj", "{142AA6BC-5110-486B-A34D-6878E5E2CE95}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ComponentsApp", "ComponentsApp", "{3173A9C0-4F66-4064-83EC-3C206F1430FB}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComponentsApp.Server", "samples\ComponentsApp.Server\ComponentsApp.Server.csproj", "{5655AFF9-612C-4947-8221-7DB6949A6CA4}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComponentsApp.App", "samples\ComponentsApp.App\ComponentsApp.App.csproj", "{33C361D8-CAF1-47C0-A344-251AEF4FE1FE}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Blazor.E2EPerformance", "blazor\benchmarks\Microsoft.AspNetCore.Blazor.E2EPerformance\Microsoft.AspNetCore.Blazor.E2EPerformance.csproj", "{CCEC81C4-1A3C-40DC-952F-074712C46180}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Components.TagHelperWorkaround", "src\Microsoft.AspNetCore.Components.TagHelperWorkaround\Microsoft.AspNetCore.Components.TagHelperWorkaround.csproj", "{F71D78AB-A07E-415D-BF3F-1B9991628214}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "blazor", "blazor", "{E5DDF29D-DFC9-43E3-AC3A-5B6D54B786D5}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "benchmarks", "benchmarks", "{DDE4B710-6936-4E17-9CA0-54C45333ED15}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{C7B9207E-BF85-422D-9EBC-E243C399F619}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{AD41FFD8-2C0C-4F0C-9537-25C2A3A7A1F4}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorLibrary-CSharp", "blazor\src\Microsoft.AspNetCore.Blazor.Templates\content\BlazorLibrary-CSharp\BlazorLibrary-CSharp.csproj", "{8C5D8A27-E6E6-4E5B-9389-206B5519658C}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorHosted-CSharp.Client", "blazor\src\Microsoft.AspNetCore.Blazor.Templates\content\BlazorHosted-CSharp\BlazorHosted-CSharp.Client\BlazorHosted-CSharp.Client.csproj", "{61150807-8DBD-4456-9C6E-D97268181C2B}" @@ -101,16 +104,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorHosted-CSharp.Shared" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorStandalone-CSharp", "blazor\src\Microsoft.AspNetCore.Blazor.Templates\content\BlazorStandalone-CSharp\BlazorStandalone-CSharp.csproj", "{2F92DE29-78E9-4A04-8F4F-F8F40E02FE98}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AspNetCore.Blazor", "blazor\src\Microsoft.AspNetCore.Blazor\Microsoft.AspNetCore.Blazor.csproj", "{A42AC30B-45E3-4907-99A9-9ABDA45973D7}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "shared", "shared", "{A63F9FCD-29D7-4D49-BC70-7E0F57D0BA60}" - ProjectSection(SolutionItems) = preProject - src\shared\ComponentsApi.cs = src\shared\ComponentsApi.cs - src\shared\ConventionBasedStartup.cs = src\shared\ConventionBasedStartup.cs - src\shared\IBlazorStartup.cs = src\shared\IBlazorStartup.cs - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{32B33872-B599-4913-9F90-EDB5F9E24B18}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Blazor", "blazor\src\Microsoft.AspNetCore.Blazor\Microsoft.AspNetCore.Blazor.csproj", "{A42AC30B-45E3-4907-99A9-9ABDA45973D7}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Blazor.Test", "blazor\test\Microsoft.AspNetCore.Blazor.Test\Microsoft.AspNetCore.Blazor.Test.csproj", "{85813607-297F-4D39-92F7-89379FD80D70}" EndProject @@ -228,14 +222,6 @@ Global {2838CB6F-D2C7-4C0A-A994-C72E56F16984}.Release|Any CPU.Build.0 = Release|Any CPU {2838CB6F-D2C7-4C0A-A994-C72E56F16984}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {2838CB6F-D2C7-4C0A-A994-C72E56F16984}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {D652A019-B765-4922-B7B8-3AB1C58338D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D652A019-B765-4922-B7B8-3AB1C58338D7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D652A019-B765-4922-B7B8-3AB1C58338D7}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {D652A019-B765-4922-B7B8-3AB1C58338D7}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {D652A019-B765-4922-B7B8-3AB1C58338D7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D652A019-B765-4922-B7B8-3AB1C58338D7}.Release|Any CPU.Build.0 = Release|Any CPU - {D652A019-B765-4922-B7B8-3AB1C58338D7}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {D652A019-B765-4922-B7B8-3AB1C58338D7}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {29CD3FC6-49E3-4756-B5DF-E03B46E5CD45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {29CD3FC6-49E3-4756-B5DF-E03B46E5CD45}.Debug|Any CPU.Build.0 = Debug|Any CPU {29CD3FC6-49E3-4756-B5DF-E03B46E5CD45}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -260,14 +246,6 @@ Global {8C160273-0A1D-4D79-9F7B-7687B2D2F7C4}.Release|Any CPU.Build.0 = Release|Any CPU {8C160273-0A1D-4D79-9F7B-7687B2D2F7C4}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {8C160273-0A1D-4D79-9F7B-7687B2D2F7C4}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {FF25111E-5A3E-48A3-96D8-08A2C5A2A91C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FF25111E-5A3E-48A3-96D8-08A2C5A2A91C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FF25111E-5A3E-48A3-96D8-08A2C5A2A91C}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {FF25111E-5A3E-48A3-96D8-08A2C5A2A91C}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {FF25111E-5A3E-48A3-96D8-08A2C5A2A91C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FF25111E-5A3E-48A3-96D8-08A2C5A2A91C}.Release|Any CPU.Build.0 = Release|Any CPU - {FF25111E-5A3E-48A3-96D8-08A2C5A2A91C}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {FF25111E-5A3E-48A3-96D8-08A2C5A2A91C}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {43E39257-7DC1-46BD-9BD9-2319A1313D07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {43E39257-7DC1-46BD-9BD9-2319A1313D07}.Debug|Any CPU.Build.0 = Debug|Any CPU {43E39257-7DC1-46BD-9BD9-2319A1313D07}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -346,14 +324,6 @@ Global {CCEC81C4-1A3C-40DC-952F-074712C46180}.Release|Any CPU.Build.0 = Release|Any CPU {CCEC81C4-1A3C-40DC-952F-074712C46180}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {CCEC81C4-1A3C-40DC-952F-074712C46180}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {F71D78AB-A07E-415D-BF3F-1B9991628214}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F71D78AB-A07E-415D-BF3F-1B9991628214}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F71D78AB-A07E-415D-BF3F-1B9991628214}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {F71D78AB-A07E-415D-BF3F-1B9991628214}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {F71D78AB-A07E-415D-BF3F-1B9991628214}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F71D78AB-A07E-415D-BF3F-1B9991628214}.Release|Any CPU.Build.0 = Release|Any CPU - {F71D78AB-A07E-415D-BF3F-1B9991628214}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {F71D78AB-A07E-415D-BF3F-1B9991628214}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {8C5D8A27-E6E6-4E5B-9389-206B5519658C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {8C5D8A27-E6E6-4E5B-9389-206B5519658C}.Debug|Any CPU.Build.0 = Debug|Any CPU {8C5D8A27-E6E6-4E5B-9389-206B5519658C}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -423,30 +393,34 @@ Global HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution + {4D367450-96E9-4C8C-8B56-EED8ADE3A20D} = {C7B9207E-BF85-422D-9EBC-E243C399F619} + {2A076721-6081-4517-8329-B9E5110D6DAC} = {C7B9207E-BF85-422D-9EBC-E243C399F619} + {4AE0D35B-D97A-44D0-8392-C9240377DCCE} = {ADA3AE29-F6DE-49F6-8C7C-B321508CAE8E} + {E8EBA72C-D555-43AE-BC98-F0B2D05F6A07} = {E5DDF29D-DFC9-43E3-AC3A-5B6D54B786D5} + {73DA1DFD-79F0-4BA2-B0B6-4F3A21D2C3F8} = {E8EBA72C-D555-43AE-BC98-F0B2D05F6A07} + {F563ABB6-85FB-4CFC-B0D2-1D5130E8246D} = {E5DDF29D-DFC9-43E3-AC3A-5B6D54B786D5} + {3173A9C0-4F66-4064-83EC-3C206F1430FB} = {F5FDD4E5-6A52-4A86-BE5E-5E42CB1DC8DA} + {DDE4B710-6936-4E17-9CA0-54C45333ED15} = {E5DDF29D-DFC9-43E3-AC3A-5B6D54B786D5} + {C7B9207E-BF85-422D-9EBC-E243C399F619} = {E5DDF29D-DFC9-43E3-AC3A-5B6D54B786D5} + {AD41FFD8-2C0C-4F0C-9537-25C2A3A7A1F4} = {E5DDF29D-DFC9-43E3-AC3A-5B6D54B786D5} + {A63F9FCD-29D7-4D49-BC70-7E0F57D0BA60} = {B867E038-B3CE-43E3-9292-61568C46CDEB} + {32B33872-B599-4913-9F90-EDB5F9E24B18} = {E5DDF29D-DFC9-43E3-AC3A-5B6D54B786D5} {7C53BB6B-5906-4753-B507-C9FCC2F7E5B7} = {2A076721-6081-4517-8329-B9E5110D6DAC} {5A694793-3257-4D37-BB74-4A41B3894685} = {B867E038-B3CE-43E3-9292-61568C46CDEB} {5BC2A10D-B6CA-43AE-B73C-2A41AE1039F9} = {ADA3AE29-F6DE-49F6-8C7C-B321508CAE8E} {06AAAE9E-96DE-4574-97DA-9C4C7D9FE990} = {2A076721-6081-4517-8329-B9E5110D6DAC} - {4D367450-96E9-4C8C-8B56-EED8ADE3A20D} = {C7B9207E-BF85-422D-9EBC-E243C399F619} {B4335F7C-4E86-4559-821F-F1B1C75F5FAE} = {4D367450-96E9-4C8C-8B56-EED8ADE3A20D} {F8996835-41F7-4663-91DF-3B5652ADC37D} = {4D367450-96E9-4C8C-8B56-EED8ADE3A20D} {7FD8C650-74B3-4153-AEA1-00F4F6AF393D} = {B867E038-B3CE-43E3-9292-61568C46CDEB} {B241434A-1642-44CC-AE9A-2012B5C5BD02} = {C7B9207E-BF85-422D-9EBC-E243C399F619} - {2A076721-6081-4517-8329-B9E5110D6DAC} = {C7B9207E-BF85-422D-9EBC-E243C399F619} {709C7EBE-EB93-4F6D-9491-D714B0D2E898} = {ADA3AE29-F6DE-49F6-8C7C-B321508CAE8E} {8B3D0F1C-0E38-4E6D-BFF1-C4FDA0CD9815} = {B867E038-B3CE-43E3-9292-61568C46CDEB} {8A19B1CE-9B62-4440-93B3-152DDBB39D0A} = {B867E038-B3CE-43E3-9292-61568C46CDEB} {8FD8636E-AFA5-434D-8857-06D02686741A} = {ADA3AE29-F6DE-49F6-8C7C-B321508CAE8E} - {4AE0D35B-D97A-44D0-8392-C9240377DCCE} = {ADA3AE29-F6DE-49F6-8C7C-B321508CAE8E} {2838CB6F-D2C7-4C0A-A994-C72E56F16984} = {4AE0D35B-D97A-44D0-8392-C9240377DCCE} - {D652A019-B765-4922-B7B8-3AB1C58338D7} = {B867E038-B3CE-43E3-9292-61568C46CDEB} {29CD3FC6-49E3-4756-B5DF-E03B46E5CD45} = {4AE0D35B-D97A-44D0-8392-C9240377DCCE} {AF79BB84-BAE6-4F9A-9AD5-B0E3D7455288} = {AD41FFD8-2C0C-4F0C-9537-25C2A3A7A1F4} {8C160273-0A1D-4D79-9F7B-7687B2D2F7C4} = {AD41FFD8-2C0C-4F0C-9537-25C2A3A7A1F4} - {E8EBA72C-D555-43AE-BC98-F0B2D05F6A07} = {E5DDF29D-DFC9-43E3-AC3A-5B6D54B786D5} - {73DA1DFD-79F0-4BA2-B0B6-4F3A21D2C3F8} = {E8EBA72C-D555-43AE-BC98-F0B2D05F6A07} - {FF25111E-5A3E-48A3-96D8-08A2C5A2A91C} = {ADA3AE29-F6DE-49F6-8C7C-B321508CAE8E} - {F563ABB6-85FB-4CFC-B0D2-1D5130E8246D} = {E5DDF29D-DFC9-43E3-AC3A-5B6D54B786D5} {43E39257-7DC1-46BD-9BD9-2319A1313D07} = {F563ABB6-85FB-4CFC-B0D2-1D5130E8246D} {9088E4E4-B855-457F-AE9E-D86709A5E1F4} = {F563ABB6-85FB-4CFC-B0D2-1D5130E8246D} {C57382BC-EE93-49D5-BC40-5C98AF8AA048} = {4AE0D35B-D97A-44D0-8392-C9240377DCCE} @@ -454,22 +428,15 @@ Global {6DDD6A29-0A3E-417F-976C-5FE3FDA74055} = {B867E038-B3CE-43E3-9292-61568C46CDEB} {CF3B5990-7A05-4993-AACA-D2C8D7AFF6E6} = {ADA3AE29-F6DE-49F6-8C7C-B321508CAE8E} {142AA6BC-5110-486B-A34D-6878E5E2CE95} = {ADA3AE29-F6DE-49F6-8C7C-B321508CAE8E} - {3173A9C0-4F66-4064-83EC-3C206F1430FB} = {F5FDD4E5-6A52-4A86-BE5E-5E42CB1DC8DA} {5655AFF9-612C-4947-8221-7DB6949A6CA4} = {3173A9C0-4F66-4064-83EC-3C206F1430FB} {33C361D8-CAF1-47C0-A344-251AEF4FE1FE} = {3173A9C0-4F66-4064-83EC-3C206F1430FB} {CCEC81C4-1A3C-40DC-952F-074712C46180} = {DDE4B710-6936-4E17-9CA0-54C45333ED15} - {F71D78AB-A07E-415D-BF3F-1B9991628214} = {B867E038-B3CE-43E3-9292-61568C46CDEB} - {DDE4B710-6936-4E17-9CA0-54C45333ED15} = {E5DDF29D-DFC9-43E3-AC3A-5B6D54B786D5} - {C7B9207E-BF85-422D-9EBC-E243C399F619} = {E5DDF29D-DFC9-43E3-AC3A-5B6D54B786D5} - {AD41FFD8-2C0C-4F0C-9537-25C2A3A7A1F4} = {E5DDF29D-DFC9-43E3-AC3A-5B6D54B786D5} {8C5D8A27-E6E6-4E5B-9389-206B5519658C} = {E8EBA72C-D555-43AE-BC98-F0B2D05F6A07} {61150807-8DBD-4456-9C6E-D97268181C2B} = {73DA1DFD-79F0-4BA2-B0B6-4F3A21D2C3F8} {EB8B8216-BD47-4635-A23D-21135943F2B7} = {73DA1DFD-79F0-4BA2-B0B6-4F3A21D2C3F8} {46B3D506-E351-4668-AC65-0719191B06A7} = {73DA1DFD-79F0-4BA2-B0B6-4F3A21D2C3F8} {2F92DE29-78E9-4A04-8F4F-F8F40E02FE98} = {E8EBA72C-D555-43AE-BC98-F0B2D05F6A07} {A42AC30B-45E3-4907-99A9-9ABDA45973D7} = {AD41FFD8-2C0C-4F0C-9537-25C2A3A7A1F4} - {A63F9FCD-29D7-4D49-BC70-7E0F57D0BA60} = {B867E038-B3CE-43E3-9292-61568C46CDEB} - {32B33872-B599-4913-9F90-EDB5F9E24B18} = {E5DDF29D-DFC9-43E3-AC3A-5B6D54B786D5} {85813607-297F-4D39-92F7-89379FD80D70} = {32B33872-B599-4913-9F90-EDB5F9E24B18} {E52F5005-26EA-4764-8ECF-41D324AAA6D9} = {B867E038-B3CE-43E3-9292-61568C46CDEB} EndGlobalSection diff --git a/src/Components/blazor/benchmarks/Microsoft.AspNetCore.Blazor.E2EPerformance/Microsoft.AspNetCore.Blazor.E2EPerformance.csproj b/src/Components/blazor/benchmarks/Microsoft.AspNetCore.Blazor.E2EPerformance/Microsoft.AspNetCore.Blazor.E2EPerformance.csproj index 7e93b792fb..b59fcb2b3c 100644 --- a/src/Components/blazor/benchmarks/Microsoft.AspNetCore.Blazor.E2EPerformance/Microsoft.AspNetCore.Blazor.E2EPerformance.csproj +++ b/src/Components/blazor/benchmarks/Microsoft.AspNetCore.Blazor.E2EPerformance/Microsoft.AspNetCore.Blazor.E2EPerformance.csproj @@ -2,10 +2,6 @@ netstandard2.0 - - - dotnet - run --project ../../../blazor/src/Microsoft.AspNetCore.Blazor.Cli serve @@ -15,4 +11,8 @@ + + + + diff --git a/src/Components/blazor/samples/HostedInAspNet.Client/HostedInAspNet.Client.csproj b/src/Components/blazor/samples/HostedInAspNet.Client/HostedInAspNet.Client.csproj index cf91951b81..07f6ccedb7 100644 --- a/src/Components/blazor/samples/HostedInAspNet.Client/HostedInAspNet.Client.csproj +++ b/src/Components/blazor/samples/HostedInAspNet.Client/HostedInAspNet.Client.csproj @@ -12,4 +12,8 @@ + + + + diff --git a/src/Components/blazor/samples/HostedInAspNet.Server/HostedInAspNet.Server.csproj b/src/Components/blazor/samples/HostedInAspNet.Server/HostedInAspNet.Server.csproj index 4c59a6d2c8..4a72bd82a7 100644 --- a/src/Components/blazor/samples/HostedInAspNet.Server/HostedInAspNet.Server.csproj +++ b/src/Components/blazor/samples/HostedInAspNet.Server/HostedInAspNet.Server.csproj @@ -1,7 +1,18 @@ - + netcoreapp3.0 + + + false @@ -13,4 +24,8 @@ + + + + diff --git a/src/Components/blazor/samples/MonoSanity/MonoSanity.csproj b/src/Components/blazor/samples/MonoSanity/MonoSanity.csproj index 503326e547..266f7976ca 100644 --- a/src/Components/blazor/samples/MonoSanity/MonoSanity.csproj +++ b/src/Components/blazor/samples/MonoSanity/MonoSanity.csproj @@ -6,7 +6,6 @@ - diff --git a/src/Components/blazor/samples/MonoSanityClient/MonoSanityClient.csproj b/src/Components/blazor/samples/MonoSanityClient/MonoSanityClient.csproj index 72f20a8fc8..f05ca817b0 100644 --- a/src/Components/blazor/samples/MonoSanityClient/MonoSanityClient.csproj +++ b/src/Components/blazor/samples/MonoSanityClient/MonoSanityClient.csproj @@ -13,4 +13,8 @@ + + + + diff --git a/src/Components/blazor/samples/StandaloneApp/StandaloneApp.csproj b/src/Components/blazor/samples/StandaloneApp/StandaloneApp.csproj index 82b4494aad..b59fcb2b3c 100644 --- a/src/Components/blazor/samples/StandaloneApp/StandaloneApp.csproj +++ b/src/Components/blazor/samples/StandaloneApp/StandaloneApp.csproj @@ -2,10 +2,6 @@ netstandard2.0 - - - dotnet - run --project ../../src/Microsoft.AspNetCore.Blazor.Cli serve @@ -15,4 +11,8 @@ + + + + diff --git a/src/Components/blazor/src/Microsoft.AspNetCore.Blazor.Cli/Commands/ServeCommand.cs b/src/Components/blazor/src/Microsoft.AspNetCore.Blazor.Cli/Commands/ServeCommand.cs index ce16353a74..ae7a4d671a 100644 --- a/src/Components/blazor/src/Microsoft.AspNetCore.Blazor.Cli/Commands/ServeCommand.cs +++ b/src/Components/blazor/src/Microsoft.AspNetCore.Blazor.Cli/Commands/ServeCommand.cs @@ -3,19 +3,30 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.CommandLineUtils; -using System; -using System.Diagnostics; -using System.Text.RegularExpressions; namespace Microsoft.AspNetCore.Blazor.Cli.Commands { - class ServeCommand + internal class ServeCommand : CommandLineApplication { - public static void Command(CommandLineApplication command) - { - var remainingArgs = command.RemainingArguments.ToArray(); + public ServeCommand(CommandLineApplication parent) - Server.Program.BuildWebHost(remainingArgs).Run(); + // We pass arbitrary arguments through to the ASP.NET Core configuration + : base(throwOnUnexpectedArg: false) + { + Parent = parent; + + Name = "serve"; + Description = "Serve requests to a Blazor application"; + + HelpOption("-?|-h|--help"); + + OnExecute(Execute); + } + + private int Execute() + { + Server.Program.BuildWebHost(RemainingArguments.ToArray()).Run(); + return 0; } } } diff --git a/src/Components/blazor/src/Microsoft.AspNetCore.Blazor.Cli/Program.cs b/src/Components/blazor/src/Microsoft.AspNetCore.Blazor.Cli/Program.cs index 288715da4b..dcc71099b1 100644 --- a/src/Components/blazor/src/Microsoft.AspNetCore.Blazor.Cli/Program.cs +++ b/src/Components/blazor/src/Microsoft.AspNetCore.Blazor.Cli/Program.cs @@ -1,11 +1,8 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.AspNetCore.Hosting; -using System; -using System.Linq; -using Microsoft.Extensions.CommandLineUtils; using Microsoft.AspNetCore.Blazor.Cli.Commands; +using Microsoft.Extensions.CommandLineUtils; namespace Microsoft.AspNetCore.Blazor.Cli { @@ -13,22 +10,30 @@ namespace Microsoft.AspNetCore.Blazor.Cli { static int Main(string[] args) { - var app = new CommandLineApplication + var app = new CommandLineApplication(throwOnUnexpectedArg: false) { Name = "blazor-cli" }; app.HelpOption("-?|-h|--help"); - app.Command("serve", ServeCommand.Command); + app.Commands.Add(new ServeCommand(app)); - if (args.Length > 0) - { - return app.Execute(args); - } - else + // A command is always required + app.OnExecute(() => { app.ShowHelp(); return 0; + }); + + try + { + return app.Execute(args); + } + catch (CommandParsingException cex) + { + app.Error.WriteLine(cex.Message); + app.ShowHelp(); + return 1; } } } diff --git a/src/Components/blazor/tooling/Microsoft.VisualStudio.BlazorExtension/Microsoft.VisualStudio.BlazorExtension.csproj b/src/Components/blazor/tooling/Microsoft.VisualStudio.BlazorExtension/Microsoft.VisualStudio.BlazorExtension.csproj index cc6bba7808..335871c2e4 100644 --- a/src/Components/blazor/tooling/Microsoft.VisualStudio.BlazorExtension/Microsoft.VisualStudio.BlazorExtension.csproj +++ b/src/Components/blazor/tooling/Microsoft.VisualStudio.BlazorExtension/Microsoft.VisualStudio.BlazorExtension.csproj @@ -1,7 +1,7 @@ - 15.0 + 16.0 $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) true @@ -130,20 +130,6 @@ - - Microsoft.AspNetCore.Components.Razor.Extensions - False - - - - - - - Microsoft.AspNetCore.Components.Razor.Extensions.dll - true - PreserveNewest - false - {b9f7f502-6dd2-4e77-8fd1-cbd76f695b26} Microsoft.VisualStudio.LanguageServices.Blazor @@ -159,16 +145,6 @@ PreserveNewest false - - - AngleSharp.dll - true - PreserveNewest - false - + + + + \ No newline at end of file diff --git a/src/Components/samples/ComponentsApp.Server/ComponentsApp.Server.csproj b/src/Components/samples/ComponentsApp.Server/ComponentsApp.Server.csproj index 53bfabb9f3..40d92c7295 100644 --- a/src/Components/samples/ComponentsApp.Server/ComponentsApp.Server.csproj +++ b/src/Components/samples/ComponentsApp.Server/ComponentsApp.Server.csproj @@ -6,7 +6,6 @@ - @@ -14,4 +13,8 @@ + + + + diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Build/Microsoft.AspNetCore.Components.Build.csproj b/src/Components/src/Microsoft.AspNetCore.Components.Build/Microsoft.AspNetCore.Components.Build.csproj index 322bd288d2..575361c53b 100644 --- a/src/Components/src/Microsoft.AspNetCore.Components.Build/Microsoft.AspNetCore.Components.Build.csproj +++ b/src/Components/src/Microsoft.AspNetCore.Components.Build/Microsoft.AspNetCore.Components.Build.csproj @@ -1,7 +1,7 @@ - netcoreapp3.0 + netcoreapp3.0 Build mechanism for ASP.NET Core Components. Exe true @@ -19,7 +19,6 @@ - @@ -31,10 +30,6 @@ - - - - @@ -60,20 +55,15 @@ repositorycommit=$(RepositoryCommit); - <_TargetFramework Include="$(TargetFrameworks)" /> + <_TargetFramework Include="$(TargetFramework)" /> - - - - - diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Build/Microsoft.AspNetCore.Components.Build.nuspec b/src/Components/src/Microsoft.AspNetCore.Components.Build/Microsoft.AspNetCore.Components.Build.nuspec index 3eb593da38..061cb6d862 100644 --- a/src/Components/src/Microsoft.AspNetCore.Components.Build/Microsoft.AspNetCore.Components.Build.nuspec +++ b/src/Components/src/Microsoft.AspNetCore.Components.Build/Microsoft.AspNetCore.Components.Build.nuspec @@ -13,14 +13,12 @@ true - - diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Build/ReferenceFromSource.props b/src/Components/src/Microsoft.AspNetCore.Components.Build/ReferenceFromSource.props index f524d0cc37..c084a0e196 100644 --- a/src/Components/src/Microsoft.AspNetCore.Components.Build/ReferenceFromSource.props +++ b/src/Components/src/Microsoft.AspNetCore.Components.Build/ReferenceFromSource.props @@ -1,4 +1,4 @@ - + + + dotnet + <_BlazorCliLocation>$(MSBuildThisFileDirectory)../../blazor/src/Microsoft.AspNetCore.Blazor.Cli/bin/$(Configuration)/netcoreapp3.0/dotnet-blazor.dll + exec $(_BlazorCliLocation) serve $(AdditionalRunArguments) + + - - diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Build/targets/RazorCompilation.targets b/src/Components/src/Microsoft.AspNetCore.Components.Build/targets/RazorCompilation.targets index 7d06e76551..08386d7de3 100644 --- a/src/Components/src/Microsoft.AspNetCore.Components.Build/targets/RazorCompilation.targets +++ b/src/Components/src/Microsoft.AspNetCore.Components.Build/targets/RazorCompilation.targets @@ -1,436 +1,36 @@ + + This file now contains some *very temporary* settings to make projects + that use components use similar defaults to 2.X-based Blazor projects. + --> - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + <_EnableAllInclusiveRazorSdk>true + 3.0 + MVC-3.0 + false + false + false - - - - <_AngleSharpAssemblyPath>$(BlazorToolsDir)AngleSharp.dll - <_BlazorExtensionAssemblyPath>$(BlazorToolsDir)Microsoft.AspNetCore.Components.Razor.Extensions.dll - - - false - - Experimental - - - 0.1 - Blazor-$(BlazorLanguageVersion) - BlazorDeclaration-$(BlazorLanguageVersion) - $(BlazorDefinitionConfiguration) - - - - - <_BlazorGenerateDeclarationContent Include="@(Content->WithMetadataValue('Extension', '.cshtml'))" /> - - MSBuild:BlazorGenerateDeclaration - Never - - - - - - - Blazor-$(BlazorLanguageVersion);Blazor.AngleSharp-$(BlazorLanguageVersion);$(CustomRazorExtension) + + MVC-3.0;$(CustomRazorExtension) - - Blazor-$(BlazorLanguageVersion)Blazor.AngleSharp-$(BlazorLanguageVersion);$(CustomRazorExtension) - - - - AngleSharp - $(_AngleSharpAssemblyPath) + + Microsoft.AspNetCore.Mvc.Razor.Extensions + $(RazorSdkDirectoryRoot)extensions\mvc-3-0\Microsoft.AspNetCore.Mvc.Razor.Extensions.dll - - Microsoft.AspNetCore.Components.Razor.Extensions - $(_BlazorExtensionAssemblyPath) - - - - <_BlazorTempAssembly Include="$(IntermediateOutputPath)BlazorTemp\$(TargetName).dll" /> - - - + - - - _DefineBlazorPaths; - _ResolveBlazorInputs; - _AssignBlazorGenerateTargetPaths; - _HashBlazorGenerateInputs; - - - BlazorGenerateDeclaration; - BlazorResolveComponents; - - - - - - - - <_BlazorGenerateDeclarationComponentManifest>$(IntermediateOutputPath)Blazor.declaration.components.json - <_BlazorGenerateDefinitionComponentManifest>$(IntermediateOutputPath)Blazor.definition.components.json - <_BlazorComponentInputCache>$(IntermediateOutputPath)Blazor.components.input.cache - - - - + - + - - - - - - - - - - $(IntermediateOutputPath)$([System.IO.Path]::ChangeExtension('%(BlazorGenerateWithTargetPath.TargetPath)', 'g.i.cs')) - - - $(IntermediateOutputPath)$([System.IO.Path]::ChangeExtension('%(BlazorGenerateWithTargetPath.TargetPath)', 'g.cs')) - - - - - - - %(Identity) - - - - - - - - - - - - <_BlazorGenerateInputsHash> - <_BlazorGenerateInputsHashFile>$(IntermediateOutputPath)Blazor.inputs.txt - - - - - - - - - - - - - - - - - - - - <_BlazorGenerateDeclarationWithTargetPath Include="@(BlazorGenerateWithTargetPath)"> - %(GeneratedDeclaration) - - <_BlazorDeclarationConfiguration Include="@(RazorConfiguration->WithMetadataValue('Identity', '$(BlazorDeclarationConfiguration)'))" /> - - - - - - - - - - - - - - - - - - - - <_BlazorReferencePathWithRefAssemblies Include="@(ReferencePathWithRefAssemblies)" /> - <_BlazorReferencePathWithRefAssemblies Include="%(_BlazorTempAssembly.FullPath)" Condition="Exists('%(_BlazorTempAssembly.FullPath)')" /> - - - - <_BlazorDeclarationConfiguration Include="@(RazorConfiguration->WithMetadataValue('Identity', '$(BlazorDeclarationConfiguration)'))" /> - - - - - - - - - - - - - - - - - - - - <_BlazorGenerateDefinitionWithTargetPath Include="@(BlazorGenerateWithTargetPath)"> - %(GeneratedDefinition) - - <_BlazorDefinitionConfiguration Include="@(RazorConfiguration->WithMetadataValue('Identity', '$(BlazorDefinitionConfiguration)'))" /> - - - - - - - - - - - - - - - - - - - - - - - $(NoWarn);1701;1702 - - - - - $(NoWarn);2008 - - - - - - - - - - - $(AppConfig) - - - - - false - - - - - - - - - - true - - - - - - - - - - - diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BindLoweringPass.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BindLoweringPass.cs deleted file mode 100644 index 92c8661eeb..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BindLoweringPass.cs +++ /dev/null @@ -1,519 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class BindLoweringPass : IntermediateNodePassBase, IRazorOptimizationPass - { - // Run after event handler pass - public override int Order => 100; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var @namespace = documentNode.FindPrimaryNamespace(); - var @class = documentNode.FindPrimaryClass(); - if (@namespace == null || @class == null) - { - // Nothing to do, bail. We can't function without the standard structure. - return; - } - - // For each bind *usage* we need to rewrite the tag helper node to map to basic constructs. - var references = documentNode.FindDescendantReferences(); - - var parents = new HashSet(); - for (var i = 0; i < references.Count; i++) - { - parents.Add(references[i].Parent); - } - - foreach (var parent in parents) - { - ProcessDuplicates(parent); - } - - for (var i = 0; i < references.Count; i++) - { - var reference = references[i]; - var node = (TagHelperPropertyIntermediateNode)reference.Node; - - if (!reference.Parent.Children.Contains(node)) - { - // This node was removed as a duplicate, skip it. - continue; - } - - if (node.TagHelper.IsBindTagHelper() && node.AttributeName.StartsWith("bind")) - { - // Workaround for https://github.com/aspnet/Blazor/issues/703 - var rewritten = RewriteUsage(reference.Parent, node); - reference.Remove(); - - for (var j = 0; j < rewritten.Length; j++) - { - reference.Parent.Children.Add(rewritten[j]); - } - } - } - } - - private void ProcessDuplicates(IntermediateNode node) - { - // Reverse order because we will remove nodes. - // - // Each 'property' node could be duplicated if there are multiple tag helpers that match that - // particular attribute. This is common in our approach, which relies on 'fallback' tag helpers - // that overlap with more specific ones. - for (var i = node.Children.Count - 1; i >= 0; i--) - { - // For each usage of the general 'fallback' bind tag helper, it could duplicate - // the usage of a more specific one. Look for duplicates and remove the fallback. - var attribute = node.Children[i] as TagHelperPropertyIntermediateNode; - if (attribute != null && - attribute.TagHelper != null && - attribute.TagHelper.IsFallbackBindTagHelper()) - { - for (var j = 0; j < node.Children.Count; j++) - { - var duplicate = node.Children[j] as TagHelperPropertyIntermediateNode; - if (duplicate != null && - duplicate.TagHelper != null && - duplicate.TagHelper.IsBindTagHelper() && - duplicate.AttributeName == attribute.AttributeName && - !object.ReferenceEquals(attribute, duplicate)) - { - // Found a duplicate - remove the 'fallback' in favor of the - // more specific tag helper. - node.Children.RemoveAt(i); - break; - } - } - } - - // Also treat the general as a 'fallback' for that case and remove it. - // This is a workaround for a limitation where you can't write a tag helper that binds only - // when a specific attribute is **not** present. - if (attribute != null && - attribute.TagHelper != null && - attribute.TagHelper.IsInputElementFallbackBindTagHelper()) - { - for (var j = 0; j < node.Children.Count; j++) - { - var duplicate = node.Children[j] as TagHelperPropertyIntermediateNode; - if (duplicate != null && - duplicate.TagHelper != null && - duplicate.TagHelper.IsInputElementBindTagHelper() && - duplicate.AttributeName == attribute.AttributeName && - !object.ReferenceEquals(attribute, duplicate)) - { - // Found a duplicate - remove the 'fallback' input tag helper in favor of the - // more specific tag helper. - node.Children.RemoveAt(i); - break; - } - } - } - } - - // If we still have duplicates at this point then they are genuine conflicts. - var duplicates = node.Children - .OfType() - .GroupBy(p => p.AttributeName) - .Where(g => g.Count() > 1); - - foreach (var duplicate in duplicates) - { - node.Diagnostics.Add(BlazorDiagnosticFactory.CreateBindAttribute_Duplicates( - node.Source, - duplicate.Key, - duplicate.ToArray())); - foreach (var property in duplicate) - { - node.Children.Remove(property); - } - } - } - - private IntermediateNode[] RewriteUsage(IntermediateNode parent, TagHelperPropertyIntermediateNode node) - { - // Bind works similarly to a macro, it always expands to code that the user could have written. - // - // For the nodes that are related to the bind-attribute rewrite them to look like a pair of - // 'normal' HTML attributes similar to the following transformation. - // - // Input: - // Output: - // - // This means that the expression that appears inside of 'bind' must be an LValue or else - // there will be errors. In general the errors that come from C# in this case are good enough - // to understand the problem. - // - // The BindMethods calls are required in this case because to give us a good experience. They - // use overloading to ensure that can get an Action that will convert and set an arbitrary - // value. - // - // We also assume that the element will be treated as a component for now because - // multiple passes handle 'special' tag helpers. We have another pass that translates - // a tag helper node back into 'regular' element when it doesn't have an associated component - if (!TryComputeAttributeNames( - parent, - node, - node.AttributeName, - out var valueAttributeName, - out var changeAttributeName, - out var valueAttribute, - out var changeAttribute)) - { - // Skip anything we can't understand. It's important that we don't crash, that will bring down - // the build. - node.Diagnostics.Add(BlazorDiagnosticFactory.CreateBindAttribute_InvalidSyntax( - node.Source, - node.AttributeName)); - return new[] { node }; - } - - var original = GetAttributeContent(node); - if (string.IsNullOrEmpty(original.Content)) - { - // This can happen in error cases, the parser will already have flagged this - // as an error, so ignore it. - return new[] { node }; - } - - // Look for a matching format node. If we find one then we need to pass the format into the - // two nodes we generate. - IntermediateToken format = null; - if (TryGetFormatNode( - parent, - node, - valueAttributeName, - out var formatNode)) - { - // Don't write the format out as its own attribute, just capture it as a string - // or expression. - parent.Children.Remove(formatNode); - format = GetAttributeContent(formatNode); - } - - // Now rewrite the content of the value node to look like: - // - // BindMethods.GetValue() OR - // BindMethods.GetValue(, ) - var valueExpressionTokens = new List(); - valueExpressionTokens.Add(new IntermediateToken() - { - Content = $"{ComponentsApi.BindMethods.GetValue}(", - Kind = TokenKind.CSharp - }); - valueExpressionTokens.Add(original); - if (!string.IsNullOrEmpty(format?.Content)) - { - valueExpressionTokens.Add(new IntermediateToken() - { - Content = ", ", - Kind = TokenKind.CSharp, - }); - valueExpressionTokens.Add(format); - } - valueExpressionTokens.Add(new IntermediateToken() - { - Content = ")", - Kind = TokenKind.CSharp, - }); - - // Now rewrite the content of the change-handler node. There are two cases we care about - // here. If it's a component attribute, then don't use the 'BindMethods wrapper. We expect - // component attributes to always 'match' on type. - // - // __value => = __value - // - // For general DOM attributes, we need to be able to create a delegate that accepts UIEventArgs - // so we use BindMethods.SetValueHandler - // - // BindMethods.SetValueHandler(__value => = __value, ) OR - // BindMethods.SetValueHandler(__value => = __value, , ) - // - // Note that the linemappings here are applied to the value attribute, not the change attribute. - - string changeExpressionContent = null; - if (changeAttribute == null && format == null) - { - changeExpressionContent = $"{ComponentsApi.BindMethods.SetValueHandler}(__value => {original.Content} = __value, {original.Content})"; - } - else if (changeAttribute == null && format != null) - { - changeExpressionContent = $"{ComponentsApi.BindMethods.SetValueHandler}(__value => {original.Content} = __value, {original.Content}, {format.Content})"; - } - else - { - changeExpressionContent = $"__value => {original.Content} = __value"; - } - var changeExpressionTokens = new List() - { - new IntermediateToken() - { - Content = changeExpressionContent, - Kind = TokenKind.CSharp - } - }; - - if (parent is HtmlElementIntermediateNode) - { - var valueNode = new HtmlAttributeIntermediateNode() - { - AttributeName = valueAttributeName, - Source = node.Source, - - Prefix = valueAttributeName + "=\"", - Suffix = "\"", - }; - - for (var i = 0; i < node.Diagnostics.Count; i++) - { - valueNode.Diagnostics.Add(node.Diagnostics[i]); - } - - valueNode.Children.Add(new CSharpExpressionAttributeValueIntermediateNode()); - for (var i = 0; i < valueExpressionTokens.Count; i++) - { - valueNode.Children[0].Children.Add(valueExpressionTokens[i]); - } - - var changeNode = new HtmlAttributeIntermediateNode() - { - AttributeName = changeAttributeName, - Source = node.Source, - - Prefix = changeAttributeName + "=\"", - Suffix = "\"", - }; - - changeNode.Children.Add(new CSharpExpressionAttributeValueIntermediateNode()); - for (var i = 0; i < changeExpressionTokens.Count; i++) - { - changeNode.Children[0].Children.Add(changeExpressionTokens[i]); - } - - return new[] { valueNode, changeNode }; - } - else - { - var valueNode = new ComponentAttributeExtensionNode(node) - { - AttributeName = valueAttributeName, - BoundAttribute = valueAttribute, // Might be null if it doesn't match a component attribute - PropertyName = valueAttribute?.GetPropertyName(), - TagHelper = valueAttribute == null ? null : node.TagHelper, - TypeName = valueAttribute?.IsWeaklyTyped() == false ? valueAttribute.TypeName : null, - }; - - valueNode.Children.Clear(); - valueNode.Children.Add(new CSharpExpressionIntermediateNode()); - for (var i = 0; i < valueExpressionTokens.Count; i++) - { - valueNode.Children[0].Children.Add(valueExpressionTokens[i]); - } - - var changeNode = new ComponentAttributeExtensionNode(node) - { - AttributeName = changeAttributeName, - BoundAttribute = changeAttribute, // Might be null if it doesn't match a component attribute - PropertyName = changeAttribute?.GetPropertyName(), - TagHelper = changeAttribute == null ? null : node.TagHelper, - TypeName = changeAttribute?.IsWeaklyTyped() == false ? changeAttribute.TypeName : null, - }; - - changeNode.Children.Clear(); - changeNode.Children.Add(new CSharpExpressionIntermediateNode()); - for (var i = 0; i < changeExpressionTokens.Count; i++) - { - changeNode.Children[0].Children.Add(changeExpressionTokens[i]); - } - - return new[] { valueNode, changeNode }; - } - } - - private bool TryParseBindAttribute( - string attributeName, - out string valueAttributeName, - out string changeAttributeName) - { - valueAttributeName = null; - changeAttributeName = null; - - if (!attributeName.StartsWith("bind")) - { - return false; - } - - if (attributeName == "bind") - { - return true; - } - - var segments = attributeName.Split('-'); - for (var i = 0; i < segments.Length; i++) - { - if (string.IsNullOrEmpty(segments[i])) - { - return false; - } - } - - switch (segments.Length) - { - case 2: - valueAttributeName = segments[1]; - return true; - - case 3: - changeAttributeName = segments[2]; - valueAttributeName = segments[1]; - return true; - - default: - return false; - } - } - - // Attempts to compute the attribute names that should be used for an instance of 'bind'. - private bool TryComputeAttributeNames( - IntermediateNode parent, - TagHelperPropertyIntermediateNode node, - string attributeName, - out string valueAttributeName, - out string changeAttributeName, - out BoundAttributeDescriptor valueAttribute, - out BoundAttributeDescriptor changeAttribute) - { - valueAttribute = null; - changeAttribute = null; - - // Even though some of our 'bind' tag helpers specify the attribute names, they - // should still satisfy one of the valid syntaxes. - if (!TryParseBindAttribute(attributeName, out valueAttributeName, out changeAttributeName)) - { - return false; - } - - // The tag helper specifies attribute names, they should win. - // - // This handles cases like where the tag helper is - // generated to match a specific tag and has metadata that identify the attributes. - // - // We expect 1 bind tag helper per-node. - valueAttributeName = node.TagHelper.GetValueAttributeName() ?? valueAttributeName; - changeAttributeName = node.TagHelper.GetChangeAttributeName() ?? changeAttributeName; - - // We expect 0-1 components per-node. - var componentTagHelper = (parent as ComponentExtensionNode)?.Component; - if (componentTagHelper == null) - { - // If it's not a component node then there isn't too much else to figure out. - return attributeName != null && changeAttributeName != null; - } - - // If this is a component, we need an attribute name for the value. - if (attributeName == null) - { - return false; - } - - // If this is a component, then we can infer 'Changed' as the name - // of the change event. - if (changeAttributeName == null) - { - changeAttributeName = valueAttributeName + "Changed"; - } - - for (var i = 0; i < componentTagHelper.BoundAttributes.Count; i++) - { - var attribute = componentTagHelper.BoundAttributes[i]; - - if (string.Equals(valueAttributeName, attribute.Name)) - { - valueAttribute = attribute; - } - - if (string.Equals(changeAttributeName, attribute.Name)) - { - changeAttribute = attribute; - } - } - - return true; - } - - private bool TryGetFormatNode( - IntermediateNode node, - TagHelperPropertyIntermediateNode attributeNode, - string valueAttributeName, - out TagHelperPropertyIntermediateNode formatNode) - { - for (var i = 0; i < node.Children.Count; i++) - { - var child = node.Children[i] as TagHelperPropertyIntermediateNode; - if (child != null && - child.TagHelper != null && - child.TagHelper == attributeNode.TagHelper && - child.AttributeName == "format-" + valueAttributeName) - { - formatNode = child; - return true; - } - } - - formatNode = null; - return false; - } - - private static IntermediateToken GetAttributeContent(TagHelperPropertyIntermediateNode node) - { - var template = node.FindDescendantNodes().FirstOrDefault(); - if (template != null) - { - // See comments in TemplateDiagnosticPass - node.Diagnostics.Add(BlazorDiagnosticFactory.Create_TemplateInvalidLocation(template.Source)); - return new IntermediateToken() { Kind = TokenKind.CSharp, Content = string.Empty, }; - } - - if (node.Children[0] is HtmlContentIntermediateNode htmlContentNode) - { - // This case can be hit for a 'string' attribute. We want to turn it into - // an expression. - var content = "\"" + string.Join(string.Empty, htmlContentNode.Children.OfType().Select(t => t.Content)) + "\""; - return new IntermediateToken() { Kind = TokenKind.CSharp, Content = content }; - } - else if (node.Children[0] is CSharpExpressionIntermediateNode cSharpNode) - { - // This case can be hit when the attribute has an explicit @ inside, which - // 'escapes' any special sugar we provide for codegen. - return GetToken(cSharpNode); - } - else - { - // This is the common case for 'mixed' content - return GetToken(node); - } - - // In error cases we won't have a single token, but we still want to generate the code. - IntermediateToken GetToken(IntermediateNode parent) - { - return - parent.Children.Count == 1 ? (IntermediateToken)parent.Children[0] : new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = string.Join(string.Empty, parent.Children.OfType().Select(t => t.Content)), - }; - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BindTagHelperDescriptorProvider.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BindTagHelperDescriptorProvider.cs deleted file mode 100644 index c81f3c09e4..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BindTagHelperDescriptorProvider.cs +++ /dev/null @@ -1,492 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.Razor; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class BindTagHelperDescriptorProvider : ITagHelperDescriptorProvider - { - // Run after the component tag helper provider, because we need to see the results. - public int Order { get; set; } = 1000; - - public RazorEngine Engine { get; set; } - - public void Execute(TagHelperDescriptorProviderContext context) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - // This provider returns tag helper information for 'bind' which doesn't necessarily - // map to any real component. Bind behaviors more like a macro, which can map a single LValue to - // both a 'value' attribute and a 'value changed' attribute. - // - // User types: - // - // - // We generate: - // - // - // This isn't very different from code the user could write themselves - thus the pronouncement - // that bind is very much like a macro. - // - // A lot of the value that provide in this case is that the associations between the - // elements, and the attributes aren't straightforward. - // - // For instance on we need to listen to 'value' and 'onchange', - // but on - // and so we have a special case for input elements and their type attributes. - // - // 4. For components, we have a bit of a special case. We can infer a syntax that matches - // case #2 based on property names. So if a component provides both 'Value' and 'ValueChanged' - // we will turn that into an instance of bind. - // - // So case #1 here is the most general case. Case #2 and #3 are data-driven based on attribute data - // we have. Case #4 is data-driven based on component definitions. - // - // We provide a good set of attributes that map to the HTML dom. This set is user extensible. - var compilation = context.GetCompilation(); - if (compilation == null) - { - return; - } - - var bindMethods = compilation.GetTypeByMetadataName(ComponentsApi.BindMethods.FullTypeName); - if (bindMethods == null) - { - // If we can't find BindMethods, then just bail. We won't be able to compile the - // generated code anyway. - return; - } - - // Tag Helper defintion for case #1. This is the most general case. - context.Results.Add(CreateFallbackBindTagHelper()); - - // For case #2 & #3 we have a whole bunch of attribute entries on BindMethods that we can use - // to data-drive the definitions of these tag helpers. - var elementBindData = GetElementBindData(compilation); - - // Case #2 & #3 - foreach (var tagHelper in CreateElementBindTagHelpers(elementBindData)) - { - context.Results.Add(tagHelper); - } - - // For case #4 we look at the tag helpers that were already created corresponding to components - // and pattern match on properties. - foreach (var tagHelper in CreateComponentBindTagHelpers(context.Results)) - { - context.Results.Add(tagHelper); - } - } - - private TagHelperDescriptor CreateFallbackBindTagHelper() - { - var builder = TagHelperDescriptorBuilder.Create(BlazorMetadata.Bind.TagHelperKind, "Bind", ComponentsApi.AssemblyName); - builder.Documentation = Resources.BindTagHelper_Fallback_Documentation; - - builder.Metadata.Add(BlazorMetadata.SpecialKindKey, BlazorMetadata.Bind.TagHelperKind); - builder.Metadata[TagHelperMetadata.Runtime.Name] = BlazorMetadata.Bind.RuntimeName; - builder.Metadata[BlazorMetadata.Bind.FallbackKey] = bool.TrueString; - - // WTE has a bug in 15.7p1 where a Tag Helper without a display-name that looks like - // a C# property will crash trying to create the toolips. - builder.SetTypeName("Microsoft.AspNetCore.Components.Bind"); - - builder.TagMatchingRule(rule => - { - rule.TagName = "*"; - rule.Attribute(attribute => - { - attribute.Name = "bind-"; - attribute.NameComparisonMode = RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch; - }); - }); - - builder.BindAttribute(attribute => - { - attribute.Documentation = Resources.BindTagHelper_Fallback_Documentation; - - attribute.Name = "bind-..."; - attribute.AsDictionary("bind-", typeof(object).FullName); - - // WTE has a bug 15.7p1 where a Tag Helper without a display-name that looks like - // a C# property will crash trying to create the toolips. - attribute.SetPropertyName("Bind"); - attribute.TypeName = "System.Collections.Generic.Dictionary"; - }); - - builder.BindAttribute(attribute => - { - attribute.Documentation = Resources.BindTagHelper_Fallback_Format_Documentation; - - attribute.Name = "format-..."; - attribute.AsDictionary("format-", typeof(string).FullName); - - // WTE has a bug 15.7p1 where a Tag Helper without a display-name that looks like - // a C# property will crash trying to create the toolips. - attribute.SetPropertyName("Format"); - attribute.TypeName = "System.Collections.Generic.Dictionary"; - }); - - return builder.Build(); - } - - private List GetElementBindData(Compilation compilation) - { - var bindElement = compilation.GetTypeByMetadataName(ComponentsApi.BindElementAttribute.FullTypeName); - var bindInputElement = compilation.GetTypeByMetadataName(ComponentsApi.BindInputElementAttribute.FullTypeName); - - if (bindElement == null || bindInputElement == null) - { - // This won't likely happen, but just in case. - return new List(); - } - - var types = new List(); - var visitor = new BindElementDataVisitor(types); - - // Visit the primary output of this compilation, as well as all references. - visitor.Visit(compilation.Assembly); - foreach (var reference in compilation.References) - { - // We ignore .netmodules here - there really isn't a case where they are used by user code - // even though the Roslyn APIs all support them. - if (compilation.GetAssemblyOrModuleSymbol(reference) is IAssemblySymbol assembly) - { - visitor.Visit(assembly); - } - } - - var results = new List(); - - for (var i = 0; i < types.Count; i++) - { - var type = types[i]; - var attributes = type.GetAttributes(); - - // Not handling duplicates here for now since we're the primary ones extending this. - // If we see users adding to the set of 'bind' constructs we will want to add deduplication - // and potentially diagnostics. - for (var j = 0; j < attributes.Length; j++) - { - var attribute = attributes[j]; - - if (attribute.AttributeClass == bindElement) - { - results.Add(new ElementBindData( - type.ContainingAssembly.Name, - type.ToDisplayString(), - (string)attribute.ConstructorArguments[0].Value, - null, - (string)attribute.ConstructorArguments[1].Value, - (string)attribute.ConstructorArguments[2].Value, - (string)attribute.ConstructorArguments[3].Value)); - } - else if (attribute.AttributeClass == bindInputElement) - { - results.Add(new ElementBindData( - type.ContainingAssembly.Name, - type.ToDisplayString(), - "input", - (string)attribute.ConstructorArguments[0].Value, - (string)attribute.ConstructorArguments[1].Value, - (string)attribute.ConstructorArguments[2].Value, - (string)attribute.ConstructorArguments[3].Value)); - } - } - } - - return results; - } - private List CreateElementBindTagHelpers(List data) - { - var results = new List(); - - for (var i = 0; i < data.Count; i++) - { - var entry = data[i]; - - var name = entry.Suffix == null ? "Bind" : "Bind_" + entry.Suffix; - var attributeName = entry.Suffix == null ? "bind" : "bind-" + entry.Suffix; - - var formatName = entry.Suffix == null ? "Format_" + entry.ValueAttribute : "Format_" + entry.Suffix; - var formatAttributeName = entry.Suffix == null ? "format-" + entry.ValueAttribute : "format-" + entry.Suffix; - - var builder = TagHelperDescriptorBuilder.Create(BlazorMetadata.Bind.TagHelperKind, name, entry.Assembly); - builder.Documentation = string.Format( - Resources.BindTagHelper_Element_Documentation, - entry.ValueAttribute, - entry.ChangeAttribute); - - builder.Metadata.Add(BlazorMetadata.SpecialKindKey, BlazorMetadata.Bind.TagHelperKind); - builder.Metadata[TagHelperMetadata.Runtime.Name] = BlazorMetadata.Bind.RuntimeName; - builder.Metadata[BlazorMetadata.Bind.ValueAttribute] = entry.ValueAttribute; - builder.Metadata[BlazorMetadata.Bind.ChangeAttribute] = entry.ChangeAttribute; - - if (entry.TypeAttribute != null) - { - // For entries that map to the element, we need to be able to know - // the difference between and for which we - // want to use the same attributes. - // - // We provide a tag helper for that should match all input elements, - // but we only want it to be used when a more specific one is used. - // - // Therefore we use this metadata to know which one is more specific when two - // tag helpers match. - builder.Metadata[BlazorMetadata.Bind.TypeAttribute] = entry.TypeAttribute; - } - - // WTE has a bug in 15.7p1 where a Tag Helper without a display-name that looks like - // a C# property will crash trying to create the toolips. - builder.SetTypeName(entry.TypeName); - - builder.TagMatchingRule(rule => - { - rule.TagName = entry.Element; - if (entry.TypeAttribute != null) - { - rule.Attribute(a => - { - a.Name = "type"; - a.NameComparisonMode = RequiredAttributeDescriptor.NameComparisonMode.FullMatch; - a.Value = entry.TypeAttribute; - a.ValueComparisonMode = RequiredAttributeDescriptor.ValueComparisonMode.FullMatch; - }); - } - - rule.Attribute(a => - { - a.Name = attributeName; - a.NameComparisonMode = RequiredAttributeDescriptor.NameComparisonMode.FullMatch; - }); - }); - - builder.BindAttribute(a => - { - a.Documentation = string.Format( - Resources.BindTagHelper_Element_Documentation, - entry.ValueAttribute, - entry.ChangeAttribute); - - a.Name = attributeName; - a.TypeName = typeof(object).FullName; - - // WTE has a bug 15.7p1 where a Tag Helper without a display-name that looks like - // a C# property will crash trying to create the toolips. - a.SetPropertyName(name); - }); - - builder.BindAttribute(attribute => - { - attribute.Documentation = string.Format(Resources.BindTagHelper_Element_Format_Documentation, attributeName); - - attribute.Name = formatAttributeName; - attribute.TypeName = "System.String"; - - // WTE has a bug 15.7p1 where a Tag Helper without a display-name that looks like - // a C# property will crash trying to create the toolips. - attribute.SetPropertyName(formatName); - }); - - results.Add(builder.Build()); - } - - return results; - } - - private List CreateComponentBindTagHelpers(ICollection tagHelpers) - { - var results = new List(); - - foreach (var tagHelper in tagHelpers) - { - if (!tagHelper.IsComponentTagHelper()) - { - continue; - } - - // We want to create a 'bind' tag helper everywhere we see a pair of properties like `Foo`, `FooChanged` - // where `FooChanged` is a delegate and `Foo` is not. - // - // The easiest way to figure this out without a lot of backtracking is to look for `FooChanged` and then - // try to find a matching "Foo". - for (var i = 0; i < tagHelper.BoundAttributes.Count; i++) - { - var changeAttribute = tagHelper.BoundAttributes[i]; - if (!changeAttribute.Name.EndsWith("Changed") || !changeAttribute.IsDelegateProperty()) - { - continue; - } - - BoundAttributeDescriptor valueAttribute = null; - var valueAttributeName = changeAttribute.Name.Substring(0, changeAttribute.Name.Length - "Changed".Length); - for (var j = 0; j < tagHelper.BoundAttributes.Count; j++) - { - if (tagHelper.BoundAttributes[j].Name == valueAttributeName && !tagHelper.BoundAttributes[j].IsDelegateProperty()) - { - valueAttribute = tagHelper.BoundAttributes[j]; - break; - } - } - - if (valueAttribute == null) - { - // No matching attribute found. - continue; - } - - var builder = TagHelperDescriptorBuilder.Create(BlazorMetadata.Bind.TagHelperKind, tagHelper.Name, tagHelper.AssemblyName); - builder.DisplayName = tagHelper.DisplayName; - builder.Documentation = string.Format( - Resources.BindTagHelper_Component_Documentation, - valueAttribute.Name, - changeAttribute.Name); - - builder.Metadata.Add(BlazorMetadata.SpecialKindKey, BlazorMetadata.Bind.TagHelperKind); - builder.Metadata[TagHelperMetadata.Runtime.Name] = BlazorMetadata.Bind.RuntimeName; - builder.Metadata[BlazorMetadata.Bind.ValueAttribute] = valueAttribute.Name; - builder.Metadata[BlazorMetadata.Bind.ChangeAttribute] = changeAttribute.Name; - - // WTE has a bug 15.7p1 where a Tag Helper without a display-name that looks like - // a C# property will crash trying to create the toolips. - builder.SetTypeName(tagHelper.GetTypeName()); - - // Match the component and attribute name - builder.TagMatchingRule(rule => - { - rule.TagName = tagHelper.TagMatchingRules.Single().TagName; - rule.Attribute(attribute => - { - attribute.Name = "bind-" + valueAttribute.Name; - attribute.NameComparisonMode = RequiredAttributeDescriptor.NameComparisonMode.FullMatch; - }); - }); - - builder.BindAttribute(attribute => - { - attribute.Documentation = string.Format( - Resources.BindTagHelper_Component_Documentation, - valueAttribute.Name, - changeAttribute.Name); - - attribute.Name = "bind-" + valueAttribute.Name; - attribute.TypeName = valueAttribute.TypeName; - attribute.IsEnum = valueAttribute.IsEnum; - - // WTE has a bug 15.7p1 where a Tag Helper without a display-name that looks like - // a C# property will crash trying to create the toolips. - attribute.SetPropertyName(valueAttribute.GetPropertyName()); - }); - - results.Add(builder.Build()); - } - } - - return results; - } - - private struct ElementBindData - { - public ElementBindData( - string assembly, - string typeName, - string element, - string typeAttribute, - string suffix, - string valueAttribute, - string changeAttribute) - { - Assembly = assembly; - TypeName = typeName; - Element = element; - TypeAttribute = typeAttribute; - Suffix = suffix; - ValueAttribute = valueAttribute; - ChangeAttribute = changeAttribute; - } - - public string Assembly { get; } - public string TypeName { get; } - public string Element { get; } - public string TypeAttribute { get; } - public string Suffix { get; } - public string ValueAttribute { get; } - public string ChangeAttribute { get; } - } - - private class BindElementDataVisitor : SymbolVisitor - { - private List _results; - - public BindElementDataVisitor(List results) - { - _results = results; - } - - public override void VisitNamedType(INamedTypeSymbol symbol) - { - if (symbol.Name == "BindAttributes" && symbol.DeclaredAccessibility == Accessibility.Public) - { - _results.Add(symbol); - } - } - - public override void VisitNamespace(INamespaceSymbol symbol) - { - foreach (var member in symbol.GetMembers()) - { - Visit(member); - } - } - - public override void VisitAssembly(IAssemblySymbol symbol) - { - // This as a simple yet high-value optimization that excludes the vast majority of - // assemblies that (by definition) can't contain a component. - if (symbol.Name != null && !symbol.Name.StartsWith("System.", StringComparison.Ordinal)) - { - Visit(symbol.GlobalNamespace); - } - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorCSharpLoweringPhase.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorCSharpLoweringPhase.cs deleted file mode 100644 index 46802249b5..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorCSharpLoweringPhase.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class BlazorRazorCSharpLoweringPhase : RazorEnginePhaseBase, IRazorCSharpLoweringPhase - { - protected override void ExecuteCore(RazorCodeDocument codeDocument) - { - var documentNode = codeDocument.GetDocumentIntermediateNode(); - ThrowForMissingDocumentDependency(documentNode); -#pragma warning disable CS0618 - var writer = new DocumentWriterWorkaround().Create(documentNode.Target, documentNode.Options); -#pragma warning restore CS0618 - try - { - var cSharpDocument = writer.WriteDocument(codeDocument, documentNode); - codeDocument.SetCSharpDocument(cSharpDocument); - } - catch (RazorCompilerException ex) - { - // Currently the Blazor code generation has some 'fatal errors' that can cause code generation - // to fail completely. This class is here to make that implementation work gracefully. - var cSharpDocument = RazorCSharpDocument.Create("", documentNode.Options, new[] { ex.Diagnostic }); - codeDocument.SetCSharpDocument(cSharpDocument); - } - } - - private class DocumentWriterWorkaround : DocumentWriter - { - public override RazorCSharpDocument WriteDocument(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - throw new NotImplementedException(); - } - } - } -} \ No newline at end of file diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorCodeTarget.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorCodeTarget.cs deleted file mode 100644 index b5e2a7ac88..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorCodeTarget.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; - -namespace Microsoft.AspNetCore.Components.Razor -{ - /// - /// Directs a to use . - /// - internal class BlazorCodeTarget : CodeTarget - { - private readonly RazorCodeGenerationOptions _options; - - public BlazorCodeTarget(RazorCodeGenerationOptions options, IEnumerable extensions) - { - _options = options; - Extensions = extensions.ToArray(); - } - - public ICodeTargetExtension[] Extensions { get; } - - public override IntermediateNodeWriter CreateNodeWriter() - { - return _options.DesignTime ? (BlazorNodeWriter)new BlazorDesignTimeNodeWriter() : new BlazorRuntimeNodeWriter(); - } - - public override TExtension GetExtension() - { - for (var i = 0; i < Extensions.Length; i++) - { - var match = Extensions[i] as TExtension; - if (match != null) - { - return match; - } - } - - return null; - } - - public override bool HasExtension() - { - for (var i = 0; i < Extensions.Length; i++) - { - var match = Extensions[i] as TExtension; - if (match != null) - { - return true; - } - } - - return false; - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorDesignTimeNodeWriter.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorDesignTimeNodeWriter.cs deleted file mode 100644 index 0f84aeeffa..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorDesignTimeNodeWriter.cs +++ /dev/null @@ -1,775 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - // Based on the DesignTimeNodeWriter from Razor repo. - internal class BlazorDesignTimeNodeWriter : BlazorNodeWriter - { - private readonly ScopeStack _scopeStack = new ScopeStack(); - - private static readonly string DesignTimeVariable = "__o"; - - public override void WriteHtmlBlock(CodeRenderingContext context, HtmlBlockIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Do nothing - } - - public override void WriteHtmlElement(CodeRenderingContext context, HtmlElementIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - context.RenderChildren(node); - } - - public override void WriteUsingDirective(CodeRenderingContext context, UsingDirectiveIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - if (node.Source.HasValue) - { - using (context.CodeWriter.BuildLinePragma(node.Source.Value)) - { - context.AddSourceMappingFor(node); - context.CodeWriter.WriteUsing(node.Content); - } - } - else - { - context.CodeWriter.WriteUsing(node.Content); - } - } - - public override void WriteCSharpExpression(CodeRenderingContext context, CSharpExpressionIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - if (node.Children.Count == 0) - { - return; - } - - if (node.Source != null) - { - using (context.CodeWriter.BuildLinePragma(node.Source.Value)) - { - var offset = DesignTimeVariable.Length + " = ".Length; - context.CodeWriter.WritePadding(offset, node.Source, context); - context.CodeWriter.WriteStartAssignment(DesignTimeVariable); - - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.AddSourceMappingFor(token); - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the expression like a Template or another extension node. - context.RenderNode(node.Children[i]); - } - } - - context.CodeWriter.WriteLine(";"); - } - } - else - { - context.CodeWriter.WriteStartAssignment(DesignTimeVariable); - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the expression like a Template or another extension node. - context.RenderNode(node.Children[i]); - } - } - context.CodeWriter.WriteLine(";"); - } - } - - public override void WriteCSharpCode(CodeRenderingContext context, CSharpCodeIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - var isWhitespaceStatement = true; - for (var i = 0; i < node.Children.Count; i++) - { - var token = node.Children[i] as IntermediateToken; - if (token == null || !string.IsNullOrWhiteSpace(token.Content)) - { - isWhitespaceStatement = false; - break; - } - } - - IDisposable linePragmaScope = null; - if (node.Source != null) - { - if (!isWhitespaceStatement) - { - linePragmaScope = context.CodeWriter.BuildLinePragma(node.Source.Value); - } - - context.CodeWriter.WritePadding(0, node.Source.Value, context); - } - else if (isWhitespaceStatement) - { - // Don't write whitespace if there is no line mapping for it. - return; - } - - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.AddSourceMappingFor(token); - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the statement like an extension node. - context.RenderNode(node.Children[i]); - } - } - - if (linePragmaScope != null) - { - linePragmaScope.Dispose(); - } - else - { - context.CodeWriter.WriteLine(); - } - } - - public override void WriteHtmlAttribute(CodeRenderingContext context, HtmlAttributeIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - context.RenderChildren(node); - } - - public override void WriteHtmlAttributeValue(CodeRenderingContext context, HtmlAttributeValueIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Do nothing, this can't contain code. - } - - public override void WriteCSharpExpressionAttributeValue(CodeRenderingContext context, CSharpExpressionAttributeValueIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - if (node.Children.Count == 0) - { - return; - } - - var firstChild = node.Children[0]; - if (firstChild.Source != null) - { - using (context.CodeWriter.BuildLinePragma(firstChild.Source.Value)) - { - var offset = DesignTimeVariable.Length + " = ".Length; - context.CodeWriter.WritePadding(offset, firstChild.Source, context); - context.CodeWriter.WriteStartAssignment(DesignTimeVariable); - - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.AddSourceMappingFor(token); - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the expression like a Template or another extension node. - context.RenderNode(node.Children[i]); - } - } - - context.CodeWriter.WriteLine(";"); - } - } - else - { - context.CodeWriter.WriteStartAssignment(DesignTimeVariable); - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - if (token.Source != null) - { - context.AddSourceMappingFor(token); - } - - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the expression like a Template or another extension node. - context.RenderNode(node.Children[i]); - } - } - context.CodeWriter.WriteLine(";"); - } - } - - public override void WriteHtmlContent(CodeRenderingContext context, HtmlContentIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Do nothing - } - - public override void BeginWriteAttribute(CodeWriter codeWriter, string key) - { - if (codeWriter == null) - { - throw new ArgumentNullException(nameof(codeWriter)); - } - - if (key == null) - { - throw new ArgumentNullException(nameof(key)); - } - - codeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{nameof(ComponentsApi.RenderTreeBuilder.AddAttribute)}") - .Write("-1") - .WriteParameterSeparator() - .WriteStringLiteral(key) - .WriteParameterSeparator(); - } - - public override void WriteComponent(CodeRenderingContext context, ComponentExtensionNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - if (node.TypeInferenceNode == null) - { - // Writes something like: - // - // builder.OpenComponent(0); - // builder.AddAttribute(1, "Foo", ...); - // builder.AddAttribute(2, "ChildContent", ...); - // builder.AddElementCapture(3, (__value) => _field = __value); - // builder.CloseComponent(); - foreach (var typeArgument in node.TypeArguments) - { - context.RenderNode(typeArgument); - } - - foreach (var attribute in node.Attributes) - { - context.RenderNode(attribute); - } - - if (node.ChildContents.Any()) - { - foreach (var childContent in node.ChildContents) - { - context.RenderNode(childContent); - } - } - else - { - // We eliminate 'empty' child content when building the tree so that usage like - // '\r\n' doesn't create a child content. - // - // Consider what would happen if the user's cursor was inside the element. At - // design -time we want to render an empty lambda to provide proper scoping - // for any code that the user types. - context.RenderNode(new ComponentChildContentIntermediateNode() - { - TypeName = ComponentsApi.RenderFragment.FullTypeName, - }); - } - - foreach (var capture in node.Captures) - { - context.RenderNode(capture); - } - } - else - { - // When we're doing type inference, we can't write all of the code inline to initialize - // the component on the builder. We generate a method elsewhere, and then pass all of the information - // to that method. We pass in all of the attribute values + the sequence numbers. - // - // __Blazor.MyComponent.TypeInference.CreateMyComponent_0(builder, 0, 1, ..., 2, ..., 3, ....); - var attributes = node.Attributes.ToList(); - var childContents = node.ChildContents.ToList(); - var captures = node.Captures.ToList(); - var remaining = attributes.Count + childContents.Count + captures.Count; - - context.CodeWriter.Write(node.TypeInferenceNode.FullTypeName); - context.CodeWriter.Write("."); - context.CodeWriter.Write(node.TypeInferenceNode.MethodName); - context.CodeWriter.Write("("); - - context.CodeWriter.Write(_scopeStack.BuilderVarName); - context.CodeWriter.Write(", "); - - context.CodeWriter.Write("-1"); - context.CodeWriter.Write(", "); - - for (var i = 0; i < attributes.Count; i++) - { - context.CodeWriter.Write("-1"); - context.CodeWriter.Write(", "); - - // Don't type check generics, since we can't actually write the type name. - // The type checking with happen anyway since we defined a method and we're generating - // a call to it. - WriteComponentAttributeInnards(context, attributes[i], canTypeCheck: false); - - remaining--; - if (remaining > 0) - { - context.CodeWriter.Write(", "); - } - } - - for (var i = 0; i < childContents.Count; i++) - { - context.CodeWriter.Write("-1"); - context.CodeWriter.Write(", "); - - WriteComponentChildContentInnards(context, childContents[i]); - - remaining--; - if (remaining > 0) - { - context.CodeWriter.Write(", "); - } - } - - for (var i = 0; i < captures.Count; i++) - { - context.CodeWriter.Write("-1"); - context.CodeWriter.Write(", "); - - WriteReferenceCaptureInnards(context, captures[i], shouldTypeCheck: false); - - remaining--; - if (remaining > 0) - { - context.CodeWriter.Write(", "); - } - } - - context.CodeWriter.Write(");"); - context.CodeWriter.WriteLine(); - } - } - - public override void WriteComponentAttribute(CodeRenderingContext context, ComponentAttributeExtensionNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Looks like: - // __o = 17; - context.CodeWriter.Write(DesignTimeVariable); - context.CodeWriter.Write(" = "); - - // Following the same design pattern as the runtime codegen - WriteComponentAttributeInnards(context, node, canTypeCheck: true); - - context.CodeWriter.Write(";"); - context.CodeWriter.WriteLine(); - } - - private void WriteComponentAttributeInnards(CodeRenderingContext context, ComponentAttributeExtensionNode node, bool canTypeCheck) - { - // We limit component attributes to simple cases. However there is still a lot of complexity - // to handle here, since there are a few different cases for how an attribute might be structured. - // - // This roughly follows the design of the runtime writer for simplicity. - if (node.AttributeStructure == AttributeStructure.Minimized) - { - // Minimized attributes always map to 'true' - context.CodeWriter.Write("true"); - } - else if (node.Children.Count > 1) - { - // We don't expect this to happen, we just want to know if it can. - throw new InvalidOperationException("Attribute nodes should either be minimized or a single type of content." + string.Join(", ", node.Children)); - } - else if (node.Children.Count == 1 && node.Children[0] is HtmlContentIntermediateNode) - { - // We don't actually need the content at designtime, an empty string will do. - context.CodeWriter.Write("\"\""); - } - else - { - // There are a few different forms that could be used to contain all of the tokens, but we don't really care - // exactly what it looks like - we just want all of the content. - // - // This can include an empty list in some cases like the following (sic): - // - // - // Of a list of tokens directly in the attribute. - var tokens = GetCSharpTokens(node); - - if ((node.BoundAttribute?.IsDelegateProperty() ?? false) || - (node.BoundAttribute?.IsChildContentProperty() ?? false)) - { - // We always surround the expression with the delegate constructor. This makes type - // inference inside lambdas, and method group conversion do the right thing. - if (canTypeCheck) - { - context.CodeWriter.Write("new "); - context.CodeWriter.Write(node.TypeName); - context.CodeWriter.Write("("); - } - context.CodeWriter.WriteLine(); - - for (var i = 0; i < tokens.Count; i++) - { - WriteCSharpToken(context, tokens[i]); - } - - if (canTypeCheck) - { - context.CodeWriter.Write(")"); - } - } - else - { - // This is the case when an attribute contains C# code - // - // If we have a parameter type, then add a type check. - if (canTypeCheck && NeedsTypeCheck(node)) - { - context.CodeWriter.Write(ComponentsApi.RuntimeHelpers.TypeCheck); - context.CodeWriter.Write("<"); - context.CodeWriter.Write(node.TypeName); - context.CodeWriter.Write(">"); - context.CodeWriter.Write("("); - } - - for (var i = 0; i < tokens.Count; i++) - { - WriteCSharpToken(context, tokens[i]); - } - - if (canTypeCheck && NeedsTypeCheck(node)) - { - context.CodeWriter.Write(")"); - } - } - } - - bool NeedsTypeCheck(ComponentAttributeExtensionNode n) - { - return n.BoundAttribute != null && !n.BoundAttribute.IsWeaklyTyped(); - } - - IReadOnlyList GetCSharpTokens(ComponentAttributeExtensionNode attribute) - { - // We generally expect all children to be CSharp, this is here just in case. - return attribute.FindDescendantNodes().Where(t => t.IsCSharp).ToArray(); - } - } - - public override void WriteComponentChildContent(CodeRenderingContext context, ComponentChildContentIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Writes something like: - // - // builder.AddAttribute(1, "ChildContent", (RenderFragment)((__builder73) => { ... })); - // OR - // builder.AddAttribute(1, "ChildContent", (RenderFragment)((person) => (__builder73) => { ... })); - BeginWriteAttribute(context.CodeWriter, node.AttributeName); - context.CodeWriter.Write($"({node.TypeName})("); - - WriteComponentChildContentInnards(context, node); - - context.CodeWriter.Write(")"); - context.CodeWriter.WriteEndMethodInvocation(); - } - - private void WriteComponentChildContentInnards(CodeRenderingContext context, ComponentChildContentIntermediateNode node) - { - // Writes something like: - // - // ((__builder73) => { ... }) - // OR - // ((person) => (__builder73) => { }) - _scopeStack.OpenComponentScope( - context, - node.AttributeName, - node.IsParameterized ? node.ParameterName : null); - for (var i = 0; i < node.Children.Count; i++) - { - context.RenderNode(node.Children[i]); - } - _scopeStack.CloseScope(context); - } - - public override void WriteComponentTypeArgument(CodeRenderingContext context, ComponentTypeArgumentExtensionNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // At design type we want write the equivalent of: - // - // __o = typeof(TItem); - context.CodeWriter.Write(DesignTimeVariable); - context.CodeWriter.Write(" = "); - context.CodeWriter.Write("typeof("); - - var tokens = GetCSharpTokens(node); - for (var i = 0; i < tokens.Count; i++) - { - WriteCSharpToken(context, tokens[i]); - } - - context.CodeWriter.Write(");"); - context.CodeWriter.WriteLine(); - - IReadOnlyList GetCSharpTokens(ComponentTypeArgumentExtensionNode arg) - { - // We generally expect all children to be CSharp, this is here just in case. - return arg.FindDescendantNodes().Where(t => t.IsCSharp).ToArray(); - } - } - - public override void WriteTemplate(CodeRenderingContext context, TemplateIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Looks like: - // - // (__builder73) => { ... } - _scopeStack.OpenTemplateScope(context); - context.RenderChildren(node); - _scopeStack.CloseScope(context); - } - - public override void WriteReferenceCapture(CodeRenderingContext context, RefExtensionNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Looks like: - // - // __field = default(MyComponent); - WriteReferenceCaptureInnards(context, node, shouldTypeCheck: true); - } - - protected override void WriteReferenceCaptureInnards(CodeRenderingContext context, RefExtensionNode node, bool shouldTypeCheck) - { - // We specialize this code based on whether or not we can type check. When we're calling into - // a type-inferenced component, we can't do the type check. See the comments in WriteTypeInferenceMethod. - if (shouldTypeCheck) - { - // The runtime node writer moves the call elsewhere. At design time we - // just want sufficiently similar code that any unknown-identifier or type - // errors will be equivalent - var captureTypeName = node.IsComponentCapture - ? node.ComponentCaptureTypeName - : ComponentsApi.ElementRef.FullTypeName; - WriteCSharpCode(context, new CSharpCodeIntermediateNode - { - Source = node.Source, - Children = - { - node.IdentifierToken, - new IntermediateToken - { - Kind = TokenKind.CSharp, - Content = $" = default({captureTypeName});" - } - } - }); - } - else - { - // Looks like: - // - // (__value) = { _field = (MyComponent)__value; } - // OR - // (__value) = { _field = (ElementRef)__value; } - const string refCaptureParamName = "__value"; - using (var lambdaScope = context.CodeWriter.BuildLambda(refCaptureParamName)) - { - WriteCSharpCode(context, new CSharpCodeIntermediateNode - { - Source = node.Source, - Children = - { - node.IdentifierToken, - new IntermediateToken - { - Kind = TokenKind.CSharp, - Content = $" = {refCaptureParamName};" - } - } - }); - } - } - } - - private void WriteCSharpToken(CodeRenderingContext context, IntermediateToken token) - { - if (string.IsNullOrWhiteSpace(token.Content)) - { - return; - } - - if (token.Source?.FilePath == null) - { - context.CodeWriter.Write(token.Content); - return; - } - - using (context.CodeWriter.BuildLinePragma(token.Source)) - { - context.CodeWriter.WritePadding(0, token.Source.Value, context); - context.AddSourceMappingFor(token); - context.CodeWriter.Write(token.Content); - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorDiagnosticFactory.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorDiagnosticFactory.cs deleted file mode 100644 index c911f98bde..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorDiagnosticFactory.cs +++ /dev/null @@ -1,323 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal static class BlazorDiagnosticFactory - { - public static readonly RazorDiagnosticDescriptor CodeBlockInAttribute = - new RazorDiagnosticDescriptor( - "BL9979", - () => - "Code blocks delimited by '@{...}' like '@{{ {0} }}' for attributes are no longer supported " + - "These features have been changed to use attribute syntax. " + - "Use 'attr=\"@(x => {... }\"'.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_CodeBlockInAttribute(SourceSpan? source, string expression) - { - var diagnostic = RazorDiagnostic.Create( - CodeBlockInAttribute, - source ?? SourceSpan.Undefined, - expression); - return diagnostic; - } - - public static readonly RazorDiagnosticDescriptor UnclosedTag = new RazorDiagnosticDescriptor( - "BL9980", - () => "Unclosed tag '{0}' with no matching end tag.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_UnclosedTag(SourceSpan? span, string tagName) - { - return RazorDiagnostic.Create(UnclosedTag, span ?? SourceSpan.Undefined, tagName); - } - - public static readonly RazorDiagnosticDescriptor UnexpectedClosingTag = new RazorDiagnosticDescriptor( - "BL9981", - () => "Unexpected closing tag '{0}' with no matching start tag.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_UnexpectedClosingTag(SourceSpan? span, string tagName) - { - return RazorDiagnostic.Create(UnexpectedClosingTag, span ?? SourceSpan.Undefined, tagName); - } - - public static readonly RazorDiagnosticDescriptor MismatchedClosingTag = new RazorDiagnosticDescriptor( - "BL9982", - () => "Mismatching closing tag. Found '{0}' but expected '{1}'.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_MismatchedClosingTag(SourceSpan? span, string expectedTagName, string tagName) - { - return RazorDiagnostic.Create(MismatchedClosingTag, span ?? SourceSpan.Undefined, expectedTagName, tagName); - } - - public static readonly RazorDiagnosticDescriptor UnexpectedClosingTagForVoidElement = new RazorDiagnosticDescriptor( - "BL9983", - () => "Unexpected closing tag '{0}'. The element '{0}' is a void element, and should be used without a closing tag.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_UnexpectedClosingTagForVoidElement(SourceSpan? span, string tagName) - { - return RazorDiagnostic.Create(UnexpectedClosingTagForVoidElement, span ?? SourceSpan.Undefined, tagName); - } - - public static readonly RazorDiagnosticDescriptor InvalidHtmlContent = new RazorDiagnosticDescriptor( - "BL9984", - () => "Found invalid HTML content. Text '{0}'", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_InvalidHtmlContent(SourceSpan? span, string text) - { - return RazorDiagnostic.Create(InvalidHtmlContent, span ?? SourceSpan.Undefined, text); - } - - public static readonly RazorDiagnosticDescriptor MultipleComponents = new RazorDiagnosticDescriptor( - "BL9985", - () => "Multiple components use the tag '{0}'. Components: {1}", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_MultipleComponents(SourceSpan? span, string tagName, IEnumerable components) - { - return RazorDiagnostic.Create(MultipleComponents, span ?? SourceSpan.Undefined, tagName, string.Join(", ", components.Select(c => c.DisplayName))); - } - - public static readonly RazorDiagnosticDescriptor UnsupportedComplexContent = new RazorDiagnosticDescriptor( - "BL9986", - () => "Component attributes do not support complex content (mixed C# and markup). Attribute: '{0}', text '{1}'", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_UnsupportedComplexContent(IntermediateNode node, string attributeName) - { - var content = string.Join("", node.FindDescendantNodes().Select(t => t.Content)); - return RazorDiagnostic.Create(UnsupportedComplexContent, node.Source ?? SourceSpan.Undefined, attributeName, content); - } - - public static readonly RazorDiagnosticDescriptor PageDirective_CannotBeImported = - new RazorDiagnosticDescriptor( - "BL9987", - () => Resources.PageDirectiveCannotBeImported, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreatePageDirective_CannotBeImported(SourceSpan source) - { - var fileName = Path.GetFileName(source.FilePath); - var diagnostic = RazorDiagnostic.Create(PageDirective_CannotBeImported, source, PageDirective.Directive.Directive, fileName); - - return diagnostic; - } - - public static readonly RazorDiagnosticDescriptor PageDirective_MustSpecifyRoute = - new RazorDiagnosticDescriptor( - "BL9988", - () => "The @page directive must specify a route template. The route template must be enclosed in quotes and begin with the '/' character.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreatePageDirective_MustSpecifyRoute(SourceSpan? source) - { - var diagnostic = RazorDiagnostic.Create(PageDirective_MustSpecifyRoute, source ?? SourceSpan.Undefined); - return diagnostic; - } - - public static readonly RazorDiagnosticDescriptor BindAttribute_Duplicates = - new RazorDiagnosticDescriptor( - "BL9989", - () => "The attribute '{0}' was matched by multiple bind attributes. Duplicates:{1}", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateBindAttribute_Duplicates(SourceSpan? source, string attribute, TagHelperPropertyIntermediateNode[] attributes) - { - var diagnostic = RazorDiagnostic.Create( - BindAttribute_Duplicates, - source ?? SourceSpan.Undefined, - attribute, - Environment.NewLine + string.Join(Environment.NewLine, attributes.Select(p => p.TagHelper.DisplayName))); - return diagnostic; - } - - public static readonly RazorDiagnosticDescriptor EventHandler_Duplicates = - new RazorDiagnosticDescriptor( - "BL9990", - () => "The attribute '{0}' was matched by multiple event handlers attributes. Duplicates:{1}", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateEventHandler_Duplicates(SourceSpan? source, string attribute, TagHelperPropertyIntermediateNode[] attributes) - { - var diagnostic = RazorDiagnostic.Create( - EventHandler_Duplicates, - source ?? SourceSpan.Undefined, - attribute, - Environment.NewLine + string.Join(Environment.NewLine, attributes.Select(p => p.TagHelper.DisplayName))); - return diagnostic; - } - - public static readonly RazorDiagnosticDescriptor BindAttribute_InvalidSyntax = - new RazorDiagnosticDescriptor( - "BL9991", - () => "The attribute names could not be inferred from bind attribute '{0}'. Bind attributes should be of the form" + - "'bind', 'bind-value' or 'bind-value-change'", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateBindAttribute_InvalidSyntax(SourceSpan? source, string attribute) - { - var diagnostic = RazorDiagnostic.Create( - BindAttribute_InvalidSyntax, - source ?? SourceSpan.Undefined, - attribute); - return diagnostic; - } - - public static readonly RazorDiagnosticDescriptor DisallowedScriptTag = new RazorDiagnosticDescriptor( - "BL9992", - () => "Script tags should not be placed inside components because they cannot be updated dynamically. To fix this, move the script tag to the 'index.html' file or another static location. For more information see https://go.microsoft.com/fwlink/?linkid=872131", - RazorDiagnosticSeverity.Error); - - // Reserved: BL9993 Component parameters should not be public - - public static RazorDiagnostic Create_DisallowedScriptTag(SourceSpan? source) - { - var diagnostic = RazorDiagnostic.Create(DisallowedScriptTag, source ?? SourceSpan.Undefined); - return diagnostic; - } - - public static readonly RazorDiagnosticDescriptor TemplateInvalidLocation = - new RazorDiagnosticDescriptor( - "BL9994", - () => "Razor templates cannot be used in attributes.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_TemplateInvalidLocation(SourceSpan? source) - { - return RazorDiagnostic.Create(TemplateInvalidLocation, source ?? SourceSpan.Undefined); - } - - public static readonly RazorDiagnosticDescriptor ChildContentSetByAttributeAndBody = - new RazorDiagnosticDescriptor( - "BL9995", - () => "The child content property '{0}' is set by both the attribute and the element contents.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_ChildContentSetByAttributeAndBody(SourceSpan? source, string attribute) - { - return RazorDiagnostic.Create(ChildContentSetByAttributeAndBody, source ?? SourceSpan.Undefined, attribute); - } - - public static readonly RazorDiagnosticDescriptor ChildContentMixedWithExplicitChildContent = - new RazorDiagnosticDescriptor( - "BL9996", - () => "Unrecognized child content inside component '{0}'. The component '{0}' accepts child content through the " + - "following top-level items: {1}.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_ChildContentMixedWithExplicitChildContent(SourceSpan? source, ComponentExtensionNode component) - { - var supportedElements = string.Join(", ", component.Component.GetChildContentProperties().Select(p => $"'{p.Name}'")); - return RazorDiagnostic.Create(ChildContentMixedWithExplicitChildContent, source ?? SourceSpan.Undefined, component.TagName, supportedElements); - } - - public static readonly RazorDiagnosticDescriptor ChildContentHasInvalidAttribute = - new RazorDiagnosticDescriptor( - "BL9997", - () => "Unrecognized attribute '{0}' on child content element '{1}'.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_ChildContentHasInvalidAttribute(SourceSpan? source, string attribute, string element) - { - return RazorDiagnostic.Create(ChildContentHasInvalidAttribute, source ?? SourceSpan.Undefined, attribute, element); - } - - public static readonly RazorDiagnosticDescriptor ChildContentHasInvalidParameter = - new RazorDiagnosticDescriptor( - "BL9998", - () => "Invalid parameter name. The parameter name attribute '{0}' on child content element '{1}' can only include literal text.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_ChildContentHasInvalidParameter(SourceSpan? source, string attribute, string element) - { - return RazorDiagnostic.Create(ChildContentHasInvalidParameter, source ?? SourceSpan.Undefined, attribute, element); - } - - public static readonly RazorDiagnosticDescriptor ChildContentRepeatedParameterName = - new RazorDiagnosticDescriptor( - "BL9999", - () => "The child content element '{0}' of component '{1}' uses the same parameter name ('{2}') as enclosing child content " + - "element '{3}' of component '{4}'. Specify the parameter name like: '<{0} Context=\"another_name\"> to resolve the ambiguity", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_ChildContentRepeatedParameterName( - SourceSpan? source, - ComponentChildContentIntermediateNode childContent1, - ComponentExtensionNode component1, - ComponentChildContentIntermediateNode childContent2, - ComponentExtensionNode component2) - { - Debug.Assert(childContent1.ParameterName == childContent2.ParameterName); - Debug.Assert(childContent1.IsParameterized); - Debug.Assert(childContent2.IsParameterized); - - return RazorDiagnostic.Create( - ChildContentRepeatedParameterName, - source ?? SourceSpan.Undefined, - childContent1.AttributeName, - component1.TagName, - childContent1.ParameterName, - childContent2.AttributeName, - component2.TagName); - } - - public static readonly RazorDiagnosticDescriptor GenericComponentMissingTypeArgument = - new RazorDiagnosticDescriptor( - "BL10000", - () => "The component '{0}' is missing required type arguments. Specify the missing types using the attributes: {1}.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_GenericComponentMissingTypeArgument( - SourceSpan? source, - ComponentExtensionNode component, - IEnumerable attributes) - { - Debug.Assert(component.Component.IsGenericTypedComponent()); - - var attributesText = string.Join(", ", attributes.Select(a => $"'{a.Name}'")); - return RazorDiagnostic.Create(GenericComponentMissingTypeArgument, source ?? SourceSpan.Undefined, component.TagName, attributesText); - } - - public static readonly RazorDiagnosticDescriptor GenericComponentTypeInferenceUnderspecified = - new RazorDiagnosticDescriptor( - "BL10001", - () => "The type of component '{0}' cannot be inferred based on the values provided. Consider specifying the type arguments " + - "directly using the following attributes: {1}.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_GenericComponentTypeInferenceUnderspecified( - SourceSpan? source, - ComponentExtensionNode component, - IEnumerable attributes) - { - Debug.Assert(component.Component.IsGenericTypedComponent()); - - var attributesText = string.Join(", ", attributes.Select(a => $"'{a.Name}'")); - return RazorDiagnostic.Create(GenericComponentTypeInferenceUnderspecified, source ?? SourceSpan.Undefined, component.TagName, attributesText); - } - - public static readonly RazorDiagnosticDescriptor ChildContentHasInvalidParameterOnComponent = - new RazorDiagnosticDescriptor( - "BL10002", - () => "Invalid parameter name. The parameter name attribute '{0}' on component '{1}' can only include literal text.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_ChildContentHasInvalidParameterOnComponent(SourceSpan? source, string attribute, string element) - { - return RazorDiagnostic.Create(ChildContentHasInvalidParameterOnComponent, source ?? SourceSpan.Undefined, attribute, element); - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorExtensionInitializer.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorExtensionInitializer.cs deleted file mode 100644 index ff8f8548fc..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorExtensionInitializer.cs +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Extensions; - -namespace Microsoft.AspNetCore.Components.Razor -{ - /// - /// Initializes the Blazor extension. - /// - public class BlazorExtensionInitializer : RazorExtensionInitializer - { - /// - /// Specifies the declaration configuration. - /// - public static readonly RazorConfiguration DeclarationConfiguration; - - /// - /// Specifies the default configuration. - /// - public static readonly RazorConfiguration DefaultConfiguration; - - static BlazorExtensionInitializer() - { - // The configuration names here need to match what we put in the MSBuild configuration - DeclarationConfiguration = RazorConfiguration.Create( - RazorLanguageVersion.Experimental, - "BlazorDeclaration-0.1", - Array.Empty()); - - DefaultConfiguration = RazorConfiguration.Create( - RazorLanguageVersion.Experimental, - "Blazor-0.1", - Array.Empty()); - } - - /// - /// Registers the Blazor extension. - /// - /// The . - public static void Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - FunctionsDirective.Register(builder); - ImplementsDirective.Register(builder); - InheritsDirective.Register(builder); - InjectDirective.Register(builder); - LayoutDirective.Register(builder); - PageDirective.Register(builder); - TypeParamDirective.Register(builder); - - builder.Features.Remove(builder.Features.OfType().Single()); - builder.Features.Add(new BlazorImportProjectFeature()); - - var index = builder.Phases.IndexOf(builder.Phases.OfType().Single()); - builder.Phases[index] = new BlazorRazorCSharpLoweringPhase(); - - builder.Features.Add(new ConfigureBlazorCodeGenerationOptions()); - - builder.AddTargetExtension(new BlazorTemplateTargetExtension()); - - var isDeclarationOnlyCompile = builder.Configuration.ConfigurationName == DeclarationConfiguration.ConfigurationName; - - // Blazor-specific passes, in order. - if (!isDeclarationOnlyCompile) - { - // There's no benefit in this optimization during the declaration-only compile - builder.Features.Add(new TrimWhitespacePass()); - } - builder.Features.Add(new ComponentDocumentClassifierPass()); - builder.Features.Add(new ComponentDocumentRewritePass()); - builder.Features.Add(new ScriptTagPass()); - builder.Features.Add(new ComplexAttributeContentPass()); - builder.Features.Add(new ComponentLoweringPass()); - builder.Features.Add(new EventHandlerLoweringPass()); - builder.Features.Add(new RefLoweringPass()); - builder.Features.Add(new BindLoweringPass()); - builder.Features.Add(new TemplateDiagnosticPass()); - builder.Features.Add(new GenericComponentPass()); - builder.Features.Add(new ChildContentDiagnosticPass()); - builder.Features.Add(new HtmlBlockPass()); - - builder.Features.Add(new ComponentTagHelperDescriptorProvider()); - builder.Features.Add(new BindTagHelperDescriptorProvider()); - builder.Features.Add(new EventHandlerTagHelperDescriptorProvider()); - builder.Features.Add(new RefTagHelperDescriptorProvider()); - - if (isDeclarationOnlyCompile) - { - // This is for 'declaration only' processing. We don't want to try and emit any method bodies during - // the design time build because we can't do it correctly until the set of components is known. - builder.Features.Add(new EliminateMethodBodyPass()); - } - } - - /// - /// Initializes the Blazor extension. - /// - /// The . - public override void Initialize(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - Register(builder); - } - - private class ConfigureBlazorCodeGenerationOptions : IConfigureRazorCodeGenerationOptionsFeature - { - public int Order => 0; - - public RazorEngine Engine { get; set; } - - public void Configure(RazorCodeGenerationOptionsBuilder options) - { - if (options == null) - { - throw new ArgumentNullException(nameof(options)); - } - - // These metadata attributes require a reference to the Razor.Runtime package which we don't - // otherwise need. - options.SuppressMetadataAttributes = true; - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorImportProjectFeature.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorImportProjectFeature.cs deleted file mode 100644 index 8aafa5b1dc..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorImportProjectFeature.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class BlazorImportProjectFeature : IImportProjectFeature - { - private const string ImportsFileName = "_ViewImports.cshtml"; - - private static readonly char[] PathSeparators = new char[]{ '/', '\\' }; - - // Using explicit newlines here to avoid fooling our baseline tests - private readonly static string DefaultUsingImportContent = - "\r\n" + - "@using System\r\n" + - "@using System.Collections.Generic\r\n" + - "@using System.Linq\r\n" + - "@using System.Threading.Tasks\r\n" + - "@using " + ComponentsApi.RenderFragment.Namespace + "\r\n"; // Microsoft.AspNetCore.Components - - public RazorProjectEngine ProjectEngine { get; set; } - - public IReadOnlyList GetImports(RazorProjectItem projectItem) - { - if (projectItem == null) - { - throw new ArgumentNullException(nameof(projectItem)); - } - - var imports = new List() - { - new VirtualProjectItem(DefaultUsingImportContent), - new VirtualProjectItem(@"@addTagHelper ""*, Microsoft.AspNetCore.Components"""), - }; - - // Try and infer a namespace from the project directory. We don't yet have the ability to pass - // the namespace through from the project. - if (projectItem.PhysicalPath != null && projectItem.FilePath != null) - { - // Avoiding the path-specific APIs here, we want to handle all styles of paths - // on all platforms - var trimLength = projectItem.FilePath.Length + (projectItem.FilePath.StartsWith("/") ? 0 : 1); - var baseDirectory = projectItem.PhysicalPath.Substring(0, projectItem.PhysicalPath.Length - trimLength); - - var lastSlash = baseDirectory.LastIndexOfAny(PathSeparators); - var baseNamespace = lastSlash == -1 ? baseDirectory : baseDirectory.Substring(lastSlash + 1); - if (!string.IsNullOrEmpty(baseNamespace)) - { - imports.Add(new VirtualProjectItem($@"@addTagHelper ""*, {baseNamespace}""")); - } - } - - // We add hierarchical imports second so any default directive imports can be overridden. - imports.AddRange(GetHierarchicalImports(ProjectEngine.FileSystem, projectItem)); - - return imports; - } - - // Temporary API until we fully convert to RazorProjectEngine - public IEnumerable GetHierarchicalImports(RazorProject project, RazorProjectItem projectItem) - { - // We want items in descending order. FindHierarchicalItems returns items in ascending order. - return project.FindHierarchicalItems(projectItem.FilePath, ImportsFileName).Reverse(); - } - - private class VirtualProjectItem : RazorProjectItem - { - private readonly byte[] _bytes; - - public VirtualProjectItem(string content) - { - var preamble = Encoding.UTF8.GetPreamble(); - var contentBytes = Encoding.UTF8.GetBytes(content); - - _bytes = new byte[preamble.Length + contentBytes.Length]; - preamble.CopyTo(_bytes, 0); - contentBytes.CopyTo(_bytes, preamble.Length); - } - - public override string BasePath => null; - - public override string FilePath => null; - - public override string PhysicalPath => null; - - public override bool Exists => true; - - public override Stream Read() => new MemoryStream(_bytes); - } - } -} \ No newline at end of file diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorMetadata.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorMetadata.cs deleted file mode 100644 index 0c5afc3a54..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorMetadata.cs +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Components.Razor -{ - // Metadata used for Blazor's interactions with the tag helper system - internal static class BlazorMetadata - { - // There's a bug in the 15.7 preview 1 Razor that prevents 'Kind' from being serialized - // this affects both tooling and build. For now our workaround is to ignore 'Kind' and - // use our own metadata entry to denote non-Component tag helpers. - public static readonly string SpecialKindKey = "Blazor.IsSpecialKind"; - - public static class Bind - { - public static readonly string RuntimeName = "Blazor.None"; - - public readonly static string TagHelperKind = "Blazor.Bind"; - - public readonly static string FallbackKey = "Blazor.Bind.Fallback"; - - public readonly static string TypeAttribute = "Blazor.Bind.TypeAttribute"; - - public readonly static string ValueAttribute = "Blazor.Bind.ValueAttribute"; - - public readonly static string ChangeAttribute = "Blazor.Bind.ChangeAttribute"; - } - - public static class ChildContent - { - public static readonly string RuntimeName = "Blazor.None"; - - public static readonly string TagHelperKind = "Blazor.ChildContent"; - - public static readonly string ParameterNameBoundAttributeKind = "Blazor.ChildContentParameterName"; - - /// - /// The name of the synthesized attribute used to set a child content parameter. - /// - public static readonly string ParameterAttributeName = "Context"; - - /// - /// The default name of the child content parameter (unless set by a Context attribute). - /// - public static readonly string DefaultParameterName = "context"; - } - - public static class Component - { - public static readonly string ChildContentKey = "Blazor.ChildContent"; - - public static readonly string ChildContentParameterNameKey = "Blazor.ChildContentParameterName"; - - public static readonly string DelegateSignatureKey = "Blazor.DelegateSignature"; - - public static readonly string WeaklyTypedKey = "Blazor.IsWeaklyTyped"; - - public static readonly string RuntimeName = "Blazor.IComponent"; - - public readonly static string TagHelperKind = "Blazor.Component"; - - public readonly static string GenericTypedKey = "Blazor.GenericTyped"; - - public readonly static string TypeParameterKey = "Blazor.TypeParameter"; - } - - public static class EventHandler - { - public static readonly string EventArgsType = "Blazor.EventHandler.EventArgs"; - - public static readonly string RuntimeName = "Blazor.None"; - - public readonly static string TagHelperKind = "Blazor.EventHandler"; - } - - public static class Ref - { - public readonly static string TagHelperKind = "Blazor.Ref"; - - public static readonly string RuntimeName = "Blazor.None"; - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorNodeWriter.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorNodeWriter.cs deleted file mode 100644 index d5991bd2a5..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorNodeWriter.cs +++ /dev/null @@ -1,218 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal abstract class BlazorNodeWriter : IntermediateNodeWriter - { - public abstract void BeginWriteAttribute(CodeWriter codeWriter, string key); - - public abstract void WriteComponent(CodeRenderingContext context, ComponentExtensionNode node); - - public abstract void WriteComponentAttribute(CodeRenderingContext context, ComponentAttributeExtensionNode node); - - public abstract void WriteComponentChildContent(CodeRenderingContext context, ComponentChildContentIntermediateNode node); - - public abstract void WriteComponentTypeArgument(CodeRenderingContext context, ComponentTypeArgumentExtensionNode node); - - public abstract void WriteHtmlElement(CodeRenderingContext context, HtmlElementIntermediateNode node); - - public abstract void WriteHtmlBlock(CodeRenderingContext context, HtmlBlockIntermediateNode node); - - public abstract void WriteReferenceCapture(CodeRenderingContext context, RefExtensionNode node); - - protected abstract void WriteReferenceCaptureInnards(CodeRenderingContext context, RefExtensionNode node, bool shouldTypeCheck); - - public abstract void WriteTemplate(CodeRenderingContext context, TemplateIntermediateNode node); - - public sealed override void BeginWriterScope(CodeRenderingContext context, string writer) - { - throw new NotImplementedException(nameof(BeginWriterScope)); - } - - public sealed override void EndWriterScope(CodeRenderingContext context) - { - throw new NotImplementedException(nameof(EndWriterScope)); - } - - public sealed override void WriteCSharpCodeAttributeValue(CodeRenderingContext context, CSharpCodeAttributeValueIntermediateNode node) - { - // We used to support syntaxes like but this is no longer the - // case. - // - // We provide an error for this case just to be friendly. - var content = string.Join("", node.Children.OfType().Select(t => t.Content)); - context.Diagnostics.Add(BlazorDiagnosticFactory.Create_CodeBlockInAttribute(node.Source, content)); - return; - } - - - // Currently the same for design time and runtime - public void WriteComponentTypeInferenceMethod(CodeRenderingContext context, ComponentTypeInferenceMethodIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // This is ugly because CodeWriter doesn't allow us to erase, but we need to comma-delimit. So we have to - // materizalize something can iterate, or use string.Join. We'll need this multiple times, so materializing - // it. - var parameters = GetParameterDeclarations(); - - // This is really similar to the code in WriteComponentAttribute and WriteComponentChildContent - except simpler because - // attributes and child contents look like variables. - // - // Looks like: - // - // public static void CreateFoo_0(RenderTreeBuilder builder, int seq, int __seq0, T1 __arg0, int __seq1, global::System.Collections.Generic.List __arg1, int __seq2, string __arg2) - // { - // builder.OpenComponent>(); - // builder.AddAttribute(__seq0, "Attr0", __arg0); - // builder.AddAttribute(__seq1, "Attr1", __arg1); - // builder.AddAttribute(__seq2, "Attr2", __arg2); - // builder.CloseComponent(); - // } - // - // As a special case, we need to generate a thunk for captures in this block instead of using - // them verbatim. - // - // The problem is that RenderTreeBuilder wants an Action. The caller can't write the type - // name if it contains generics, and we can't write the variable they want to assign to. - var writer = context.CodeWriter; - - writer.Write("public static void "); - writer.Write(node.MethodName); - - writer.Write("<"); - writer.Write(string.Join(", ", node.Component.Component.GetTypeParameters().Select(a => a.Name))); - writer.Write(">"); - - writer.Write("("); - writer.Write("global::"); - writer.Write(ComponentsApi.RenderTreeBuilder.FullTypeName); - writer.Write(" builder"); - writer.Write(", "); - writer.Write("int seq"); - - if (parameters.Count > 0) - { - writer.Write(", "); - } - - for (var i = 0; i < parameters.Count; i++) - { - writer.Write("int "); - writer.Write(parameters[i].seqName); - - writer.Write(", "); - writer.Write(parameters[i].typeName); - writer.Write(" "); - writer.Write(parameters[i].parameterName); - - if (i < parameters.Count - 1) - { - writer.Write(", "); - } - } - - writer.Write(")"); - writer.WriteLine(); - - writer.WriteLine("{"); - - // builder.OpenComponent(42); - context.CodeWriter.Write("builder"); - context.CodeWriter.Write("."); - context.CodeWriter.Write(ComponentsApi.RenderTreeBuilder.OpenComponent); - context.CodeWriter.Write("<"); - context.CodeWriter.Write(node.Component.TypeName); - context.CodeWriter.Write(">("); - context.CodeWriter.Write("seq"); - context.CodeWriter.Write(");"); - context.CodeWriter.WriteLine(); - - var index = 0; - foreach (var attribute in node.Component.Attributes) - { - context.CodeWriter.WriteStartInstanceMethodInvocation("builder", ComponentsApi.RenderTreeBuilder.AddAttribute); - context.CodeWriter.Write(parameters[index].seqName); - context.CodeWriter.Write(", "); - - context.CodeWriter.Write($"\"{attribute.AttributeName}\""); - context.CodeWriter.Write(", "); - - context.CodeWriter.Write(parameters[index].parameterName); - context.CodeWriter.WriteEndMethodInvocation(); - - index++; - } - - foreach (var childContent in node.Component.ChildContents) - { - context.CodeWriter.WriteStartInstanceMethodInvocation("builder", ComponentsApi.RenderTreeBuilder.AddAttribute); - context.CodeWriter.Write(parameters[index].seqName); - context.CodeWriter.Write(", "); - - context.CodeWriter.Write($"\"{childContent.AttributeName}\""); - context.CodeWriter.Write(", "); - - context.CodeWriter.Write(parameters[index].parameterName); - context.CodeWriter.WriteEndMethodInvocation(); - - index++; - } - - foreach (var capture in node.Component.Captures) - { - context.CodeWriter.WriteStartInstanceMethodInvocation("builder", capture.IsComponentCapture ? ComponentsApi.RenderTreeBuilder.AddComponentReferenceCapture : ComponentsApi.RenderTreeBuilder.AddElementReferenceCapture); - context.CodeWriter.Write(parameters[index].seqName); - context.CodeWriter.Write(", "); - - var cast = capture.IsComponentCapture ? $"({capture.ComponentCaptureTypeName})" : string.Empty; - context.CodeWriter.Write($"(__value) => {{ {parameters[index].parameterName}({cast}__value); }}"); - context.CodeWriter.WriteEndMethodInvocation(); - - index++; - } - - context.CodeWriter.WriteInstanceMethodInvocation("builder", ComponentsApi.RenderTreeBuilder.CloseComponent); - - writer.WriteLine("}"); - - List<(string seqName, string typeName, string parameterName)> GetParameterDeclarations() - { - var p = new List<(string seqName, string typeName, string parameterName)>(); - foreach (var attribute in node.Component.Attributes) - { - p.Add(($"__seq{p.Count}", attribute.TypeName, $"__arg{p.Count}")); - } - - foreach (var childContent in node.Component.ChildContents) - { - p.Add(($"__seq{p.Count}", childContent.TypeName, $"__arg{p.Count}")); - } - - foreach (var capture in node.Component.Captures) - { - p.Add(($"__seq{p.Count}", capture.TypeName, $"__arg{p.Count}")); - } - - return p; - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorRuntimeNodeWriter.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorRuntimeNodeWriter.cs deleted file mode 100644 index 3d3ed6c154..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorRuntimeNodeWriter.cs +++ /dev/null @@ -1,766 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Text; -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - /// - /// Generates the C# code corresponding to Razor source document contents. - /// - internal class BlazorRuntimeNodeWriter : BlazorNodeWriter - { - private readonly List _currentAttributeValues = new List(); - private readonly ScopeStack _scopeStack = new ScopeStack(); - private int _sourceSequence = 0; - - public override void WriteCSharpCode(CodeRenderingContext context, CSharpCodeIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - var isWhitespaceStatement = true; - for (var i = 0; i < node.Children.Count; i++) - { - var token = node.Children[i] as IntermediateToken; - if (token == null || !string.IsNullOrWhiteSpace(token.Content)) - { - isWhitespaceStatement = false; - break; - } - } - - if (isWhitespaceStatement) - { - // The runtime and design time code differ in their handling of whitespace-only - // statements. At runtime we can discard them completely. At design time we need - // to keep them for the editor. - return; - } - - IDisposable linePragmaScope = null; - if (node.Source != null) - { - linePragmaScope = context.CodeWriter.BuildLinePragma(node.Source.Value); - context.CodeWriter.WritePadding(0, node.Source.Value, context); - } - - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.AddSourceMappingFor(token); - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the statement like an extension node. - context.RenderNode(node.Children[i]); - } - } - - if (linePragmaScope != null) - { - linePragmaScope.Dispose(); - } - else - { - context.CodeWriter.WriteLine(); - } - } - - public override void WriteCSharpExpression(CodeRenderingContext context, CSharpExpressionIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Since we're not in the middle of writing an element, this must evaluate as some - // text to display - context.CodeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{nameof(ComponentsApi.RenderTreeBuilder.AddContent)}") - .Write((_sourceSequence++).ToString()) - .WriteParameterSeparator(); - - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the expression like a Template or another extension node. - context.RenderNode(node.Children[i]); - } - } - - context.CodeWriter.WriteEndMethodInvocation(); - } - - public override void WriteCSharpExpressionAttributeValue(CodeRenderingContext context, CSharpExpressionAttributeValueIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // In cases like "somestring @variable", Razor tokenizes it as: - // [0] HtmlContent="somestring" - // [1] CsharpContent="variable" Prefix=" " - // ... so to avoid losing whitespace, convert the prefix to a further token in the list - if (!string.IsNullOrEmpty(node.Prefix)) - { - _currentAttributeValues.Add(new IntermediateToken() { Kind = TokenKind.Html, Content = node.Prefix }); - } - - for (var i = 0; i < node.Children.Count; i++) - { - _currentAttributeValues.Add((IntermediateToken)node.Children[i]); - } - } - - public override void WriteHtmlBlock(CodeRenderingContext context, HtmlBlockIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - context.CodeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{nameof(ComponentsApi.RenderTreeBuilder.AddMarkupContent)}") - .Write((_sourceSequence++).ToString()) - .WriteParameterSeparator() - .WriteStringLiteral(node.Content) - .WriteEndMethodInvocation(); - } - - public override void WriteHtmlElement(CodeRenderingContext context, HtmlElementIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - context.CodeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{nameof(ComponentsApi.RenderTreeBuilder.OpenElement)}") - .Write((_sourceSequence++).ToString()) - .WriteParameterSeparator() - .WriteStringLiteral(node.TagName) - .WriteEndMethodInvocation(); - - // Render Attributes before creating the scope. - foreach (var attribute in node.Attributes) - { - context.RenderNode(attribute); - } - - foreach (var capture in node.Captures) - { - context.RenderNode(capture); - } - - // Render body of the tag inside the scope - foreach (var child in node.Body) - { - context.RenderNode(child); - } - - context.CodeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{ComponentsApi.RenderTreeBuilder.CloseElement}") - .WriteEndMethodInvocation(); - } - - public override void WriteHtmlAttribute(CodeRenderingContext context, HtmlAttributeIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - Debug.Assert(_currentAttributeValues.Count == 0); - context.RenderChildren(node); - - WriteAttribute(context.CodeWriter, node.AttributeName, _currentAttributeValues); - _currentAttributeValues.Clear(); - } - - public override void WriteHtmlAttributeValue(CodeRenderingContext context, HtmlAttributeValueIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - var stringContent = ((IntermediateToken)node.Children.Single()).Content; - _currentAttributeValues.Add(new IntermediateToken() { Kind = TokenKind.Html, Content = node.Prefix + stringContent, }); - } - - public override void WriteHtmlContent(CodeRenderingContext context, HtmlContentIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Text node - var content = GetHtmlContent(node); - context.CodeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{nameof(ComponentsApi.RenderTreeBuilder.AddContent)}") - .Write((_sourceSequence++).ToString()) - .WriteParameterSeparator() - .WriteStringLiteral(content) - .WriteEndMethodInvocation(); - } - - public override void WriteUsingDirective(CodeRenderingContext context, UsingDirectiveIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - context.CodeWriter.WriteUsing(node.Content, endLine: true); - } - - public override void WriteComponent(CodeRenderingContext context, ComponentExtensionNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - if (node.TypeInferenceNode == null) - { - // If the component is using not using type inference then we just write an open/close with a series - // of add attribute calls in between. - // - // Writes something like: - // - // builder.OpenComponent(0); - // builder.AddAttribute(1, "Foo", ...); - // builder.AddAttribute(2, "ChildContent", ...); - // builder.AddElementCapture(3, (__value) => _field = __value); - // builder.CloseComponent(); - - // builder.OpenComponent(42); - context.CodeWriter.Write(_scopeStack.BuilderVarName); - context.CodeWriter.Write("."); - context.CodeWriter.Write(ComponentsApi.RenderTreeBuilder.OpenComponent); - context.CodeWriter.Write("<"); - context.CodeWriter.Write(node.TypeName); - context.CodeWriter.Write(">("); - context.CodeWriter.Write((_sourceSequence++).ToString()); - context.CodeWriter.Write(");"); - context.CodeWriter.WriteLine(); - - // We can skip type arguments during runtime codegen, they are handled in the - // type/parameter declarations. - - foreach (var attribute in node.Attributes) - { - context.RenderNode(attribute); - } - - foreach (var childContent in node.ChildContents) - { - context.RenderNode(childContent); - } - - foreach (var capture in node.Captures) - { - context.RenderNode(capture); - } - - // builder.CloseComponent(); - context.CodeWriter.Write(_scopeStack.BuilderVarName); - context.CodeWriter.Write("."); - context.CodeWriter.Write(ComponentsApi.RenderTreeBuilder.CloseComponent); - context.CodeWriter.Write("();"); - context.CodeWriter.WriteLine(); - } - else - { - // When we're doing type inference, we can't write all of the code inline to initialize - // the component on the builder. We generate a method elsewhere, and then pass all of the information - // to that method. We pass in all of the attribute values + the sequence numbers. - // - // __Blazor.MyComponent.TypeInference.CreateMyComponent_0(builder, 0, 1, ..., 2, ..., 3, ...); - var attributes = node.Attributes.ToList(); - var childContents = node.ChildContents.ToList(); - var captures = node.Captures.ToList(); - var remaining = attributes.Count + childContents.Count + captures.Count; - - context.CodeWriter.Write(node.TypeInferenceNode.FullTypeName); - context.CodeWriter.Write("."); - context.CodeWriter.Write(node.TypeInferenceNode.MethodName); - context.CodeWriter.Write("("); - - context.CodeWriter.Write(_scopeStack.BuilderVarName); - context.CodeWriter.Write(", "); - - context.CodeWriter.Write((_sourceSequence++).ToString()); - context.CodeWriter.Write(", "); - - for (var i = 0; i < attributes.Count; i++) - { - context.CodeWriter.Write((_sourceSequence++).ToString()); - context.CodeWriter.Write(", "); - - // Don't type check generics, since we can't actually write the type name. - // The type checking with happen anyway since we defined a method and we're generating - // a call to it. - WriteComponentAttributeInnards(context, attributes[i], canTypeCheck: false); - - remaining--; - if (remaining > 0) - { - context.CodeWriter.Write(", "); - } - } - - for (var i = 0; i < childContents.Count; i++) - { - context.CodeWriter.Write((_sourceSequence++).ToString()); - context.CodeWriter.Write(", "); - - WriteComponentChildContentInnards(context, childContents[i]); - - remaining--; - if (remaining > 0) - { - context.CodeWriter.Write(", "); - } - } - - for (var i = 0; i < captures.Count; i++) - { - context.CodeWriter.Write((_sourceSequence++).ToString()); - context.CodeWriter.Write(", "); - - WriteReferenceCaptureInnards(context, captures[i], shouldTypeCheck: false); - - remaining--; - if (remaining > 0) - { - context.CodeWriter.Write(", "); - } - } - - context.CodeWriter.Write(");"); - context.CodeWriter.WriteLine(); - } - } - - public override void WriteComponentAttribute(CodeRenderingContext context, ComponentAttributeExtensionNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // builder.AddAttribute(1, "Foo", 42); - context.CodeWriter.Write(_scopeStack.BuilderVarName); - context.CodeWriter.Write("."); - context.CodeWriter.Write(ComponentsApi.RenderTreeBuilder.AddAttribute); - context.CodeWriter.Write("("); - context.CodeWriter.Write((_sourceSequence++).ToString()); - context.CodeWriter.Write(", "); - context.CodeWriter.WriteStringLiteral(node.AttributeName); - context.CodeWriter.Write(", "); - - WriteComponentAttributeInnards(context, node, canTypeCheck: true); - - context.CodeWriter.Write(");"); - context.CodeWriter.WriteLine(); - } - - private void WriteComponentAttributeInnards(CodeRenderingContext context, ComponentAttributeExtensionNode node, bool canTypeCheck) - { - if (node.AttributeStructure == AttributeStructure.Minimized) - { - // Minimized attributes always map to 'true' - context.CodeWriter.Write("true"); - } - else if (node.Children.Count > 1) - { - // We don't expect this to happen, we just want to know if it can. - throw new InvalidOperationException("Attribute nodes should either be minimized or a single type of content." + string.Join(", ", node.Children)); - } - else if (node.Children.Count == 1 && node.Children[0] is HtmlContentIntermediateNode htmlNode) - { - // This is how string attributes are lowered by default, a single HTML node with a single HTML token. - var content = string.Join(string.Empty, GetHtmlTokens(htmlNode).Select(t => t.Content)); - context.CodeWriter.WriteStringLiteral(content); - } - else - { - // See comments in BlazorDesignTimeNodeWriter for a description of the cases that are possible. - var tokens = GetCSharpTokens(node); - if ((node.BoundAttribute?.IsDelegateProperty() ?? false) || - (node.BoundAttribute?.IsChildContentProperty() ?? false)) - { - if (canTypeCheck) - { - context.CodeWriter.Write("new "); - context.CodeWriter.Write(node.TypeName); - context.CodeWriter.Write("("); - } - - for (var i = 0; i < tokens.Count; i++) - { - context.CodeWriter.Write(tokens[i].Content); - } - - if (canTypeCheck) - { - context.CodeWriter.Write(")"); - } - } - else - { - if (canTypeCheck && NeedsTypeCheck(node)) - { - context.CodeWriter.Write(ComponentsApi.RuntimeHelpers.TypeCheck); - context.CodeWriter.Write("<"); - context.CodeWriter.Write(node.TypeName); - context.CodeWriter.Write(">"); - context.CodeWriter.Write("("); - } - - for (var i = 0; i < tokens.Count; i++) - { - context.CodeWriter.Write(tokens[i].Content); - } - - if (canTypeCheck && NeedsTypeCheck(node)) - { - context.CodeWriter.Write(")"); - } - } - } - - IReadOnlyList GetCSharpTokens(ComponentAttributeExtensionNode attribute) - { - // We generally expect all children to be CSharp, this is here just in case. - return attribute.FindDescendantNodes().Where(t => t.IsCSharp).ToArray(); - } - - IReadOnlyList GetHtmlTokens(HtmlContentIntermediateNode html) - { - // We generally expect all children to be HTML, this is here just in case. - return html.FindDescendantNodes().Where(t => t.IsHtml).ToArray(); - } - - bool NeedsTypeCheck(ComponentAttributeExtensionNode n) - { - return node.BoundAttribute != null && !node.BoundAttribute.IsWeaklyTyped(); - } - } - - public override void WriteComponentChildContent(CodeRenderingContext context, ComponentChildContentIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Writes something like: - // - // builder.AddAttribute(1, "ChildContent", (RenderFragment)((__builder73) => { ... })); - // OR - // builder.AddAttribute(1, "ChildContent", (RenderFragment)((person) => (__builder73) => { ... })); - BeginWriteAttribute(context.CodeWriter, node.AttributeName); - context.CodeWriter.Write($"({node.TypeName})("); - - WriteComponentChildContentInnards(context, node); - - context.CodeWriter.Write(")"); - context.CodeWriter.WriteEndMethodInvocation(); - } - - private void WriteComponentChildContentInnards(CodeRenderingContext context, ComponentChildContentIntermediateNode node) - { - // Writes something like: - // - // ((__builder73) => { ... }) - // OR - // ((person) => (__builder73) => { }) - _scopeStack.OpenComponentScope( - context, - node.AttributeName, - node.IsParameterized ? node.ParameterName : null); - for (var i = 0; i < node.Children.Count; i++) - { - context.RenderNode(node.Children[i]); - } - _scopeStack.CloseScope(context); - } - - public override void WriteComponentTypeArgument(CodeRenderingContext context, ComponentTypeArgumentExtensionNode node) - { - // We can skip type arguments during runtime codegen, they are handled in the - // type/parameter declarations. - } - - public override void WriteTemplate(CodeRenderingContext context, TemplateIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Looks like: - // - // (__builder73) => { ... } - _scopeStack.OpenTemplateScope(context); - context.RenderChildren(node); - _scopeStack.CloseScope(context); - } - - public override void WriteReferenceCapture(CodeRenderingContext context, RefExtensionNode node) - { - // Looks like: - // - // builder.AddComponentReferenceCapture(2, (__value) = { _field = (MyComponent)__value; }); - // OR - // builder.AddElementReferenceCapture(2, (__value) = { _field = (ElementRef)__value; }); - var codeWriter = context.CodeWriter; - - var methodName = node.IsComponentCapture - ? nameof(ComponentsApi.RenderTreeBuilder.AddComponentReferenceCapture) - : nameof(ComponentsApi.RenderTreeBuilder.AddElementReferenceCapture); - codeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{methodName}") - .Write((_sourceSequence++).ToString()) - .WriteParameterSeparator(); - - WriteReferenceCaptureInnards(context, node, shouldTypeCheck: true); - - codeWriter.WriteEndMethodInvocation(); - } - - protected override void WriteReferenceCaptureInnards(CodeRenderingContext context, RefExtensionNode node, bool shouldTypeCheck) - { - // Looks like: - // - // (__value) = { _field = (MyComponent)__value; } - // OR - // (__value) = { _field = (ElementRef)__value; } - const string refCaptureParamName = "__value"; - using (var lambdaScope = context.CodeWriter.BuildLambda(refCaptureParamName)) - { - var typecastIfNeeded = shouldTypeCheck && node.IsComponentCapture ? $"({node.ComponentCaptureTypeName})" : string.Empty; - WriteCSharpCode(context, new CSharpCodeIntermediateNode - { - Source = node.Source, - Children = - { - node.IdentifierToken, - new IntermediateToken - { - Kind = TokenKind.CSharp, - Content = $" = {typecastIfNeeded}{refCaptureParamName};" - } - } - }); - } - } - - private void WriteAttribute(CodeWriter codeWriter, string key, IList value) - { - BeginWriteAttribute(codeWriter, key); - WriteAttributeValue(codeWriter, value); - codeWriter.WriteEndMethodInvocation(); - } - - public override void BeginWriteAttribute(CodeWriter codeWriter, string key) - { - codeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{nameof(ComponentsApi.RenderTreeBuilder.AddAttribute)}") - .Write((_sourceSequence++).ToString()) - .WriteParameterSeparator() - .WriteStringLiteral(key) - .WriteParameterSeparator(); - } - - private static string GetHtmlContent(HtmlContentIntermediateNode node) - { - var builder = new StringBuilder(); - var htmlTokens = node.Children.OfType().Where(t => t.IsHtml); - foreach (var htmlToken in htmlTokens) - { - builder.Append(htmlToken.Content); - } - return builder.ToString(); - } - - // There are a few cases here, we need to handle: - // - Pure HTML - // - Pure CSharp - // - Mixed HTML and CSharp - // - // Only the mixed case is complicated, we want to turn it into code that will concatenate - // the values into a string at runtime. - - private static void WriteAttributeValue(CodeWriter writer, IList tokens) - { - if (tokens == null) - { - throw new ArgumentNullException(nameof(tokens)); - } - - var hasHtml = false; - var hasCSharp = false; - for (var i = 0; i < tokens.Count; i++) - { - if (tokens[i].IsCSharp) - { - hasCSharp |= true; - } - else - { - hasHtml |= true; - } - } - - if (hasHtml && hasCSharp) - { - // If it's a C# expression, we have to wrap it in parens, otherwise things like ternary - // expressions don't compose with concatenation. However, this is a little complicated - // because C# tokens themselves aren't guaranteed to be distinct expressions. We want - // to treat all contiguous C# tokens as a single expression. - var insideCSharp = false; - for (var i = 0; i < tokens.Count; i++) - { - var token = tokens[i]; - if (token.IsCSharp) - { - if (!insideCSharp) - { - if (i != 0) - { - writer.Write(" + "); - } - - writer.Write("("); - insideCSharp = true; - } - - writer.Write(token.Content); - } - else - { - if (insideCSharp) - { - writer.Write(")"); - insideCSharp = false; - } - - if (i != 0) - { - writer.Write(" + "); - } - - writer.WriteStringLiteral(token.Content); - } - } - - if (insideCSharp) - { - writer.Write(")"); - } - } - else if (hasCSharp) - { - writer.Write(string.Join("", tokens.Select(t => t.Content))); - } - else if (hasHtml) - { - writer.WriteStringLiteral(string.Join("", tokens.Select(t => t.Content))); - } - else - { - // Minimized attributes always map to 'true' - writer.Write("true"); - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorTemplateTargetExtension.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorTemplateTargetExtension.cs deleted file mode 100644 index 287ca46dc0..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/BlazorTemplateTargetExtension.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Extensions; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class BlazorTemplateTargetExtension : ITemplateTargetExtension - { - public void WriteTemplate(CodeRenderingContext context, TemplateIntermediateNode node) - { - ((BlazorNodeWriter)context.NodeWriter).WriteTemplate(context, node); - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/CSharpIdentifier.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/CSharpIdentifier.cs deleted file mode 100644 index a24206108e..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/CSharpIdentifier.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Globalization; -using System.Text; - -namespace Microsoft.AspNetCore.Components.Razor -{ - // Copied from the Razor repo - internal static class CSharpIdentifier - { - private const string CshtmlExtension = ".cshtml"; - - public static string GetClassNameFromPath(string path) - { - if (string.IsNullOrEmpty(path)) - { - return path; - } - - if (path.EndsWith(CshtmlExtension, StringComparison.OrdinalIgnoreCase)) - { - path = path.Substring(0, path.Length - CshtmlExtension.Length); - } - - return SanitizeClassName(path); - } - - // CSharp Spec §2.4.2 - private static bool IsIdentifierStart(char character) - { - return char.IsLetter(character) || - character == '_' || - CharUnicodeInfo.GetUnicodeCategory(character) == UnicodeCategory.LetterNumber; - } - - public static bool IsIdentifierPart(char character) - { - return char.IsDigit(character) || - IsIdentifierStart(character) || - IsIdentifierPartByUnicodeCategory(character); - } - - private static bool IsIdentifierPartByUnicodeCategory(char character) - { - var category = CharUnicodeInfo.GetUnicodeCategory(character); - - return category == UnicodeCategory.NonSpacingMark || // Mn - category == UnicodeCategory.SpacingCombiningMark || // Mc - category == UnicodeCategory.ConnectorPunctuation || // Pc - category == UnicodeCategory.Format; // Cf - } - - public static string SanitizeClassName(string inputName) - { - if (!IsIdentifierStart(inputName[0]) && IsIdentifierPart(inputName[0])) - { - inputName = "_" + inputName; - } - - var builder = new StringBuilder(inputName.Length); - for (var i = 0; i < inputName.Length; i++) - { - var ch = inputName[i]; - builder.Append(IsIdentifierPart(ch) ? ch : '_'); - } - - return builder.ToString(); - } - } -} \ No newline at end of file diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ChildContentDiagnosticPass.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ChildContentDiagnosticPass.cs deleted file mode 100644 index 5d85308eb8..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ChildContentDiagnosticPass.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class ChildContentDiagnosticPass : IntermediateNodePassBase, IRazorOptimizationPass - { - // Runs after components/eventhandlers/ref/bind/templates. We want to validate every component - // and it's usage of ChildContent. - public override int Order => 160; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var visitor = new Visitor(); - visitor.Visit(documentNode); - } - - private class Visitor : IntermediateNodeWalker, IExtensionIntermediateNodeVisitor, IExtensionIntermediateNodeVisitor - { - public void VisitExtension(ComponentExtensionNode node) - { - // Check for properties that are set by both element contents (body) and the attribute itself. - foreach (var childContent in node.ChildContents) - { - foreach (var attribute in node.Attributes) - { - if (attribute.AttributeName == childContent.AttributeName) - { - node.Diagnostics.Add(BlazorDiagnosticFactory.Create_ChildContentSetByAttributeAndBody( - attribute.Source, - attribute.AttributeName)); - } - } - } - - base.VisitDefault(node); - } - - public void VisitExtension(ComponentChildContentIntermediateNode node) - { - // Check that each child content has a unique parameter name within its scope. This is important - // because the parameter name can be implicit, and it doesn't work well when nested. - if (node.IsParameterized) - { - for (var i = 0; i < Ancestors.Count - 1; i++) - { - var ancestor = Ancestors[i] as ComponentChildContentIntermediateNode; - if (ancestor != null && - ancestor.IsParameterized && - string.Equals(node.ParameterName, ancestor.ParameterName, StringComparison.Ordinal)) - { - // Duplicate name. We report an error because this will almost certainly also lead to an error - // from the C# compiler that's way less clear. - node.Diagnostics.Add(BlazorDiagnosticFactory.Create_ChildContentRepeatedParameterName( - node.Source, - node, - (ComponentExtensionNode)Ancestors[0], // Enclosing component - ancestor, // conflicting child content node - (ComponentExtensionNode)Ancestors[i + 1])); // Enclosing component of conflicting child content node - } - } - } - - base.VisitDefault(node); - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/CodeWriterExtensions.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/CodeWriterExtensions.cs deleted file mode 100644 index ac02f126c7..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/CodeWriterExtensions.cs +++ /dev/null @@ -1,647 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.Linq; - -// Copied directly from https://github.com/aspnet/Razor/blob/ff40124594b58b17988d50841175430a4b73d1a9/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeWriterExtensions.cs -// (other than the namespace change) because it's internal - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal static class CodeWriterExtensions - { - private const string InstanceMethodFormat = "{0}.{1}"; - - private static readonly char[] CStyleStringLiteralEscapeChars = - { - '\r', - '\t', - '\"', - '\'', - '\\', - '\0', - '\n', - '\u2028', - '\u2029', - }; - - public static bool IsAtBeginningOfLine(this CodeWriter writer) - { - return writer.Length == 0 || writer[writer.Length - 1] == '\n'; - } - - public static CodeWriter WritePadding(this CodeWriter writer, int offset, SourceSpan? span, CodeRenderingContext context) - { - if (span == null) - { - return writer; - } - - var basePadding = CalculatePadding(); - var resolvedPadding = Math.Max(basePadding - offset, 0); - - if (context.Options.IndentWithTabs) - { - // Avoid writing directly to the StringBuilder here, that will throw off the manual indexing - // done by the base class. - var tabs = resolvedPadding / context.Options.IndentSize; - for (var i = 0; i < tabs; i++) - { - writer.Write("\t"); - } - - var spaces = resolvedPadding % context.Options.IndentSize; - for (var i = 0; i < spaces; i++) - { - writer.Write(" "); - } - } - else - { - for (var i = 0; i < resolvedPadding; i++) - { - writer.Write(" "); - } - } - - return writer; - - int CalculatePadding() - { - var spaceCount = 0; - for (var i = span.Value.AbsoluteIndex - 1; i >= 0; i--) - { - var @char = context.SourceDocument[i]; - if (@char == '\n' || @char == '\r') - { - break; - } - else if (@char == '\t') - { - spaceCount += context.Options.IndentSize; - } - else - { - spaceCount++; - } - } - - return spaceCount; - } - } - - public static CodeWriter WriteVariableDeclaration(this CodeWriter writer, string type, string name, string value) - { - writer.Write(type).Write(" ").Write(name); - if (!string.IsNullOrEmpty(value)) - { - writer.Write(" = ").Write(value); - } - else - { - writer.Write(" = null"); - } - - writer.WriteLine(";"); - - return writer; - } - - public static CodeWriter WriteBooleanLiteral(this CodeWriter writer, bool value) - { - return writer.Write(value.ToString().ToLowerInvariant()); - } - - public static CodeWriter WriteStartAssignment(this CodeWriter writer, string name) - { - return writer.Write(name).Write(" = "); - } - - public static CodeWriter WriteParameterSeparator(this CodeWriter writer) - { - return writer.Write(", "); - } - - public static CodeWriter WriteStartNewObject(this CodeWriter writer, string typeName) - { - return writer.Write("new ").Write(typeName).Write("("); - } - - public static CodeWriter WriteStringLiteral(this CodeWriter writer, string literal) - { - if (literal.Length >= 256 && literal.Length <= 1500 && literal.IndexOf('\0') == -1) - { - WriteVerbatimStringLiteral(writer, literal); - } - else - { - WriteCStyleStringLiteral(writer, literal); - } - - return writer; - } - - public static CodeWriter WriteUsing(this CodeWriter writer, string name) - { - return WriteUsing(writer, name, endLine: true); - } - - public static CodeWriter WriteUsing(this CodeWriter writer, string name, bool endLine) - { - writer.Write("using "); - writer.Write(name); - - if (endLine) - { - writer.WriteLine(";"); - } - - return writer; - } - - public static CodeWriter WriteLineNumberDirective(this CodeWriter writer, SourceSpan span) - { - if (writer.Length >= writer.NewLine.Length && !IsAtBeginningOfLine(writer)) - { - writer.WriteLine(); - } - - var lineNumberAsString = (span.LineIndex + 1).ToString(CultureInfo.InvariantCulture); - return writer.Write("#line ").Write(lineNumberAsString).Write(" \"").Write(span.FilePath).WriteLine("\""); - } - - public static CodeWriter WriteStartMethodInvocation(this CodeWriter writer, string methodName) - { - writer.Write(methodName); - - return writer.Write("("); - } - - public static CodeWriter WriteEndMethodInvocation(this CodeWriter writer) - { - return WriteEndMethodInvocation(writer, endLine: true); - } - - public static CodeWriter WriteEndMethodInvocation(this CodeWriter writer, bool endLine) - { - writer.Write(")"); - if (endLine) - { - writer.WriteLine(";"); - } - - return writer; - } - - // Writes a method invocation for the given instance name. - public static CodeWriter WriteInstanceMethodInvocation( - this CodeWriter writer, - string instanceName, - string methodName, - params string[] parameters) - { - if (instanceName == null) - { - throw new ArgumentNullException(nameof(instanceName)); - } - - if (methodName == null) - { - throw new ArgumentNullException(nameof(methodName)); - } - - return WriteInstanceMethodInvocation(writer, instanceName, methodName, endLine: true, parameters: parameters); - } - - // Writes a method invocation for the given instance name. - public static CodeWriter WriteInstanceMethodInvocation( - this CodeWriter writer, - string instanceName, - string methodName, - bool endLine, - params string[] parameters) - { - if (instanceName == null) - { - throw new ArgumentNullException(nameof(instanceName)); - } - - if (methodName == null) - { - throw new ArgumentNullException(nameof(methodName)); - } - - return WriteMethodInvocation( - writer, - string.Format(CultureInfo.InvariantCulture, InstanceMethodFormat, instanceName, methodName), - endLine, - parameters); - } - - public static CodeWriter WriteStartInstanceMethodInvocation(this CodeWriter writer, string instanceName, string methodName) - { - if (instanceName == null) - { - throw new ArgumentNullException(nameof(instanceName)); - } - - if (methodName == null) - { - throw new ArgumentNullException(nameof(methodName)); - } - - return WriteStartMethodInvocation( - writer, - string.Format(CultureInfo.InvariantCulture, InstanceMethodFormat, instanceName, methodName)); - } - - public static CodeWriter WriteField(this CodeWriter writer, IList modifiers, string typeName, string fieldName) - { - if (modifiers == null) - { - throw new ArgumentNullException(nameof(modifiers)); - } - - if (typeName == null) - { - throw new ArgumentNullException(nameof(typeName)); - } - - if (fieldName == null) - { - throw new ArgumentNullException(nameof(fieldName)); - } - - for (var i = 0; i < modifiers.Count; i++) - { - writer.Write(modifiers[i]); - writer.Write(" "); - } - - writer.Write(typeName); - writer.Write(" "); - writer.Write(fieldName); - writer.Write(";"); - writer.WriteLine(); - - return writer; - } - - public static CodeWriter WriteMethodInvocation(this CodeWriter writer, string methodName, params string[] parameters) - { - return WriteMethodInvocation(writer, methodName, endLine: true, parameters: parameters); - } - - public static CodeWriter WriteMethodInvocation(this CodeWriter writer, string methodName, bool endLine, params string[] parameters) - { - return - WriteStartMethodInvocation(writer, methodName) - .Write(string.Join(", ", parameters)) - .WriteEndMethodInvocation(endLine); - } - - public static CodeWriter WriteAutoPropertyDeclaration(this CodeWriter writer, IList modifiers, string typeName, string propertyName) - { - if (modifiers == null) - { - throw new ArgumentNullException(nameof(modifiers)); - } - - if (typeName == null) - { - throw new ArgumentNullException(nameof(typeName)); - } - - if (propertyName == null) - { - throw new ArgumentNullException(nameof(propertyName)); - } - - for (var i = 0; i < modifiers.Count; i++) - { - writer.Write(modifiers[i]); - writer.Write(" "); - } - - writer.Write(typeName); - writer.Write(" "); - writer.Write(propertyName); - writer.Write(" { get; set; }"); - writer.WriteLine(); - - return writer; - } - - public static CSharpCodeWritingScope BuildScope(this CodeWriter writer) - { - return new CSharpCodeWritingScope(writer); - } - - public static CSharpCodeWritingScope BuildLambda(this CodeWriter writer, params string[] parameterNames) - { - return BuildLambda(writer, async: false, parameterNames: parameterNames); - } - - public static CSharpCodeWritingScope BuildAsyncLambda(this CodeWriter writer, params string[] parameterNames) - { - return BuildLambda(writer, async: true, parameterNames: parameterNames); - } - - private static CSharpCodeWritingScope BuildLambda(CodeWriter writer, bool async, string[] parameterNames) - { - if (async) - { - writer.Write("async"); - } - - writer.Write("(").Write(string.Join(", ", parameterNames)).Write(") => "); - - var scope = new CSharpCodeWritingScope(writer); - - return scope; - } - - public static CSharpCodeWritingScope BuildNamespace(this CodeWriter writer, string name) - { - writer.Write("namespace ").WriteLine(name); - - return new CSharpCodeWritingScope(writer); - } - - public static CSharpCodeWritingScope BuildClassDeclaration( - this CodeWriter writer, - IList modifiers, - string name, - string baseType, - IEnumerable interfaces) - { - for (var i = 0; i < modifiers.Count; i++) - { - writer.Write(modifiers[i]); - writer.Write(" "); - } - - writer.Write("class "); - writer.Write(name); - - var hasBaseType = !string.IsNullOrEmpty(baseType); - var hasInterfaces = interfaces != null && interfaces.Count() > 0; - - if (hasBaseType || hasInterfaces) - { - writer.Write(" : "); - - if (hasBaseType) - { - writer.Write(baseType); - - if (hasInterfaces) - { - WriteParameterSeparator(writer); - } - } - - if (hasInterfaces) - { - writer.Write(string.Join(", ", interfaces)); - } - } - - writer.WriteLine(); - - return new CSharpCodeWritingScope(writer); - } - - public static CSharpCodeWritingScope BuildMethodDeclaration( - this CodeWriter writer, - string accessibility, - string returnType, - string name, - IEnumerable> parameters) - { - writer.Write(accessibility) - .Write(" ") - .Write(returnType) - .Write(" ") - .Write(name) - .Write("(") - .Write(string.Join(", ", parameters.Select(p => p.Key + " " + p.Value))) - .WriteLine(")"); - - return new CSharpCodeWritingScope(writer); - } - - public static IDisposable BuildLinePragma(this CodeWriter writer, SourceSpan? span) - { - if (string.IsNullOrEmpty(span?.FilePath)) - { - // Can't build a valid line pragma without a file path. - return NullDisposable.Default; - } - - return new LinePragmaWriter(writer, span.Value); - } - - private static void WriteVerbatimStringLiteral(CodeWriter writer, string literal) - { - writer.Write("@\""); - - // We need to suppress indenting during the writing of the string's content. A - // verbatim string literal could contain newlines that don't get escaped. - var indent = writer.CurrentIndent; - writer.CurrentIndent = 0; - - // We need to find the index of each '"' (double-quote) to escape it. - var start = 0; - int end; - while ((end = literal.IndexOf('\"', start)) > -1) - { - writer.Write(literal, start, end - start); - - writer.Write("\"\""); - - start = end + 1; - } - - Debug.Assert(end == -1); // We've hit all of the double-quotes. - - // Write the remainder after the last double-quote. - writer.Write(literal, start, literal.Length - start); - - writer.Write("\""); - - writer.CurrentIndent = indent; - } - - private static void WriteCStyleStringLiteral(CodeWriter writer, string literal) - { - // From CSharpCodeGenerator.QuoteSnippetStringCStyle in CodeDOM - writer.Write("\""); - - // We need to find the index of each escapable character to escape it. - var start = 0; - int end; - while ((end = literal.IndexOfAny(CStyleStringLiteralEscapeChars, start)) > -1) - { - writer.Write(literal, start, end - start); - - switch (literal[end]) - { - case '\r': - writer.Write("\\r"); - break; - case '\t': - writer.Write("\\t"); - break; - case '\"': - writer.Write("\\\""); - break; - case '\'': - writer.Write("\\\'"); - break; - case '\\': - writer.Write("\\\\"); - break; - case '\0': - writer.Write("\\\0"); - break; - case '\n': - writer.Write("\\n"); - break; - case '\u2028': - case '\u2029': - writer.Write("\\u"); - writer.Write(((int)literal[end]).ToString("X4", CultureInfo.InvariantCulture)); - break; - default: - Debug.Assert(false, "Unknown escape character."); - break; - } - - start = end + 1; - } - - Debug.Assert(end == -1); // We've hit all of chars that need escaping. - - // Write the remainder after the last escaped char. - writer.Write(literal, start, literal.Length - start); - - writer.Write("\""); - } - - public struct CSharpCodeWritingScope : IDisposable - { - private CodeWriter _writer; - private bool _autoSpace; - private int _tabSize; - private int _startIndent; - - public CSharpCodeWritingScope(CodeWriter writer, int tabSize = 4, bool autoSpace = true) - { - _writer = writer; - _autoSpace = autoSpace; - _tabSize = tabSize; - _startIndent = -1; // Set in WriteStartScope - - WriteStartScope(); - } - - public void Dispose() - { - WriteEndScope(); - } - - private void WriteStartScope() - { - TryAutoSpace(" "); - - _writer.WriteLine("{"); - _writer.CurrentIndent += _tabSize; - _startIndent = _writer.CurrentIndent; - } - - private void WriteEndScope() - { - TryAutoSpace(_writer.NewLine); - - // Ensure the scope hasn't been modified - if (_writer.CurrentIndent == _startIndent) - { - _writer.CurrentIndent -= _tabSize; - } - - _writer.WriteLine("}"); - } - - private void TryAutoSpace(string spaceCharacter) - { - if (_autoSpace && - _writer.Length > 0 && - !char.IsWhiteSpace(_writer[_writer.Length - 1])) - { - _writer.Write(spaceCharacter); - } - } - } - - private class LinePragmaWriter : IDisposable - { - private readonly CodeWriter _writer; - private readonly int _startIndent; - - public LinePragmaWriter(CodeWriter writer, SourceSpan span) - { - if (writer == null) - { - throw new ArgumentNullException(nameof(writer)); - } - - _writer = writer; - _startIndent = _writer.CurrentIndent; - _writer.CurrentIndent = 0; - WriteLineNumberDirective(writer, span); - } - - public void Dispose() - { - // Need to add an additional line at the end IF there wasn't one already written. - // This is needed to work with the C# editor's handling of #line ... - var endsWithNewline = _writer.Length > 0 && _writer[_writer.Length - 1] == '\n'; - - // Always write at least 1 empty line to potentially separate code from pragmas. - _writer.WriteLine(); - - // Check if the previous empty line wasn't enough to separate code from pragmas. - if (!endsWithNewline) - { - _writer.WriteLine(); - } - - _writer - .WriteLine("#line default") - .WriteLine("#line hidden"); - - _writer.CurrentIndent = _startIndent; - } - } - - private class NullDisposable : IDisposable - { - public static readonly NullDisposable Default = new NullDisposable(); - - private NullDisposable() - { - } - - public void Dispose() - { - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComplexAttributeContentPass.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComplexAttributeContentPass.cs deleted file mode 100644 index bd858e2c16..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComplexAttributeContentPass.cs +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - // We don't support 'complex' content for components (mixed C# and markup) right now. - // It's not clear yet if Blazor will have a good scenario to use these constructs. - // - // This is where a lot of the complexity in the Razor/TagHelpers model creeps in and we - // might be able to avoid it if these features aren't needed. - internal class ComplexAttributeContentPass : IntermediateNodePassBase, IRazorOptimizationPass - { - // Run before other Blazor passes - public override int Order => -1000; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var nodes = documentNode.FindDescendantNodes(); - for (var i = 0; i < nodes.Count; i++) - { - ProcessAttributes(nodes[i]); - } - } - - private void ProcessAttributes(TagHelperIntermediateNode node) - { - for (var i = node.Children.Count - 1; i >= 0; i--) - { - if (node.Children[i] is TagHelperPropertyIntermediateNode propertyNode) - { - if (TrySimplifyContent(propertyNode) && node.TagHelpers.Any(t => t.IsComponentTagHelper())) - { - node.Diagnostics.Add(BlazorDiagnosticFactory.Create_UnsupportedComplexContent( - propertyNode, - propertyNode.AttributeName)); - node.Children.RemoveAt(i); - continue; - } - } - else if (node.Children[i] is TagHelperHtmlAttributeIntermediateNode htmlNode) - { - if (TrySimplifyContent(htmlNode) && node.TagHelpers.Any(t => t.IsComponentTagHelper())) - { - node.Diagnostics.Add(BlazorDiagnosticFactory.Create_UnsupportedComplexContent( - htmlNode, - htmlNode.AttributeName)); - node.Children.RemoveAt(i); - continue; - } - } - } - } - - private static bool TrySimplifyContent(IntermediateNode node) - { - if (node.Children.Count == 1 && - node.Children[0] is HtmlAttributeIntermediateNode htmlNode && - htmlNode.Children.Count > 1) - { - // This case can be hit for a 'string' attribute - return true; - } - else if (node.Children.Count == 1 && - node.Children[0] is CSharpExpressionIntermediateNode cSharpNode && - cSharpNode.Children.Count > 1) - { - // This case can be hit when the attribute has an explicit @ inside, which - // 'escapes' any special sugar we provide for codegen. - // - // There's a special case here for explicit expressions. See https://github.com/aspnet/Razor/issues/2203 - // handling this case as a tactical matter since it's important for lambdas. - if (cSharpNode.Children.Count == 3 && - cSharpNode.Children[0] is IntermediateToken token0 && - cSharpNode.Children[2] is IntermediateToken token2 && - token0.Content == "(" && - token2.Content == ")") - { - cSharpNode.Children.RemoveAt(2); - cSharpNode.Children.RemoveAt(0); - - // We were able to simplify it, all good. - return false; - } - - return true; - } - else if (node.Children.Count == 1 && - node.Children[0] is CSharpCodeIntermediateNode cSharpCodeNode) - { - // This is the case when an attribute contains a code block @{ ... } - // We don't support this. - return true; - } - else if (node.Children.Count > 1) - { - // This is the common case for 'mixed' content - return true; - } - - return false; - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentAttributeExtensionNode.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentAttributeExtensionNode.cs deleted file mode 100644 index 2419cfada6..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentAttributeExtensionNode.cs +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class ComponentAttributeExtensionNode : ExtensionIntermediateNode - { - public ComponentAttributeExtensionNode() - { - } - - public ComponentAttributeExtensionNode(TagHelperHtmlAttributeIntermediateNode attributeNode) - { - if (attributeNode == null) - { - throw new ArgumentNullException(nameof(attributeNode)); - } - - AttributeName = attributeNode.AttributeName; - AttributeStructure = attributeNode.AttributeStructure; - Source = attributeNode.Source; - - for (var i = 0; i < attributeNode.Children.Count; i++) - { - Children.Add(attributeNode.Children[i]); - } - - for (var i = 0; i < attributeNode.Diagnostics.Count; i++) - { - Diagnostics.Add(attributeNode.Diagnostics[i]); - } - } - - public ComponentAttributeExtensionNode(TagHelperPropertyIntermediateNode propertyNode) - { - if (propertyNode == null) - { - throw new ArgumentNullException(nameof(propertyNode)); - } - - AttributeName = propertyNode.AttributeName; - AttributeStructure = propertyNode.AttributeStructure; - BoundAttribute = propertyNode.BoundAttribute; - PropertyName = propertyNode.BoundAttribute.GetPropertyName(); - Source = propertyNode.Source; - TagHelper = propertyNode.TagHelper; - TypeName = propertyNode.BoundAttribute.IsWeaklyTyped() ? null : propertyNode.BoundAttribute.TypeName; - - for (var i = 0; i < propertyNode.Children.Count; i++) - { - Children.Add(propertyNode.Children[i]); - } - - for (var i = 0; i < propertyNode.Diagnostics.Count; i++) - { - Diagnostics.Add(propertyNode.Diagnostics[i]); - } - } - - public ComponentAttributeExtensionNode(ComponentAttributeExtensionNode attributeNode) - { - if (attributeNode == null) - { - throw new ArgumentNullException(nameof(attributeNode)); - } - - AttributeName = attributeNode.AttributeName; - AttributeStructure = attributeNode.AttributeStructure; - BoundAttribute = attributeNode.BoundAttribute; - PropertyName = attributeNode.BoundAttribute.GetPropertyName(); - Source = attributeNode.Source; - TagHelper = attributeNode.TagHelper; - TypeName = attributeNode.BoundAttribute.IsWeaklyTyped() ? null : attributeNode.BoundAttribute.TypeName; - - for (var i = 0; i < attributeNode.Children.Count; i++) - { - Children.Add(attributeNode.Children[i]); - } - - for (var i = 0; i < attributeNode.Diagnostics.Count; i++) - { - Diagnostics.Add(attributeNode.Diagnostics[i]); - } - } - - public override IntermediateNodeCollection Children { get; } = new IntermediateNodeCollection(); - - public string AttributeName { get; set; } - - public AttributeStructure AttributeStructure { get; set; } - - public BoundAttributeDescriptor BoundAttribute { get; set; } - - public string PropertyName { get; set; } - - public TagHelperDescriptor TagHelper { get; set; } - - public string TypeName { get; set; } - - public override void Accept(IntermediateNodeVisitor visitor) - { - if (visitor == null) - { - throw new ArgumentNullException(nameof(visitor)); - } - - AcceptExtensionNode(this, visitor); - } - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - if (target == null) - { - throw new ArgumentNullException(nameof(target)); - } - - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var writer = (BlazorNodeWriter)context.NodeWriter; - writer.WriteComponentAttribute(context, this); - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentChildContentIntermediateNode.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentChildContentIntermediateNode.cs deleted file mode 100644 index cebcbc8e63..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentChildContentIntermediateNode.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class ComponentChildContentIntermediateNode : ExtensionIntermediateNode - { - public string AttributeName => BoundAttribute?.Name ?? ComponentsApi.RenderTreeBuilder.ChildContent; - - public BoundAttributeDescriptor BoundAttribute { get; set; } - - public override IntermediateNodeCollection Children { get; } = new IntermediateNodeCollection(); - - public bool IsParameterized => BoundAttribute?.IsParameterizedChildContentProperty() ?? false; - - public string ParameterName { get; set; } - - public string TypeName { get; set; } - - public override void Accept(IntermediateNodeVisitor visitor) - { - if (visitor == null) - { - throw new ArgumentNullException(nameof(visitor)); - } - - AcceptExtensionNode(this, visitor); - } - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - if (target == null) - { - throw new ArgumentNullException(nameof(target)); - } - - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var writer = (BlazorNodeWriter)context.NodeWriter; - writer.WriteComponentChildContent(context, this); - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentDocumentClassifierPass.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentDocumentClassifierPass.cs deleted file mode 100644 index 38a9005957..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentDocumentClassifierPass.cs +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - /// - /// A that recognizes Blazor components. - /// - public class ComponentDocumentClassifierPass : DocumentClassifierPassBase, IRazorDocumentClassifierPass - { - /// - /// The component document kind. - /// - public static readonly string ComponentDocumentKind = "Blazor.Component"; - - private static readonly object BuildRenderTreeBaseCallAnnotation = new object(); - - private static readonly char[] PathSeparators = new char[] { '/', '\\' }; - - private static readonly char[] NamespaceSeparators = new char[] { '.' }; - - /// - /// The base namespace. - /// - // This is a fallback value and will only be used if we can't compute - // a reasonable namespace. - public string BaseNamespace { get; set; } = "__BlazorGenerated"; - - /// - /// Gets or sets whether to mangle class names. - /// - /// Set to true in the IDE so we can generated mangled class names. This is needed - /// to avoid conflicts between generated design-time code and the code in the editor. - /// - /// A better workaround for this would be to create a singlefilegenerator that overrides - /// the codegen process when a document is open, but this is more involved, so hacking - /// it for now. - /// - public bool MangleClassNames { get; set; } = false; - - internal static bool IsBuildRenderTreeBaseCall(CSharpCodeIntermediateNode node) - => node.Annotations[BuildRenderTreeBaseCallAnnotation] != null; - - /// - protected override string DocumentKind => ComponentDocumentKind; - - /// - protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - // Treat everything as a component by default if Blazor is part of the configuration. - return true; - } - - /// - protected override void OnDocumentStructureCreated( - RazorCodeDocument codeDocument, - NamespaceDeclarationIntermediateNode @namespace, - ClassDeclarationIntermediateNode @class, - MethodDeclarationIntermediateNode method) - { - if (!TryComputeNamespaceAndClass( - codeDocument.Source.FilePath, - codeDocument.Source.RelativePath, - out var computedNamespace, - out var computedClass)) - { - // If we can't compute a nice namespace (no relative path) then just generate something - // mangled. - computedNamespace = BaseNamespace; - computedClass = CSharpIdentifier.GetClassNameFromPath(codeDocument.Source.FilePath) ?? "__BlazorComponent"; - } - - if (MangleClassNames) - { - computedClass = "__" + computedClass; - } - - @namespace.Content = computedNamespace; - - @class.BaseType = ComponentsApi.ComponentBase.FullTypeName; - @class.ClassName = computedClass; - @class.Modifiers.Clear(); - @class.Modifiers.Add("public"); - - var documentNode = codeDocument.GetDocumentIntermediateNode(); - var typeParamReferences = documentNode.FindDirectiveReferences(TypeParamDirective.Directive); - for (var i = 0; i < typeParamReferences.Count; i++) - { - var typeParamNode = (DirectiveIntermediateNode)typeParamReferences[i].Node; - if (typeParamNode.HasDiagnostics) - { - continue; - } - - @class.TypeParameters.Add(new TypeParameter() { ParameterName = typeParamNode.Tokens.First().Content, }); - } - - method.ReturnType = "void"; - method.MethodName = ComponentsApi.ComponentBase.BuildRenderTree; - method.Modifiers.Clear(); - method.Modifiers.Add("protected"); - method.Modifiers.Add("override"); - - method.Parameters.Clear(); - method.Parameters.Add(new MethodParameter() - { - ParameterName = "builder", - TypeName = ComponentsApi.RenderTreeBuilder.FullTypeName, - }); - - // We need to call the 'base' method as the first statement. - var callBase = new CSharpCodeIntermediateNode(); - callBase.Annotations.Add(BuildRenderTreeBaseCallAnnotation, true); - callBase.Children.Add(new IntermediateToken - { - Kind = TokenKind.CSharp, - Content = $"base.{ComponentsApi.ComponentBase.BuildRenderTree}(builder);" - }); - method.Children.Insert(0, callBase); - } - - // In general documents will have a relative path (relative to the project root). - // We can only really compute a nice class/namespace when we know a relative path. - // - // However all kinds of thing are possible in tools. We shouldn't barf here if the document isn't - // set up correctly. - private bool TryComputeNamespaceAndClass(string filePath, string relativePath, out string @namespace, out string @class) - { - if (filePath == null || relativePath == null || filePath.Length <= relativePath.Length) - { - @namespace = null; - @class = null; - return false; - } - - // Try and infer a namespace from the project directory. We don't yet have the ability to pass - // the namespace through from the project. - var trimLength = relativePath.Length + (relativePath.StartsWith("/") ? 0 : 1); - var baseDirectory = filePath.Substring(0, filePath.Length - trimLength); - - var lastSlash = baseDirectory.LastIndexOfAny(PathSeparators); - var baseNamespace = lastSlash == -1 ? baseDirectory : baseDirectory.Substring(lastSlash + 1); - if (string.IsNullOrEmpty(baseNamespace)) - { - @namespace = null; - @class = null; - return false; - } - - var builder = new StringBuilder(); - - // Sanitize the base namespace, but leave the dots. - var segments = baseNamespace.Split(NamespaceSeparators, StringSplitOptions.RemoveEmptyEntries); - builder.Append(CSharpIdentifier.SanitizeClassName(segments[0])); - for (var i = 1; i < segments.Length; i++) - { - builder.Append('.'); - builder.Append(CSharpIdentifier.SanitizeClassName(segments[i])); - } - - segments = relativePath.Split(PathSeparators, StringSplitOptions.RemoveEmptyEntries); - - // Skip the last segment because it's the FileName. - for (var i = 0; i < segments.Length - 1; i++) - { - builder.Append('.'); - builder.Append(CSharpIdentifier.SanitizeClassName(segments[i])); - } - - @namespace = builder.ToString(); - @class = CSharpIdentifier.SanitizeClassName(Path.GetFileNameWithoutExtension(relativePath)); - - return true; - } - - #region Workaround - // This is a workaround for the fact that the base class doesn't provide good support - // for replacing the IntermediateNodeWriter when building the code target. - void IRazorDocumentClassifierPass.Execute(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - base.Execute(codeDocument, documentNode); - documentNode.Target = new BlazorCodeTarget(documentNode.Options, _targetExtensions); - } - - /// - protected override void OnInitialized() - { - base.OnInitialized(); - - var feature = Engine.Features.OfType(); - _targetExtensions = feature.FirstOrDefault()?.TargetExtensions.ToArray() ?? EmptyExtensionArray; - } - - private static readonly ICodeTargetExtension[] EmptyExtensionArray = new ICodeTargetExtension[0]; - private ICodeTargetExtension[] _targetExtensions; - #endregion - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentDocumentRewritePass.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentDocumentRewritePass.cs deleted file mode 100644 index 96edcbf29c..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentDocumentRewritePass.cs +++ /dev/null @@ -1,533 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using AngleSharp; -using AngleSharp.Extensions; -using AngleSharp.Html; -using AngleSharp.Parser.Html; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Text; - -namespace Microsoft.AspNetCore.Components.Razor -{ - // Rewrites the standard IR to a format more suitable for Blazor - // - // HTML nodes are rewritten to contain more structure, instead of treating HTML as opaque content - // it is structured into element/component nodes, and attribute nodes. - internal class ComponentDocumentRewritePass : IntermediateNodePassBase, IRazorDocumentClassifierPass - { - // Per the HTML spec, the following elements are inherently self-closing - // For example, is the same as (and therefore it cannot contain descendants) - public static readonly HashSet VoidElements = new HashSet(StringComparer.OrdinalIgnoreCase) - { - "area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "param", "source", "track", "wbr", - }; - - // Run as soon as possible after the Component document classifier - public override int Order => ComponentDocumentClassifierPass.DefaultFeatureOrder + 1; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (documentNode.DocumentKind != ComponentDocumentClassifierPass.ComponentDocumentKind) - { - return; - } - - var visitor = new RewriteWalker(codeDocument.Source); - visitor.Visit(documentNode); - } - - // Visits nodes then rewrites them using a post-order traversal. The result is that the tree - // is rewritten bottom up. - // - // This relies on a few invariants Razor already provides for correctness. - // - Tag Helpers are the only real nesting construct - // - Tag Helpers require properly nested HTML inside their body - // - // This means that when we find a 'container' for HTML content, we have the guarantee - // that the content is properly nested, except at the top level of scope. And since the top - // level isn't nested inside anything, we can't introduce any errors due to misunderstanding - // the structure. - private class RewriteWalker : IntermediateNodeWalker - { - private readonly RazorSourceDocument _source; - - public RewriteWalker(RazorSourceDocument source) - { - _source = source; - } - - public override void VisitDefault(IntermediateNode node) - { - var foundHtml = false; - for (var i = 0; i < node.Children.Count; i++) - { - var child = node.Children[i]; - Visit(child); - - if (child is HtmlContentIntermediateNode) - { - foundHtml = true; - } - } - - if (foundHtml) - { - RewriteChildren(_source, node); - } - } - - public override void VisitHtmlAttribute(HtmlAttributeIntermediateNode node) - { - // Don't rewrite inside of attributes - } - - public override void VisitTagHelperHtmlAttribute(TagHelperHtmlAttributeIntermediateNode node) - { - // Don't rewrite inside of attributes - } - - public override void VisitTagHelperProperty(TagHelperPropertyIntermediateNode node) - { - // Don't rewrite inside of attributes - } - - private void RewriteChildren(RazorSourceDocument source, IntermediateNode node) - { - // We expect all of the immediate children of a node (together) to comprise - // a well-formed tree of elements and components. - var stack = new Stack(); - stack.Push(node); - - // Make a copy, we will clear and rebuild the child collection of this node. - var children = node.Children.ToArray(); - node.Children.Clear(); - - // Due to the way Anglesharp parses HTML (tags at a time) we need to keep track of some state. - // This handles cases like: - // - // - // - // This will lower like: - // - // HtmlContent - // - // We need to consume HTML until we see the 'end tag' for and then we can - // the attributes from the parsed HTML and the CSharpAttribute value. - var parser = new HtmlParser(source); - var attributes = new List(); - - for (var i = 0; i < children.Length; i++) - { - if (children[i] is HtmlContentIntermediateNode htmlNode) - { - parser.Push(htmlNode); - var tokens = parser.Get(); - foreach (var token in tokens) - { - // We have to call this before get. Anglesharp doesn't return the start position - // of tokens. - var start = parser.GetCurrentLocation(); - - // We have to set the Location explicitly otherwise we would need to include - // the token in every call to the parser. - parser.SetLocation(token); - - var end = parser.GetCurrentLocation(); - - if (token.Type == HtmlTokenType.EndOfFile) - { - break; - } - - switch (token.Type) - { - case HtmlTokenType.Doctype: - { - // DocType isn't meaningful in Blazor. We don't process them in the runtime - // it wouldn't really mean much anyway since we build a DOM directly rather - // than letting the user-agent parse the document. - // - // For now, and similar things will just be skipped by the compiler - // unless we come up with something more meaningful to do. - break; - } - - case HtmlTokenType.Character: - { - // Text content - var span = new SourceSpan(start, end.AbsoluteIndex - start.AbsoluteIndex); - stack.Peek().Children.Add(new HtmlContentIntermediateNode() - { - Children = - { - new IntermediateToken() - { - Content = token.Data, - Kind = TokenKind.Html, - Source = span, - } - }, - Source = span, - }); - break; - } - - case HtmlTokenType.StartTag: - { - var tag = token.AsTag(); - - if (token.Type == HtmlTokenType.StartTag) - { - var elementNode = new HtmlElementIntermediateNode() - { - TagName = parser.GetTagNameOriginalCasing(tag), - Source = new SourceSpan(start, end.AbsoluteIndex - start.AbsoluteIndex), - }; - - stack.Peek().Children.Add(elementNode); - stack.Push(elementNode); - - for (var j = 0; j < tag.Attributes.Count; j++) - { - // Unfortunately Anglesharp doesn't provide positions for attributes - // so we can't record the spans here. - var attribute = tag.Attributes[j]; - stack.Peek().Children.Add(CreateAttributeNode(attribute)); - } - - for (var j = 0; j < attributes.Count; j++) - { - stack.Peek().Children.Add(attributes[j]); - } - attributes.Clear(); - } - - if (tag.IsSelfClosing || VoidElements.Contains(tag.Data)) - { - // We can't possibly hit an error here since we just added an element node. - stack.Pop(); - } - - break; - } - - case HtmlTokenType.EndTag: - { - var tag = token.AsTag(); - - var popped = stack.Pop(); - if (stack.Count == 0) - { - // If we managed to 'bottom out' the stack then we have an unbalanced end tag. - // Put back the current node so we don't crash. - stack.Push(popped); - - var tagName = parser.GetTagNameOriginalCasing(tag); - var span = new SourceSpan(start, end.AbsoluteIndex - start.AbsoluteIndex); - - var diagnostic = VoidElements.Contains(tagName) - ? BlazorDiagnosticFactory.Create_UnexpectedClosingTagForVoidElement(span, tagName) - : BlazorDiagnosticFactory.Create_UnexpectedClosingTag(span, tagName); - popped.Children.Add(new HtmlElementIntermediateNode() - { - Diagnostics = - { - diagnostic, - }, - TagName = tagName, - Source = span, - }); - } - else if (!string.Equals(tag.Name, ((HtmlElementIntermediateNode)popped).TagName, StringComparison.OrdinalIgnoreCase)) - { - var span = new SourceSpan(start, end.AbsoluteIndex - start.AbsoluteIndex); - var diagnostic = BlazorDiagnosticFactory.Create_MismatchedClosingTag(span, ((HtmlElementIntermediateNode)popped).TagName, token.Data); - popped.Diagnostics.Add(diagnostic); - } - else - { - // Happy path. - // - // We need to compute a new source span because when we found the start tag before we knew - // the end position of the tag. - var length = end.AbsoluteIndex - popped.Source.Value.AbsoluteIndex; - popped.Source = new SourceSpan( - popped.Source.Value.FilePath, - popped.Source.Value.AbsoluteIndex, - popped.Source.Value.LineIndex, - popped.Source.Value.CharacterIndex, - length); - } - - break; - } - - case HtmlTokenType.Comment: - break; - - default: - throw new InvalidCastException($"Unsupported token type: {token.Type.ToString()}"); - } - } - } - else if (children[i] is HtmlAttributeIntermediateNode htmlAttribute) - { - // Buffer the attribute for now, it will get written out as part of a tag. - attributes.Add(htmlAttribute); - } - else - { - // not HTML, or already rewritten. - stack.Peek().Children.Add(children[i]); - } - } - - var extraContent = parser.GetUnparsedContent(); - if (!string.IsNullOrEmpty(extraContent)) - { - // extra HTML - almost certainly invalid because it couldn't be parsed. - var start = parser.GetCurrentLocation(); - var end = parser.GetCurrentLocation(extraContent.Length); - var span = new SourceSpan(start, end.AbsoluteIndex - start.AbsoluteIndex); - stack.Peek().Children.Add(new HtmlContentIntermediateNode() - { - Children = - { - new IntermediateToken() - { - Content = extraContent, - Kind = TokenKind.Html, - Source = span, - } - }, - Diagnostics = - { - BlazorDiagnosticFactory.Create_InvalidHtmlContent(span, extraContent), - }, - Source = span, - }); - } - - while (stack.Count > 1) - { - // not balanced - var popped = (HtmlElementIntermediateNode)stack.Pop(); - var diagnostic = BlazorDiagnosticFactory.Create_UnclosedTag(popped.Source, popped.TagName); - popped.Diagnostics.Add(diagnostic); - } - } - } - - private static HtmlAttributeIntermediateNode CreateAttributeNode(KeyValuePair attribute) - { - return new HtmlAttributeIntermediateNode() - { - AttributeName = attribute.Key, - Children = - { - new HtmlAttributeValueIntermediateNode() - { - Children = - { - new IntermediateToken() - { - Kind = TokenKind.Html, - Content = attribute.Value, - }, - } - }, - } - }; - } - - private static string GetHtmlContent(HtmlContentIntermediateNode node) - { - var builder = new StringBuilder(); - for (var i = 0; i < node.Children.Count; i++) - { - var token = node.Children[i] as IntermediateToken; - if (token != null && token.IsHtml) - { - builder.Append(token.Content); - } - } - - return builder.ToString(); - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - private class HtmlParser - { - private readonly RazorSourceDocument _source; - - // Tracks the offsets between the start of _content and then original source document. - private List<(int offset, int sourceOffset)> _offsets; - private TextSource _textSource; - private int _position; - private string _content; - - public HtmlParser(RazorSourceDocument source) - { - _source = source; - } - - public void Push(HtmlContentIntermediateNode node) - { - var builder = new StringBuilder(); - - var offsets = new List<(int offset, int sourceOffset)>(); - - if (_content != null && _position < _content.Length) - { - offsets.Add((0, _offsets[0].sourceOffset + _position)); - builder.Append(_content, _position, _content.Length - _position); - } - - for (var i = 0; i < node.Children.Count; i++) - { - var token = node.Children[i] as IntermediateToken; - if (token != null && token.IsHtml) - { - offsets.Add((builder.Length, token.Source.Value.AbsoluteIndex)); - builder.Append(token.Content); - } - } - - _content = builder.ToString(); - _offsets = offsets; - _textSource = new TextSource(_content); - _position = 0; - } - - public string GetUnparsedContent() - { - return _position >= _content.Length ? string.Empty : _content.Substring(_position); - } - - public IEnumerable Get() - { - if (_textSource == null) - { - throw new InvalidOperationException("You need to call Push first."); - } - - // This will decode any HTML entities into their textual equivalent. - // - // This is OK because an HtmlContent node is used with document.createTextNode - // in the DOM, which can accept content that has decoded entities. - // - // In the event that we merge HtmlContent into an HtmlBlock, we need to - // re-encode the entities. That's done in the HtmlBlock pass. - var tokens = _textSource.Tokenize(HtmlEntityService.Resolver); - return tokens; - } - - public void SetLocation(HtmlToken token) - { - // The tokenizer will advance to the end when you have an unclosed tag. - // We don't want this, we want to resume before the unclosed tag. - if (token.Type != HtmlTokenType.EndOfFile) - { - _position = _textSource.Index; - } - } - - public SourceLocation GetCurrentLocation(int offset = 0) - { - var absoluteIndex = GetAbsoluteIndex(_position + offset); - - int lineIndex = -1; - int columnIndex = -1; - var remaining = absoluteIndex; - for (var i = 0; i < _source.Lines.Count; i++) - { - var lineLength = _source.Lines.GetLineLength(i); - if (lineLength > remaining) - { - lineIndex = i; - columnIndex = remaining; - break; - } - - remaining -= lineLength; - } - - return new SourceLocation(_source.FilePath, absoluteIndex, lineIndex, columnIndex); - } - - public SourceSpan GetSpan(HtmlToken token) - { - var absoluteIndex = GetAbsoluteIndex(token.Position.Position); - - int lineIndex = -1; - int columnIndex = -1; - var remaining = absoluteIndex; - for (var i = 0; i < _source.Lines.Count; i++) - { - var lineLength = _source.Lines.GetLineLength(i); - if (lineLength > remaining) - { - lineIndex = i; - columnIndex = remaining; - break; - } - - remaining -= lineLength; - } - - var length = GetAbsoluteIndex(_position) - absoluteIndex; - return new SourceSpan(_source.FilePath, absoluteIndex, lineIndex, columnIndex, length); - } - - private int GetAbsoluteIndex(int contentIndex) - { - for (var i = _offsets.Count - 1; i >= 0; i--) - { - if (_offsets[i].offset <= contentIndex) - { - return _offsets[i].sourceOffset + (contentIndex - _offsets[i].offset); - } - } - - throw new InvalidOperationException("Unexpected index value."); - } - - // Anglesharp canonicalizes the case of tags, we want what the user typed. - public string GetTagNameOriginalCasing(HtmlTagToken tag) - { - var offset = tag.Type == HtmlTokenType.EndTag ? 1 : 0; // For end tags, skip the '/' - return tag.Name; - } - - private string DebuggerDisplay - { - get - { - if (_content == null) - { - return "Content={}"; - } - - var builder = new StringBuilder(); - builder.Append("Content="); - builder.Append("{"); - builder.Append(_content.Substring(0, Math.Min(_position, _content.Length))); - builder.Append("|"); - builder.Append(_content.Substring(Math.Min(_position, _content.Length))); - builder.Append("}"); - - return builder.ToString(); - } - } - } - } -} \ No newline at end of file diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentExtensionNode.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentExtensionNode.cs deleted file mode 100644 index 146c116c61..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentExtensionNode.cs +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class ComponentExtensionNode : ExtensionIntermediateNode - { - public IEnumerable Attributes => Children.OfType(); - - public IEnumerable Captures => Children.OfType(); - - public IEnumerable ChildContents => Children.OfType(); - - public override IntermediateNodeCollection Children { get; } = new IntermediateNodeCollection(); - - public TagHelperDescriptor Component { get; set; } - - /// - /// Gets the child content parameter name (null if unset) that was applied at the component level. - /// - public string ChildContentParameterName { get; set; } - - public IEnumerable TypeArguments => Children.OfType(); - - public string TagName { get; set; } - - // An optional type inference node. This will be populated (and point to a different part of the tree) - // if this component call site requires type inference. - public ComponentTypeInferenceMethodIntermediateNode TypeInferenceNode { get; set; } - - public string TypeName { get; set; } - - public override void Accept(IntermediateNodeVisitor visitor) - { - if (visitor == null) - { - throw new ArgumentNullException(nameof(visitor)); - } - - AcceptExtensionNode(this, visitor); - } - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - if (target == null) - { - throw new ArgumentNullException(nameof(target)); - } - - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var writer = (BlazorNodeWriter)context.NodeWriter; - writer.WriteComponent(context, this); - } - - private string DebuggerDisplay - { - get - { - var builder = new StringBuilder(); - builder.Append("Component: "); - builder.Append("<"); - builder.Append(TagName); - - foreach (var attribute in Attributes) - { - builder.Append(" "); - builder.Append(attribute.AttributeName); - builder.Append("=\"...\""); - } - - foreach (var capture in Captures) - { - builder.Append(" "); - builder.Append("ref"); - builder.Append("=\"...\""); - } - - foreach (var typeArgument in TypeArguments) - { - builder.Append(" "); - builder.Append(typeArgument.TypeParameterName); - builder.Append("=\"...\""); - } - - builder.Append(">"); - builder.Append(ChildContents.Any() ? "..." : string.Empty); - builder.Append(""); - - return builder.ToString(); - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentLoweringPass.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentLoweringPass.cs deleted file mode 100644 index eef4b28662..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentLoweringPass.cs +++ /dev/null @@ -1,490 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class ComponentLoweringPass : IntermediateNodePassBase, IRazorOptimizationPass - { - // This pass runs earlier than our other passes that 'lower' specific kinds of attributes. - public override int Order => 0; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var @namespace = documentNode.FindPrimaryNamespace(); - var @class = documentNode.FindPrimaryClass(); - if (@namespace == null || @class == null) - { - // Nothing to do, bail. We can't function without the standard structure. - return; - } - - // For each component *usage* we need to rewrite the tag helper node to map to the relevant component - // APIs. - var references = documentNode.FindDescendantReferences(); - for (var i = 0; i < references.Count; i++) - { - var reference = references[i]; - var node = (TagHelperIntermediateNode)reference.Node; - - var count = 0; - for (var j = 0; j < node.TagHelpers.Count; j++) - { - if (node.TagHelpers[j].IsComponentTagHelper()) - { - // Only allow a single component tag helper per element. If there are multiple, we'll just consider - // the first one and ignore the others. - if (count++ > 1) - { - node.Diagnostics.Add(BlazorDiagnosticFactory.Create_MultipleComponents(node.Source, node.TagName, node.TagHelpers)); - break; - } - } - } - - if (count >= 1) - { - reference.Replace(RewriteAsComponent(node, node.TagHelpers.First(t => t.IsComponentTagHelper()))); - } - else if (node.TagHelpers.Any(t => t.IsChildContentTagHelper())) - { - // Ignore, this will be handled when we rewrite the parent. - } - else - { - reference.Replace(RewriteAsElement(node)); - } - } - } - - private ComponentExtensionNode RewriteAsComponent(TagHelperIntermediateNode node, TagHelperDescriptor tagHelper) - { - var component = new ComponentExtensionNode() - { - Component = tagHelper, - Source = node.Source, - TagName = node.TagName, - TypeName = tagHelper.GetTypeName(), - }; - - for (var i = 0; i < node.Diagnostics.Count; i++) - { - component.Diagnostics.Add(node.Diagnostics[i]); - } - - var visitor = new ComponentRewriteVisitor(component); - visitor.Visit(node); - - // Fixup the parameter names of child content elements. We can't do this during the rewrite - // because we see the nodes in the wrong order. - foreach (var childContent in component.ChildContents) - { - childContent.ParameterName = childContent.ParameterName ?? component.ChildContentParameterName ?? BlazorMetadata.ChildContent.DefaultParameterName; - } - - return component; - } - - private HtmlElementIntermediateNode RewriteAsElement(TagHelperIntermediateNode node) - { - var result = new HtmlElementIntermediateNode() - { - Source = node.Source, - TagName = node.TagName, - }; - - for (var i = 0; i < node.Diagnostics.Count; i++) - { - result.Diagnostics.Add(node.Diagnostics[i]); - } - - var visitor = new ElementRewriteVisitor(result.Children); - visitor.Visit(node); - - return result; - } - - private class ComponentRewriteVisitor : IntermediateNodeWalker - { - private readonly ComponentExtensionNode _component; - private readonly IntermediateNodeCollection _children; - - public ComponentRewriteVisitor(ComponentExtensionNode component) - { - _component = component; - _children = component.Children; - } - - public override void VisitTagHelper(TagHelperIntermediateNode node) - { - // Visit children, we're replacing this node. - base.VisitDefault(node); - } - - public override void VisitTagHelperBody(TagHelperBodyIntermediateNode node) - { - // Wrap the component's children in a ChildContent node if we have some significant - // content. - if (node.Children.Count == 0) - { - return; - } - - // If we get a single HTML content node containing only whitespace, - // then this is probably a tag that looks like ' - // - // We don't want to create a child content for this case, because it can conflict - // with a child content that's set via an attribute. We don't want the formatting - // of insignificant whitespace to be annoying when setting attributes directly. - if (node.Children.Count == 1 && IsIgnorableWhitespace(node.Children[0])) - { - return; - } - - // From here we fork and behave differently based on whether the component's child content is - // implicit or explicit. - // - // Explicit child content will look like:
...
- // compared with implicit:
- // - // Using implicit child content: - // 1. All content is grouped into a single child content lambda, and assigned to the property 'ChildContent' - // - // Using explicit child content: - // 1. All content must be contained within 'child content' elements that are direct children - // 2. Whitespace outside of 'child content' elements will be ignored (not an error) - // 3. Non-whitespace outside of 'child content' elements will cause an error - // 4. All 'child content' elements must match parameters on the component (exception for ChildContent, - // which is always allowed. - // 5. Each 'child content' element will generate its own lambda, and be assigned to the property - // that matches the element name. - if (!node.Children.OfType().Any(t => t.TagHelpers.Any(th => th.IsChildContentTagHelper()))) - { - // This node has implicit child content. It may or may not have an attribute that matches. - var attribute = _component.Component.BoundAttributes - .Where(a => string.Equals(a.Name, ComponentsApi.RenderTreeBuilder.ChildContent, StringComparison.Ordinal)) - .FirstOrDefault(); - _children.Add(RewriteChildContent(attribute, node.Source, node.Children)); - return; - } - - // OK this node has explicit child content, we can rewrite it by visiting each node - // in sequence, since we: - // a) need to rewrite each child content element - // b) any significant content outside of a child content is an error - for (var i = 0; i < node.Children.Count; i++) - { - var child = node.Children[i]; - if (IsIgnorableWhitespace(child)) - { - continue; - } - - if (child is TagHelperIntermediateNode tagHelperNode && - tagHelperNode.TagHelpers.Any(th => th.IsChildContentTagHelper())) - { - // This is a child content element - var attribute = _component.Component.BoundAttributes - .Where(a => string.Equals(a.Name, tagHelperNode.TagName, StringComparison.Ordinal)) - .FirstOrDefault(); - _children.Add(RewriteChildContent(attribute, child.Source, child.Children)); - continue; - } - - // If we get here then this is significant content inside a component with explicit child content. - child.Diagnostics.Add(BlazorDiagnosticFactory.Create_ChildContentMixedWithExplicitChildContent(child.Source, _component)); - _children.Add(child); - } - - bool IsIgnorableWhitespace(IntermediateNode n) - { - if (n is HtmlContentIntermediateNode html && - html.Children.Count == 1 && - html.Children[0] is IntermediateToken token && - string.IsNullOrWhiteSpace(token.Content)) - { - return true; - } - - return false; - } - } - - private ComponentChildContentIntermediateNode RewriteChildContent(BoundAttributeDescriptor attribute, SourceSpan? source, IntermediateNodeCollection children) - { - var childContent = new ComponentChildContentIntermediateNode() - { - BoundAttribute = attribute, - Source = source, - TypeName = attribute?.TypeName ?? ComponentsApi.RenderFragment.FullTypeName, - }; - - // There are two cases here: - // 1. Implicit child content - the children will be non-taghelper nodes, just accept them - // 2. Explicit child content - the children will be various tag helper nodes, that need special processing. - for (var i = 0; i < children.Count; i++) - { - var child = children[i]; - if (child is TagHelperBodyIntermediateNode body) - { - // The body is all of the content we want to render, the rest of the children will - // be the attributes. - for (var j = 0; j < body.Children.Count; j++) - { - childContent.Children.Add(body.Children[j]); - } - } - else if (child is TagHelperPropertyIntermediateNode property) - { - if (property.BoundAttribute.IsChildContentParameterNameProperty()) - { - // Check for each child content with a parameter name, that the parameter name is specified - // with literal text. For instance, the following is not allowed and should generate a diagnostic. - // - // ... - if (TryGetAttributeStringContent(property, out var parameterName)) - { - childContent.ParameterName = parameterName; - continue; - } - - // The parameter name is invalid. - childContent.Diagnostics.Add(BlazorDiagnosticFactory.Create_ChildContentHasInvalidParameter(property.Source, property.AttributeName, attribute.Name)); - continue; - } - - // This is an unrecognized attribute, this is possible if you try to do something like put 'ref' on a child content. - childContent.Diagnostics.Add(BlazorDiagnosticFactory.Create_ChildContentHasInvalidAttribute(property.Source, property.AttributeName, attribute.Name)); - } - else if (child is TagHelperHtmlAttributeIntermediateNode a) - { - // This is an HTML attribute on a child content. - childContent.Diagnostics.Add(BlazorDiagnosticFactory.Create_ChildContentHasInvalidAttribute(a.Source, a.AttributeName, attribute.Name)); - } - else - { - // This is some other kind of node (likely an implicit child content) - childContent.Children.Add(child); - } - } - - return childContent; - } - - private bool TryGetAttributeStringContent(TagHelperPropertyIntermediateNode property, out string content) - { - // The success path looks like - a single HTML Attribute Value node with tokens - if (property.Children.Count == 1 && - property.Children[0] is HtmlContentIntermediateNode html) - { - content = string.Join(string.Empty, html.Children.OfType().Select(n => n.Content)); - return true; - } - - content = null; - return false; - } - - public override void VisitTagHelperHtmlAttribute(TagHelperHtmlAttributeIntermediateNode node) - { - var attribute = new ComponentAttributeExtensionNode(node); - _children.Add(attribute); - - // Since we don't support complex content, we can rewrite the inside of this - // node to the rather simpler form that property nodes usually have. - for (var i = 0; i < attribute.Children.Count; i++) - { - if (attribute.Children[i] is HtmlAttributeValueIntermediateNode htmlValue) - { - attribute.Children[i] = new HtmlContentIntermediateNode() - { - Children = - { - htmlValue.Children.Single(), - }, - Source = htmlValue.Source, - }; - } - else if (attribute.Children[i] is CSharpExpressionAttributeValueIntermediateNode expressionValue) - { - attribute.Children[i] = new CSharpExpressionIntermediateNode() - { - Children = - { - expressionValue.Children.Single(), - }, - Source = expressionValue.Source, - }; - } - else if (attribute.Children[i] is CSharpCodeAttributeValueIntermediateNode codeValue) - { - attribute.Children[i] = new CSharpExpressionIntermediateNode() - { - Children = - { - codeValue.Children.Single(), - }, - Source = codeValue.Source, - }; - } - } - } - - public override void VisitTagHelperProperty(TagHelperPropertyIntermediateNode node) - { - // Each 'tag helper property' belongs to a specific tag helper. We want to handle - // the cases for components, but leave others alone. This allows our other passes - // to handle those cases. - if (!node.TagHelper.IsComponentTagHelper()) - { - _children.Add(node); - return; - } - - // Another special case here - this might be a type argument. These don't represent 'real' parameters - // that get passed to the component, it needs special code generation support. - if (node.TagHelper.IsGenericTypedComponent() && node.BoundAttribute.IsTypeParameterProperty()) - { - _children.Add(new ComponentTypeArgumentExtensionNode(node)); - return; - } - - // Another special case here -- this might be a 'Context' parameter, which specifies the name - // for lambda parameter for parameterized child content - if (node.BoundAttribute.IsChildContentParameterNameProperty()) - { - // Check for each child content with a parameter name, that the parameter name is specified - // with literal text. For instance, the following is not allowed and should generate a diagnostic. - // - // ... - if (TryGetAttributeStringContent(node, out var parameterName)) - { - _component.ChildContentParameterName = parameterName; - return; - } - - // The parameter name is invalid. - _component.Diagnostics.Add(BlazorDiagnosticFactory.Create_ChildContentHasInvalidParameterOnComponent(node.Source, node.AttributeName, _component.TagName)); - return; - } - - _children.Add(new ComponentAttributeExtensionNode(node)); - } - - public override void VisitDefault(IntermediateNode node) - { - _children.Add(node); - } - } - - private class ElementRewriteVisitor : IntermediateNodeWalker - { - private readonly IntermediateNodeCollection _children; - - public ElementRewriteVisitor(IntermediateNodeCollection children) - { - _children = children; - } - - public override void VisitTagHelper(TagHelperIntermediateNode node) - { - // Visit children, we're replacing this node. - for (var i = 0; i < node.Children.Count; i++) - { - Visit(node.Children[i]); - } - } - - public override void VisitTagHelperBody(TagHelperBodyIntermediateNode node) - { - for (var i = 0; i < node.Children.Count; i++) - { - _children.Add(node.Children[i]); - } - } - - public override void VisitTagHelperHtmlAttribute(TagHelperHtmlAttributeIntermediateNode node) - { - var attribute = new HtmlAttributeIntermediateNode() - { - AttributeName = node.AttributeName, - Source = node.Source, - }; - _children.Add(attribute); - - for (var i = 0; i < node.Diagnostics.Count; i++) - { - attribute.Diagnostics.Add(node.Diagnostics[i]); - } - - switch (node.AttributeStructure) - { - case AttributeStructure.Minimized: - - attribute.Prefix = node.AttributeName; - attribute.Suffix = string.Empty; - break; - - case AttributeStructure.NoQuotes: - case AttributeStructure.SingleQuotes: - case AttributeStructure.DoubleQuotes: - - // We're ignoring attribute structure here for simplicity, it doesn't effect us. - attribute.Prefix = node.AttributeName + "=\""; - attribute.Suffix = "\""; - - for (var i = 0; i < node.Children.Count; i++) - { - attribute.Children.Add(RewriteAttributeContent(node.Children[i])); - } - - break; - } - - IntermediateNode RewriteAttributeContent(IntermediateNode content) - { - if (content is HtmlContentIntermediateNode html) - { - var value = new HtmlAttributeValueIntermediateNode() - { - Source = content.Source, - }; - - for (var i = 0; i < html.Children.Count; i++) - { - value.Children.Add(html.Children[i]); - } - - for (var i = 0; i < html.Diagnostics.Count; i++) - { - value.Diagnostics.Add(html.Diagnostics[i]); - } - - return value; - } - - - return content; - } - } - - public override void VisitTagHelperProperty(TagHelperPropertyIntermediateNode node) - { - // Each 'tag helper property' belongs to a specific tag helper. We want to handle - // the cases for components, but leave others alone. This allows our other passes - // to handle those cases. - _children.Add(node.TagHelper.IsComponentTagHelper() ? (IntermediateNode)new ComponentAttributeExtensionNode(node) : node); - } - - public override void VisitDefault(IntermediateNode node) - { - _children.Add(node); - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentTagHelperDescriptorProvider.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentTagHelperDescriptorProvider.cs deleted file mode 100644 index 9e8972b53f..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentTagHelperDescriptorProvider.cs +++ /dev/null @@ -1,505 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Reflection; -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.Razor; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class ComponentTagHelperDescriptorProvider : RazorEngineFeatureBase, ITagHelperDescriptorProvider - { - private static readonly SymbolDisplayFormat FullNameTypeDisplayFormat = - SymbolDisplayFormat.FullyQualifiedFormat - .WithGlobalNamespaceStyle(SymbolDisplayGlobalNamespaceStyle.Omitted) - .WithMiscellaneousOptions(SymbolDisplayFormat.FullyQualifiedFormat.MiscellaneousOptions & (~SymbolDisplayMiscellaneousOptions.UseSpecialTypes)); - - private static MethodInfo WithMetadataImportOptionsMethodInfo = - typeof(CSharpCompilationOptions) - .GetMethod("WithMetadataImportOptions", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); - - public bool IncludeDocumentation { get; set; } - - public int Order { get; set; } - - public void Execute(TagHelperDescriptorProviderContext context) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var compilation = context.GetCompilation(); - if (compilation == null) - { - // No compilation, nothing to do. - return; - } - - // We need to see private members too - compilation = WithMetadataImportOptionsAll(compilation); - - var symbols = BlazorSymbols.Create(compilation); - - var types = new List(); - var visitor = new ComponentTypeVisitor(symbols, types); - - // Visit the primary output of this compilation, as well as all references. - visitor.Visit(compilation.Assembly); - foreach (var reference in compilation.References) - { - // We ignore .netmodules here - there really isn't a case where they are used by user code - // even though the Roslyn APIs all support them. - if (compilation.GetAssemblyOrModuleSymbol(reference) is IAssemblySymbol assembly) - { - visitor.Visit(assembly); - } - } - - for (var i = 0; i < types.Count; i++) - { - var type = types[i]; - var descriptor = CreateDescriptor(symbols, type); - context.Results.Add(descriptor); - - foreach (var childContent in descriptor.GetChildContentProperties()) - { - // Synthesize a separate tag helper for each child content property that's declared. - context.Results.Add(CreateChildContentDescriptor(symbols, descriptor, childContent)); - } - } - } - - private Compilation WithMetadataImportOptionsAll(Compilation compilation) - { - var newCompilationOptions = (CSharpCompilationOptions)WithMetadataImportOptionsMethodInfo - .Invoke(compilation.Options, new object[] { /* All */ (byte)2 }); - return compilation.WithOptions(newCompilationOptions); - } - - private TagHelperDescriptor CreateDescriptor(BlazorSymbols symbols, INamedTypeSymbol type) - { - var typeName = type.ToDisplayString(FullNameTypeDisplayFormat); - var assemblyName = type.ContainingAssembly.Identity.Name; - - var builder = TagHelperDescriptorBuilder.Create(BlazorMetadata.Component.TagHelperKind, typeName, assemblyName); - builder.SetTypeName(typeName); - - // This opts out this 'component' tag helper for any processing that's specific to the default - // Razor ITagHelper runtime. - builder.Metadata[TagHelperMetadata.Runtime.Name] = BlazorMetadata.Component.RuntimeName; - - if (type.IsGenericType) - { - builder.Metadata[BlazorMetadata.Component.GenericTypedKey] = bool.TrueString; - - for (var i = 0; i < type.TypeArguments.Length; i++) - { - var typeParameter = type.TypeArguments[i] as ITypeParameterSymbol; - if (typeParameter != null) - { - CreateTypeParameterProperty(builder, typeParameter); - } - } - } - - var xml = type.GetDocumentationCommentXml(); - if (!string.IsNullOrEmpty(xml)) - { - builder.Documentation = xml; - } - - // Components have very simple matching rules. The type name (short) matches the tag name. - builder.TagMatchingRule(r => r.TagName = type.Name); - - foreach (var property in GetProperties(symbols, type)) - { - if (property.kind == PropertyKind.Ignored) - { - continue; - } - - CreateProperty(builder, property.property, property.kind); - } - - if (builder.BoundAttributes.Any(a => a.IsParameterizedChildContentProperty()) && - !builder.BoundAttributes.Any(a => string.Equals(a.Name, BlazorMetadata.ChildContent.ParameterAttributeName, StringComparison.OrdinalIgnoreCase))) - { - // If we have any parameterized child content parameters, synthesize a 'Context' parameter to be - // able to set the variable name (for all child content). If the developer defined a 'Context' parameter - // already, then theirs wins. - CreateContextParameter(builder, childContentName: null); - } - - var descriptor = builder.Build(); - return descriptor; - } - - private void CreateProperty(TagHelperDescriptorBuilder builder, IPropertySymbol property, PropertyKind kind) - { - builder.BindAttribute(pb => - { - pb.Name = property.Name; - pb.TypeName = property.Type.ToDisplayString(FullNameTypeDisplayFormat); - pb.SetPropertyName(property.Name); - - if (kind == PropertyKind.Enum) - { - pb.IsEnum = true; - } - - if (kind == PropertyKind.ChildContent) - { - pb.Metadata.Add(BlazorMetadata.Component.ChildContentKey, bool.TrueString); - } - - if (kind == PropertyKind.Delegate) - { - pb.Metadata.Add(BlazorMetadata.Component.DelegateSignatureKey, bool.TrueString); - } - - if (HasTypeParameter(property.Type)) - { - pb.Metadata.Add(BlazorMetadata.Component.GenericTypedKey, bool.TrueString); - } - - var xml = property.GetDocumentationCommentXml(); - if (!string.IsNullOrEmpty(xml)) - { - pb.Documentation = xml; - } - }); - - bool HasTypeParameter(ITypeSymbol type) - { - if (type is ITypeParameterSymbol) - { - return true; - } - - // We need to check for cases like: - // [Parameter] List MyProperty { get; set; } - // AND - // [Parameter] List MyProperty { get; set; } - // - // We need to inspect the type arguments to tell the difference between a property that - // uses the containing class' type parameter(s) and a vanilla usage of generic types like - // List<> and Dictionary<,> - // - // Since we need to handle cases like RenderFragment>, this check must be recursive. - if (type is INamedTypeSymbol namedType && namedType.IsGenericType) - { - var typeArguments = namedType.TypeArguments; - for (var i = 0; i < typeArguments.Length; i++) - { - if (HasTypeParameter(typeArguments[i])) - { - return true; - } - } - - // Another case to handle - if the type being inspected is a nested type - // inside a generic containing class. The common usage for this would be a case - // where a generic templated component defines a 'context' nested class. - if (namedType.ContainingType != null && HasTypeParameter(namedType.ContainingType)) - { - return true; - } - } - - return false; - } - } - - private void CreateTypeParameterProperty(TagHelperDescriptorBuilder builder, ITypeSymbol typeParameter) - { - builder.BindAttribute(pb => - { - pb.DisplayName = typeParameter.Name; - pb.Name = typeParameter.Name; - pb.TypeName = typeof(Type).FullName; - pb.SetPropertyName(typeParameter.Name); - - pb.Metadata[BlazorMetadata.Component.TypeParameterKey] = bool.TrueString; - - pb.Documentation = string.Format(Resources.ComponentTypeParameter_Documentation, typeParameter.Name, builder.Name); - }); - } - - private TagHelperDescriptor CreateChildContentDescriptor(BlazorSymbols symbols, TagHelperDescriptor component, BoundAttributeDescriptor attribute) - { - var typeName = component.GetTypeName() + "." + attribute.Name; - var assemblyName = component.AssemblyName; - - var builder = TagHelperDescriptorBuilder.Create(BlazorMetadata.ChildContent.TagHelperKind, typeName, assemblyName); - builder.SetTypeName(typeName); - - // This opts out this 'component' tag helper for any processing that's specific to the default - // Razor ITagHelper runtime. - builder.Metadata[TagHelperMetadata.Runtime.Name] = BlazorMetadata.ChildContent.RuntimeName; - - // Opt out of processing as a component. We'll process this specially as part of the component's body. - builder.Metadata[BlazorMetadata.SpecialKindKey] = BlazorMetadata.ChildContent.TagHelperKind; - - var xml = attribute.Documentation; - if (!string.IsNullOrEmpty(xml)) - { - builder.Documentation = xml; - } - - // Child content matches the property name, but only as a direct child of the component. - builder.TagMatchingRule(r => - { - r.TagName = attribute.Name; - r.ParentTag = component.TagMatchingRules.First().TagName; - }); - - if (attribute.IsParameterizedChildContentProperty()) - { - // For child content attributes with a parameter, synthesize an attribute that allows you to name - // the parameter. - CreateContextParameter(builder, attribute.Name); - } - - var descriptor = builder.Build(); - - return descriptor; - } - - private void CreateContextParameter(TagHelperDescriptorBuilder builder, string childContentName) - { - builder.BindAttribute(b => - { - b.Name = BlazorMetadata.ChildContent.ParameterAttributeName; - b.TypeName = typeof(string).FullName; - b.Metadata.Add(BlazorMetadata.Component.ChildContentParameterNameKey, bool.TrueString); - - if (childContentName == null) - { - b.Documentation = Resources.ChildContentParameterName_TopLevelDocumentation; - } - else - { - b.Documentation = string.Format(Resources.ChildContentParameterName_Documentation, childContentName); - } - }); - } - - // Does a walk up the inheritance chain to determine the set of parameters by using - // a dictionary keyed on property name. - // - // We consider parameters to be defined by properties satisfying all of the following: - // - are visible (not shadowed) - // - have the [Parameter] attribute - // - have a setter, even if private - // - are not indexers - private IEnumerable<(IPropertySymbol property, PropertyKind kind)> GetProperties(BlazorSymbols symbols, INamedTypeSymbol type) - { - var properties = new Dictionary(StringComparer.Ordinal); - do - { - if (type == symbols.ComponentBase) - { - // The ComponentBase base class doesn't have any [Parameter]. - // Bail out now to avoid walking through its many members, plus the members - // of the System.Object base class. - break; - } - - var members = type.GetMembers(); - for (var i = 0; i < members.Length; i++) - { - var property = members[i] as IPropertySymbol; - if (property == null) - { - // Not a property - continue; - } - - if (properties.ContainsKey(property.Name)) - { - // Not visible - continue; - } - - var kind = PropertyKind.Default; - if (property.Parameters.Length != 0) - { - // Indexer - kind = PropertyKind.Ignored; - } - - if (property.SetMethod == null) - { - // No setter - kind = PropertyKind.Ignored; - } - - if (property.IsStatic) - { - kind = PropertyKind.Ignored; - } - - if (!property.GetAttributes().Any(a => a.AttributeClass == symbols.ParameterAttribute)) - { - // Does not have [Parameter] - kind = PropertyKind.Ignored; - } - - if (kind == PropertyKind.Default && property.Type.TypeKind == TypeKind.Enum) - { - kind = PropertyKind.Enum; - } - - if (kind == PropertyKind.Default && property.Type == symbols.RenderFragment) - { - kind = PropertyKind.ChildContent; - } - - if (kind == PropertyKind.Default && - property.Type is INamedTypeSymbol namedType && - namedType.IsGenericType && - namedType.ConstructedFrom == symbols.RenderFragmentOfT) - { - kind = PropertyKind.ChildContent; - } - - if (kind == PropertyKind.Default && property.Type.TypeKind == TypeKind.Delegate) - { - kind = PropertyKind.Delegate; - } - - properties.Add(property.Name, (property, kind)); - } - - type = type.BaseType; - } - while (type != null); - - return properties.Values; - } - - private enum PropertyKind - { - Ignored, - Default, - Enum, - ChildContent, - Delegate, - } - - private class BlazorSymbols - { - public static BlazorSymbols Create(Compilation compilation) - { - var symbols = new BlazorSymbols(); - symbols.ComponentBase = compilation.GetTypeByMetadataName(ComponentsApi.ComponentBase.MetadataName); - if (symbols.ComponentBase == null) - { - // No definition for ComponentBase, nothing to do. - return null; - } - - symbols.IComponent = compilation.GetTypeByMetadataName(ComponentsApi.IComponent.MetadataName); - if (symbols.IComponent == null) - { - // No definition for IComponent, nothing to do. - return null; - } - - symbols.ParameterAttribute = compilation.GetTypeByMetadataName(ComponentsApi.ParameterAttribute.MetadataName); - if (symbols.ParameterAttribute == null) - { - // No definition for [Parameter], nothing to do. - return null; - } - - symbols.RenderFragment = compilation.GetTypeByMetadataName(ComponentsApi.RenderFragment.MetadataName); - if (symbols.RenderFragment == null) - { - // No definition for RenderFragment, nothing to do. - } - - symbols.RenderFragmentOfT = compilation.GetTypeByMetadataName(ComponentsApi.RenderFragmentOfT.MetadataName); - if (symbols.RenderFragmentOfT == null) - { - // No definition for RenderFragment, nothing to do. - } - - return symbols; - } - - private BlazorSymbols() - { - } - - public INamedTypeSymbol ComponentBase { get; private set; } - - public INamedTypeSymbol IComponent { get; private set; } - - public INamedTypeSymbol ParameterAttribute { get; private set; } - - public INamedTypeSymbol RenderFragment { get; private set; } - - public INamedTypeSymbol RenderFragmentOfT { get; private set; } - } - - private class ComponentTypeVisitor : SymbolVisitor - { - private readonly BlazorSymbols _symbols; - private readonly List _results; - - public ComponentTypeVisitor(BlazorSymbols symbols, List results) - { - _symbols = symbols; - _results = results; - } - - public override void VisitNamedType(INamedTypeSymbol symbol) - { - if (IsComponent(symbol)) - { - _results.Add(symbol); - } - } - - public override void VisitNamespace(INamespaceSymbol symbol) - { - foreach (var member in symbol.GetMembers()) - { - Visit(member); - } - } - - public override void VisitAssembly(IAssemblySymbol symbol) - { - // This as a simple yet high-value optimization that excludes the vast majority of - // assemblies that (by definition) can't contain a component. - if (symbol.Name != null && !symbol.Name.StartsWith("System.", StringComparison.Ordinal)) - { - Visit(symbol.GlobalNamespace); - } - } - - internal bool IsComponent(INamedTypeSymbol symbol) - { - if (_symbols == null) - { - return false; - } - - return - symbol.DeclaredAccessibility == Accessibility.Public && - !symbol.IsAbstract && - symbol.AllInterfaces.Contains(_symbols.IComponent); - } - } - } -} \ No newline at end of file diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentTypeArgumentExtensionNode.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentTypeArgumentExtensionNode.cs deleted file mode 100644 index 20bbc11493..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentTypeArgumentExtensionNode.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class ComponentTypeArgumentExtensionNode : ExtensionIntermediateNode - { - public ComponentTypeArgumentExtensionNode(TagHelperPropertyIntermediateNode propertyNode) - { - if (propertyNode == null) - { - throw new ArgumentNullException(nameof(propertyNode)); - } - - BoundAttribute = propertyNode.BoundAttribute; - Source = propertyNode.Source; - TagHelper = propertyNode.TagHelper; - - for (var i = 0; i < propertyNode.Children.Count; i++) - { - Children.Add(propertyNode.Children[i]); - } - - for (var i = 0; i < propertyNode.Diagnostics.Count; i++) - { - Diagnostics.Add(propertyNode.Diagnostics[i]); - } - } - - public override IntermediateNodeCollection Children { get; } = new IntermediateNodeCollection(); - - public BoundAttributeDescriptor BoundAttribute { get; set; } - - public string TypeParameterName => BoundAttribute.Name; - - public TagHelperDescriptor TagHelper { get; set; } - - public override void Accept(IntermediateNodeVisitor visitor) - { - if (visitor == null) - { - throw new ArgumentNullException(nameof(visitor)); - } - - AcceptExtensionNode(this, visitor); - } - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - if (target == null) - { - throw new ArgumentNullException(nameof(target)); - } - - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var writer = (BlazorNodeWriter)context.NodeWriter; - writer.WriteComponentTypeArgument(context, this); - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentTypeInferenceMethodIntermediateNode.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentTypeInferenceMethodIntermediateNode.cs deleted file mode 100644 index 8716473db6..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ComponentTypeInferenceMethodIntermediateNode.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - /// - /// Represents a type-inference thunk that is used by the generated component code. - /// - internal class ComponentTypeInferenceMethodIntermediateNode : ExtensionIntermediateNode - { - public Dictionary Bindings { get; set; } - - public override IntermediateNodeCollection Children => IntermediateNodeCollection.ReadOnly; - - /// - /// Gets the component usage linked to this type inference method. - /// - public ComponentExtensionNode Component { get; set; } - - /// - /// Gets the full type name of the generated class containing this method. - /// - public string FullTypeName { get; internal set; } - - /// - /// Gets the name of the generated method. - /// - public string MethodName { get; set; } - - public override void Accept(IntermediateNodeVisitor visitor) - { - if (visitor == null) - { - throw new ArgumentNullException(nameof(visitor)); - } - - AcceptExtensionNode(this, visitor); - } - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - if (target == null) - { - throw new ArgumentNullException(nameof(target)); - } - - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var writer = (BlazorNodeWriter)context.NodeWriter; - writer.WriteComponentTypeInferenceMethod(context, this); - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/DocumentIntermediateNodeExtensions.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/DocumentIntermediateNodeExtensions.cs deleted file mode 100644 index 12e5afb2aa..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/DocumentIntermediateNodeExtensions.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; - -namespace Microsoft.AspNetCore.Razor.Language.Intermediate -{ - internal static class DocumentIntermediateNodeExtensions - { - public static IReadOnlyList FindDescendantReferences(this DocumentIntermediateNode document) - where TNode : IntermediateNode - { - if (document == null) - { - throw new ArgumentNullException(nameof(document)); - } - - var visitor = new ReferenceVisitor(); - visitor.Visit(document); - return visitor.References; - } - - private class ReferenceVisitor : IntermediateNodeWalker - where TNode : IntermediateNode - { - public List References = new List(); - - public override void VisitDefault(IntermediateNode node) - { - base.VisitDefault(node); - - // Use a post-order traversal because references are used to replace nodes, and thus - // change the parent nodes. - // - // This ensures that we always operate on the leaf nodes first. - if (node is TNode) - { - References.Add(new IntermediateNodeReference(Parent, node)); - } - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/EliminateMethodBodyPass.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/EliminateMethodBodyPass.cs deleted file mode 100644 index ee50775307..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/EliminateMethodBodyPass.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class EliminateMethodBodyPass : IntermediateNodePassBase, IRazorOptimizationPass - { - // Run early in the optimization phase - public override int Order => Int32.MinValue; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (codeDocument == null) - { - throw new ArgumentNullException(nameof(codeDocument)); - } - - if (documentNode == null) - { - throw new ArgumentNullException(nameof(documentNode)); - } - - var method = documentNode.FindPrimaryMethod(); - if (method == null) - { - return; - } - - method.Children.Clear(); - - // After we clear all of the method body there might be some unused fields, which can be - // blocking if compiling with warnings as errors. Suppress this warning so that it doesn't - // get annoying in VS. - documentNode.Children.Insert(documentNode.Children.IndexOf(documentNode.FindPrimaryNamespace()), new CSharpCodeIntermediateNode() - { - Children = - { - // Field is assigned but never used - new IntermediateToken() - { - Content = "#pragma warning disable 0414" + Environment.NewLine, - Kind = TokenKind.CSharp, - }, - - // Field is never assigned - new IntermediateToken() - { - Content = "#pragma warning disable 0649" + Environment.NewLine, - Kind = TokenKind.CSharp, - }, - - // Field is never used - new IntermediateToken() - { - Content = "#pragma warning disable 0169" + Environment.NewLine, - Kind = TokenKind.CSharp, - }, - }, - }); - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/EventHandlerLoweringPass.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/EventHandlerLoweringPass.cs deleted file mode 100644 index 1997d7f3f0..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/EventHandlerLoweringPass.cs +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class EventHandlerLoweringPass : IntermediateNodePassBase, IRazorOptimizationPass - { - public override int Order => 50; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var @namespace = documentNode.FindPrimaryNamespace(); - var @class = documentNode.FindPrimaryClass(); - if (@namespace == null || @class == null) - { - // Nothing to do, bail. We can't function without the standard structure. - return; - } - - // For each event handler *usage* we need to rewrite the tag helper node to map to basic constructs. - // Each usage will be represented by a tag helper property that is a descendant of either - // a component or element. - var references = documentNode.FindDescendantReferences(); - - var parents = new HashSet(); - for (var i = 0; i < references.Count; i++) - { - parents.Add(references[i].Parent); - } - - foreach (var parent in parents) - { - ProcessDuplicates(parent); - } - - for (var i = 0; i < references.Count; i++) - { - var reference = references[i]; - var node = (TagHelperPropertyIntermediateNode)reference.Node; - - if (!reference.Parent.Children.Contains(node)) - { - // This node was removed as a duplicate, skip it. - continue; - } - - if (node.TagHelper.IsEventHandlerTagHelper()) - { - reference.Replace(RewriteUsage(reference.Parent, node)); - } - } - } - - private void ProcessDuplicates(IntermediateNode parent) - { - // Reverse order because we will remove nodes. - // - // Each 'property' node could be duplicated if there are multiple tag helpers that match that - // particular attribute. This is likely to happen when a component also defines something like - // OnClick. We want to remove the 'onclick' and let it fall back to be handled by the component. - for (var i = parent.Children.Count - 1; i >= 0; i--) - { - var eventHandler = parent.Children[i] as TagHelperPropertyIntermediateNode; - if (eventHandler != null && - eventHandler.TagHelper != null && - eventHandler.TagHelper.IsEventHandlerTagHelper()) - { - for (var j = 0; j < parent.Children.Count; j++) - { - var componentAttribute = parent.Children[j] as ComponentAttributeExtensionNode; - if (componentAttribute != null && - componentAttribute.TagHelper != null && - componentAttribute.TagHelper.IsComponentTagHelper() && - componentAttribute.AttributeName == eventHandler.AttributeName) - { - // Found a duplicate - remove the 'fallback' in favor of the component's own handling. - parent.Children.RemoveAt(i); - break; - } - } - } - } - - // If we still have duplicates at this point then they are genuine conflicts. - var duplicates = parent.Children - .OfType() - .Where(p => p.TagHelper?.IsEventHandlerTagHelper() ?? false) - .GroupBy(p => p.AttributeName) - .Where(g => g.Count() > 1); - - foreach (var duplicate in duplicates) - { - parent.Diagnostics.Add(BlazorDiagnosticFactory.CreateEventHandler_Duplicates( - parent.Source, - duplicate.Key, - duplicate.ToArray())); - foreach (var property in duplicate) - { - parent.Children.Remove(property); - } - } - } - - private IntermediateNode RewriteUsage(IntermediateNode parent, TagHelperPropertyIntermediateNode node) - { - var original = GetAttributeContent(node); - if (original.Count == 0) - { - // This can happen in error cases, the parser will already have flagged this - // as an error, so ignore it. - return node; - } - - // Now rewrite the content of the value node to look like: - // - // BindMethods.GetEventHandlerValue() - // - // This method is overloaded on string and TDelegate, which means that it will put the code in the - // correct context for intellisense when typing in the attribute. - var eventArgsType = node.TagHelper.GetEventArgsType(); - var tokens = new List() - { - new IntermediateToken() - { - Content = $"{ComponentsApi.BindMethods.GetEventHandlerValue}<{eventArgsType}>(", - Kind = TokenKind.CSharp - }, - new IntermediateToken() - { - Content = $")", - Kind = TokenKind.CSharp - } - }; - - for (var i = 0; i < original.Count; i++) - { - tokens.Insert(i + 1, original[i]); - } - - if (parent is HtmlElementIntermediateNode) - { - var result = new HtmlAttributeIntermediateNode() - { - AttributeName = node.AttributeName, - Source = node.Source, - - Prefix = node.AttributeName + "=\"", - Suffix = "\"", - }; - - for (var i = 0; i < node.Diagnostics.Count; i++) - { - result.Diagnostics.Add(node.Diagnostics[i]); - } - - result.Children.Add(new CSharpExpressionAttributeValueIntermediateNode()); - for (var i = 0; i < tokens.Count; i++) - { - result.Children[0].Children.Add(tokens[i]); - } - - return result; - } - else - { - var result = new ComponentAttributeExtensionNode(node); - - result.Children.Clear(); - result.Children.Add(new CSharpExpressionIntermediateNode()); - for (var i = 0; i < tokens.Count; i++) - { - result.Children[0].Children.Add(tokens[i]); - } - - return result; - } - } - - private static IReadOnlyList GetAttributeContent(TagHelperPropertyIntermediateNode node) - { - var template = node.FindDescendantNodes().FirstOrDefault(); - if (template != null) - { - // See comments in TemplateDiagnosticPass - node.Diagnostics.Add(BlazorDiagnosticFactory.Create_TemplateInvalidLocation(template.Source)); - return new[] { new IntermediateToken() { Kind = TokenKind.CSharp, Content = string.Empty, }, }; - } - - if (node.Children.Count == 1 && node.Children[0] is HtmlContentIntermediateNode htmlContentNode) - { - // This case can be hit for a 'string' attribute. We want to turn it into - // an expression. - var tokens = htmlContentNode.FindDescendantNodes(); - - var content = "\"" + string.Join(string.Empty, tokens.Select(t => t.Content.Replace("\"", "\\\""))) + "\""; - return new[] { new IntermediateToken() { Content = content, Kind = TokenKind.CSharp, } }; - } - else - { - return node.FindDescendantNodes(); - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/EventHandlerTagHelperDescriptorProvider.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/EventHandlerTagHelperDescriptorProvider.cs deleted file mode 100644 index 5daa724cef..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/EventHandlerTagHelperDescriptorProvider.cs +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.Razor; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class EventHandlerTagHelperDescriptorProvider : ITagHelperDescriptorProvider - { - public int Order { get; set; } - - public RazorEngine Engine { get; set; } - - public void Execute(TagHelperDescriptorProviderContext context) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var compilation = context.GetCompilation(); - if (compilation == null) - { - return; - } - - var bindMethods = compilation.GetTypeByMetadataName(ComponentsApi.BindMethods.FullTypeName); - if (bindMethods == null) - { - // If we can't find BindMethods, then just bail. We won't be able to compile the - // generated code anyway. - return; - } - - - var eventHandlerData = GetEventHandlerData(compilation); - - foreach (var tagHelper in CreateEventHandlerTagHelpers(eventHandlerData)) - { - context.Results.Add(tagHelper); - } - } - - private List GetEventHandlerData(Compilation compilation) - { - var eventHandlerAttribute = compilation.GetTypeByMetadataName(ComponentsApi.EventHandlerAttribute.FullTypeName); - if (eventHandlerAttribute == null) - { - // This won't likely happen, but just in case. - return new List(); - } - - var types = new List(); - var visitor = new EventHandlerDataVisitor(types); - - // Visit the primary output of this compilation, as well as all references. - visitor.Visit(compilation.Assembly); - foreach (var reference in compilation.References) - { - // We ignore .netmodules here - there really isn't a case where they are used by user code - // even though the Roslyn APIs all support them. - if (compilation.GetAssemblyOrModuleSymbol(reference) is IAssemblySymbol assembly) - { - visitor.Visit(assembly); - } - } - - var results = new List(); - - for (var i = 0; i < types.Count; i++) - { - var type = types[i]; - var attributes = type.GetAttributes(); - - // Not handling duplicates here for now since we're the primary ones extending this. - // If we see users adding to the set of event handler constructs we will want to add deduplication - // and potentially diagnostics. - for (var j = 0; j < attributes.Length; j++) - { - var attribute = attributes[j]; - - if (attribute.AttributeClass == eventHandlerAttribute) - { - results.Add(new EventHandlerData( - type.ContainingAssembly.Name, - type.ToDisplayString(), - (string)attribute.ConstructorArguments[0].Value, - (INamedTypeSymbol)attribute.ConstructorArguments[1].Value)); - } - } - } - - return results; - } - - private List CreateEventHandlerTagHelpers(List data) - { - var results = new List(); - - for (var i = 0; i < data.Count; i++) - { - var entry = data[i]; - - var builder = TagHelperDescriptorBuilder.Create(BlazorMetadata.EventHandler.TagHelperKind, entry.Attribute, entry.Assembly); - builder.Documentation = string.Format( - Resources.EventHandlerTagHelper_Documentation, - entry.Attribute, - entry.EventArgsType.ToDisplayString()); - - builder.Metadata.Add(BlazorMetadata.SpecialKindKey, BlazorMetadata.EventHandler.TagHelperKind); - builder.Metadata.Add(BlazorMetadata.EventHandler.EventArgsType, entry.EventArgsType.ToDisplayString()); - builder.Metadata[TagHelperMetadata.Runtime.Name] = BlazorMetadata.EventHandler.RuntimeName; - - // WTE has a bug in 15.7p1 where a Tag Helper without a display-name that looks like - // a C# property will crash trying to create the tooltips. - builder.SetTypeName(entry.TypeName); - - builder.TagMatchingRule(rule => - { - rule.TagName = "*"; - - rule.Attribute(a => - { - a.Name = entry.Attribute; - a.NameComparisonMode = RequiredAttributeDescriptor.NameComparisonMode.FullMatch; - }); - }); - - builder.BindAttribute(a => - { - a.Documentation = string.Format( - Resources.EventHandlerTagHelper_Documentation, - entry.Attribute, - entry.EventArgsType.ToDisplayString()); - - a.Name = entry.Attribute; - - // Use a string here so that we get HTML context by default. - a.TypeName = typeof(string).FullName; - - // But make this weakly typed (don't type check) - delegates have their own type-checking - // logic that we don't want to interfere with. - a.Metadata.Add(BlazorMetadata.Component.WeaklyTypedKey, bool.TrueString); - - // WTE has a bug 15.7p1 where a Tag Helper without a display-name that looks like - // a C# property will crash trying to create the tooltips. - a.SetPropertyName(entry.Attribute); - }); - - results.Add(builder.Build()); - } - - return results; - } - - private struct EventHandlerData - { - public EventHandlerData( - string assembly, - string typeName, - string element, - INamedTypeSymbol eventArgsType) - { - Assembly = assembly; - TypeName = typeName; - Attribute = element; - EventArgsType = eventArgsType; - } - - public string Assembly { get; } - - public string TypeName { get; } - - public string Attribute { get; } - - public INamedTypeSymbol EventArgsType { get; } - } - - private class EventHandlerDataVisitor : SymbolVisitor - { - private List _results; - - public EventHandlerDataVisitor(List results) - { - _results = results; - } - - public override void VisitNamedType(INamedTypeSymbol symbol) - { - if (symbol.Name == "EventHandlers" && symbol.DeclaredAccessibility == Accessibility.Public) - { - _results.Add(symbol); - } - } - - public override void VisitNamespace(INamespaceSymbol symbol) - { - foreach (var member in symbol.GetMembers()) - { - Visit(member); - } - } - - public override void VisitAssembly(IAssemblySymbol symbol) - { - // This as a simple yet high-value optimization that excludes the vast majority of - // assemblies that (by definition) can't contain a component. - if (symbol.Name != null && !symbol.Name.StartsWith("System.", StringComparison.Ordinal)) - { - Visit(symbol.GlobalNamespace); - } - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/GenericComponentPass.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/GenericComponentPass.cs deleted file mode 100644 index bd9974a381..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/GenericComponentPass.cs +++ /dev/null @@ -1,305 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.CSharp.Syntax; - -namespace Microsoft.AspNetCore.Components.Razor -{ - // This pass: - // 1. Adds diagnostics for missing generic type arguments - // 2. Rewrites the type name of the component to substitute generic type arguments - // 3. Rewrites the type names of parameters/child content to substitute generic type arguments - internal class GenericComponentPass : IntermediateNodePassBase, IRazorOptimizationPass - { - // Runs after components/eventhandlers/ref/bind/templates. We want to validate every component - // and it's usage of ChildContent. - public override int Order => 160; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var visitor = new Visitor(); - visitor.Visit(documentNode); - } - - - private class Visitor : IntermediateNodeWalker, IExtensionIntermediateNodeVisitor - { - // Incrementing ID for type inference method names - private int _id; - - public void VisitExtension(ComponentExtensionNode node) - { - if (node.Component.IsGenericTypedComponent()) - { - // Not generic, ignore. - Process(node); - } - - base.VisitDefault(node); - } - - private void Process(ComponentExtensionNode node) - { - // First collect all of the information we have about each type parameter - // - // Listing all type parameters that exist - var bindings = new Dictionary(); - foreach (var attribute in node.Component.GetTypeParameters()) - { - bindings.Add(attribute.Name, new GenericTypeNameRewriter.Binding() { Attribute = attribute, }); - } - - // Listing all type arguments that have been specified. - var hasTypeArgumentSpecified = false; - foreach (var typeArgumentNode in node.TypeArguments) - { - hasTypeArgumentSpecified = true; - - var binding = bindings[typeArgumentNode.TypeParameterName]; - binding.Node = typeArgumentNode; - binding.Content = GetContent(typeArgumentNode); - } - - if (hasTypeArgumentSpecified) - { - // OK this means that the developer has specified at least one type parameter. - // Either they specified everything and its OK to rewrite, or its an error. - if (ValidateTypeArguments(node, bindings)) - { - RewriteTypeNames(new GenericTypeNameRewriter(bindings), node); - } - - return; - } - - // OK if we get here that means that no type arguments were specified, so we will try to infer - // the type. - // - // The actual inference is done by the C# compiler, we just emit an a method that represents the - // use of this component. - - // Since we're generating code in a different namespace, we need to 'global qualify' all of the types - // to avoid clashes with our generated code. - RewriteTypeNames(new GlobalQualifiedTypeNameRewriter(bindings.Keys), node); - - // - // We need to verify that an argument was provided that 'covers' each type parameter. - // - // For example, consider a repeater where the generic type is the 'item' type, but the developer has - // not set the items. We won't be able to do type inference on this and so it will just be nonsense. - var attributes = node.Attributes.Select(a => a.BoundAttribute).Concat(node.ChildContents.Select(c => c.BoundAttribute)); - foreach (var attribute in attributes) - { - if (attribute == null) - { - // Will be null for attributes set on the component that don't match a declared component parameter - continue; - } - - // Now we need to parse the type name and extract the generic parameters. - // - // Two cases; - // 1. name is a simple identifier like TItem - // 2. name contains type parameters like Dictionary - if (!attribute.IsGenericTypedProperty()) - { - continue; - } - - var parsed = SyntaxFactory.ParseTypeName(attribute.TypeName); - if (parsed is IdentifierNameSyntax identifier) - { - bindings.Remove(identifier.ToString()); - } - else - { - var typeParameters = parsed.DescendantNodesAndSelf().OfType().SelectMany(arg => arg.Arguments); - foreach (var typeParameter in typeParameters) - { - bindings.Remove(typeParameter.ToString()); - } - } - } - - // If any bindings remain then this means we would never be able to infer the arguments of this - // component usage because the user hasn't set properties that include all of the types. - if (bindings.Count > 0) - { - // However we still want to generate 'type inference' code because we want the errors to be as - // helpful as possible. So let's substitute 'object' for all of those type parameters, and add - // an error. - RewriteTypeNames(new GenericTypeNameRewriter(bindings), node); - - node.Diagnostics.Add(BlazorDiagnosticFactory.Create_GenericComponentTypeInferenceUnderspecified(node.Source, node, node.Component.GetTypeParameters())); - } - - // Next we need to generate a type inference 'method' node. This represents a method that we will codegen that - // contains all of the operations on the render tree building. Calling a method to operate on the builder - // will allow the C# compiler to perform type inference. - var documentNode = (DocumentIntermediateNode)Ancestors[Ancestors.Count - 1]; - CreateTypeInferenceMethod(documentNode, node, bindings); - } - - private string GetContent(ComponentTypeArgumentExtensionNode node) - { - return string.Join(string.Empty, node.FindDescendantNodes().Where(t => t.IsCSharp).Select(t => t.Content)); - } - - private static bool ValidateTypeArguments(ComponentExtensionNode node, Dictionary bindings) - { - var missing = new List(); - foreach (var binding in bindings) - { - if (binding.Value.Node == null || string.IsNullOrWhiteSpace(binding.Value.Content)) - { - missing.Add(binding.Value.Attribute); - } - } - - if (missing.Count > 0) - { - // We add our own error for this because its likely the user will see other errors due - // to incorrect codegen without the types. Our errors message will pretty clearly indicate - // what to do, whereas the other errors might be confusing. - node.Diagnostics.Add(BlazorDiagnosticFactory.Create_GenericComponentMissingTypeArgument(node.Source, node, missing)); - return false; - } - - return true; - } - - private void RewriteTypeNames(CSharpSyntaxRewriter rewriter, ComponentExtensionNode node) - { - // Rewrite the component type name - node.TypeName = RewriteTypeName(rewriter, node.TypeName); - - foreach (var attribute in node.Attributes) - { - if (attribute.BoundAttribute?.IsGenericTypedProperty() ?? false && attribute.TypeName != null) - { - // If we know the type name, then replace any generic type parameter inside it with - // the known types. - attribute.TypeName = RewriteTypeName(rewriter, attribute.TypeName); - } - else if (attribute.TypeName == null && (attribute.BoundAttribute?.IsDelegateProperty() ?? false)) - { - // This is a weakly typed delegate, treat it as Action - attribute.TypeName = "System.Action"; - } - else if (attribute.TypeName == null) - { - // This is a weakly typed attribute, treat it as System.Object - attribute.TypeName = "System.Object"; - } - } - - foreach (var capture in node.Captures) - { - if (capture.IsComponentCapture && capture.ComponentCaptureTypeName != null) - { - capture.ComponentCaptureTypeName = RewriteTypeName(rewriter, capture.ComponentCaptureTypeName); - } - else if (capture.IsComponentCapture) - { - capture.ComponentCaptureTypeName = "System.Object"; - } - } - - foreach (var childContent in node.ChildContents) - { - if (childContent.BoundAttribute?.IsGenericTypedProperty() ?? false && childContent.TypeName != null) - { - // If we know the type name, then replace any generic type parameter inside it with - // the known types. - childContent.TypeName = RewriteTypeName(rewriter, childContent.TypeName); - } - else if (childContent.IsParameterized) - { - // This is a weakly typed parameterized child content, treat it as RenderFragment - childContent.TypeName = ComponentsApi.RenderFragment.FullTypeName + ""; - } - else - { - // This is a weakly typed child content, treat it as RenderFragment - childContent.TypeName = ComponentsApi.RenderFragment.FullTypeName; - } - } - } - - private string RewriteTypeName(CSharpSyntaxRewriter rewriter, string typeName) - { - var parsed = SyntaxFactory.ParseTypeName(typeName); - var rewritten = (TypeSyntax)rewriter.Visit(parsed); - return rewritten.ToFullString(); - } - - private void CreateTypeInferenceMethod( - DocumentIntermediateNode documentNode, - ComponentExtensionNode node, - Dictionary bindings) - { - var @namespace = documentNode.FindPrimaryNamespace().Content; - @namespace = string.IsNullOrEmpty(@namespace) ? "__Blazor" : "__Blazor." + @namespace; - @namespace += "." + documentNode.FindPrimaryClass().ClassName; - - var typeInferenceNode = new ComponentTypeInferenceMethodIntermediateNode() - { - Bindings = bindings, - Component = node, - - // Method name is generated and guaranteed not to collide, since it's unique for each - // component call site. - MethodName = $"Create{node.TagName}_{_id++}", - FullTypeName = @namespace + ".TypeInference", - }; - - node.TypeInferenceNode = typeInferenceNode; - - // Now we need to insert the type inference node into the tree. - var namespaceNode = documentNode.Children - .OfType() - .Where(n => n.Annotations.Contains(new KeyValuePair(BlazorMetadata.Component.GenericTypedKey, bool.TrueString))) - .FirstOrDefault(); - if (namespaceNode == null) - { - namespaceNode = new NamespaceDeclarationIntermediateNode() - { - Annotations = - { - { BlazorMetadata.Component.GenericTypedKey, bool.TrueString }, - }, - Content = @namespace, - }; - - documentNode.Children.Add(namespaceNode); - } - - var classNode = namespaceNode.Children - .OfType() - .Where(n => n.ClassName == "TypeInference") - .FirstOrDefault(); - if (classNode == null) - { - classNode = new ClassDeclarationIntermediateNode() - { - ClassName = "TypeInference", - Modifiers = - { - "internal", - "static", - }, - }; - namespaceNode.Children.Add(classNode); - } - - classNode.Children.Add(typeInferenceNode); - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/GenericTypeNameRewriter.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/GenericTypeNameRewriter.cs deleted file mode 100644 index 33ccacd6ec..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/GenericTypeNameRewriter.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.CSharp.Syntax; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class GenericTypeNameRewriter : CSharpSyntaxRewriter - { - private readonly Dictionary _bindings; - - public GenericTypeNameRewriter(Dictionary bindings) - { - _bindings = bindings; - } - - public override SyntaxNode Visit(SyntaxNode node) - { - // We can handle a single IdentifierNameSyntax at the top level (like 'TItem) - // OR a GenericNameSyntax recursively (like `List`) - if (node is IdentifierNameSyntax identifier && !(identifier.Parent is QualifiedNameSyntax)) - { - if (_bindings.TryGetValue(identifier.Identifier.Text, out var binding)) - { - // If we don't have a valid replacement, use object. This will make the code at least reasonable - // compared to leaving the type parameter in place. - // - // We add our own diagnostics for missing/invalid type parameters anyway. - var replacement = binding?.Content == null ? typeof(object).FullName : binding.Content; - return identifier.Update(SyntaxFactory.Identifier(replacement)); - } - } - - return base.Visit(node); - } - - public override SyntaxNode VisitGenericName(GenericNameSyntax node) - { - var args = node.TypeArgumentList.Arguments; - for (var i = 0; i < args.Count; i++) - { - var typeArgument = args[i]; - args = args.Replace(typeArgument, (TypeSyntax)Visit(typeArgument)); - } - - return node.WithTypeArgumentList(node.TypeArgumentList.WithArguments(args)); - } - - public class Binding - { - public BoundAttributeDescriptor Attribute { get; set; } - - public string Content { get; set; } - - public ComponentTypeArgumentExtensionNode Node { get; set; } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/GlobalQualifiedTypeNameRewriter.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/GlobalQualifiedTypeNameRewriter.cs deleted file mode 100644 index f1f62516fa..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/GlobalQualifiedTypeNameRewriter.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.CSharp.Syntax; - -namespace Microsoft.AspNetCore.Components.Razor -{ - // Rewrites type names to use the 'global::' prefix for identifiers. - // - // This is useful when we're generating code in a different namespace than - // what the user code lives in. When we synthesize a namespace it's easy to have - // clashes. - internal class GlobalQualifiedTypeNameRewriter : CSharpSyntaxRewriter - { - // List of names to ignore. - // - // NOTE: this is the list of type parameters defined on the component. - private readonly HashSet _ignore; - - public GlobalQualifiedTypeNameRewriter(IEnumerable ignore) - { - _ignore = new HashSet(ignore); - } - - public override SyntaxNode Visit(SyntaxNode node) - { - return base.Visit(node); - } - - public override SyntaxNode VisitQualifiedName(QualifiedNameSyntax node) - { - if (node.Parent is QualifiedNameSyntax) - { - return base.VisitQualifiedName(node); - } - - // Need to rewrite postorder so we can rewrite the names of generic type arguments. - node = (QualifiedNameSyntax)base.VisitQualifiedName(node); - - // Rewriting these is complicated, best to just tostring and parse again. - return SyntaxFactory.ParseTypeName("global::" + node.ToString()); - } - - public override SyntaxNode VisitIdentifierName(IdentifierNameSyntax node) - { - if (_ignore.Contains(node.ToString())) - { - return node; - } - - if (node.Parent != null) - { - return node; - } - - return SyntaxFactory.AliasQualifiedName(SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword)), node); - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/HtmlBlockIntermediateNode.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/HtmlBlockIntermediateNode.cs deleted file mode 100644 index 55574ad329..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/HtmlBlockIntermediateNode.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Diagnostics; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - [DebuggerDisplay("{DebuggerDisplay,nq}")] - internal class HtmlBlockIntermediateNode : ExtensionIntermediateNode - { - public override IntermediateNodeCollection Children { get; } = new IntermediateNodeCollection(); - - public string Content { get; set; } - - public override void Accept(IntermediateNodeVisitor visitor) - { - if (visitor == null) - { - throw new ArgumentNullException(nameof(visitor)); - } - - AcceptExtensionNode(this, visitor); - } - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - if (target == null) - { - throw new ArgumentNullException(nameof(target)); - } - - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var writer = (BlazorNodeWriter)context.NodeWriter; - writer.WriteHtmlBlock(context, this); - } - - private string DebuggerDisplay => Content; - } -} \ No newline at end of file diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/HtmlBlockPass.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/HtmlBlockPass.cs deleted file mode 100644 index f4098ac1e1..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/HtmlBlockPass.cs +++ /dev/null @@ -1,349 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using AngleSharp.Html; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - // Rewrites contiguous subtrees of HTML into a special node type to reduce the - // size of the Render tree. - // - // Does not preserve insignificant details of the HTML, like tag closing style - // or quote style. - internal class HtmlBlockPass : IntermediateNodePassBase, IRazorOptimizationPass - { - // Runs LATE because we want to destroy structure. - public override int Order => 10000; - - protected override void ExecuteCore( - RazorCodeDocument codeDocument, - DocumentIntermediateNode documentNode) - { - if (documentNode.Options.DesignTime) - { - // Nothing to do during design time. - return; - } - - var findVisitor = new FindHtmlTreeVisitor(); - findVisitor.Visit(documentNode); - - var trees = findVisitor.Trees; - var rewriteVisitor = new RewriteVisitor(trees); - while (trees.Count > 0) - { - // Walk backwards since we did a postorder traversal. - var reference = trees[trees.Count - 1]; - - // Forcibly remove a node to prevent infinite loops. - trees.RemoveAt(trees.Count - 1); - - // We want to fold together siblings where possible. To do this, first we find - // the index of the node we're looking at now - then we need to walk backwards - // and identify a set of contiguous nodes we can merge. - var start = reference.Parent.Children.Count - 1; - for (; start >= 0; start--) - { - if (ReferenceEquals(reference.Node, reference.Parent.Children[start])) - { - break; - } - } - - // This is the current node. Check if the left sibling is always a candidate - // for rewriting. Due to the order we processed the nodes, we know that the - // left sibling is next in the list to process if it's a candidate. - var end = start; - while (start - 1 >= 0) - { - var candidate = reference.Parent.Children[start - 1]; - if (trees.Count == 0 || !ReferenceEquals(trees[trees.Count - 1].Node, candidate)) - { - // This means the we're out of nodes, or the left sibling is not in the list. - break; - } - - // This means that the left sibling is valid to merge. - start--; - - // Remove this since we're combining it. - trees.RemoveAt(trees.Count - 1); - } - - // As a degenerate case, don't bother rewriting an single HtmlContent node - // It doesn't add any value. - if (end - start == 0 && reference.Node is HtmlContentIntermediateNode) - { - continue; - } - - // Now we know the range of nodes to rewrite (end is inclusive) - var length = end + 1 - start; - while (length > 0) - { - // Keep using start since we're removing nodes. - var node = reference.Parent.Children[start]; - reference.Parent.Children.RemoveAt(start); - - rewriteVisitor.Visit(node); - - length--; - } - - reference.Parent.Children.Insert(start, new HtmlBlockIntermediateNode() - { - Content = rewriteVisitor.Builder.ToString(), - }); - - rewriteVisitor.Builder.Clear(); - } - } - - // Finds HTML-blocks using a postorder traversal. We store nodes in an - // ordered list so we can avoid redundant rewrites. - // - // Consider a case like: - //
- // click me - //
- // - // We would store both the div and a tag in a list, but make sure to visit - // the div first. Then when we process the div (recursively), we would remove - // the a from the list. - private class FindHtmlTreeVisitor : - IntermediateNodeWalker, - IExtensionIntermediateNodeVisitor - { - private bool _foundNonHtml; - - public List Trees { get; } = new List(); - - public override void VisitDefault(IntermediateNode node) - { - // If we get here, we found a non-HTML node. Keep traversing. - _foundNonHtml = true; - base.VisitDefault(node); - } - - public void VisitExtension(HtmlElementIntermediateNode node) - { - // We need to restore the state after processing this node. - // We might have found a leaf-block of HTML, but that shouldn't - // affect our parent's state. - var originalState = _foundNonHtml; - - _foundNonHtml = false; - - if (node.HasDiagnostics) - { - // Treat node with errors as non-HTML - don't let the parent rewrite this either. - _foundNonHtml = true; - } - - if (string.Equals("script", node.TagName, StringComparison.OrdinalIgnoreCase)) - { - // Treat script tags as non-HTML - we trigger errors for script tags - // later. - _foundNonHtml = true; - } - - base.VisitDefault(node); - - if (!_foundNonHtml) - { - Trees.Add(new IntermediateNodeReference(Parent, node)); - } - - _foundNonHtml = originalState |= _foundNonHtml; - } - - public override void VisitHtmlAttribute(HtmlAttributeIntermediateNode node) - { - if (node.HasDiagnostics) - { - // Treat node with errors as non-HTML - _foundNonHtml = true; - } - - // Visit Children - base.VisitDefault(node); - } - - public override void VisitHtmlAttributeValue(HtmlAttributeValueIntermediateNode node) - { - if (node.HasDiagnostics) - { - // Treat node with errors as non-HTML - _foundNonHtml = true; - } - - // Visit Children - base.VisitDefault(node); - } - - public override void VisitHtml(HtmlContentIntermediateNode node) - { - // We need to restore the state after processing this node. - // We might have found a leaf-block of HTML, but that shouldn't - // affect our parent's state. - var originalState = _foundNonHtml; - - _foundNonHtml = false; - - if (node.HasDiagnostics) - { - // Treat node with errors as non-HTML - _foundNonHtml = true; - } - - // Visit Children - base.VisitDefault(node); - - if (!_foundNonHtml) - { - Trees.Add(new IntermediateNodeReference(Parent, node)); - } - - _foundNonHtml = originalState |= _foundNonHtml; - } - - public override void VisitToken(IntermediateToken node) - { - if (node.HasDiagnostics) - { - // Treat node with errors as non-HTML - _foundNonHtml = true; - } - - if (node.IsCSharp) - { - _foundNonHtml = true; - } - } - } - - private class RewriteVisitor : - IntermediateNodeWalker, - IExtensionIntermediateNodeVisitor - { - private readonly StringBuilder _encodingBuilder; - - private readonly List _trees; - - public RewriteVisitor(List trees) - { - _trees = trees; - - _encodingBuilder = new StringBuilder(); - } - - public StringBuilder Builder { get; } = new StringBuilder(); - - public void VisitExtension(HtmlElementIntermediateNode node) - { - for (var i = 0; i < _trees.Count; i++) - { - // Remove this node if it's in the list. This ensures that we don't - // do redundant operations. - if (ReferenceEquals(_trees[i].Node, node)) - { - _trees.RemoveAt(i); - break; - } - } - - var isVoid = ComponentDocumentRewritePass.VoidElements.Contains(node.TagName); - var hasBodyContent = node.Body.Any(); - - Builder.Append("<"); - Builder.Append(node.TagName); - - foreach (var attribute in node.Attributes) - { - Visit(attribute); - } - - // If for some reason a void element contains body, then treat it as a - // start/end tag. - if (!hasBodyContent && isVoid) - { - // void - Builder.Append(">"); - return; - } - else if (!hasBodyContent) - { - // In HTML5, we can't have self-closing non-void elements, so explicitly - // add a close tag - Builder.Append(">"); - return; - } - - // start/end tag with body. - Builder.Append(">"); - - foreach (var item in node.Body) - { - Visit(item); - } - - Builder.Append(""); - } - - public override void VisitHtmlAttribute(HtmlAttributeIntermediateNode node) - { - Builder.Append(" "); - Builder.Append(node.AttributeName); - - if (node.Children.Count == 0) - { - // Minimized attribute - return; - } - - Builder.Append("=\""); - - // Visit Children - base.VisitDefault(node); - - Builder.Append("\""); - } - - public override void VisitHtmlAttributeValue(HtmlAttributeValueIntermediateNode node) - { - Builder.Append(Encode(node.Children)); - } - - public override void VisitHtml(HtmlContentIntermediateNode node) - { - Builder.Append(Encode(node.Children)); - } - - private string Encode(IntermediateNodeCollection nodes) - { - // We need to HTML encode text content. We would have decoded HTML entities - // earlier when we parsed the text into a tree, but since we're folding - // this node into a block of pre-encoded HTML we need to be sure to - // re-encode. - _encodingBuilder.Clear(); - - for (var i = 0; i < nodes.Count; i++) - { - _encodingBuilder.Append(((IntermediateToken)nodes[i]).Content); - } - - return HtmlMarkupFormatter.Instance.Text(_encodingBuilder.ToString()); - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/HtmlElementIntermediateNode.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/HtmlElementIntermediateNode.cs deleted file mode 100644 index 4ba3ffbd36..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/HtmlElementIntermediateNode.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Text; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - [DebuggerDisplay("{DebuggerDisplay,nq}")] - internal class HtmlElementIntermediateNode : ExtensionIntermediateNode - { - public IEnumerable Attributes => Children.OfType(); - - public IEnumerable Captures => Children.OfType(); - - public IEnumerable Body => Children.Where(c => - { - return - c as HtmlAttributeIntermediateNode == null && - c as RefExtensionNode == null; - }); - - public override IntermediateNodeCollection Children { get; } = new IntermediateNodeCollection(); - - public string TagName { get; set; } - - public override void Accept(IntermediateNodeVisitor visitor) - { - if (visitor == null) - { - throw new ArgumentNullException(nameof(visitor)); - } - - AcceptExtensionNode(this, visitor); - } - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - if (target == null) - { - throw new ArgumentNullException(nameof(target)); - } - - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var writer = (BlazorNodeWriter)context.NodeWriter; - writer.WriteHtmlElement(context, this); - } - - private string DebuggerDisplay - { - get - { - var builder = new StringBuilder(); - builder.Append("Element: "); - builder.Append("<"); - builder.Append(TagName); - - foreach (var attribute in Attributes) - { - builder.Append(" "); - builder.Append(attribute.AttributeName); - builder.Append("=\"...\""); - } - - foreach (var capture in Captures) - { - builder.Append(" "); - builder.Append("ref"); - builder.Append("=\"...\""); - } - - builder.Append(">"); - builder.Append(Body.Any() ? "..." : string.Empty); - builder.Append(""); - - return builder.ToString(); - } - } - } -} \ No newline at end of file diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ImplementsDirective.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ImplementsDirective.cs deleted file mode 100644 index 6ebceb3e09..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ImplementsDirective.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal static class ImplementsDirective - { - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "implements", - DirectiveKind.SingleLine, - builder => - { - builder.AddTypeToken(Resources.ImplementsDirective_TypeToken_Name, Resources.ImplementsDirective_TypeToken_Description); - builder.Usage = DirectiveUsage.FileScopedMultipleOccurring; - builder.Description = Resources.ImplementsDirective_Description; - }); - - public static void Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - builder.Features.Add(new ImplementsDirectivePass()); - } - } -} \ No newline at end of file diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ImplementsDirectivePass.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ImplementsDirectivePass.cs deleted file mode 100644 index 8acdd08dfc..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ImplementsDirectivePass.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class ImplementsDirectivePass : IntermediateNodePassBase, IRazorDirectiveClassifierPass - { - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var @class = documentNode.FindPrimaryClass(); - if (@class == null) - { - return; - } - - if (@class.Interfaces == null) - { - @class.Interfaces = new List(); - } - - foreach (var implements in documentNode.FindDirectiveReferences(ImplementsDirective.Directive)) - { - var token = ((DirectiveIntermediateNode)implements.Node).Tokens.FirstOrDefault(); - if (token != null) - { - @class.Interfaces.Add(token.Content); - } - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/InjectDirective.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/InjectDirective.cs deleted file mode 100644 index 659d747210..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/InjectDirective.cs +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Microsoft.AspNetCore.Components.Razor -{ - // Much of the following is equivalent to Microsoft.AspNetCore.Mvc.Razor.Extensions's InjectDirective, - // but this one outputs properties annotated for Blazor's property injector, plus it doesn't need to - // support multiple CodeTargets. - - internal class InjectDirective - { - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "inject", - DirectiveKind.SingleLine, - builder => - { - builder.AddTypeToken("TypeName", "The type of the service to inject."); - builder.AddMemberToken("PropertyName", "The name of the property."); - builder.Usage = DirectiveUsage.FileScopedMultipleOccurring; - builder.Description = "Inject a service from the application's service container into a property."; - }); - - public static void Register(RazorProjectEngineBuilder builder) - { - builder.AddDirective(Directive); - builder.Features.Add(new Pass()); - } - - private class Pass : IntermediateNodePassBase, IRazorDirectiveClassifierPass - { - protected override void ExecuteCore( - RazorCodeDocument codeDocument, - DocumentIntermediateNode documentNode) - { - var visitor = new Visitor(); - visitor.Visit(documentNode); - - var properties = new HashSet(StringComparer.Ordinal); - var classNode = documentNode.FindPrimaryClass(); - - for (var i = visitor.Directives.Count - 1; i >= 0; i--) - { - var directive = visitor.Directives[i]; - var tokens = directive.Tokens.ToArray(); - if (tokens.Length < 2) - { - continue; - } - - var typeName = tokens[0].Content; - var memberName = tokens[1].Content; - - if (!properties.Add(memberName)) - { - continue; - } - - classNode.Children.Add(new InjectIntermediateNode(typeName, memberName)); - } - } - - private class Visitor : IntermediateNodeWalker - { - public IList Directives { get; } - = new List(); - - public override void VisitDirective(DirectiveIntermediateNode node) - { - if (node.Directive == Directive) - { - Directives.Add(node); - } - } - } - - internal class InjectIntermediateNode : ExtensionIntermediateNode - { - private static readonly IList _injectedPropertyModifiers = new[] - { - $"[global::{ComponentsApi.InjectAttribute.FullTypeName}]", - "private" // Encapsulation is the default - }; - - public string TypeName { get; } - public string MemberName { get; } - public override IntermediateNodeCollection Children => IntermediateNodeCollection.ReadOnly; - - public InjectIntermediateNode(string typeName, string memberName) - { - TypeName = typeName; - MemberName = memberName; - } - - public override void Accept(IntermediateNodeVisitor visitor) - => AcceptExtensionNode(this, visitor); - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - => context.CodeWriter.WriteAutoPropertyDeclaration( - _injectedPropertyModifiers, - TypeName, - MemberName); - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/LayoutDirective.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/LayoutDirective.cs deleted file mode 100644 index b54694f6a8..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/LayoutDirective.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal static class LayoutDirective - { - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "layout", - DirectiveKind.SingleLine, - builder => - { - builder.AddTypeToken(Resources.LayoutDirective_TypeToken_Name, Resources.LayoutDirective_TypeToken_Description); - builder.Usage = DirectiveUsage.FileScopedSinglyOccurring; - builder.Description = Resources.LayoutDirective_Description; - }); - - public static void Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - builder.Features.Add(new LayoutDirectivePass()); - } - } -} \ No newline at end of file diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/LayoutDirectivePass.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/LayoutDirectivePass.cs deleted file mode 100644 index c86c66dcc8..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/LayoutDirectivePass.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class LayoutDirectivePass : IntermediateNodePassBase, IRazorDirectiveClassifierPass - { - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var @namespace = documentNode.FindPrimaryNamespace(); - var @class = documentNode.FindPrimaryClass(); - if (@namespace == null || @class == null) - { - return; - } - - var directives = documentNode.FindDirectiveReferences(LayoutDirective.Directive); - if (directives.Count == 0) - { - return; - } - - var token = ((DirectiveIntermediateNode)directives[0].Node).Tokens.FirstOrDefault(); - if (token == null) - { - return; - } - - var attributeNode = new CSharpCodeIntermediateNode(); - attributeNode.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = $"[{ComponentsApi.LayoutAttribute.FullTypeName}(typeof({token.Content}))]" + Environment.NewLine, - }); - - // Insert the new attribute on top of the class - for (var i = 0; i < @namespace.Children.Count; i++) - { - if (object.ReferenceEquals(@namespace.Children[i], @class)) - { - @namespace.Children.Insert(i, attributeNode); - break; - } - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/Microsoft.AspNetCore.Components.Razor.Extensions.csproj b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/Microsoft.AspNetCore.Components.Razor.Extensions.csproj deleted file mode 100644 index 215a562aaa..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/Microsoft.AspNetCore.Components.Razor.Extensions.csproj +++ /dev/null @@ -1,38 +0,0 @@ - - - - netstandard2.0 - $(TargetFrameworks);net461 - Microsoft.AspNetCore.Components.Razor - Extensions to the Razor compiler to support building Razor Components. - true - - - true - - - - - - - - - - - True - True - Resources.resx - - - - - - ResXFileCodeGenerator - Resources.Designer.cs - - - - - - - diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/PageDirective.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/PageDirective.cs deleted file mode 100644 index 107ddc61bd..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/PageDirective.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class PageDirective - { - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "page", - DirectiveKind.SingleLine, - builder => - { - builder.AddStringToken(Resources.PageDirective_RouteToken_Name, Resources.PageDirective_RouteToken_Description); - builder.Usage = DirectiveUsage.FileScopedMultipleOccurring; - builder.Description = Resources.PageDirective_Description; - }); - - private PageDirective(string routeTemplate, IntermediateNode directiveNode) - { - RouteTemplate = routeTemplate; - DirectiveNode = directiveNode; - } - - public string RouteTemplate { get; } - - public IntermediateNode DirectiveNode { get; } - - public static RazorProjectEngineBuilder Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - builder.Features.Add(new PageDirectivePass()); - return builder; - } - } -} \ No newline at end of file diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/PageDirectivePass.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/PageDirectivePass.cs deleted file mode 100644 index 02d9dfadeb..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/PageDirectivePass.cs +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class PageDirectivePass : IntermediateNodePassBase, IRazorDirectiveClassifierPass - { - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (codeDocument == null) - { - throw new ArgumentNullException(nameof(codeDocument)); - } - - if (documentNode == null) - { - throw new ArgumentNullException(nameof(documentNode)); - } - - var @namespace = documentNode.FindPrimaryNamespace(); - var @class = documentNode.FindPrimaryClass(); - if (@namespace == null || @class == null) - { - return; - } - - var directives = documentNode.FindDirectiveReferences(PageDirective.Directive); - if (directives.Count == 0) - { - return; - } - - // We don't allow @page directives in imports - for (var i = 0; i < directives.Count; i++) - { - var directive = directives[i]; - if (directive.Node.IsImported()) - { - directive.Node.Diagnostics.Add(BlazorDiagnosticFactory.CreatePageDirective_CannotBeImported(directive.Node.Source.Value)); - } - } - - // Insert the attributes 'on-top' of the class declaration, since classes don't directly support attributes. - var index = 0; - for (; index < @namespace.Children.Count; index++) - { - if (object.ReferenceEquals(@class, @namespace.Children[index])) - { - break; - } - } - - for (var i = 0; i < directives.Count; i++) - { - var pageDirective = (DirectiveIntermediateNode)directives[i].Node; - - // The parser also adds errors for invalid syntax, we just need to not crash. - var routeToken = pageDirective.Tokens.FirstOrDefault(); - - if (routeToken != null && - routeToken.Content.Length >= 3 && - routeToken.Content[0] == '\"' && - routeToken.Content[1] == '/' && - routeToken.Content[routeToken.Content.Length - 1] == '\"') - { - var template = routeToken.Content.Substring(1, routeToken.Content.Length - 2); - @namespace.Children.Insert(index++, new RouteAttributeExtensionNode(template)); - } - else - { - pageDirective.Diagnostics.Add(BlazorDiagnosticFactory.CreatePageDirective_MustSpecifyRoute(pageDirective.Source)); - } - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/Properties/AssemblyInfo.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/Properties/AssemblyInfo.cs deleted file mode 100644 index aeed5583ac..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Runtime.CompilerServices; -using Microsoft.AspNetCore.Components.Razor; -using Microsoft.AspNetCore.Razor.Language; - -// These should match the configuration names specified by the Blazor MSBuild files. -[assembly: ProvideRazorExtensionInitializer("Blazor-0.1", typeof(BlazorExtensionInitializer))] -[assembly: ProvideRazorExtensionInitializer("BlazorDeclaration-0.1", typeof(BlazorExtensionInitializer))] - -[assembly: InternalsVisibleTo("Microsoft.AspNetCore.Components.Build.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] -[assembly: InternalsVisibleTo("Microsoft.AspNetCore.Components.Razor.Extensions.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] \ No newline at end of file diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/RazorCompilerException.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/RazorCompilerException.cs deleted file mode 100644 index dbf64be1a7..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/RazorCompilerException.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language; -using System; - -namespace Microsoft.AspNetCore.Components.Razor -{ - /// - /// Represents a fatal error during the transformation of a Blazor component from - /// Razor source code to C# source code. - /// - public class RazorCompilerException : Exception - { - /// - /// Constructs an instance of . - /// - /// - public RazorCompilerException(RazorDiagnostic diagnostic) - { - Diagnostic = diagnostic; - } - - /// - /// Gets the diagnostic value. - /// - public RazorDiagnostic Diagnostic { get; } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/RefExtensionNode.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/RefExtensionNode.cs deleted file mode 100644 index dd7c131e2f..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/RefExtensionNode.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using System; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class RefExtensionNode : ExtensionIntermediateNode - { - public RefExtensionNode(IntermediateToken identifierToken) - { - IdentifierToken = identifierToken ?? throw new ArgumentNullException(nameof(identifierToken)); - Source = IdentifierToken.Source; - } - - public RefExtensionNode(IntermediateToken identifierToken, string componentCaptureTypeName) - : this(identifierToken) - { - if (string.IsNullOrEmpty(componentCaptureTypeName)) - { - throw new ArgumentException("Cannot be null or empty", nameof(componentCaptureTypeName)); - } - - IsComponentCapture = true; - ComponentCaptureTypeName = componentCaptureTypeName; - } - - public override IntermediateNodeCollection Children => IntermediateNodeCollection.ReadOnly; - - public IntermediateToken IdentifierToken { get; } - - public bool IsComponentCapture { get; } - - public string ComponentCaptureTypeName { get; set; } - - public string TypeName => $"global::System.Action<{(IsComponentCapture ? ComponentCaptureTypeName : "global::" + ComponentsApi.ElementRef.FullTypeName)}>"; - - public override void Accept(IntermediateNodeVisitor visitor) - { - if (visitor == null) - { - throw new ArgumentNullException(nameof(visitor)); - } - - AcceptExtensionNode(this, visitor); - } - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - if (target == null) - { - throw new ArgumentNullException(nameof(target)); - } - - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var writer = (BlazorNodeWriter)context.NodeWriter; - writer.WriteReferenceCapture(context, this); - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/RefLoweringPass.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/RefLoweringPass.cs deleted file mode 100644 index 01ee14e059..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/RefLoweringPass.cs +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class RefLoweringPass : IntermediateNodePassBase, IRazorOptimizationPass - { - // Run after component lowering pass - public override int Order => 50; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var @namespace = documentNode.FindPrimaryNamespace(); - var @class = documentNode.FindPrimaryClass(); - if (@namespace == null || @class == null) - { - // Nothing to do, bail. We can't function without the standard structure. - return; - } - - var references = documentNode.FindDescendantReferences(); - for (var i = 0; i < references.Count; i++) - { - var reference = references[i]; - var node = (TagHelperPropertyIntermediateNode)reference.Node; - - if (node.TagHelper.IsRefTagHelper()) - { - reference.Replace(RewriteUsage(@class, reference.Parent, node)); - } - } - } - - private IntermediateNode RewriteUsage(ClassDeclarationIntermediateNode classNode, IntermediateNode parent, TagHelperPropertyIntermediateNode node) - { - // If we can't get a nonempty attribute name, do nothing because there will - // already be a diagnostic for empty values - var identifierToken = DetermineIdentifierToken(node); - if (identifierToken == null) - { - return node; - } - - // Determine whether this is an element capture or a component capture, and - // if applicable the type name that will appear in the resulting capture code - var componentTagHelper = (parent as ComponentExtensionNode)?.Component; - if (componentTagHelper != null) - { - return new RefExtensionNode(identifierToken, componentTagHelper.GetTypeName()); - } - else - { - return new RefExtensionNode(identifierToken); - } - } - - private IntermediateToken DetermineIdentifierToken(TagHelperPropertyIntermediateNode attributeNode) - { - IntermediateToken foundToken = null; - - if (attributeNode.Children.Count == 1) - { - if (attributeNode.Children[0] is IntermediateToken token) - { - foundToken = token; - } - else if (attributeNode.Children[0] is CSharpExpressionIntermediateNode csharpNode) - { - if (csharpNode.Children.Count == 1) - { - foundToken = csharpNode.Children[0] as IntermediateToken; - } - } - } - - return !string.IsNullOrWhiteSpace(foundToken?.Content) ? foundToken : null; - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/RefTagHelperDescriptorProvider.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/RefTagHelperDescriptorProvider.cs deleted file mode 100644 index ecb9dda000..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/RefTagHelperDescriptorProvider.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language; -using System; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class RefTagHelperDescriptorProvider : ITagHelperDescriptorProvider - { - // Run after the component tag helper provider, because later we may want component-type-specific variants of this - public int Order { get; set; } = 1000; - - public RazorEngine Engine { get; set; } - - public void Execute(TagHelperDescriptorProviderContext context) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - context.Results.Add(CreateRefTagHelper()); - } - - private TagHelperDescriptor CreateRefTagHelper() - { - var builder = TagHelperDescriptorBuilder.Create(BlazorMetadata.Ref.TagHelperKind, "Ref", ComponentsApi.AssemblyName); - builder.Documentation = Resources.RefTagHelper_Documentation; - - builder.Metadata.Add(BlazorMetadata.SpecialKindKey, BlazorMetadata.Ref.TagHelperKind); - builder.Metadata[TagHelperMetadata.Runtime.Name] = BlazorMetadata.Ref.RuntimeName; - - // WTE has a bug in 15.7p1 where a Tag Helper without a display-name that looks like - // a C# property will crash trying to create the tooltips. - builder.SetTypeName("Microsoft.AspNetCore.Components.Ref"); - - builder.TagMatchingRule(rule => - { - rule.TagName = "*"; - rule.Attribute(attribute => - { - attribute.Name = "ref"; - }); - }); - - builder.BindAttribute(attribute => - { - attribute.Documentation = Resources.RefTagHelper_Documentation; - attribute.Name = "ref"; - - // WTE has a bug 15.7p1 where a Tag Helper without a display-name that looks like - // a C# property will crash trying to create the tooltips. - attribute.SetPropertyName("Ref"); - attribute.TypeName = typeof(object).FullName; - }); - - return builder.Build(); - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/Resources.Designer.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/Resources.Designer.cs deleted file mode 100644 index a1254633d8..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/Resources.Designer.cs +++ /dev/null @@ -1,270 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Microsoft.AspNetCore.Components.Razor { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNetCore.Components.Razor.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to Binds the provided expression to the '{0}' property and a change event delegate to the '{1}' property of the component.. - /// - internal static string BindTagHelper_Component_Documentation { - get { - return ResourceManager.GetString("BindTagHelper_Component_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Binds the provided expression to the '{0}' attribute and a change event delegate to the '{1}' attribute.. - /// - internal static string BindTagHelper_Element_Documentation { - get { - return ResourceManager.GetString("BindTagHelper_Element_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies a format to convert the value specified by the '{0}' attribute. The format string can currently only be used with expressions of type <code>DateTime</code>.. - /// - internal static string BindTagHelper_Element_Format_Documentation { - get { - return ResourceManager.GetString("BindTagHelper_Element_Format_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Binds the provided expression to an attribute and a change event, based on the naming of the bind attribute. For example: <code>bind-value-onchange="..."</code> will assign the current value of the expression to the 'value' attribute, and assign a delegate that attempts to set the value to the 'onchange' attribute.. - /// - internal static string BindTagHelper_Fallback_Documentation { - get { - return ResourceManager.GetString("BindTagHelper_Fallback_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies a format to convert the value specified by the corresponding bind attribute. For example: <code>format-value="..."</code> will apply a format string to the value specified in <code>bind-value-...</code>. The format string can currently only be used with expressions of type <code>DateTime</code>.. - /// - internal static string BindTagHelper_Fallback_Format_Documentation { - get { - return ResourceManager.GetString("BindTagHelper_Fallback_Format_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies the parameter name for the '{0}' child content expression.. - /// - internal static string ChildContentParameterName_Documentation { - get { - return ResourceManager.GetString("ChildContentParameterName_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies the parameter name for all child content expressions.. - /// - internal static string ChildContentParameterName_TopLevelDocumentation { - get { - return ResourceManager.GetString("ChildContentParameterName_TopLevelDocumentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies the type of the type parameter {0} for the {1} component.. - /// - internal static string ComponentTypeParameter_Documentation { - get { - return ResourceManager.GetString("ComponentTypeParameter_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Sets the '{0}' attribute to the provided string or delegate value. A delegate value should be of type '{1}'.. - /// - internal static string EventHandlerTagHelper_Documentation { - get { - return ResourceManager.GetString("EventHandlerTagHelper_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Declares an interface implementation for the current document.. - /// - internal static string ImplementsDirective_Description { - get { - return ResourceManager.GetString("ImplementsDirective_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The interface type implemented by the current document.. - /// - internal static string ImplementsDirective_TypeToken_Description { - get { - return ResourceManager.GetString("ImplementsDirective_TypeToken_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to TypeName. - /// - internal static string ImplementsDirective_TypeToken_Name { - get { - return ResourceManager.GetString("ImplementsDirective_TypeToken_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Declares a layout type for the current document.. - /// - internal static string LayoutDirective_Description { - get { - return ResourceManager.GetString("LayoutDirective_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The interface type implemented by the current document.. - /// - internal static string LayoutDirective_TypeToken_Description { - get { - return ResourceManager.GetString("LayoutDirective_TypeToken_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to TypeName. - /// - internal static string LayoutDirective_TypeToken_Name { - get { - return ResourceManager.GetString("LayoutDirective_TypeToken_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Mark the page as a routable component.. - /// - internal static string PageDirective_Description { - get { - return ResourceManager.GetString("PageDirective_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An optional route template for the component.. - /// - internal static string PageDirective_RouteToken_Description { - get { - return ResourceManager.GetString("PageDirective_RouteToken_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to route template. - /// - internal static string PageDirective_RouteToken_Name { - get { - return ResourceManager.GetString("PageDirective_RouteToken_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The '@{0}' directive specified in {1} file will not be imported. The directive must appear at the top of each Razor cshtml file. - /// - internal static string PageDirectiveCannotBeImported { - get { - return ResourceManager.GetString("PageDirectiveCannotBeImported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Populates the specified field or property with a reference to the element or component.. - /// - internal static string RefTagHelper_Documentation { - get { - return ResourceManager.GetString("RefTagHelper_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Declares a generic type parameter for the generated component class.. - /// - internal static string TypeParamDirective_Description { - get { - return ResourceManager.GetString("TypeParamDirective_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The name of the type parameter.. - /// - internal static string TypeParamDirective_Token_Description { - get { - return ResourceManager.GetString("TypeParamDirective_Token_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to type parameter. - /// - internal static string TypeParamDirective_Token_Name { - get { - return ResourceManager.GetString("TypeParamDirective_Token_Name", resourceCulture); - } - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/Resources.resx b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/Resources.resx deleted file mode 100644 index 3fe9868ecd..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/Resources.resx +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Binds the provided expression to the '{0}' property and a change event delegate to the '{1}' property of the component. - - - Binds the provided expression to the '{0}' attribute and a change event delegate to the '{1}' attribute. - - - Specifies a format to convert the value specified by the '{0}' attribute. The format string can currently only be used with expressions of type <code>DateTime</code>. - - - Binds the provided expression to an attribute and a change event, based on the naming of the bind attribute. For example: <code>bind-value-onchange="..."</code> will assign the current value of the expression to the 'value' attribute, and assign a delegate that attempts to set the value to the 'onchange' attribute. - - - Specifies a format to convert the value specified by the corresponding bind attribute. For example: <code>format-value="..."</code> will apply a format string to the value specified in <code>bind-value-...</code>. The format string can currently only be used with expressions of type <code>DateTime</code>. - - - Specifies the parameter name for the '{0}' child content expression. - - - Specifies the parameter name for all child content expressions. - - - Specifies the type of the type parameter {0} for the {1} component. - - - Sets the '{0}' attribute to the provided string or delegate value. A delegate value should be of type '{1}'. - - - Declares an interface implementation for the current document. - - - The interface type implemented by the current document. - - - TypeName - - - Declares a layout type for the current document. - - - The interface type implemented by the current document. - - - TypeName - - - The '@{0}' directive specified in {1} file will not be imported. The directive must appear at the top of each Razor cshtml file - - - Mark the page as a routable component. - - - An optional route template for the component. - - - route template - - - Populates the specified field or property with a reference to the element or component. - - - Declares a generic type parameter for the generated component class. - - - The name of the type parameter. - - - type parameter - - \ No newline at end of file diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/RouteAttributeExtensionNode.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/RouteAttributeExtensionNode.cs deleted file mode 100644 index 6c37269b30..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/RouteAttributeExtensionNode.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Components.Shared; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class RouteAttributeExtensionNode : ExtensionIntermediateNode - { - public RouteAttributeExtensionNode(string template) - { - Template = template; - } - - public string Template { get; } - - public override IntermediateNodeCollection Children => IntermediateNodeCollection.ReadOnly; - - public override void Accept(IntermediateNodeVisitor visitor) => AcceptExtensionNode(this, visitor); - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - context.CodeWriter.Write("["); - context.CodeWriter.Write(ComponentsApi.RouteAttribute.FullTypeName); - context.CodeWriter.Write("(\""); - context.CodeWriter.Write(Template); - context.CodeWriter.Write("\")"); - context.CodeWriter.Write("]"); - context.CodeWriter.WriteLine(); - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ScopeStack.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ScopeStack.cs deleted file mode 100644 index 065af81c15..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ScopeStack.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; - -namespace Microsoft.AspNetCore.Components.Razor -{ - /// - /// Keeps track of the nesting of elements/containers while writing out the C# source code - /// for a component. This allows us to detect mismatched start/end tags, as well as inject - /// additional C# source to capture component descendants in a lambda. - /// - internal class ScopeStack - { - private readonly Stack _stack = new Stack(); - private int _builderVarNumber = 1; - - public string BuilderVarName { get; private set; } = "builder"; - - public void OpenComponentScope(CodeRenderingContext context, string name, string parameterName) - { - var scope = new ScopeEntry(name, ScopeKind.Component); - _stack.Push(scope); - - OffsetBuilderVarNumber(1); - - // Writes code that looks like: - // - // ((__builder) => { ... }) - // OR - // ((context) => (__builder) => { ... }) - - if (parameterName != null) - { - context.CodeWriter.Write($"({parameterName}) => "); - } - - scope.LambdaScope = context.CodeWriter.BuildLambda(BuilderVarName); - } - - public void OpenTemplateScope(CodeRenderingContext context) - { - var currentScope = new ScopeEntry("__template", ScopeKind.Template); - _stack.Push(currentScope); - - // Templates always get a lambda scope, because they are defined as a lambda. - OffsetBuilderVarNumber(1); - currentScope.LambdaScope = context.CodeWriter.BuildLambda(BuilderVarName); - } - - public void CloseScope(CodeRenderingContext context) - { - var currentScope = _stack.Pop(); - currentScope.LambdaScope.Dispose(); - OffsetBuilderVarNumber(-1); - } - - private void OffsetBuilderVarNumber(int delta) - { - _builderVarNumber += delta; - BuilderVarName = _builderVarNumber == 1 - ? "builder" - : $"builder{_builderVarNumber}"; - } - - private class ScopeEntry - { - public readonly string Name; - public ScopeKind Kind; - public int ChildCount; - public IDisposable LambdaScope; - - public ScopeEntry(string name, ScopeKind kind) - { - Name = name; - Kind = kind; - ChildCount = 0; - } - - public override string ToString() => $"<{Name}> ({Kind})"; - } - - private enum ScopeKind - { - Component, - Template, - } - } -} diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ScriptTagPass.cs b/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ScriptTagPass.cs deleted file mode 100644 index c983ce83ec..0000000000 --- a/src/Components/src/Microsoft.AspNetCore.Components.Razor.Extensions/ScriptTagPass.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Text; -using AngleSharp; -using AngleSharp.Html; -using AngleSharp.Parser.Html; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal class ScriptTagPass : IntermediateNodePassBase, IRazorDocumentClassifierPass - { - // Run as soon as possible after the Component rewrite pass - public override int Order => ComponentDocumentClassifierPass.DefaultFeatureOrder + 2; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (documentNode.DocumentKind != ComponentDocumentClassifierPass.ComponentDocumentKind) - { - return; - } - - var visitor = new Visitor(); - visitor.Visit(documentNode); - } - - private class Visitor : IntermediateNodeWalker, IExtensionIntermediateNodeVisitor - { - public void VisitExtension(HtmlElementIntermediateNode node) - { - // Disallow - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] // https://github.com/aspnet/Blazor/issues/597 - public void Regression_597() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class Counter : ComponentBase - { - public int Count { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@addTagHelper *, TestAssembly - -@functions { - string y = null; -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Regression_609() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class User : ComponentBase - { - public string Name { get; set; } - public Action NameChanged { get; set; } - public bool IsActive { get; set; } - public Action IsActiveChanged { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@addTagHelper *, TestAssembly - - -@functions { - public string UserName { get; set; } - public bool UserIsActive { get; set; } -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] // https://github.com/aspnet/Blazor/issues/772 - public void Regression_772() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class SurveyPrompt : ComponentBase - { - [Parameter] private string Title { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@addTagHelper *, TestAssembly -@page ""/"" - -

Hello, world!

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

Hello, world!

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

-@functions { - public string ParentBgColor { get; set; } = ""#FFFFFF""; - - public void OnComponentHover(UIMouseEventArgs e) - { - } -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventHandlerTagHelper_EscapeQuotes() - { - // Act - var generated = CompileToCSharp(@" - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - #endregion - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/ComponentDiscoveryRazorIntegrationTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/ComponentDiscoveryRazorIntegrationTest.cs deleted file mode 100644 index ad3bdd8d12..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/ComponentDiscoveryRazorIntegrationTest.cs +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.IO; -using System.Text; -using Microsoft.AspNetCore.Components.Test.Helpers; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.CodeAnalysis.CSharp; -using Xunit; - -namespace Microsoft.AspNetCore.Components.Build.Test -{ - public class ComponentDiscoveryRazorIntegrationTest : RazorIntegrationTestBase - { - internal override bool UseTwoPhaseCompilation => true; - - [Fact] - public void ComponentDiscovery_CanFindComponent_DefinedinCSharp() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Act - var result = CompileToCSharp("@addTagHelper *, TestAssembly"); - - // Assert - var bindings = result.CodeDocument.GetTagHelperContext(); - Assert.Single(bindings.TagHelpers, t => t.Name == "Test.MyComponent"); - } - - [Fact] - public void ComponentDiscovery_CanFindComponent_WithNamespace_DefinedinCSharp() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test.AnotherNamespace -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Act - var result = CompileToCSharp("@addTagHelper *, TestAssembly"); - - // Assert - var bindings = result.CodeDocument.GetTagHelperContext(); - Assert.Single(bindings.TagHelpers, t => t.Name == "Test.AnotherNamespace.MyComponent"); - } - - [Fact] - public void ComponentDiscovery_CanFindComponent_DefinedinCshtml() - { - // Arrange - - // Act - var result = CompileToCSharp("UniqueName.cshtml", "@addTagHelper *, TestAssembly"); - - // Assert - var bindings = result.CodeDocument.GetTagHelperContext(); - Assert.Single(bindings.TagHelpers, t => t.Name == "Test.UniqueName"); - } - - [Fact] - public void ComponentDiscovery_CanFindComponent_BuiltIn() - { - // Arrange - - // Act - var result = CompileToCSharp("@addTagHelper *, Microsoft.AspNetCore.Components"); - - // Assert - var bindings = result.CodeDocument.GetTagHelperContext(); - Assert.Single(bindings.TagHelpers, t => t.Name == "Microsoft.AspNetCore.Components.Routing.NavLink"); - } - - [Fact] - public void ComponentDiscovery_CanFindComponent_WithTypeParameter() - { - // Arrange - - // Act - var result = CompileToCSharp("UniqueName.cshtml", @" -@addTagHelper *, TestAssembly -@typeparam TItem -@functions { - [Parameter] TItem Item { get; set; } -}"); - - // Assert - var bindings = result.CodeDocument.GetTagHelperContext(); - Assert.Single(bindings.TagHelpers, t => t.Name == "Test.UniqueName"); - } - - [Fact] - public void ComponentDiscovery_CanFindComponent_WithMultipleTypeParameters() - { - // Arrange - - // Act - var result = CompileToCSharp("UniqueName.cshtml", @" -@addTagHelper *, TestAssembly -@typeparam TItem1 -@typeparam TItem2 -@typeparam TItem3 -@functions { - [Parameter] TItem1 Item { get; set; } -}"); - - // Assert - var bindings = result.CodeDocument.GetTagHelperContext(); - Assert.Single(bindings.TagHelpers, t => t.Name == "Test.UniqueName"); - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/ComponentRenderingRazorIntegrationTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/ComponentRenderingRazorIntegrationTest.cs index 42c2848e24..3a832e0ec9 100644 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/ComponentRenderingRazorIntegrationTest.cs +++ b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/ComponentRenderingRazorIntegrationTest.cs @@ -3,15 +3,20 @@ using System; using System.Linq; -using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.RenderTree; using Microsoft.AspNetCore.Components.Test.Helpers; using Xunit; +using Xunit.Abstractions; namespace Microsoft.AspNetCore.Components.Build.Test { public class ComponentRenderingRazorIntegrationTest : RazorIntegrationTestBase { + public ComponentRenderingRazorIntegrationTest(ITestOutputHelper output) + : base(output) + { + } + internal override bool UseTwoPhaseCompilation => true; [Fact] @@ -469,12 +474,11 @@ namespace Test frame => AssertFrame.Attribute(frame, "style", "background: #FFFFFF;", 2)); } - // Text nodes decode HTML entities - [Fact] + [Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/6185")] public void Render_Component_HtmlEncoded() { // Arrange - var component = CompileToComponent(@"<span>Hi</span>"); + var component = CompileToComponent(@"<span>Hi</span>"); // Act var frames = GetRenderTree(component); @@ -485,8 +489,23 @@ namespace Test frame => AssertFrame.Text(frame, "Hi")); } - // Integration test for HTML block rewriting [Fact] + public void Render_Component_HtmlBlockEncoded() + { + // Arrange + var component = CompileToComponent(@"

<span>Hi</span>
"); + + // Act + var frames = GetRenderTree(component); + + // Assert + Assert.Collection( + frames, + frame => AssertFrame.Markup(frame, "
<span>Hi</span>
")); + } + + // Integration test for HTML block rewriting + [Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/6183")] public void Render_HtmlBlock_Integration() { // Arrange diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/DeclarationRazorIntegrationTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/DeclarationRazorIntegrationTest.cs deleted file mode 100644 index 59b776ca11..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/DeclarationRazorIntegrationTest.cs +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Reflection; -using System.Text; -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Razor; -using Microsoft.AspNetCore.Razor.Language; -using Xunit; - -namespace Microsoft.AspNetCore.Components.Build.Test -{ - public class DeclarationRazorIntegrationTest : RazorIntegrationTestBase - { - internal override RazorConfiguration Configuration => BlazorExtensionInitializer.DeclarationConfiguration; - - [Fact] - public void DeclarationConfiguration_IncludesFunctions() - { - // Arrange & Act - var component = CompileToComponent(@" -@functions { - public string Value { get; set; } -}"); - - // Assert - var property = component.GetType().GetProperty("Value"); - Assert.NotNull(property); - Assert.Same(typeof(string), property.PropertyType); - } - - [Fact] - public void DeclarationConfiguration_IncludesInject() - { - // Arrange & Act - var component = CompileToComponent(@" -@inject string Value -"); - - // Assert - var property = component.GetType().GetProperty("Value", BindingFlags.NonPublic | BindingFlags.Instance); - Assert.NotNull(property); - Assert.Same(typeof(string), property.PropertyType); - } - - [Fact] - public void DeclarationConfiguration_IncludesUsings() - { - // Arrange & Act - var component = CompileToComponent(@" -@using System.Text -@inject StringBuilder Value -"); - - // Assert - var property = component.GetType().GetProperty("Value", BindingFlags.NonPublic | BindingFlags.Instance); - Assert.NotNull(property); - Assert.Same(typeof(StringBuilder), property.PropertyType); - } - - [Fact] - public void DeclarationConfiguration_IncludesInherits() - { - // Arrange & Act - var component = CompileToComponent($@" -@inherits {FullTypeName()} -"); - - // Assert - Assert.Same(typeof(BaseClass), component.GetType().BaseType); - } - - [Fact] - public void DeclarationConfiguration_IncludesImplements() - { - // Arrange & Act - var component = CompileToComponent($@" -@implements {FullTypeName()} -"); - - // Assert - var type = component.GetType(); - Assert.Contains(typeof(IDoCoolThings), component.GetType().GetInterfaces()); - } - - [Fact] - public void DeclarationConfiguration_RenderMethodIsEmpty() - { - // Arrange & Act - var component = CompileToComponent(@" - -@{ var message = ""hi""; } -@message - -"); - - var frames = GetRenderTree(component); - - // Assert - Assert.Empty(frames); - } - - [Fact] // Regression test for https://github.com/aspnet/Blazor/issues/453 - public void DeclarationConfiguration_FunctionsBlockHasLineMappings_MappingsApplyToError() - { - // Arrange & Act 1 - var generated = CompileToCSharp(@" -@functions { - public StringBuilder Builder { get; set; } -} -"); - - // Assert 1 - AssertSourceEquals(@" -// -#pragma warning disable 1591 -#pragma warning disable 0414 -#pragma warning disable 0649 -#pragma warning disable 0169 - -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - } - #pragma warning restore 1998 -#line 1 ""x:\dir\subdir\Test\TestComponent.cshtml"" - - public StringBuilder Builder { get; set; } - -#line default -#line hidden - } -} -#pragma warning restore 1591 -", generated); - - // Act 2 - var assembly = CompileToAssembly(generated, throwOnFailure: false); - - // Assert 2 - var diagnostic = Assert.Single(assembly.Diagnostics); - - // This error should map to line 2 of the generated file, the test - // says 1 because Roslyn's line/column data structures are 0-based. - var position = diagnostic.Location.GetMappedLineSpan(); - Assert.EndsWith(".cshtml", position.Path); - Assert.Equal(1, position.StartLinePosition.Line); - } - - public class BaseClass : ComponentBase - { - } - - public interface IDoCoolThings - { - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/DesignTimeCodeGenerationTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/DesignTimeCodeGenerationTest.cs deleted file mode 100644 index 233df797ea..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/DesignTimeCodeGenerationTest.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Components.Build.Test -{ - public class DesignTimeCodeGenerationTest : CodeGenerationTestBase - { - internal override bool DesignTime => true; - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/DiagnosticRazorIntegrationTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/DiagnosticRazorIntegrationTest.cs deleted file mode 100644 index 8ffe06567f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/DiagnosticRazorIntegrationTest.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Components.Build.Test -{ - public class DiagnosticRazorIntegrationTest : RazorIntegrationTestBase - { - [Fact] - public void RejectsEndTagWithNoStartTag() - { - // Arrange/Act - var result = CompileToCSharp( - "Line1\nLine2\nLine3"); - - // Assert - Assert.Collection(result.Diagnostics, - item => - { - Assert.Equal("BL9981", item.Id); - Assert.Equal("Unexpected closing tag 'mytag' with no matching start tag.", item.GetMessage()); - }); - } - - // This used to be a sugar syntax for lambdas, but we don't support that anymore - [Fact] - public void OldCodeBlockAttributeSyntax_ReportsError() - { - // Arrange/Act - var generated = CompileToCSharp(@" - -@functions { - public bool DidInvokeCode { get; set; } = false; -}"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("BL9979", diagnostic.Id); - } - - [Fact] - public void RejectsScriptTag() - { - // Arrange/Act - var result = CompileToCSharp(@"Hello -
- -
-Goodbye"); - - // Assert - Assert.Collection(result.Diagnostics, - item => - { - Assert.Equal("BL9992", item.Id); - Assert.Equal("Script tags should not be placed inside components because they cannot be updated dynamically. To fix this, move the script tag to the 'index.html' file or another static location. For more information see https://go.microsoft.com/fwlink/?linkid=872131", item.GetMessage()); - Assert.Equal(2, item.Span.LineIndex); - Assert.Equal(4, item.Span.CharacterIndex); - }); - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/DirectiveRazorIntegrationTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/DirectiveRazorIntegrationTest.cs index 229956ccc3..abeec06791 100644 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/DirectiveRazorIntegrationTest.cs +++ b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/DirectiveRazorIntegrationTest.cs @@ -4,16 +4,21 @@ using System; using System.Linq; using System.Reflection; -using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Layouts; using Microsoft.AspNetCore.Components.Test.Helpers; using Xunit; +using Xunit.Abstractions; namespace Microsoft.AspNetCore.Components.Build.Test { // Integration tests for Blazor's directives public class DirectiveRazorIntegrationTest : RazorIntegrationTestBase { + public DirectiveRazorIntegrationTest(ITestOutputHelper output) + : base(output) + { + } + [Fact] public void ComponentsDoNotHaveLayoutAttributeByDefault() { diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/FilePathRazorIntegrationTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/FilePathRazorIntegrationTest.cs deleted file mode 100644 index 6358a38cbb..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/FilePathRazorIntegrationTest.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.IO; -using Xunit; - -namespace Microsoft.AspNetCore.Components.Build.Test -{ - // Integration tests focused on file path handling for class/namespace names - public class FilePathRazorIntegrationTest : RazorIntegrationTestBase - { - [Fact] - public void FileNameIsInvalidClassName_SanitizesInvalidClassName() - { - // Arrange - - // Act - var result = CompileToAssembly("Filename with spaces.cshtml", ""); - - // Assert - Assert.Empty(result.Diagnostics); - - var type = Assert.Single(result.Assembly.GetTypes()); - Assert.Equal(DefaultBaseNamespace, type.Namespace); - Assert.Equal("Filename_with_spaces", type.Name); - } - - [Theory] - [InlineData("ItemAtRoot.cs", "Test", "ItemAtRoot")] - [InlineData("Dir1\\MyFile.cs", "Test.Dir1", "MyFile")] - [InlineData("Dir1\\Dir2\\MyFile.cs", "Test.Dir1.Dir2", "MyFile")] - public void CreatesClassWithCorrectNameAndNamespace(string relativePath, string expectedNamespace, string expectedClassName) - { - // Arrange - relativePath = relativePath.Replace('\\', Path.DirectorySeparatorChar); - - // Act - var result = CompileToAssembly(relativePath, ""); - - // Assert - Assert.Empty(result.Diagnostics); - - var type = Assert.Single(result.Assembly.GetTypes()); - Assert.Equal(expectedNamespace, type.Namespace); - Assert.Equal(expectedClassName, type.Name); - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/GenericComponentRazorIntegrationTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/GenericComponentRazorIntegrationTest.cs index 3e37430259..395d676867 100644 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/GenericComponentRazorIntegrationTest.cs +++ b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/GenericComponentRazorIntegrationTest.cs @@ -1,15 +1,14 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.AspNetCore.Components.Razor; -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.RenderTree; -using Microsoft.AspNetCore.Components.Test.Helpers; -using Microsoft.CodeAnalysis.CSharp; using System; using System.Collections.Generic; using System.Linq; +using Microsoft.AspNetCore.Components.RenderTree; +using Microsoft.AspNetCore.Components.Test.Helpers; +using Microsoft.CodeAnalysis.CSharp; using Xunit; +using Xunit.Abstractions; namespace Microsoft.AspNetCore.Components.Build.Test { @@ -81,6 +80,11 @@ namespace Test } "); + public GenericComponentRazorIntegrationTest(ITestOutputHelper output) + : base(output) + { + } + internal override bool UseTwoPhaseCompilation => true; [Fact] @@ -313,45 +317,5 @@ namespace Test frame => AssertFrame.Text(frame, "FOO", 1), frame => AssertFrame.Text(frame, "39", 2)); } - - [Fact] - public void GenericComponent_WithoutAnyTypeParameters_TriggersDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(GenericContextComponent); - - // Act - var generated = CompileToCSharp(@" -@addTagHelper *, TestAssembly -"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(BlazorDiagnosticFactory.GenericComponentTypeInferenceUnderspecified.Id, diagnostic.Id); - Assert.Equal( - "The type of component 'GenericContext' cannot be inferred based on the values provided. Consider " + - "specifying the type arguments directly using the following attributes: 'TItem'.", - diagnostic.GetMessage()); - } - - [Fact] - public void GenericComponent_WithMissingTypeParameters_TriggersDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(MultipleGenericParameterComponent); - - // Act - var generated = CompileToCSharp(@" -@addTagHelper *, TestAssembly -"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(BlazorDiagnosticFactory.GenericComponentMissingTypeArgument.Id, diagnostic.Id); - Assert.Equal( - "The component 'MultipleGenericParameter' is missing required type arguments. " + - "Specify the missing types using the attributes: 'TItem2', 'TItem3'.", - diagnostic.GetMessage()); - } } } diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Microsoft.AspNetCore.Components.Build.Test.csproj b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Microsoft.AspNetCore.Components.Build.Test.csproj index 6999589921..4fb6c952e0 100644 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Microsoft.AspNetCore.Components.Build.Test.csproj +++ b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Microsoft.AspNetCore.Components.Build.Test.csproj @@ -23,18 +23,19 @@ - + + + - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/InitializeTestFileAttribute.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/InitializeTestFileAttribute.cs deleted file mode 100644 index f166b3fcac..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/InitializeTestFileAttribute.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Reflection; -using Microsoft.AspNetCore.Components.Build.Test; -using Xunit.Sdk; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public class InitializeTestFileAttribute : BeforeAfterTestAttribute - { - public override void Before(MethodInfo methodUnderTest) - { - if (typeof(RazorBaselineIntegrationTestBase).GetTypeInfo().IsAssignableFrom(methodUnderTest.ReflectedType.GetTypeInfo())) - { - var typeName = methodUnderTest.ReflectedType.Name; - RazorBaselineIntegrationTestBase.DirectoryPath = $"TestFiles/{typeName}/{methodUnderTest.Name}"; - } - } - - public override void After(MethodInfo methodUnderTest) - { - if (typeof(RazorBaselineIntegrationTestBase).GetTypeInfo().IsAssignableFrom(methodUnderTest.ReflectedType.GetTypeInfo())) - { - RazorBaselineIntegrationTestBase.DirectoryPath = null; - } - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/IntermediateNodeSerializer.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/IntermediateNodeSerializer.cs deleted file mode 100644 index 00b1449d42..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/IntermediateNodeSerializer.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.IO; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public static class IntermediateNodeSerializer - { - public static string Serialize(IntermediateNode node) - { - using (var writer = new StringWriter()) - { - var walker = new Walker(writer); - walker.Visit(node); - - return writer.ToString(); - } - } - - private class Walker : IntermediateNodeWalker - { - private readonly IntermediateNodeWriter _visitor; - private readonly TextWriter _writer; - - public Walker(TextWriter writer) - { - _visitor = new IntermediateNodeWriter(writer); - _writer = writer; - } - - public TextWriter Writer { get; } - - public override void VisitDefault(IntermediateNode node) - { - _visitor.Visit(node); - _writer.WriteLine(); - - _visitor.Depth++; - base.VisitDefault(node); - _visitor.Depth--; - } - } - } -} \ No newline at end of file diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/IntermediateNodeVerifier.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/IntermediateNodeVerifier.cs deleted file mode 100644 index f6b45c7b3a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/IntermediateNodeVerifier.cs +++ /dev/null @@ -1,275 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; -using Xunit.Sdk; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public static class IntermediateNodeVerifier - { - public static void Verify(IntermediateNode node, string[] baseline) - { - var walker = new Walker(baseline); - walker.Visit(node); - walker.AssertReachedEndOfBaseline(); - } - - private class Walker : IntermediateNodeWalker - { - private readonly string[] _baseline; - private readonly IntermediateNodeWriter _visitor; - private readonly StringWriter _writer; - - private int _index; - - public Walker(string[] baseline) - { - _writer = new StringWriter(); - - _visitor = new IntermediateNodeWriter(_writer); - _baseline = baseline; - - } - - public TextWriter Writer { get; } - - public override void VisitDefault(IntermediateNode node) - { - var expected = _index < _baseline.Length ? _baseline[_index++] : null; - - // Write the node as text for comparison - _writer.GetStringBuilder().Clear(); - _visitor.Visit(node); - var actual = _writer.GetStringBuilder().ToString(); - - AssertNodeEquals(node, Ancestors, expected, actual); - - _visitor.Depth++; - base.VisitDefault(node); - _visitor.Depth--; - } - - public void AssertReachedEndOfBaseline() - { - // Since we're walking the nodes of our generated code there's the chance that our baseline is longer. - Assert.True(_baseline.Length == _index, "Not all lines of the baseline were visited!"); - } - - private void AssertNodeEquals(IntermediateNode node, IEnumerable ancestors, string expected, string actual) - { - if (string.Equals(expected, actual)) - { - // YAY!!! everything is great. - return; - } - - if (expected == null) - { - var message = "The node is missing from baseline."; - throw new IntermediateNodeBaselineException(node, Ancestors.ToArray(), expected, actual, message); - } - - int charsVerified = 0; - AssertNestingEqual(node, ancestors, expected, actual, ref charsVerified); - AssertNameEqual(node, ancestors, expected, actual, ref charsVerified); - AssertDelimiter(node, expected, actual, true, ref charsVerified); - AssertLocationEqual(node, ancestors, expected, actual, ref charsVerified); - AssertDelimiter(node, expected, actual, false, ref charsVerified); - AssertContentEqual(node, ancestors, expected, actual, ref charsVerified); - - throw new InvalidOperationException("We can't figure out HOW these two things are different. This is a bug."); - } - - private void AssertNestingEqual(IntermediateNode node, IEnumerable ancestors, string expected, string actual, ref int charsVerified) - { - var i = 0; - for (; i < expected.Length; i++) - { - if (expected[i] != ' ') - { - break; - } - } - - var failed = false; - var j = 0; - for (; j < i; j++) - { - if (actual.Length <= j || actual[j] != ' ') - { - failed = true; - break; - } - } - - if (actual.Length <= j + 1 || actual[j] == ' ') - { - failed = true; - } - - if (failed) - { - var message = "The node is at the wrong level of nesting. This usually means a child is missing."; - throw new IntermediateNodeBaselineException(node, ancestors.ToArray(), expected, actual, message); - } - - charsVerified = j; - } - - private void AssertNameEqual(IntermediateNode node, IEnumerable ancestors, string expected, string actual, ref int charsVerified) - { - var expectedName = GetName(expected, charsVerified); - var actualName = GetName(actual, charsVerified); - - if (!string.Equals(expectedName, actualName)) - { - var message = $"Node names are not equal."; - throw new IntermediateNodeBaselineException(node, ancestors.ToArray(), expected, actual, message); - } - - charsVerified += expectedName.Length; - } - - // Either both strings need to have a delimiter next or neither should. - private void AssertDelimiter(IntermediateNode node, string expected, string actual, bool required, ref int charsVerified) - { - if (charsVerified == expected.Length && required) - { - throw new InvalidOperationException($"Baseline text is not well-formed: '{expected}'."); - } - - if (charsVerified == actual.Length && required) - { - throw new InvalidOperationException($"Baseline text is not well-formed: '{actual}'."); - } - - if (charsVerified == expected.Length && charsVerified == actual.Length) - { - return; - } - - var expectedDelimiter = expected.IndexOf(" - ", charsVerified); - if (expectedDelimiter != charsVerified && expectedDelimiter != -1) - { - throw new InvalidOperationException($"Baseline text is not well-formed: '{actual}'."); - } - - var actualDelimiter = actual.IndexOf(" - ", charsVerified); - if (actualDelimiter != charsVerified && actualDelimiter != -1) - { - throw new InvalidOperationException($"Baseline text is not well-formed: '{actual}'."); - } - - Assert.Equal(expectedDelimiter, actualDelimiter); - - charsVerified += 3; - } - - private void AssertLocationEqual(IntermediateNode node, IEnumerable ancestors, string expected, string actual, ref int charsVerified) - { - var expectedLocation = GetLocation(expected, charsVerified); - var actualLocation = GetLocation(actual, charsVerified); - - if (!string.Equals(expectedLocation, actualLocation)) - { - var message = $"Locations are not equal."; - throw new IntermediateNodeBaselineException(node, ancestors.ToArray(), expected, actual, message); - } - - charsVerified += expectedLocation.Length; - } - - private void AssertContentEqual(IntermediateNode node, IEnumerable ancestors, string expected, string actual, ref int charsVerified) - { - var expectedContent = GetContent(expected, charsVerified); - var actualContent = GetContent(actual, charsVerified); - - if (!string.Equals(expectedContent, actualContent)) - { - var message = $"Contents are not equal."; - throw new IntermediateNodeBaselineException(node, ancestors.ToArray(), expected, actual, message); - } - - charsVerified += expectedContent.Length; - } - - private string GetName(string text, int start) - { - var delimiter = text.IndexOf(" - ", start); - if (delimiter == -1) - { - throw new InvalidOperationException($"Baseline text is not well-formed: '{text}'."); - } - - return text.Substring(start, delimiter - start); - } - - private string GetLocation(string text, int start) - { - var delimiter = text.IndexOf(" - ", start); - return delimiter == -1 ? text.Substring(start) : text.Substring(start, delimiter - start); - } - - private string GetContent(string text, int start) - { - return start == text.Length ? string.Empty : text.Substring(start); - } - - private class IntermediateNodeBaselineException : XunitException - { - public IntermediateNodeBaselineException(IntermediateNode node, IntermediateNode[] ancestors, string expected, string actual, string userMessage) - : base(Format(node, ancestors, expected, actual, userMessage)) - { - Node = node; - Expected = expected; - Actual = actual; - } - - public IntermediateNode Node { get; } - - public string Actual { get; } - - public string Expected { get; } - - private static string Format(IntermediateNode node, IntermediateNode[] ancestors, string expected, string actual, string userMessage) - { - var builder = new StringBuilder(); - builder.AppendLine(userMessage); - builder.AppendLine(); - - if (expected != null) - { - builder.Append("Expected: "); - builder.AppendLine(expected); - } - - if (actual != null) - { - builder.Append("Actual: "); - builder.AppendLine(actual); - } - - if (ancestors != null) - { - builder.AppendLine(); - builder.AppendLine("Path:"); - - foreach (var ancestor in ancestors) - { - builder.AppendLine(ancestor.ToString()); - } - } - - return builder.ToString(); - } - } - } - } -} \ No newline at end of file diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/IntermediateNodeWriter.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/IntermediateNodeWriter.cs deleted file mode 100644 index 4c0fa6a33d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/IntermediateNodeWriter.cs +++ /dev/null @@ -1,316 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.IO; -using System.Security.Cryptography; -using System.Text; -using Microsoft.AspNetCore.Components.Razor; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - // Serializes single IR nodes (shallow). - public class IntermediateNodeWriter : - IntermediateNodeVisitor, - IExtensionIntermediateNodeVisitor, - IExtensionIntermediateNodeVisitor, - IExtensionIntermediateNodeVisitor, - IExtensionIntermediateNodeVisitor, - IExtensionIntermediateNodeVisitor, - IExtensionIntermediateNodeVisitor, - IExtensionIntermediateNodeVisitor, - IExtensionIntermediateNodeVisitor, - IExtensionIntermediateNodeVisitor - { - private readonly TextWriter _writer; - - public IntermediateNodeWriter(TextWriter writer) - { - _writer = writer; - } - - public int Depth { get; set; } - - public override void VisitDefault(IntermediateNode node) - { - WriteBasicNode(node); - } - - public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) - { - WriteContentNode(node, string.Join(" ", node.Modifiers), node.ClassName, node.BaseType, string.Join(", ", node.Interfaces ?? new List())); - } - - public override void VisitCSharpExpressionAttributeValue(CSharpExpressionAttributeValueIntermediateNode node) - { - WriteContentNode(node, node.Prefix); - } - - public override void VisitCSharpCodeAttributeValue(CSharpCodeAttributeValueIntermediateNode node) - { - WriteContentNode(node, node.Prefix); - } - - public override void VisitToken(IntermediateToken node) - { - WriteContentNode(node, node.Kind.ToString(), node.Content); - } - - public override void VisitMalformedDirective(MalformedDirectiveIntermediateNode node) - { - WriteContentNode(node, node.DirectiveName); - } - - public override void VisitDirective(DirectiveIntermediateNode node) - { - WriteContentNode(node, node.DirectiveName); - } - - public override void VisitDirectiveToken(DirectiveTokenIntermediateNode node) - { - WriteContentNode(node, node.Content); - } - - public override void VisitFieldDeclaration(FieldDeclarationIntermediateNode node) - { - WriteContentNode(node, string.Join(" ", node.Modifiers), node.FieldType, node.FieldName); - } - - public override void VisitHtmlAttribute(HtmlAttributeIntermediateNode node) - { - WriteContentNode(node, node.Prefix, node.Suffix); - } - - public override void VisitHtmlAttributeValue(HtmlAttributeValueIntermediateNode node) - { - WriteContentNode(node, node.Prefix); - } - - public override void VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node) - { - WriteContentNode(node, node.Content); - } - - public override void VisitMethodDeclaration(MethodDeclarationIntermediateNode node) - { - WriteContentNode(node, string.Join(" ", node.Modifiers), node.ReturnType, node.MethodName); - } - - public override void VisitUsingDirective(UsingDirectiveIntermediateNode node) - { - WriteContentNode(node, node.Content); - } - - public override void VisitTagHelper(TagHelperIntermediateNode node) - { - WriteContentNode(node, node.TagName, string.Format("{0}.{1}", nameof(TagMode), node.TagMode)); - } - - public override void VisitTagHelperProperty(TagHelperPropertyIntermediateNode node) - { - WriteContentNode(node, node.AttributeName, node.BoundAttribute.DisplayName, string.Format("HtmlAttributeValueStyle.{0}", node.AttributeStructure)); - } - - public override void VisitTagHelperHtmlAttribute(TagHelperHtmlAttributeIntermediateNode node) - { - WriteContentNode(node, node.AttributeName, string.Format("HtmlAttributeValueStyle.{0}", node.AttributeStructure)); - } - - public override void VisitExtension(ExtensionIntermediateNode node) - { - // This will be called for nodes that are internal implementation details of Razor, - // like the design time directive nodes. - if (node.GetType().Assembly == typeof(RazorCodeDocument).Assembly) - { - WriteBasicNode(node); - } - else - { - throw new InvalidOperationException("Unknown node type: " + node.GetType()); - } - } - - protected void WriteBasicNode(IntermediateNode node) - { - WriteIndent(); - WriteName(node); - WriteSeparator(); - WriteSourceRange(node); - } - - protected void WriteContentNode(IntermediateNode node, params string[] content) - { - WriteIndent(); - WriteName(node); - WriteSeparator(); - WriteSourceRange(node); - - for (var i = 0; i < content.Length; i++) - { - WriteSeparator(); - WriteContent(content[i]); - } - } - - protected void WriteIndent() - { - for (var i = 0; i < Depth; i++) - { - for (var j = 0; j < 4; j++) - { - _writer.Write(' '); - } - } - } - - protected void WriteSeparator() - { - _writer.Write(" - "); - } - - protected void WriteNewLine() - { - _writer.WriteLine(); - } - - protected void WriteName(IntermediateNode node) - { - var typeName = node.GetType().Name; - if (typeName.EndsWith("IntermediateNode")) - { - _writer.Write(typeName.Substring(0, typeName.Length - "IntermediateNode".Length)); - } - else - { - _writer.Write(typeName); - } - } - - protected void WriteSourceRange(IntermediateNode node) - { - if (node.Source != null) - { - WriteSourceRange(node.Source.Value); - } - } - - protected void WriteSourceRange(SourceSpan sourceRange) - { - _writer.Write("("); - _writer.Write(sourceRange.AbsoluteIndex); - _writer.Write(":"); - _writer.Write(sourceRange.LineIndex); - _writer.Write(","); - _writer.Write(sourceRange.CharacterIndex); - _writer.Write(" ["); - _writer.Write(sourceRange.Length); - _writer.Write("] "); - - if (sourceRange.FilePath != null) - { - var fileName = sourceRange.FilePath.Substring(sourceRange.FilePath.LastIndexOf('/') + 1); - _writer.Write(fileName); - } - - _writer.Write(")"); - } - - protected void WriteDiagnostics(IntermediateNode node) - { - if (node.HasDiagnostics) - { - _writer.Write("| "); - for (var i = 0; i < node.Diagnostics.Count; i++) - { - var diagnostic = node.Diagnostics[i]; - _writer.Write("{"); - WriteSourceRange(diagnostic.Span); - _writer.Write(": "); - _writer.Write(diagnostic.Severity); - _writer.Write(" "); - _writer.Write(diagnostic.Id); - _writer.Write(": "); - - // Purposefully not writing out the entire message to ensure readable IR and because messages - // can span multiple lines. Not using string.GetHashCode because we can't have any collisions. - using (var md5 = MD5.Create()) - { - var diagnosticMessage = diagnostic.GetMessage(); - var messageBytes = Encoding.UTF8.GetBytes(diagnosticMessage); - var messageHash = md5.ComputeHash(messageBytes); - var stringHashBuilder = new StringBuilder(); - - for (var j = 0; j < messageHash.Length; j++) - { - stringHashBuilder.Append(messageHash[j].ToString("x2")); - } - - var stringHash = stringHashBuilder.ToString(); - _writer.Write(stringHash); - } - _writer.Write("} "); - } - } - } - - protected void WriteContent(string content) - { - if (content == null) - { - return; - } - - // We explicitly escape newlines in node content so that the IR can be compared line-by-line. The escaped - // newline cannot be platform specific so we need to drop the windows \r. - // Also, escape our separator so we can search for ` - `to find delimiters. - _writer.Write(content.Replace("\r", string.Empty).Replace("\n", "\\n").Replace(" - ", "\\-")); - } - - void IExtensionIntermediateNodeVisitor.VisitExtension(HtmlElementIntermediateNode node) - { - WriteContentNode(node, node.TagName); - } - - void IExtensionIntermediateNodeVisitor.VisitExtension(HtmlBlockIntermediateNode node) - { - WriteContentNode(node, node.Content); - } - - void IExtensionIntermediateNodeVisitor.VisitExtension(ComponentExtensionNode node) - { - WriteContentNode(node, node.TagName, node.TypeName); - } - - void IExtensionIntermediateNodeVisitor.VisitExtension(ComponentAttributeExtensionNode node) - { - WriteContentNode(node, node.AttributeName, node.PropertyName); - } - - void IExtensionIntermediateNodeVisitor.VisitExtension(ComponentChildContentIntermediateNode node) - { - WriteContentNode(node, node.AttributeName); - } - - void IExtensionIntermediateNodeVisitor.VisitExtension(ComponentTypeArgumentExtensionNode node) - { - WriteContentNode(node, node.TypeParameterName); - } - - void IExtensionIntermediateNodeVisitor.VisitExtension(ComponentTypeInferenceMethodIntermediateNode node) - { - WriteContentNode(node, node.FullTypeName, node.MethodName); - } - - void IExtensionIntermediateNodeVisitor.VisitExtension(RouteAttributeExtensionNode node) - { - WriteContentNode(node, node.Template); - } - - void IExtensionIntermediateNodeVisitor.VisitExtension(RefExtensionNode node) - { - WriteContentNode(node, node.IdentifierToken.Content, node.IsComponentCapture ? node.ComponentCaptureTypeName : "Element"); - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/RazorDiagnosticSerializer.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/RazorDiagnosticSerializer.cs deleted file mode 100644 index aa5586e2bf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/RazorDiagnosticSerializer.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class RazorDiagnosticSerializer - { - public static string Serialize(RazorDiagnostic diagnostic) - { - return diagnostic.ToString(); - } - } -} \ No newline at end of file diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/SourceMappingsSerializer.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/SourceMappingsSerializer.cs deleted file mode 100644 index b5b44afa12..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/SourceMappingsSerializer.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Text; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public static class SourceMappingsSerializer - { - public static string Serialize(RazorCSharpDocument csharpDocument, RazorSourceDocument sourceDocument) - { - var builder = new StringBuilder(); - var charBuffer = new char[sourceDocument.Length]; - sourceDocument.CopyTo(0, charBuffer, 0, sourceDocument.Length); - var sourceContent = new string(charBuffer); - - for (var i = 0; i < csharpDocument.SourceMappings.Count; i++) - { - var sourceMapping = csharpDocument.SourceMappings[i]; - - builder.Append("Source Location: "); - AppendMappingLocation(builder, sourceMapping.OriginalSpan, sourceContent); - - builder.Append("Generated Location: "); - AppendMappingLocation(builder, sourceMapping.GeneratedSpan, csharpDocument.GeneratedCode); - - builder.AppendLine(); - } - - return builder.ToString(); - } - - private static void AppendMappingLocation(StringBuilder builder, SourceSpan location, string content) - { - builder - .AppendLine(location.ToString()) - .Append("|"); - - for (var i = 0; i < location.Length; i++) - { - builder.Append(content[location.AbsoluteIndex + i]); - } - - builder.AppendLine("|"); - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/VirtualProjectItem.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/VirtualProjectItem.cs index cf00b888a0..68c135d715 100644 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/VirtualProjectItem.cs +++ b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Razor/VirtualProjectItem.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.IO; @@ -9,19 +9,30 @@ namespace Microsoft.AspNetCore.Razor.Language { private readonly byte[] _content; - public VirtualProjectItem(string basePath, string filePath, string physicalPath, string relativePhysicalPath, byte[] content) + public VirtualProjectItem( + string basePath, + string filePath, + string physicalPath, + string relativePhysicalPath, + string fileKind, + byte[] content) { BasePath = basePath; FilePath = filePath; PhysicalPath = physicalPath; RelativePhysicalPath = relativePhysicalPath; _content = content; + + // Base class will detect based on file-extension. + FileKind = fileKind ?? base.FileKind; } public override string BasePath { get; } public override string RelativePhysicalPath { get; } + public override string FileKind { get; } + public override string FilePath { get; } public override string PhysicalPath { get; } diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/RazorBaselineIntegrationTestBase.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/RazorBaselineIntegrationTestBase.cs deleted file mode 100644 index 1c3e5d443c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/RazorBaselineIntegrationTestBase.cs +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.IO; -using System.Linq; -using System.Threading; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.IntegrationTests; -using Xunit; -using Xunit.Sdk; - -namespace Microsoft.AspNetCore.Components.Build.Test -{ - [InitializeTestFile] - public abstract class RazorBaselineIntegrationTestBase : RazorIntegrationTestBase - { - private static readonly AsyncLocal _directoryPath = new AsyncLocal(); - - protected RazorBaselineIntegrationTestBase(bool? generateBaselines = null) - { - TestProjectRoot = TestProject.GetProjectDirectory(GetType()); - - if (generateBaselines.HasValue) - { - GenerateBaselines = generateBaselines.Value; - } - } - - // Used by the test framework to set the directory for test files. - public static string DirectoryPath - { - get { return _directoryPath.Value; } - set { _directoryPath.Value = value; } - } - -#if GENERATE_BASELINES - protected bool GenerateBaselines { get; } = true; -#else - protected bool GenerateBaselines { get; } = false; -#endif - - protected string TestProjectRoot { get; } - - // For consistent line endings because the character counts are going to be recorded in files. - internal override string LineEnding => "\r\n"; - - internal override bool NormalizeSourceLineEndings => true; - - internal override string PathSeparator => "\\"; - - // Force consistent paths since they are going to be recorded in files. - internal override string WorkingDirectory => ArbitraryWindowsPath; - - [Fact] - public void GenerateBaselinesMustBeFalse() - { - Assert.False(GenerateBaselines, "GenerateBaselines should be set back to false before you check in!"); - } - - protected void AssertDocumentNodeMatchesBaseline(RazorCodeDocument codeDocument) - { - var document = codeDocument.GetDocumentIntermediateNode(); - var baselineFilePath = GetBaselineFilePath(codeDocument, ".ir.txt"); - - if (GenerateBaselines) - { - var baselineFullPath = Path.Combine(TestProjectRoot, baselineFilePath); - Directory.CreateDirectory(Path.GetDirectoryName(baselineFullPath)); - WriteBaseline(IntermediateNodeSerializer.Serialize(document), baselineFullPath); - - return; - } - - var irFile = TestFile.Create(baselineFilePath, GetType().Assembly); - if (!irFile.Exists()) - { - throw new XunitException($"The resource {baselineFilePath} was not found."); - } - - // Normalize newlines by splitting into an array. - var baseline = irFile.ReadAllText().Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries); - IntermediateNodeVerifier.Verify(document, baseline); - } - - protected void AssertCSharpDocumentMatchesBaseline(RazorCodeDocument codeDocument) - { - var document = codeDocument.GetCSharpDocument(); - - // Normalize newlines to match those in the baseline. - var actualCode = document.GeneratedCode.Replace("\r", "").Replace("\n", "\r\n"); - - var baselineFilePath = GetBaselineFilePath(codeDocument, ".codegen.cs"); - var baselineDiagnosticsFilePath = GetBaselineFilePath(codeDocument, ".diagnostics.txt"); - var baselineMappingsFilePath = GetBaselineFilePath(codeDocument, ".mappings.txt"); - - var serializedMappings = SourceMappingsSerializer.Serialize(document, codeDocument.Source); - - if (GenerateBaselines) - { - var baselineFullPath = Path.Combine(TestProjectRoot, baselineFilePath); - Directory.CreateDirectory(Path.GetDirectoryName(baselineFullPath)); - WriteBaseline(actualCode, baselineFullPath); - - var baselineDiagnosticsFullPath = Path.Combine(TestProjectRoot, baselineDiagnosticsFilePath); - var lines = document.Diagnostics.Select(RazorDiagnosticSerializer.Serialize).ToArray(); - if (lines.Any()) - { - WriteBaseline(lines, baselineDiagnosticsFullPath); - } - else if (File.Exists(baselineDiagnosticsFullPath)) - { - File.Delete(baselineDiagnosticsFullPath); - } - - var baselineMappingsFullPath = Path.Combine(TestProjectRoot, baselineMappingsFilePath); - var text = SourceMappingsSerializer.Serialize(document, codeDocument.Source); - if (!string.IsNullOrEmpty(text)) - { - WriteBaseline(text, baselineMappingsFullPath); - } - else if (File.Exists(baselineMappingsFullPath)) - { - File.Delete(baselineMappingsFullPath); - } - - return; - } - - var codegenFile = TestFile.Create(baselineFilePath, GetType().Assembly); - if (!codegenFile.Exists()) - { - throw new XunitException($"The resource {baselineFilePath} was not found."); - } - - var baseline = codegenFile.ReadAllText(); - Assert.Equal(baseline, actualCode); - - var baselineDiagnostics = string.Empty; - var diagnosticsFile = TestFile.Create(baselineDiagnosticsFilePath, GetType().Assembly); - if (diagnosticsFile.Exists()) - { - baselineDiagnostics = diagnosticsFile.ReadAllText(); - } - - var actualDiagnostics = string.Concat(document.Diagnostics.Select(d => RazorDiagnosticSerializer.Serialize(d) + "\r\n")); - Assert.Equal(baselineDiagnostics, actualDiagnostics); - - var baselineMappings = string.Empty; - var mappingsFile = TestFile.Create(baselineMappingsFilePath, GetType().Assembly); - if (mappingsFile.Exists()) - { - baselineMappings = mappingsFile.ReadAllText(); - } - - var actualMappings = SourceMappingsSerializer.Serialize(document, codeDocument.Source); - actualMappings = actualMappings.Replace("\r", "").Replace("\n", "\r\n"); - Assert.Equal(baselineMappings, actualMappings); - } - - private string GetBaselineFilePath(RazorCodeDocument codeDocument, string extension) - { - if (codeDocument == null) - { - throw new ArgumentNullException(nameof(codeDocument)); - } - - if (extension == null) - { - throw new ArgumentNullException(nameof(extension)); - } - - var lastSlash = codeDocument.Source.FilePath.LastIndexOfAny(new []{ '/', '\\' }); - var fileName = lastSlash == -1 ? null : codeDocument.Source.FilePath.Substring(lastSlash + 1); - if (string.IsNullOrEmpty(fileName)) - { - var message = "Integration tests require a filename"; - throw new InvalidOperationException(message); - } - - if (DirectoryPath == null) - { - var message = $"{nameof(AssertDocumentNodeMatchesBaseline)} should only be called from an integration test.."; - throw new InvalidOperationException(message); - } - - return Path.Combine(DirectoryPath, Path.ChangeExtension(fileName, extension)); - } - - private static void WriteBaseline(string text, string filePath) - { - var lines = text.Replace("\r", "").Replace("\n", "\r\n"); - File.WriteAllText(filePath, text); - } - - private static void WriteBaseline(string[] lines, string filePath) - { - using (var writer = new StreamWriter(File.Open(filePath, FileMode.Create))) - { - // Force windows-style line endings so that we're consistent. This isn't - // required for correctness, but will prevent churn when developing on OSX. - writer.NewLine = "\r\n"; - - for (var i = 0; i < lines.Length; i++) - { - writer.WriteLine(lines[i]); - } - } - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/RazorIntegrationTestBase.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/RazorIntegrationTestBase.cs index 09fdd8a5cd..f27e8ec1f0 100644 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/RazorIntegrationTestBase.cs +++ b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/RazorIntegrationTestBase.cs @@ -8,9 +8,8 @@ using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Text; +using System.Threading; using System.Threading.Tasks; -using Microsoft.AspNetCore.Components.Razor; -using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Rendering; using Microsoft.AspNetCore.Components.RenderTree; using Microsoft.AspNetCore.Components.Test.Helpers; @@ -20,12 +19,15 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Razor; using Xunit; +using Xunit.Abstractions; using Xunit.Sdk; namespace Microsoft.AspNetCore.Components.Build.Test { public class RazorIntegrationTestBase { + private static readonly AsyncLocal _output = new AsyncLocal(); + internal const string ArbitraryWindowsPath = "x:\\dir\\subdir\\Test"; internal const string ArbitraryMacLinuxPath = "/dir/subdir/Test"; @@ -59,17 +61,23 @@ namespace Microsoft.AspNetCore.Components.Build.Test CSharpParseOptions = new CSharpParseOptions(LanguageVersion.CSharp7_3); } - public RazorIntegrationTestBase() + public RazorIntegrationTestBase(ITestOutputHelper output) { + _output.Value = output; + AdditionalSyntaxTrees = new List(); AdditionalRazorItems = new List(); - - Configuration = BlazorExtensionInitializer.DefaultConfiguration; + Configuration = RazorConfiguration.Create(RazorLanguageVersion.Latest, "MVC-3.0", Array.Empty()); + FileKind = FileKinds.Component; // Treat input files as components by default. FileSystem = new VirtualRazorProjectFileSystem(); PathSeparator = Path.DirectorySeparatorChar.ToString(); WorkingDirectory = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ArbitraryWindowsPath : ArbitraryMacLinuxPath; + // Many of the rendering tests include line endings in the output. + LineEnding = "\n"; + NormalizeSourceLineEndings = true; + DefaultBaseNamespace = "Test"; // Matches the default working directory DefaultFileName = "TestComponent.cshtml"; } @@ -85,7 +93,9 @@ namespace Microsoft.AspNetCore.Components.Build.Test internal virtual string DefaultFileName { get; } internal virtual bool DesignTime { get; } - + + internal virtual string FileKind { get; } + internal virtual VirtualRazorProjectFileSystem FileSystem { get; } // Used to force a specific style of line-endings for testing. This matters @@ -102,9 +112,10 @@ namespace Microsoft.AspNetCore.Components.Build.Test internal virtual string WorkingDirectory { get; } - internal RazorProjectEngine CreateProjectEngine(RazorConfiguration configuration, MetadataReference[] references) + // Intentionally private, we don't want tests messing with this because it's fragile. + private RazorProjectEngine CreateProjectEngine(MetadataReference[] references) { - return RazorProjectEngine.Create(configuration, FileSystem, b => + return RazorProjectEngine.Create(Configuration, FileSystem, b => { // Turn off checksums, we're testing code generation. b.Features.Add(new SuppressChecksum()); @@ -114,7 +125,11 @@ namespace Microsoft.AspNetCore.Components.Build.Test b.Phases.Insert(0, new ForceLineEndingPhase(LineEnding)); } - BlazorExtensionInitializer.Register(b); + // Including MVC here so that we can find any issues that arise from mixed MVC + Components. + Microsoft.AspNetCore.Mvc.Razor.Extensions.RazorExtensions.Register(b); + + // Features that use Roslyn are mandatory for components + Microsoft.CodeAnalysis.Razor.CompilerFeatures.Register(b); b.Features.Add(new CompilationTagHelperFeature()); b.Features.Add(new DefaultMetadataReferenceFeature() @@ -141,10 +156,11 @@ namespace Microsoft.AspNetCore.Components.Build.Test } return new VirtualProjectItem( - WorkingDirectory, - filePath, + WorkingDirectory, + filePath, fullPath, cshtmlRelativePath, + FileKind, Encoding.UTF8.GetBytes(cshtmlContent.TrimStart())); } @@ -159,13 +175,13 @@ namespace Microsoft.AspNetCore.Components.Build.Test { // The first phase won't include any metadata references for component discovery. This mirrors // what the build does. - var projectEngine = CreateProjectEngine(BlazorExtensionInitializer.DeclarationConfiguration, Array.Empty()); - + var projectEngine = CreateProjectEngine(Array.Empty()); + RazorCodeDocument codeDocument; foreach (var item in AdditionalRazorItems) { // Result of generating declarations - codeDocument = projectEngine.Process(item); + codeDocument = projectEngine.ProcessDeclarationOnly(item); Assert.Empty(codeDocument.GetCSharpDocument().Diagnostics); var syntaxTree = Parse(codeDocument.GetCSharpDocument().GeneratedCode, path: item.FilePath); @@ -174,7 +190,7 @@ namespace Microsoft.AspNetCore.Components.Build.Test // Result of generating declarations var projectItem = CreateProjectItem(cshtmlRelativePath, cshtmlContent); - codeDocument = projectEngine.Process(projectItem); + codeDocument = projectEngine.ProcessDeclarationOnly(projectItem); var declaration = new CompileToCSharpResult { BaseCompilation = BaseCompilation.AddSyntaxTrees(AdditionalSyntaxTrees), @@ -186,15 +202,15 @@ namespace Microsoft.AspNetCore.Components.Build.Test // Result of doing 'temp' compilation var tempAssembly = CompileToAssembly(declaration); - // Add the 'temp' compilation as a metadata reference + // Add the 'temp' compilation as a metadata reference var references = BaseCompilation.References.Concat(new[] { tempAssembly.Compilation.ToMetadataReference() }).ToArray(); - projectEngine = CreateProjectEngine(BlazorExtensionInitializer.DefaultConfiguration, references); + projectEngine = CreateProjectEngine(references); // Now update the any additional files foreach (var item in AdditionalRazorItems) { // Result of generating declarations - codeDocument = projectEngine.Process(item); + codeDocument = DesignTime ? projectEngine.ProcessDesignTime(item) : projectEngine.Process(item); Assert.Empty(codeDocument.GetCSharpDocument().Diagnostics); // Replace the 'declaration' syntax tree @@ -205,6 +221,30 @@ namespace Microsoft.AspNetCore.Components.Build.Test // Result of real code generation for the document under test codeDocument = DesignTime ? projectEngine.ProcessDesignTime(projectItem) : projectEngine.Process(projectItem); + + _output.Value.WriteLine("Use this output when opening an issue"); + _output.Value.WriteLine(string.Empty); + + _output.Value.WriteLine($"## Main source file ({projectItem.FileKind}):"); + _output.Value.WriteLine("```"); + _output.Value.WriteLine(ReadProjectItem(projectItem)); + _output.Value.WriteLine("```"); + _output.Value.WriteLine(string.Empty); + + foreach (var item in AdditionalRazorItems) + { + _output.Value.WriteLine($"### Additional source file ({item.FileKind}):"); + _output.Value.WriteLine("```"); + _output.Value.WriteLine(ReadProjectItem(item)); + _output.Value.WriteLine("```"); + _output.Value.WriteLine(string.Empty); + } + + _output.Value.WriteLine("## Generated C#:"); + _output.Value.WriteLine("```C#"); + _output.Value.WriteLine(codeDocument.GetCSharpDocument().GeneratedCode); + _output.Value.WriteLine("```"); + return new CompileToCSharpResult { BaseCompilation = BaseCompilation.AddSyntaxTrees(AdditionalSyntaxTrees), @@ -217,10 +257,26 @@ namespace Microsoft.AspNetCore.Components.Build.Test { // For single phase compilation tests just use the base compilation's references. // This will include the built-in Blazor components. - var projectEngine = CreateProjectEngine(Configuration, BaseCompilation.References.ToArray()); + var projectEngine = CreateProjectEngine(BaseCompilation.References.ToArray()); var projectItem = CreateProjectItem(cshtmlRelativePath, cshtmlContent); var codeDocument = DesignTime ? projectEngine.ProcessDesignTime(projectItem) : projectEngine.Process(projectItem); + + // Log the generated code for test results. + _output.Value.WriteLine("Use this output when opening an issue"); + _output.Value.WriteLine(string.Empty); + + _output.Value.WriteLine($"## Main source file ({projectItem.FileKind}):"); + _output.Value.WriteLine("```"); + _output.Value.WriteLine(ReadProjectItem(projectItem)); + _output.Value.WriteLine("```"); + _output.Value.WriteLine(string.Empty); + + _output.Value.WriteLine("## Generated C#:"); + _output.Value.WriteLine("```C#"); + _output.Value.WriteLine(codeDocument.GetCSharpDocument().GeneratedCode); + _output.Value.WriteLine("```"); + return new CompileToCSharpResult { BaseCompilation = BaseCompilation.AddSyntaxTrees(AdditionalSyntaxTrees), @@ -343,6 +399,14 @@ namespace Microsoft.AspNetCore.Components.Build.Test Assert.Equal(expected, generated.Code.Trim(), ignoreLineEndingDifferences: true); } + private static string ReadProjectItem(RazorProjectItem item) + { + using (var reader = new StreamReader(item.Read())) + { + return reader.ReadToEnd(); + } + } + protected class CompileToCSharpResult { // A compilation that can be used *with* this code to compile an assembly @@ -380,7 +444,7 @@ namespace Microsoft.AspNetCore.Components.Build.Test private class CompilationFailedException : XunitException { - public CompilationFailedException(Compilation compilation) + public CompilationFailedException(Compilation compilation) { Compilation = compilation; } diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/RenderingRazorIntegrationTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/RenderingRazorIntegrationTest.cs index 34f957229e..7444841b96 100644 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/RenderingRazorIntegrationTest.cs +++ b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/RenderingRazorIntegrationTest.cs @@ -3,10 +3,10 @@ using System; using System.Collections.Generic; -using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.RenderTree; using Microsoft.AspNetCore.Components.Test.Helpers; using Xunit; +using Xunit.Abstractions; namespace Microsoft.AspNetCore.Components.Build.Test { @@ -14,6 +14,11 @@ namespace Microsoft.AspNetCore.Components.Build.Test // Includes running the component code to verify the output. public class RenderingRazorIntegrationTest : RazorIntegrationTestBase { + public RenderingRazorIntegrationTest(ITestOutputHelper output) + : base(output) + { + } + [Fact] public void SupportsPlainText() { @@ -83,7 +88,7 @@ namespace Microsoft.AspNetCore.Components.Build.Test frame => AssertFrame.Text(frame, "there", 2)); } - [Fact(Skip = "Temporarily disable compiling markup frames in 0.5.1")] + [Fact] public void SupportsElementsAsStaticBlock() { // Arrange/Act @@ -144,28 +149,28 @@ namespace Microsoft.AspNetCore.Components.Build.Test frame => AssertFrame.Attribute(frame, "myattr", "val", 2)); } - [Fact(Skip = "Temporarily disable compiling markup frames in 0.5.1")] + [Fact] public void SupportsSelfClosingElementsAsStaticBlock() { // Arrange/Act var component = CompileToComponent("Some text so elem isn't at position 0 "); // Assert - Assert.Collection(GetRenderTree(component), - frame => AssertFrame.Text(frame, "Some text so elem isn't at position 0 ", 0), - frame => AssertFrame.Markup(frame, "", 1)); + Assert.Collection( + GetRenderTree(component), + frame => AssertFrame.Markup(frame, "Some text so elem isn't at position 0 ", 0)); } - [Fact(Skip = "Temporarily disable compiling markup frames in 0.5.1")] + [Fact] public void SupportsVoidHtmlElements() { // Arrange/Act var component = CompileToComponent("Some text so elem isn't at position 0 "); // Assert - Assert.Collection(GetRenderTree(component), - frame => AssertFrame.Text(frame, "Some text so elem isn't at position 0 ", 0), - frame => AssertFrame.Markup(frame, "", 1)); + Assert.Collection( + GetRenderTree(component), + frame => AssertFrame.Markup(frame, "Some text so elem isn't at position 0 ", 0)); } [Fact] diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/RuntimeCodeGenerationTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/RuntimeCodeGenerationTest.cs deleted file mode 100644 index 9cb34bb48d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/RuntimeCodeGenerationTest.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Components.Build.Test -{ - public class RuntimeCodeGenerationTest : CodeGenerationTestBase - { - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TemplateRazorIntegrationTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TemplateRazorIntegrationTest.cs deleted file mode 100644 index 3ab6ea1bed..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TemplateRazorIntegrationTest.cs +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Components.Build.Test -{ - public class TemplateRazorIntegrationTest : RazorIntegrationTestBase - { - // Razor doesn't parse this as a template, we don't need much special handling for - // it because it will just be invalid in general. - [Fact] - public void Template_ImplicitExpressionInMarkupAttribute_CreatesDiagnostic() - { - // Arrange - - // Act - var generated = CompileToCSharp(@"
"" />"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("RZ1005", diagnostic.Id); - } - - [Fact] - public void Template_ExplicitExpressionInMarkupAttribute_CreatesDiagnostic() - { - // Arrange - - // Act - var generated = CompileToCSharp(@"
)"" />"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("BL9994", diagnostic.Id); - } - - // Razor doesn't parse this as a template, we don't need much special handling for - // it because it will just be invalid in general. - [Fact] - public void Template_ImplicitExpressionInComponentAttribute_CreatesDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@""" />"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("RZ1005", diagnostic.Id); - } - - [Fact] - public void Template_ExplicitExpressionInComponentAttribute_CreatesDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - // Act - var generated = CompileToCSharp(@")"" />"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("BL9994", diagnostic.Id); - } - - [Fact] - public void Template_ExplicitExpressionInRef_CreatesDiagnostic() - { - // Arrange - - // Act - var generated = CompileToCSharp(@"
)"" />"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("BL9994", diagnostic.Id); - } - - - [Fact] - public void Template_ExplicitExpressionInBind_CreatesDiagnostic() - { - // Arrange - - // Act - var generated = CompileToCSharp(@")"" />"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("BL9994", diagnostic.Id); - } - - [Fact] - public void Template_ExplicitExpressionInEventHandler_CreatesDiagnostic() - { - // Arrange - - // Act - var generated = CompileToCSharp(@")"" />"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("BL9994", diagnostic.Id); - } - } -} \ No newline at end of file diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.codegen.cs deleted file mode 100644 index 6de3cb730f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.codegen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using Microsoft.AspNetCore.Components; -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" -using System.Threading.Tasks; - -#line default -#line hidden - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue("async (e) => await Task.Delay(10)"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.ir.txt deleted file mode 100644 index cc858bd23b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.ir.txt +++ /dev/null @@ -1,30 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - UsingDirective - (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (31:1,0 [53] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (47:1,16 [33] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - - CSharp - "async (e) => await Task.Delay(10)" - IntermediateToken - - CSharp - ) - HtmlContent - (84:1,53 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (84:1,53 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.mappings.txt deleted file mode 100644 index b97e7aa5a7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) -|using System.Threading.Tasks| -Generated Location: (266:10,0 [28] ) -|using System.Threading.Tasks| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.codegen.cs deleted file mode 100644 index d9db12dcf0..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.codegen.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using Microsoft.AspNetCore.Components; -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" -using System.Threading.Tasks; - -#line default -#line hidden - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(OnClick); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - Task OnClick(UIMouseEventArgs e) - { - return Task.CompletedTask; - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.ir.txt deleted file mode 100644 index feb915aee2..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.ir.txt +++ /dev/null @@ -1,32 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - UsingDirective - (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (31:1,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (47:1,16 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick - IntermediateToken - - CSharp - ) - HtmlContent - (59:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (59:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (73:2,12 [91] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (73:2,12 [91] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick(UIMouseEventArgs e) \n {\n return Task.CompletedTask;\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.mappings.txt deleted file mode 100644 index 8e3a9e0d99..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.mappings.txt +++ /dev/null @@ -1,25 +0,0 @@ -Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) -|using System.Threading.Tasks| -Generated Location: (266:10,0 [28] ) -|using System.Threading.Tasks| - -Source Location: (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) -|OnClick| -Generated Location: (1028:27,133 [7] ) -|OnClick| - -Source Location: (73:2,12 [91] x:\dir\subdir\Test\TestComponent.cshtml) -| - Task OnClick(UIMouseEventArgs e) - { - return Task.CompletedTask; - } -| -Generated Location: (1151:31,12 [91] ) -| - Task OnClick(UIMouseEventArgs e) - { - return Task.CompletedTask; - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.codegen.cs deleted file mode 100644 index 6de3cb730f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.codegen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using Microsoft.AspNetCore.Components; -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" -using System.Threading.Tasks; - -#line default -#line hidden - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue("async (e) => await Task.Delay(10)"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.ir.txt deleted file mode 100644 index cc858bd23b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.ir.txt +++ /dev/null @@ -1,30 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - UsingDirective - (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (31:1,0 [53] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (47:1,16 [33] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - - CSharp - "async (e) => await Task.Delay(10)" - IntermediateToken - - CSharp - ) - HtmlContent - (84:1,53 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (84:1,53 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.mappings.txt deleted file mode 100644 index b97e7aa5a7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) -|using System.Threading.Tasks| -Generated Location: (266:10,0 [28] ) -|using System.Threading.Tasks| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.codegen.cs deleted file mode 100644 index 606261cf30..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.codegen.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using Microsoft.AspNetCore.Components; -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" -using System.Threading.Tasks; - -#line default -#line hidden - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(OnClick); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - Task OnClick() - { - return Task.CompletedTask; - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.ir.txt deleted file mode 100644 index 0da76c0893..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.ir.txt +++ /dev/null @@ -1,32 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - UsingDirective - (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (31:1,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (47:1,16 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick - IntermediateToken - - CSharp - ) - HtmlContent - (59:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (59:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (73:2,12 [73] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (73:2,12 [73] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick() \n {\n return Task.CompletedTask;\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.mappings.txt deleted file mode 100644 index b20efd8550..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.mappings.txt +++ /dev/null @@ -1,25 +0,0 @@ -Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) -|using System.Threading.Tasks| -Generated Location: (266:10,0 [28] ) -|using System.Threading.Tasks| - -Source Location: (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) -|OnClick| -Generated Location: (1028:27,133 [7] ) -|OnClick| - -Source Location: (73:2,12 [73] x:\dir\subdir\Test\TestComponent.cshtml) -| - Task OnClick() - { - return Task.CompletedTask; - } -| -Generated Location: (1151:31,12 [73] ) -| - Task OnClick() - { - return Task.CompletedTask; - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index d0abedafaf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(Microsoft.AspNetCore.Components.BindMethods.GetValue( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden - )); - __o = new System.Action( - __value => ParentValue = __value); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index 7295ad37a4..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,36 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [50] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (66:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - Value - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (66:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (66:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml) - OnChanged - OnChanged - CSharpExpression - - IntermediateToken - - CSharp - __value => ParentValue = __value - HtmlContent - (81:1,50 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (81:1,50 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (95:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (95:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index ebd53f042b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (66:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (1164:29,35 [11] ) -|ParentValue| - -Source Location: (95:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1588:42,12 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index 5a8ecbc709..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetValue( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden - ); - __o = Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index 68aa44af9f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,36 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [50] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (66:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (66:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (66:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml) - OnChanged - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue) - HtmlContent - (81:1,50 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (81:1,50 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (95:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (95:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index eb3e730a54..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (66:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (1093:29,35 [11] ) -|ParentValue| - -Source Location: (95:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1543:41,12 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index aa91ac7986..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(Microsoft.AspNetCore.Components.BindMethods.GetValue( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden - )); - __o = new System.Action( - __value => ParentValue = __value); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index c75da4700b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,36 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [40] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - Value - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - ValueChanged - CSharpExpression - - IntermediateToken - - CSharp - __value => ParentValue = __value - HtmlContent - (71:1,40 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (71:1,40 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (85:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (85:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index bf42d527ee..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (1154:29,25 [11] ) -|ParentValue| - -Source Location: (85:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1578:42,12 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index 611acf6ce4..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetValue( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden - ); - __o = Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index b933602fea..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,36 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [40] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue) - HtmlContent - (71:1,40 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (71:1,40 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (85:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (85:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index ed41ba9eac..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (1083:29,25 [11] ) -|ParentValue| - -Source Location: (85:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1533:41,12 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index f028961ecb..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(Microsoft.AspNetCore.Components.BindMethods.GetValue( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden - )); - __o = new System.Action( - __value => ParentValue = __value); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "42"; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index 8a43c85cbe..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,36 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [40] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - Value - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - ValueChanged - CSharpExpression - - IntermediateToken - - CSharp - __value => ParentValue = __value - HtmlContent - (71:1,40 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (71:1,40 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (85:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (85:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "42";\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index a3e10bc4ef..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (1154:29,25 [11] ) -|ParentValue| - -Source Location: (85:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "42"; -| -Generated Location: (1578:42,12 [55] ) -| - public string ParentValue { get; set; } = "42"; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index 96562a892c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetValue(CurrentDate, "MM/dd"); - __o = Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => CurrentDate = __value, CurrentDate, "MM/dd"); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index 45daf14a11..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,41 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (31:1,0 [77] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - - type=" - " - HtmlAttributeValue - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text - HtmlAttribute - (71:1,40 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (72:1,41 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - CurrentDate - IntermediateToken - - CSharp - , - IntermediateToken - - CSharp - "MM/dd" - IntermediateToken - - CSharp - ) - HtmlAttribute - (71:1,40 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => CurrentDate = __value, CurrentDate, "MM/dd") - HtmlContent - (108:1,77 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (108:1,77 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (122:2,12 [77] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (122:2,12 [77] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index 87ca7a8ac5..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (72:1,41 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|CurrentDate| -Generated Location: (1005:27,71 [11] ) -|CurrentDate| - -Source Location: (122:2,12 [77] x:\dir\subdir\Test\TestComponent.cshtml) -| - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -| -Generated Location: (1277:32,12 [77] ) -| - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index 684f352a03..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetValue(ParentValue); - __o = Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index dadfe0591b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,39 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (31:1,0 [56] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - - type=" - " - HtmlAttributeValue - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text - HtmlAttribute - (71:1,40 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (72:1,41 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - HtmlAttribute - (71:1,40 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue) - HtmlContent - (87:1,56 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (87:1,56 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (101:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (101:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index e629286e38..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (72:1,41 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (1005:27,71 [11] ) -|ParentValue| - -Source Location: (101:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1259:32,12 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index e768b0f0cf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetValue(ParentValue); - __o = Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index 8621ce9bc9..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,36 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (31:1,0 [33] x:\dir\subdir\Test\TestComponent.cshtml) - div - HtmlAttribute - (48:1,17 [12] x:\dir\subdir\Test\TestComponent.cshtml) - myvalue=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (49:1,18 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - HtmlAttribute - (48:1,17 [12] x:\dir\subdir\Test\TestComponent.cshtml) - myevent=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue) - HtmlContent - (64:1,33 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (64:1,33 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (78:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (78:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index 2e15f74625..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (49:1,18 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (1005:27,71 [11] ) -|ParentValue| - -Source Location: (78:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; -| -Generated Location: (1259:32,12 [55] ) -| - public string ParentValue { get; set; } = "hi"; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index e768b0f0cf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetValue(ParentValue); - __o = Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index 6bf6c30c87..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,36 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (31:1,0 [27] x:\dir\subdir\Test\TestComponent.cshtml) - div - HtmlAttribute - (42:1,11 [12] x:\dir\subdir\Test\TestComponent.cshtml) - myvalue=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (43:1,12 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - HtmlAttribute - (42:1,11 [12] x:\dir\subdir\Test\TestComponent.cshtml) - myevent=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue) - HtmlContent - (58:1,27 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (58:1,27 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (72:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (72:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index cd366f6243..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (43:1,12 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (1005:27,71 [11] ) -|ParentValue| - -Source Location: (72:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; -| -Generated Location: (1259:32,12 [55] ) -| - public string ParentValue { get; set; } = "hi"; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.codegen.cs deleted file mode 100644 index 4b556e6406..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - RenderFragment header = (context) => - -#line default -#line hidden - (builder2) => { -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = context.ToLowerInvariant(); - -#line default -#line hidden - } -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ; - -#line default -#line hidden - __o = new Microsoft.AspNetCore.Components.RenderFragment( -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - header - -#line default -#line hidden - ); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.ir.txt deleted file mode 100644 index 2da9c6fd7c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,38 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (33:1,2 [46] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (33:1,2 [46] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderFragment header = (context) => - Template - (80:1,49 [37] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (80:1,49 [38] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (86:1,55 [26] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (86:1,55 [26] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.ToLowerInvariant() - CSharpCode - (118:1,87 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (118:1,87 [2] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ; - ComponentExtensionNode - (123:2,0 [62] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - - ChildContent - HtmlContent - (151:2,28 [20] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (151:2,28 [20] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n Some Content\n - ComponentAttributeExtensionNode - (143:2,20 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Header - Header - CSharpExpression - (144:2,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (144:2,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - header diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.mappings.txt deleted file mode 100644 index 325cb343a0..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.mappings.txt +++ /dev/null @@ -1,25 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (33:1,2 [46] x:\dir\subdir\Test\TestComponent.cshtml) -| RenderFragment header = (context) => | -Generated Location: (987:28,2 [46] ) -| RenderFragment header = (context) => | - -Source Location: (86:1,55 [26] x:\dir\subdir\Test\TestComponent.cshtml) -|context.ToLowerInvariant()| -Generated Location: (1201:34,55 [26] ) -|context.ToLowerInvariant()| - -Source Location: (118:1,87 [2] x:\dir\subdir\Test\TestComponent.cshtml) -|; | -Generated Location: (1414:40,87 [2] ) -|; | - -Source Location: (144:2,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) -|header| -Generated Location: (1607:46,21 [6] ) -|header| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.codegen.cs deleted file mode 100644 index d2554d64da..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - RenderFragment header = (context) => - -#line default -#line hidden - (builder2) => { -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = context.ToLowerInvariant(); - -#line default -#line hidden - } -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ; - -#line default -#line hidden - __o = new Microsoft.AspNetCore.Components.RenderFragment( -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - header - -#line default -#line hidden - ); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - builder.AddAttribute(-1, "Footer", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.ir.txt deleted file mode 100644 index 53a2f512d8..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,41 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (33:1,2 [46] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (33:1,2 [46] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderFragment header = (context) => - Template - (80:1,49 [37] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (80:1,49 [38] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (86:1,55 [26] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (86:1,55 [26] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.ToLowerInvariant() - CSharpCode - (118:1,87 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (118:1,87 [2] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ; - ComponentExtensionNode - (123:2,0 [114] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - (155:3,2 [41] x:\dir\subdir\Test\TestComponent.cshtml) - ChildContent - HtmlContent - (169:3,16 [12] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (169:3,16 [12] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Some Content - ComponentChildContent - (200:4,2 [21] x:\dir\subdir\Test\TestComponent.cshtml) - Footer - HtmlContent - (208:4,10 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (208:4,10 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Bye! - ComponentAttributeExtensionNode - (143:2,20 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Header - Header - CSharpExpression - (144:2,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (144:2,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - header diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.mappings.txt deleted file mode 100644 index 325cb343a0..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.mappings.txt +++ /dev/null @@ -1,25 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (33:1,2 [46] x:\dir\subdir\Test\TestComponent.cshtml) -| RenderFragment header = (context) => | -Generated Location: (987:28,2 [46] ) -| RenderFragment header = (context) => | - -Source Location: (86:1,55 [26] x:\dir\subdir\Test\TestComponent.cshtml) -|context.ToLowerInvariant()| -Generated Location: (1201:34,55 [26] ) -|context.ToLowerInvariant()| - -Source Location: (118:1,87 [2] x:\dir\subdir\Test\TestComponent.cshtml) -|; | -Generated Location: (1414:40,87 [2] ) -|; | - -Source Location: (144:2,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) -|header| -Generated Location: (1607:46,21 [6] ) -|header| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index 72169e0d95..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetValue(Enabled); - __o = Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => Enabled = __value, Enabled); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public bool Enabled { get; set; } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index 5349927f27..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,39 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (31:1,0 [41] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - - type=" - " - HtmlAttributeValue - (44:1,13 [8] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (44:1,13 [8] x:\dir\subdir\Test\TestComponent.cshtml) - Html - checkbox - HtmlAttribute - (60:1,29 [8] x:\dir\subdir\Test\TestComponent.cshtml) - checked=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (61:1,30 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Enabled - IntermediateToken - - CSharp - ) - HtmlAttribute - (60:1,29 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => Enabled = __value, Enabled) - HtmlContent - (72:1,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (72:1,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (86:2,12 [41] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (86:2,12 [41] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public bool Enabled { get; set; }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index 4535b9812b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (61:1,30 [7] x:\dir\subdir\Test\TestComponent.cshtml) -|Enabled| -Generated Location: (1005:27,71 [7] ) -|Enabled| - -Source Location: (86:2,12 [41] x:\dir\subdir\Test\TestComponent.cshtml) -| - public bool Enabled { get; set; } -| -Generated Location: (1247:32,12 [41] ) -| - public bool Enabled { get; set; } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index 7d61f92d2a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetValue(CurrentDate, Format); - __o = Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => CurrentDate = __value, CurrentDate, Format); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); - - public string Format { get; set; } = "MM/dd/yyyy"; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index bdd5856a21..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,41 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (31:1,0 [63] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - - type=" - " - HtmlAttributeValue - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text - HtmlAttribute - (56:1,25 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (57:1,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - CurrentDate - IntermediateToken - - CSharp - , - IntermediateToken - (85:1,54 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Format - IntermediateToken - - CSharp - ) - HtmlAttribute - (56:1,25 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => CurrentDate = __value, CurrentDate, Format) - HtmlContent - (94:1,63 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (94:1,63 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (108:2,12 [135] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (108:2,12 [135] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n\n public string Format { get; set; } = "MM/dd/yyyy";\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index 466721d41a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,28 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (57:1,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|CurrentDate| -Generated Location: (1005:27,71 [11] ) -|CurrentDate| - -Source Location: (85:1,54 [6] x:\dir\subdir\Test\TestComponent.cshtml) -|Format| -Generated Location: (1018:27,84 [6] ) -|Format| - -Source Location: (108:2,12 [135] x:\dir\subdir\Test\TestComponent.cshtml) -| - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); - - public string Format { get; set; } = "MM/dd/yyyy"; -| -Generated Location: (1275:32,12 [135] ) -| - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); - - public string Format { get; set; } = "MM/dd/yyyy"; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index f9fb164b2f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetValue(CurrentDate, "MM/dd/yyyy"); - __o = Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => CurrentDate = __value, CurrentDate, "MM/dd/yyyy"); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index 72fc1f0f07..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,41 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (31:1,0 [66] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - - type=" - " - HtmlAttributeValue - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text - HtmlAttribute - (56:1,25 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (57:1,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - CurrentDate - IntermediateToken - - CSharp - , - IntermediateToken - - CSharp - "MM/dd/yyyy" - IntermediateToken - - CSharp - ) - HtmlAttribute - (56:1,25 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => CurrentDate = __value, CurrentDate, "MM/dd/yyyy") - HtmlContent - (97:1,66 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (97:1,66 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (111:2,12 [77] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (111:2,12 [77] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index 7170fa644c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (57:1,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|CurrentDate| -Generated Location: (1005:27,71 [11] ) -|CurrentDate| - -Source Location: (111:2,12 [77] x:\dir\subdir\Test\TestComponent.cshtml) -| - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -| -Generated Location: (1287:32,12 [77] ) -| - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index 684f352a03..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetValue(ParentValue); - __o = Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index 2813471425..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,39 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (31:1,0 [41] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - - type=" - " - HtmlAttributeValue - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text - HtmlAttribute - (56:1,25 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (57:1,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - HtmlAttribute - (56:1,25 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue) - HtmlContent - (72:1,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (72:1,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (86:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (86:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index d2b22b616a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (57:1,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (1005:27,71 [11] ) -|ParentValue| - -Source Location: (86:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1259:32,12 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index 684f352a03..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetValue(ParentValue); - __o = Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index b791080153..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,36 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (31:1,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (44:1,13 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (45:1,14 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - HtmlAttribute - (44:1,13 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue) - HtmlContent - (60:1,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (60:1,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (74:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (74:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index 08dab60ebf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (45:1,14 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (1005:27,71 [11] ) -|ParentValue| - -Source Location: (74:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1259:32,12 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic/TestComponent.codegen.cs deleted file mode 100644 index ea8dc2f926..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic/TestComponent.codegen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = typeof( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - string - -#line default -#line hidden - ); - __o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - "hi" - -#line default -#line hidden - ); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic/TestComponent.ir.txt deleted file mode 100644 index 6d9d0292e4..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic/TestComponent.ir.txt +++ /dev/null @@ -1,29 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [42] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentTypeArgumentExtensionNode - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - TItem - IntermediateToken - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - string - ComponentAttributeExtensionNode - (63:1,32 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (64:1,33 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (65:1,34 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic/TestComponent.mappings.txt deleted file mode 100644 index c8cfdec15a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic/TestComponent.mappings.txt +++ /dev/null @@ -1,15 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) -|string| -Generated Location: (1031:29,19 [6] ) -|string| - -Source Location: (65:1,34 [4] x:\dir\subdir\Test\TestComponent.cshtml) -|"hi"| -Generated Location: (1256:36,34 [4] ) -|"hi"| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.codegen.cs deleted file mode 100644 index 9564c39735..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.codegen.cs +++ /dev/null @@ -1,57 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = typeof( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - string - -#line default -#line hidden - ); - __o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(Microsoft.AspNetCore.Components.BindMethods.GetValue( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - Value - -#line default -#line hidden - )); - __o = new System.Action( - __value => Value = __value); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - string Value; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.ir.txt deleted file mode 100644 index 0028e0a5d0..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.ir.txt +++ /dev/null @@ -1,38 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [43] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentTypeArgumentExtensionNode - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - TItem - IntermediateToken - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - string - ComponentAttributeExtensionNode - (67:1,36 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (67:1,36 [5] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Value - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (67:1,36 [5] x:\dir\subdir\Test\TestComponent.cshtml) - ItemChanged - ItemChanged - CSharpExpression - - IntermediateToken - - CSharp - __value => Value = __value - HtmlContent - (74:1,43 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (74:1,43 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (88:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (88:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string Value;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.mappings.txt deleted file mode 100644 index 07633fc4bb..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.mappings.txt +++ /dev/null @@ -1,24 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) -|string| -Generated Location: (1031:29,19 [6] ) -|string| - -Source Location: (67:1,36 [5] x:\dir\subdir\Test\TestComponent.cshtml) -|Value| -Generated Location: (1311:36,36 [5] ) -|Value| - -Source Location: (88:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) -| - string Value; -| -Generated Location: (1717:49,12 [21] ) -| - string Value; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.codegen.cs deleted file mode 100644 index 03f32dcebf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.codegen.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = typeof( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - string - -#line default -#line hidden - ); - __o = Microsoft.AspNetCore.Components.BindMethods.GetValue( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - Value - -#line default -#line hidden - ); - __o = Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => Value = __value, Value); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - string Value; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.ir.txt deleted file mode 100644 index eead159f4f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.ir.txt +++ /dev/null @@ -1,38 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [43] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentTypeArgumentExtensionNode - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - TItem - IntermediateToken - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - string - ComponentAttributeExtensionNode - (67:1,36 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Item - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (67:1,36 [5] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Value - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (67:1,36 [5] x:\dir\subdir\Test\TestComponent.cshtml) - ItemChanged - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => Value = __value, Value) - HtmlContent - (74:1,43 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (74:1,43 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (88:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (88:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string Value;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.mappings.txt deleted file mode 100644 index 10234758f3..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.mappings.txt +++ /dev/null @@ -1,24 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) -|string| -Generated Location: (1031:29,19 [6] ) -|string| - -Source Location: (67:1,36 [5] x:\dir\subdir\Test\TestComponent.cshtml) -|Value| -Generated Location: (1246:36,36 [5] ) -|Value| - -Source Location: (88:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) -| - string Value; -| -Generated Location: (1678:48,12 [21] ) -| - string Value; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.codegen.cs deleted file mode 100644 index d1412ef37b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.codegen.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, -1, -1, -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - 18 - -#line default -#line hidden - , -1, Microsoft.AspNetCore.Components.BindMethods.GetValue( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - Value - -#line default -#line hidden - ), -1, Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => Value = __value, Value)); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - string Value; - -#line default -#line hidden - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0, int __seq1, System.Object __arg1, int __seq2, System.Object __arg2) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Value", __arg0); - builder.AddAttribute(__seq1, "Item", __arg1); - builder.AddAttribute(__seq2, "ItemChanged", __arg2); - builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.ir.txt deleted file mode 100644 index 3ce37a7df2..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.ir.txt +++ /dev/null @@ -1,42 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [42] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentAttributeExtensionNode - (66:1,35 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Value - Value - CSharpExpression - (67:1,36 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (68:1,37 [2] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - 18 - ComponentAttributeExtensionNode - (54:1,23 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Item - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (54:1,23 [5] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Value - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (54:1,23 [5] x:\dir\subdir\Test\TestComponent.cshtml) - ItemChanged - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => Value = __value, Value) - HtmlContent - (73:1,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (73:1,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (87:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (87:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string Value;\n - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.mappings.txt deleted file mode 100644 index 23f5de23fc..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.mappings.txt +++ /dev/null @@ -1,24 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (68:1,37 [2] x:\dir\subdir\Test\TestComponent.cshtml) -|18| -Generated Location: (1115:29,37 [2] ) -|18| - -Source Location: (54:1,23 [5] x:\dir\subdir\Test\TestComponent.cshtml) -|Value| -Generated Location: (1297:35,23 [5] ) -|Value| - -Source Location: (87:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) -| - string Value; -| -Generated Location: (1564:43,12 [21] ) -| - string Value; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.codegen.cs deleted file mode 100644 index a50ae877af..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.codegen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, -1, -1, Microsoft.AspNetCore.Components.BindMethods.GetValue( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - Value - -#line default -#line hidden - ), -1, - __value => Value = __value); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - string Value; - -#line default -#line hidden - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0, int __seq1, global::System.Action __arg1) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.AddAttribute(__seq1, "ItemChanged", __arg1); - builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.ir.txt deleted file mode 100644 index 8da25b3d5e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.ir.txt +++ /dev/null @@ -1,39 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [30] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentAttributeExtensionNode - (54:1,23 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (54:1,23 [5] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Value - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (54:1,23 [5] x:\dir\subdir\Test\TestComponent.cshtml) - ItemChanged - ItemChanged - CSharpExpression - - IntermediateToken - - CSharp - __value => Value = __value - HtmlContent - (61:1,30 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (61:1,30 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (75:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (75:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string Value;\n - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.mappings.txt deleted file mode 100644 index 566c12bfe7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (54:1,23 [5] x:\dir\subdir\Test\TestComponent.cshtml) -|Value| -Generated Location: (1154:29,23 [5] ) -|Value| - -Source Location: (75:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) -| - string Value; -| -Generated Location: (1367:38,12 [21] ) -| - string Value; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.codegen.cs deleted file mode 100644 index 84bb22d4ae..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = typeof( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - string - -#line default -#line hidden - ); - __o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - "hi" - -#line default -#line hidden - ); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((context) => (builder2) => { -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = context.ToLower(); - -#line default -#line hidden - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.ir.txt deleted file mode 100644 index 5b20b6f6c4..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,37 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [90] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - - ChildContent - HtmlContent - (72:1,41 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (72:1,41 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (76:2,2 [29] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (82:2,8 [17] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (82:2,8 [17] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.ToLower() - HtmlContent - (105:2,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (105:2,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentTypeArgumentExtensionNode - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - TItem - IntermediateToken - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - string - ComponentAttributeExtensionNode - (63:1,32 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (64:1,33 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (65:1,34 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.mappings.txt deleted file mode 100644 index 62f2c6c68e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.mappings.txt +++ /dev/null @@ -1,20 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) -|string| -Generated Location: (1031:29,19 [6] ) -|string| - -Source Location: (65:1,34 [4] x:\dir\subdir\Test\TestComponent.cshtml) -|"hi"| -Generated Location: (1256:36,34 [4] ) -|"hi"| - -Source Location: (82:2,8 [17] x:\dir\subdir\Test\TestComponent.cshtml) -|context.ToLower()| -Generated Location: (1508:43,8 [17] ) -|context.ToLower()| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.codegen.cs deleted file mode 100644 index 3952832c1b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.codegen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, -1, -1, -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - "hi" - -#line default -#line hidden - , -1, (context) => (builder2) => { -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = context.ToLower(); - -#line default -#line hidden - } - ); - } - #pragma warning restore 1998 - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0, int __seq1, global::Microsoft.AspNetCore.Components.RenderFragment __arg1) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.AddAttribute(__seq1, "ChildContent", __arg1); - builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.ir.txt deleted file mode 100644 index 0c8dec9c50..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.ir.txt +++ /dev/null @@ -1,38 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [77] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentChildContent - - ChildContent - HtmlContent - (59:1,28 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (59:1,28 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (63:2,2 [29] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (69:2,8 [17] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (69:2,8 [17] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.ToLower() - HtmlContent - (92:2,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (92:2,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentAttributeExtensionNode - (50:1,19 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (51:1,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.mappings.txt deleted file mode 100644 index d966dab3c2..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.mappings.txt +++ /dev/null @@ -1,15 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (52:1,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) -|"hi"| -Generated Location: (1099:29,21 [4] ) -|"hi"| - -Source Location: (69:2,8 [17] x:\dir\subdir\Test\TestComponent.cshtml) -|context.ToLower()| -Generated Location: (1243:35,8 [17] ) -|context.ToLower()| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.codegen.cs deleted file mode 100644 index e3f7ea641a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.codegen.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = typeof( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - string - -#line default -#line hidden - ); - __o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - "hi" - -#line default -#line hidden - ); - __o = -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - 17 - -#line default -#line hidden - ; - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.ir.txt deleted file mode 100644 index 18d0da6b2b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.ir.txt +++ /dev/null @@ -1,32 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [56] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentTypeArgumentExtensionNode - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - TItem - IntermediateToken - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - string - ComponentAttributeExtensionNode - (63:1,32 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (64:1,33 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (65:1,34 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" - ComponentAttributeExtensionNode - - Other - - CSharpExpression - (79:1,48 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (81:1,50 [2] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - 17 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.mappings.txt deleted file mode 100644 index 3fe96bdbc7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.mappings.txt +++ /dev/null @@ -1,20 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) -|string| -Generated Location: (1031:29,19 [6] ) -|string| - -Source Location: (65:1,34 [4] x:\dir\subdir\Test\TestComponent.cshtml) -|"hi"| -Generated Location: (1256:36,34 [4] ) -|"hi"| - -Source Location: (81:1,50 [2] x:\dir\subdir\Test\TestComponent.cshtml) -|17| -Generated Location: (1430:43,50 [2] ) -|17| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.codegen.cs deleted file mode 100644 index 959b2015b6..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.codegen.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, -1, -1, -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - "hi" - -#line default -#line hidden - , -1, -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - 17 - -#line default -#line hidden - ); - } - #pragma warning restore 1998 - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0, int __seq1, System.Object __arg1) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.AddAttribute(__seq1, "Other", __arg1); - builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.ir.txt deleted file mode 100644 index fffdaf96ad..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.ir.txt +++ /dev/null @@ -1,33 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [43] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentAttributeExtensionNode - (50:1,19 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (51:1,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" - ComponentAttributeExtensionNode - - Other - - CSharpExpression - (66:1,35 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (68:1,37 [2] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - 17 - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.mappings.txt deleted file mode 100644 index 565d353805..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.mappings.txt +++ /dev/null @@ -1,15 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (52:1,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) -|"hi"| -Generated Location: (1099:29,21 [4] ) -|"hi"| - -Source Location: (68:1,37 [2] x:\dir\subdir\Test\TestComponent.cshtml) -|17| -Generated Location: (1244:35,37 [2] ) -|17| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.codegen.cs deleted file mode 100644 index d77ffc4e7a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.codegen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, -1, -1, -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - "hi" - -#line default -#line hidden - ); - } - #pragma warning restore 1998 - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.ir.txt deleted file mode 100644 index ffc822ec86..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.ir.txt +++ /dev/null @@ -1,30 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentAttributeExtensionNode - (50:1,19 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (51:1,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.mappings.txt deleted file mode 100644 index ae90183a66..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (52:1,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) -|"hi"| -Generated Location: (1099:29,21 [4] ) -|"hi"| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.codegen.cs deleted file mode 100644 index ee03dbe3e8..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.codegen.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, -1, -1, -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - "hi" - -#line default -#line hidden - ); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_1(builder, -1, -1, -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - "how are you?" - -#line default -#line hidden - ); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_2(builder, -1, -1, -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - "bye!" - -#line default -#line hidden - ); - } - #pragma warning restore 1998 - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.CloseComponent(); - } - public static void CreateMyComponent_1(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.CloseComponent(); - } - public static void CreateMyComponent_2(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.ir.txt deleted file mode 100644 index 4c54493797..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.ir.txt +++ /dev/null @@ -1,44 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentAttributeExtensionNode - (50:1,19 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (51:1,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" - HtmlContent - (60:1,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (60:1,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (62:2,0 [39] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentAttributeExtensionNode - (81:2,19 [17] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (82:2,20 [16] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (83:2,21 [14] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "how are you?" - HtmlContent - (101:2,39 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (101:2,39 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (103:3,0 [31] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentAttributeExtensionNode - (122:3,19 [9] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (123:3,20 [8] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (124:3,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "bye!" - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_1 - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_2 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.mappings.txt deleted file mode 100644 index cde7b926ae..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.mappings.txt +++ /dev/null @@ -1,20 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (52:1,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) -|"hi"| -Generated Location: (1099:29,21 [4] ) -|"hi"| - -Source Location: (83:2,21 [14] x:\dir\subdir\Test\TestComponent.cshtml) -|"how are you?"| -Generated Location: (1317:36,21 [14] ) -|"how are you?"| - -Source Location: (124:3,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) -|"bye!"| -Generated Location: (1545:43,21 [6] ) -|"bye!"| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.codegen.cs deleted file mode 100644 index 1ed68c5bc9..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.codegen.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = typeof( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - string - -#line default -#line hidden - ); - __o = typeof( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - int - -#line default -#line hidden - ); - __o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - "hi" - -#line default -#line hidden - ); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((context) => (builder2) => { -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = context.ToLower(); - -#line default -#line hidden - } - )); - builder.AddAttribute(-1, "AnotherChildContent", (Microsoft.AspNetCore.Components.RenderFragment.Context>)((item) => (builder2) => { -#line 5 "x:\dir\subdir\Test\TestComponent.cshtml" -__o = System.Math.Max(0, item.Item); - -#line default -#line hidden - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.ir.txt deleted file mode 100644 index 099d94fbcf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.ir.txt +++ /dev/null @@ -1,42 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [228] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - (88:2,2 [58] x:\dir\subdir\Test\TestComponent.cshtml) - ChildContent - HtmlElement - (102:2,16 [29] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (108:2,22 [17] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (108:2,22 [17] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.ToLower() - ComponentChildContent - (148:3,0 [95] x:\dir\subdir\Test\TestComponent.cshtml) - AnotherChildContent - HtmlContent - (184:3,36 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (184:3,36 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpExpression - (189:4,3 [29] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (189:4,3 [29] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - System.Math.Max(0, item.Item) - HtmlContent - (218:4,32 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (218:4,32 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - ;\n - ComponentTypeArgumentExtensionNode - (51:1,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) - TItem1 - IntermediateToken - (51:1,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - string - ComponentTypeArgumentExtensionNode - (65:1,34 [3] x:\dir\subdir\Test\TestComponent.cshtml) - TItem2 - IntermediateToken - (65:1,34 [3] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - int - ComponentAttributeExtensionNode - (75:1,44 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (76:1,45 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (77:1,46 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.mappings.txt deleted file mode 100644 index d0914a96e8..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.mappings.txt +++ /dev/null @@ -1,30 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (51:1,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) -|string| -Generated Location: (1032:29,20 [6] ) -|string| - -Source Location: (65:1,34 [3] x:\dir\subdir\Test\TestComponent.cshtml) -|int| -Generated Location: (1199:36,34 [3] ) -|int| - -Source Location: (77:1,46 [4] x:\dir\subdir\Test\TestComponent.cshtml) -|"hi"| -Generated Location: (1433:43,46 [4] ) -|"hi"| - -Source Location: (108:2,22 [17] x:\dir\subdir\Test\TestComponent.cshtml) -|context.ToLower()| -Generated Location: (1699:50,22 [17] ) -|context.ToLower()| - -Source Location: (189:4,3 [29] x:\dir\subdir\Test\TestComponent.cshtml) -|System.Math.Max(0, item.Item)| -Generated Location: (2014:58,6 [29] ) -|System.Math.Max(0, item.Item)| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.codegen.cs deleted file mode 100644 index 3933f941a7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.codegen.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, -1, -1, -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - "hi" - -#line default -#line hidden - , -1, -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - new List() - -#line default -#line hidden - , -1, (context) => (builder2) => { -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = context.ToLower(); - -#line default -#line hidden - } - , -1, (item) => (builder2) => { -#line 5 "x:\dir\subdir\Test\TestComponent.cshtml" -__o = System.Math.Max(0, item.Item); - -#line default -#line hidden - } - ); - } - #pragma warning restore 1998 - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem1 __arg0, int __seq1, global::System.Collections.Generic.List __arg1, int __seq2, global::Microsoft.AspNetCore.Components.RenderFragment __arg2, int __seq3, global::Microsoft.AspNetCore.Components.RenderFragment.Context> __arg3) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.AddAttribute(__seq1, "Items", __arg1); - builder.AddAttribute(__seq2, "ChildContent", __arg2); - builder.AddAttribute(__seq3, "AnotherChildContent", __arg3); - builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.ir.txt deleted file mode 100644 index a388f98227..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.ir.txt +++ /dev/null @@ -1,44 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [229] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentChildContent - (89:2,2 [58] x:\dir\subdir\Test\TestComponent.cshtml) - ChildContent - HtmlElement - (103:2,16 [29] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (109:2,22 [17] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (109:2,22 [17] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.ToLower() - ComponentChildContent - (149:3,0 [95] x:\dir\subdir\Test\TestComponent.cshtml) - AnotherChildContent - HtmlContent - (185:3,36 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (185:3,36 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpExpression - (190:4,3 [29] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (190:4,3 [29] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - System.Math.Max(0, item.Item) - HtmlContent - (219:4,32 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (219:4,32 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - ;\n - ComponentAttributeExtensionNode - (50:1,19 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (51:1,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" - ComponentAttributeExtensionNode - (65:1,34 [19] x:\dir\subdir\Test\TestComponent.cshtml) - Items - Items - CSharpExpression - (66:1,35 [18] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (67:1,36 [16] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - new List() - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.mappings.txt deleted file mode 100644 index 3e4078529d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.mappings.txt +++ /dev/null @@ -1,25 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (52:1,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) -|"hi"| -Generated Location: (1099:29,21 [4] ) -|"hi"| - -Source Location: (67:1,36 [16] x:\dir\subdir\Test\TestComponent.cshtml) -|new List()| -Generated Location: (1243:35,36 [16] ) -|new List()| - -Source Location: (109:2,22 [17] x:\dir\subdir\Test\TestComponent.cshtml) -|context.ToLower()| -Generated Location: (1413:41,22 [17] ) -|context.ToLower()| - -Source Location: (190:4,3 [29] x:\dir\subdir\Test\TestComponent.cshtml) -|System.Math.Max(0, item.Item)| -Generated Location: (1581:48,6 [29] ) -|System.Math.Max(0, item.Item)| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Simple/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Simple/TestComponent.codegen.cs deleted file mode 100644 index 3c8fef1074..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Simple/TestComponent.codegen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Simple/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Simple/TestComponent.ir.txt deleted file mode 100644 index 04bb07c5f8..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Simple/TestComponent.ir.txt +++ /dev/null @@ -1,24 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [15] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Simple/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Simple/TestComponent.mappings.txt deleted file mode 100644 index 3917573adf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_Simple/TestComponent.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.codegen.cs deleted file mode 100644 index 288be779ed..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = ""; - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.ir.txt deleted file mode 100644 index f32a0f1d27..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,36 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [91] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - - ChildContent - HtmlContent - (57:1,26 [9] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (57:1,26 [9] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Some text - HtmlElement - (66:1,35 [42] x:\dir\subdir\Test\TestComponent.cshtml) - some-child - HtmlAttribute - - - - HtmlAttributeValue - - - IntermediateToken - - Html - 1 - HtmlContent - (84:1,53 [11] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (84:1,53 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Nested text - ComponentAttributeExtensionNode - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - MyAttr - MyAttr - HtmlContent - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - abc diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.mappings.txt deleted file mode 100644 index 3917573adf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.codegen.cs deleted file mode 100644 index 3c8fef1074..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.ir.txt deleted file mode 100644 index f08cf8b747..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,28 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [47] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - - ChildContent - HtmlElement - (44:1,13 [20] x:\dir\subdir\Test\TestComponent.cshtml) - child - HtmlContent - (51:1,20 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (51:1,20 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - hello diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.mappings.txt deleted file mode 100644 index 3917573adf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.codegen.cs deleted file mode 100644 index 3c8fef1074..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.ir.txt deleted file mode 100644 index 48021f51a0..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,27 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [61] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - (44:1,13 [34] x:\dir\subdir\Test\TestComponent.cshtml) - ChildContent - HtmlContent - (58:1,27 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (58:1,27 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - hello diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.mappings.txt deleted file mode 100644 index 3917573adf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.codegen.cs deleted file mode 100644 index 61d34f7812..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.codegen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = new System.Action( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - Increment - -#line default -#line hidden - ); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - - private int counter; - private void Increment(UIEventArgs e) { - counter++; - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.ir.txt deleted file mode 100644 index ae39bbd033..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.ir.txt +++ /dev/null @@ -1,31 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [35] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (53:1,22 [10] x:\dir\subdir\Test\TestComponent.cshtml) - OnClick - OnClick - CSharpExpression - (54:1,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (54:1,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Increment - HtmlContent - (66:1,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (66:1,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - CSharpCode - (82:3,12 [100] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (82:3,12 [100] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private int counter;\n private void Increment(UIEventArgs e) {\n counter++;\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.mappings.txt deleted file mode 100644 index c6405d7c54..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.mappings.txt +++ /dev/null @@ -1,25 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (54:1,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) -|Increment| -Generated Location: (1091:29,23 [9] ) -|Increment| - -Source Location: (82:3,12 [100] x:\dir\subdir\Test\TestComponent.cshtml) -| - private int counter; - private void Increment(UIEventArgs e) { - counter++; - } -| -Generated Location: (1412:40,12 [100] ) -| - private int counter; - private void Increment(UIEventArgs e) { - counter++; - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.codegen.cs deleted file mode 100644 index a2c066546a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((context) => (builder2) => { -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = context; - -#line default -#line hidden - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.ir.txt deleted file mode 100644 index 26e2f26f43..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,27 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [64] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - (44:1,13 [37] x:\dir\subdir\Test\TestComponent.cshtml) - ChildContent - CSharpExpression - (59:1,28 [7] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (59:1,28 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.mappings.txt deleted file mode 100644 index ca548bcd18..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (59:1,28 [7] x:\dir\subdir\Test\TestComponent.cshtml) -|context| -Generated Location: (1160:29,28 [7] ) -|context| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.codegen.cs deleted file mode 100644 index ef63483411..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.codegen.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - 42.ToString() - -#line default -#line hidden - ); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.ir.txt deleted file mode 100644 index a1f995fc26..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.ir.txt +++ /dev/null @@ -1,27 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [49] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (60:1,29 [16] x:\dir\subdir\Test\TestComponent.cshtml) - StringProperty - StringProperty - CSharpExpression - (62:1,31 [13] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (62:1,31 [13] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - 42.ToString() diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.mappings.txt deleted file mode 100644 index 81e7979f41..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (62:1,31 [13] x:\dir\subdir\Test\TestComponent.cshtml) -|42.ToString()| -Generated Location: (1108:29,31 [13] ) -|42.ToString()| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.codegen.cs deleted file mode 100644 index 5b51e73b4e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = ""; - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((context) => (builder2) => { -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = context.ToLowerInvariant(); - -#line default -#line hidden - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.ir.txt deleted file mode 100644 index 5ac1905184..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,36 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [107] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - - ChildContent - HtmlContent - (57:1,26 [9] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (57:1,26 [9] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Some text - HtmlElement - (66:1,35 [58] x:\dir\subdir\Test\TestComponent.cshtml) - some-child - HtmlAttribute - - - - HtmlAttributeValue - - - IntermediateToken - - Html - 1 - CSharpExpression - (85:1,54 [26] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (85:1,54 [26] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.ToLowerInvariant() - ComponentAttributeExtensionNode - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - MyAttr - MyAttr - HtmlContent - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - abc diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.mappings.txt deleted file mode 100644 index 81a696b3b9..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (85:1,54 [26] x:\dir\subdir\Test\TestComponent.cshtml) -|context.ToLowerInvariant()| -Generated Location: (1209:30,54 [26] ) -|context.ToLowerInvariant()| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.codegen.cs deleted file mode 100644 index b7253041bf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.codegen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = ""; - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((item) => (builder2) => { -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = item.ToLowerInvariant(); - -#line default -#line hidden - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.ir.txt deleted file mode 100644 index af1d17208c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.ir.txt +++ /dev/null @@ -1,38 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [164] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - (61:2,2 [118] x:\dir\subdir\Test\TestComponent.cshtml) - ChildContent - HtmlContent - (90:2,31 [15] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (90:2,31 [15] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n Some text - HtmlElement - (105:3,13 [55] x:\dir\subdir\Test\TestComponent.cshtml) - some-child - HtmlAttribute - - - - HtmlAttributeValue - - - IntermediateToken - - Html - 1 - CSharpExpression - (124:3,32 [23] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (124:3,32 [23] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - item.ToLowerInvariant() - HtmlContent - (160:3,68 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (160:3,68 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentAttributeExtensionNode - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - MyAttr - MyAttr - HtmlContent - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - abc diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.mappings.txt deleted file mode 100644 index 5031c58513..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (124:3,32 [23] x:\dir\subdir\Test\TestComponent.cshtml) -|item.ToLowerInvariant()| -Generated Location: (1184:30,32 [23] ) -|item.ToLowerInvariant()| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.codegen.cs deleted file mode 100644 index b7253041bf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.codegen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = ""; - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((item) => (builder2) => { -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = item.ToLowerInvariant(); - -#line default -#line hidden - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.ir.txt deleted file mode 100644 index abe035020b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.ir.txt +++ /dev/null @@ -1,38 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [164] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - (76:2,2 [103] x:\dir\subdir\Test\TestComponent.cshtml) - ChildContent - HtmlContent - (90:2,16 [15] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (90:2,16 [15] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n Some text - HtmlElement - (105:3,13 [55] x:\dir\subdir\Test\TestComponent.cshtml) - some-child - HtmlAttribute - - - - HtmlAttributeValue - - - IntermediateToken - - Html - 1 - CSharpExpression - (124:3,32 [23] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (124:3,32 [23] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - item.ToLowerInvariant() - HtmlContent - (160:3,68 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (160:3,68 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentAttributeExtensionNode - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - MyAttr - MyAttr - HtmlContent - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - abc diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.mappings.txt deleted file mode 100644 index 5031c58513..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (124:3,32 [23] x:\dir\subdir\Test\TestComponent.cshtml) -|item.ToLowerInvariant()| -Generated Location: (1184:30,32 [23] ) -|item.ToLowerInvariant()| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.codegen.cs deleted file mode 100644 index e40582d4ef..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.codegen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = new System.Action( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - e => { Increment(); } - -#line default -#line hidden - ); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - - private int counter; - private void Increment() { - counter++; - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.ir.txt deleted file mode 100644 index 4bc5d5e640..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.ir.txt +++ /dev/null @@ -1,31 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [49] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (53:1,22 [24] x:\dir\subdir\Test\TestComponent.cshtml) - OnClick - OnClick - CSharpExpression - (54:1,23 [23] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (55:1,24 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - e => { Increment(); } - HtmlContent - (80:1,49 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (80:1,49 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - CSharpCode - (96:3,12 [87] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (96:3,12 [87] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private int counter;\n private void Increment() {\n counter++;\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.mappings.txt deleted file mode 100644 index 52bd507773..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.mappings.txt +++ /dev/null @@ -1,25 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (55:1,24 [21] x:\dir\subdir\Test\TestComponent.cshtml) -|e => { Increment(); }| -Generated Location: (1092:29,24 [21] ) -|e => { Increment(); }| - -Source Location: (96:3,12 [87] x:\dir\subdir\Test\TestComponent.cshtml) -| - private int counter; - private void Increment() { - counter++; - } -| -Generated Location: (1425:40,12 [87] ) -| - private int counter; - private void Increment() { - counter++; - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.codegen.cs deleted file mode 100644 index eb6a81956e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = ""; - __o = -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - 43.ToString() - -#line default -#line hidden - ; - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.ir.txt deleted file mode 100644 index 7a7abec512..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,30 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [72] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - - some-attribute - - HtmlContent - (60:1,29 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (60:1,29 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - foo - ComponentAttributeExtensionNode - - another-attribute - - CSharpExpression - (84:1,53 [16] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (86:1,55 [13] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - 43.ToString() diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.mappings.txt deleted file mode 100644 index e441ce9d71..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (86:1,55 [13] x:\dir\subdir\Test\TestComponent.cshtml) -|43.ToString()| -Generated Location: (1083:30,55 [13] ) -|43.ToString()| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.codegen.cs deleted file mode 100644 index 264122c83e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.codegen.cs +++ /dev/null @@ -1,45 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - [Microsoft.AspNetCore.Components.RouteAttribute("/MyPage")] - [Microsoft.AspNetCore.Components.RouteAttribute("/AnotherRoute/{id}")] - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - ((System.Action)(() => { -global::System.Object __typeHelper = "/MyPage"; - } - ))(); - ((System.Action)(() => { -global::System.Object __typeHelper = "/AnotherRoute/{id}"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.ir.txt deleted file mode 100644 index bfbbf79448..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.ir.txt +++ /dev/null @@ -1,28 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - RouteAttributeExtensionNode - - /MyPage - RouteAttributeExtensionNode - - /AnotherRoute/{id} - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - DirectiveToken - (37:1,6 [9] x:\dir\subdir\Test\TestComponent.cshtml) - "/MyPage" - DirectiveToken - (54:2,6 [20] x:\dir\subdir\Test\TestComponent.cshtml) - "/AnotherRoute/{id}" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (76:3,0 [15] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.mappings.txt deleted file mode 100644 index 201fe3fccc..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.mappings.txt +++ /dev/null @@ -1,15 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (644:17,38 [15] ) -|*, TestAssembly| - -Source Location: (37:1,6 [9] x:\dir\subdir\Test\TestComponent.cshtml) -|"/MyPage"| -Generated Location: (760:21,37 [9] ) -|"/MyPage"| - -Source Location: (54:2,6 [20] x:\dir\subdir\Test\TestComponent.cshtml) -|"/AnotherRoute/{id}"| -Generated Location: (869:25,37 [20] ) -|"/AnotherRoute/{id}"| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.codegen.cs deleted file mode 100644 index 14f9c64fda..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.codegen.cs +++ /dev/null @@ -1,57 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck( -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - 123 - -#line default -#line hidden - ); - __o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck( -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - true - -#line default -#line hidden - ); - __o = ""; - __o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck( -#line 6 "x:\dir\subdir\Test\TestComponent.cshtml" - new SomeType() - -#line default -#line hidden - ); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.ir.txt deleted file mode 100644 index 75f100aadc..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.ir.txt +++ /dev/null @@ -1,33 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [132] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (63:2,17 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntProperty - IntProperty - IntermediateToken - (63:2,17 [3] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - 123 - ComponentAttributeExtensionNode - (87:3,18 [4] x:\dir\subdir\Test\TestComponent.cshtml) - BoolProperty - BoolProperty - IntermediateToken - (87:3,18 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - true - ComponentAttributeExtensionNode - (114:4,20 [9] x:\dir\subdir\Test\TestComponent.cshtml) - StringProperty - StringProperty - HtmlContent - (114:4,20 [9] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (114:4,20 [9] x:\dir\subdir\Test\TestComponent.cshtml) - Html - My string - ComponentAttributeExtensionNode - (146:5,20 [14] x:\dir\subdir\Test\TestComponent.cshtml) - ObjectProperty - ObjectProperty - IntermediateToken - (146:5,20 [14] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - new SomeType() diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.mappings.txt deleted file mode 100644 index c8b0c01001..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.mappings.txt +++ /dev/null @@ -1,20 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (63:2,17 [3] x:\dir\subdir\Test\TestComponent.cshtml) -|123| -Generated Location: (1093:29,17 [3] ) -|123| - -Source Location: (87:3,18 [4] x:\dir\subdir\Test\TestComponent.cshtml) -|true| -Generated Location: (1307:36,18 [4] ) -|true| - -Source Location: (146:5,20 [14] x:\dir\subdir\Test\TestComponent.cshtml) -|new SomeType()| -Generated Location: (1546:44,20 [14] ) -|new SomeType()| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.codegen.cs deleted file mode 100644 index d6a9b8149c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.codegen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - OnClick - -#line default -#line hidden - ); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - - private Action OnClick { get; set; } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.ir.txt deleted file mode 100644 index c745f2e320..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.ir.txt +++ /dev/null @@ -1,33 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [37] x:\dir\subdir\Test\TestComponent.cshtml) - DynamicElement - Test.DynamicElement - ComponentAttributeExtensionNode - (56:1,25 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick - onclick - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (57:1,26 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick - IntermediateToken - - CSharp - ) - HtmlContent - (68:1,37 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (68:1,37 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - CSharpCode - (84:3,12 [62] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (84:3,12 [62] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private Action OnClick { get; set; }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.mappings.txt deleted file mode 100644 index 4902958cc5..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (57:1,26 [7] x:\dir\subdir\Test\TestComponent.cshtml) -|OnClick| -Generated Location: (1146:29,26 [7] ) -|OnClick| - -Source Location: (84:3,12 [62] x:\dir\subdir\Test\TestComponent.cshtml) -| - private Action OnClick { get; set; } -| -Generated Location: (1465:40,12 [62] ) -| - private Action OnClick { get; set; } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.codegen.cs deleted file mode 100644 index 2aa30acccf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.codegen.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - "very-cool" - -#line default -#line hidden - ); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.ir.txt deleted file mode 100644 index 0068449567..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.ir.txt +++ /dev/null @@ -1,29 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [43] x:\dir\subdir\Test\TestComponent.cshtml) - CoolnessMeter - Test.CoolnessMeter - ComponentAttributeExtensionNode - (56:1,25 [14] x:\dir\subdir\Test\TestComponent.cshtml) - Coolness - Coolness - CSharpExpression - (57:1,26 [13] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (58:1,27 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "very-cool" - HtmlContent - (74:1,43 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (74:1,43 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.mappings.txt deleted file mode 100644 index 2e5b895428..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (58:1,27 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|"very-cool"| -Generated Location: (1103:29,27 [11] ) -|"very-cool"| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.codegen.cs deleted file mode 100644 index b7cb3a157a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.codegen.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" -using Microsoft.AspNetCore.Components; - -#line default -#line hidden - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object TItem1 = null; - } - ))(); - ((System.Action)(() => { -global::System.Object TItem2 = null; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 6 "x:\dir\subdir\Test\TestComponent.cshtml" - foreach (var item2 in Items2) -{ - - -#line default -#line hidden -#line 9 "x:\dir\subdir\Test\TestComponent.cshtml" -__o = ChildContent(item2); - -#line default -#line hidden -#line 10 "x:\dir\subdir\Test\TestComponent.cshtml" - -} - -#line default -#line hidden - } - #pragma warning restore 1998 -#line 12 "x:\dir\subdir\Test\TestComponent.cshtml" - - [Parameter] TItem1 Item1 { get; set; } - [Parameter] List Items2 { get; set; } - [Parameter] RenderFragment ChildContent { get; set; } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.ir.txt deleted file mode 100644 index e7daa631fa..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.ir.txt +++ /dev/null @@ -1,46 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (1:0,1 [38] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (52:1,11 [6] x:\dir\subdir\Test\TestComponent.cshtml) - TItem1 - DirectiveToken - (71:2,11 [6] x:\dir\subdir\Test\TestComponent.cshtml) - TItem2 - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (39:0,39 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (39:0,39 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlContent - (79:3,0 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (79:3,0 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (81:4,0 [14] x:\dir\subdir\Test\TestComponent.cshtml) - h1 - HtmlContent - (85:4,4 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (85:4,4 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Item1 - HtmlContent - (95:4,14 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (95:4,14 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (98:5,1 [38] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (98:5,1 [38] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - foreach (var item2 in Items2)\n{\n - HtmlElement - (136:7,4 [40] x:\dir\subdir\Test\TestComponent.cshtml) - p - HtmlContent - (139:7,7 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (139:7,7 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpExpression - (146:8,5 [19] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (146:8,5 [19] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ChildContent(item2) - HtmlContent - (165:8,24 [7] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (165:8,24 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Html - ;\n - CSharpCode - (176:9,8 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (176:9,8 [3] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n} - HtmlContent - (179:10,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (179:10,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (193:11,12 [164] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (193:11,12 [164] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n [Parameter] TItem1 Item1 { get; set; }\n [Parameter] List Items2 { get; set; }\n [Parameter] RenderFragment ChildContent { get; set; }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.mappings.txt deleted file mode 100644 index d2ba18a0b0..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.mappings.txt +++ /dev/null @@ -1,49 +0,0 @@ -Source Location: (1:0,1 [38] x:\dir\subdir\Test\TestComponent.cshtml) -|using Microsoft.AspNetCore.Components;| -Generated Location: (257:10,0 [38] ) -|using Microsoft.AspNetCore.Components;| - -Source Location: (52:1,11 [6] x:\dir\subdir\Test\TestComponent.cshtml) -|TItem1| -Generated Location: (581:19,22 [6] ) -|TItem1| - -Source Location: (71:2,11 [6] x:\dir\subdir\Test\TestComponent.cshtml) -|TItem2| -Generated Location: (679:23,22 [6] ) -|TItem2| - -Source Location: (98:5,1 [38] x:\dir\subdir\Test\TestComponent.cshtml) -|foreach (var item2 in Items2) -{ - | -Generated Location: (1159:36,1 [38] ) -|foreach (var item2 in Items2) -{ - | - -Source Location: (146:8,5 [19] x:\dir\subdir\Test\TestComponent.cshtml) -|ChildContent(item2)| -Generated Location: (1287:43,6 [19] ) -|ChildContent(item2)| - -Source Location: (176:9,8 [3] x:\dir\subdir\Test\TestComponent.cshtml) -| -}| -Generated Location: (1400:48,8 [3] ) -| -}| - -Source Location: (193:11,12 [164] x:\dir\subdir\Test\TestComponent.cshtml) -| - [Parameter] TItem1 Item1 { get; set; } - [Parameter] List Items2 { get; set; } - [Parameter] RenderFragment ChildContent { get; set; } -| -Generated Location: (1549:56,12 [164] ) -| - [Parameter] TItem1 Item1 { get; set; } - [Parameter] List Items2 { get; set; } - [Parameter] RenderFragment ChildContent { get; set; } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithDocType/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithDocType/TestComponent.codegen.cs deleted file mode 100644 index 919a59d52a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithDocType/TestComponent.codegen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithDocType/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithDocType/TestComponent.ir.txt deleted file mode 100644 index bd6aceb134..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithDocType/TestComponent.ir.txt +++ /dev/null @@ -1,25 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (15:0,15 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (15:0,15 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (17:1,0 [13] x:\dir\subdir\Test\TestComponent.cshtml) - div - HtmlContent - (22:1,5 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (22:1,5 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef/TestComponent.codegen.cs deleted file mode 100644 index 633fcbe59d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef/TestComponent.codegen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = ""; - __o = ""; - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - myInstance = default(Test.MyComponent); - -#line default -#line hidden - } - #pragma warning restore 1998 -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - - private Test.MyComponent myInstance; - public void Foo() { System.GC.KeepAlive(myInstance); } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef/TestComponent.ir.txt deleted file mode 100644 index 938a29719d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef/TestComponent.ir.txt +++ /dev/null @@ -1,37 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [72] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - - ParamBefore - - HtmlContent - (57:1,26 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (57:1,26 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - before - RefExtensionNode - (70:1,39 [10] x:\dir\subdir\Test\TestComponent.cshtml) - myInstance - Test.MyComponent - ComponentAttributeExtensionNode - - ParamAfter - - HtmlContent - (94:1,63 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (94:1,63 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - after - HtmlContent - (103:1,72 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (103:1,72 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - HtmlContent - (224:6,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (224:6,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (119:3,12 [104] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (119:3,12 [104] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private Test.MyComponent myInstance;\n public void Foo() { System.GC.KeepAlive(myInstance); }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef/TestComponent.mappings.txt deleted file mode 100644 index 8a41bd417e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef/TestComponent.mappings.txt +++ /dev/null @@ -1,21 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (70:1,39 [10] x:\dir\subdir\Test\TestComponent.cshtml) -|myInstance| -Generated Location: (1221:33,39 [10] ) -|myInstance| - -Source Location: (119:3,12 [104] x:\dir\subdir\Test\TestComponent.cshtml) -| - private Test.MyComponent myInstance; - public void Foo() { System.GC.KeepAlive(myInstance); } -| -Generated Location: (1405:40,12 [104] ) -| - private Test.MyComponent myInstance; - public void Foo() { System.GC.KeepAlive(myInstance); } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.codegen.cs deleted file mode 100644 index 4622f728a7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = ""; - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - myInstance = default(Test.MyComponent); - -#line default -#line hidden - } - #pragma warning restore 1998 -#line 6 "x:\dir\subdir\Test\TestComponent.cshtml" - - private Test.MyComponent myInstance; - public void Foo() { System.GC.KeepAlive(myInstance); } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.ir.txt deleted file mode 100644 index 7817dcfea3..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,42 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [96] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - - ChildContent - HtmlContent - (76:1,45 [11] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (76:1,45 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n Some - HtmlElement - (87:2,9 [16] x:\dir\subdir\Test\TestComponent.cshtml) - el - HtmlContent - (91:2,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (91:2,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Html - further - HtmlContent - (103:2,25 [10] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (103:2,25 [10] x:\dir\subdir\Test\TestComponent.cshtml) - Html - content\n - RefExtensionNode - (49:1,18 [10] x:\dir\subdir\Test\TestComponent.cshtml) - myInstance - Test.MyComponent - ComponentAttributeExtensionNode - - SomeProp - - HtmlContent - (71:1,40 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (71:1,40 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - val - HtmlContent - (127:3,14 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (127:3,14 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - HtmlContent - (248:8,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (248:8,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (143:5,12 [104] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (143:5,12 [104] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private Test.MyComponent myInstance;\n public void Foo() { System.GC.KeepAlive(myInstance); }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.mappings.txt deleted file mode 100644 index 3d1c3b4c7b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.mappings.txt +++ /dev/null @@ -1,21 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (49:1,18 [10] x:\dir\subdir\Test\TestComponent.cshtml) -|myInstance| -Generated Location: (1177:32,18 [10] ) -|myInstance| - -Source Location: (143:5,12 [104] x:\dir\subdir\Test\TestComponent.cshtml) -| - private Test.MyComponent myInstance; - public void Foo() { System.GC.KeepAlive(myInstance); } -| -Generated Location: (1361:39,12 [104] ) -| - private Test.MyComponent myInstance; - public void Foo() { System.GC.KeepAlive(myInstance); } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Element_WithRef/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Element_WithRef/TestComponent.codegen.cs deleted file mode 100644 index 652f524371..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Element_WithRef/TestComponent.codegen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - myElem = default(Microsoft.AspNetCore.Components.ElementRef); - -#line default -#line hidden - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - private Microsoft.AspNetCore.Components.ElementRef myElem; - public void Foo() { System.GC.KeepAlive(myElem); } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Element_WithRef/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Element_WithRef/TestComponent.ir.txt deleted file mode 100644 index a073fd2d4a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Element_WithRef/TestComponent.ir.txt +++ /dev/null @@ -1,36 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [79] x:\dir\subdir\Test\TestComponent.cshtml) - elem - HtmlContent - (67:0,67 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (67:0,67 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Hello - HtmlAttribute - - attributebefore=" - " - HtmlAttributeValue - (23:0,23 [6] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (23:0,23 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - before - RefExtensionNode - (36:0,36 [6] x:\dir\subdir\Test\TestComponent.cshtml) - myElem - Element - HtmlAttribute - - attributeafter=" - " - HtmlAttributeValue - (60:0,60 [5] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (60:0,60 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - after - HtmlContent - (79:0,79 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (79:0,79 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - HtmlContent - (218:5,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (218:5,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (95:2,12 [122] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (95:2,12 [122] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private Microsoft.AspNetCore.Components.ElementRef myElem;\n public void Foo() { System.GC.KeepAlive(myElem); }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Element_WithRef/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Element_WithRef/TestComponent.mappings.txt deleted file mode 100644 index 595c999d6f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Element_WithRef/TestComponent.mappings.txt +++ /dev/null @@ -1,16 +0,0 @@ -Source Location: (36:0,36 [6] x:\dir\subdir\Test\TestComponent.cshtml) -|myElem| -Generated Location: (904:24,36 [6] ) -|myElem| - -Source Location: (95:2,12 [122] x:\dir\subdir\Test\TestComponent.cshtml) -| - private Microsoft.AspNetCore.Components.ElementRef myElem; - public void Foo() { System.GC.KeepAlive(myElem); } -| -Generated Location: (1110:31,12 [122] ) -| - private Microsoft.AspNetCore.Components.ElementRef myElem; - public void Foo() { System.GC.KeepAlive(myElem); } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.codegen.cs deleted file mode 100644 index b4a0c15da5..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.codegen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue("alert(\"Test\");"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.ir.txt deleted file mode 100644 index adc6fd4a10..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.ir.txt +++ /dev/null @@ -1,28 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [34] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [14] x:\dir\subdir\Test\TestComponent.cshtml) - onfocus=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - - CSharp - "alert(\"Test\");" - IntermediateToken - - CSharp - ) - HtmlContent - (34:0,34 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (34:0,34 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.codegen.cs deleted file mode 100644 index 1232e09d7a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.codegen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(OnClick); - } - #pragma warning restore 1998 -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - void OnClick(UIEventArgs e) { - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.ir.txt deleted file mode 100644 index 694f284ee0..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.ir.txt +++ /dev/null @@ -1,30 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick - IntermediateToken - - CSharp - ) - HtmlContent - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (42:1,12 [44] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (42:1,12 [44] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(UIEventArgs e) {\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.mappings.txt deleted file mode 100644 index 965fd7554a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.mappings.txt +++ /dev/null @@ -1,16 +0,0 @@ -Source Location: (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) -|OnClick| -Generated Location: (950:23,133 [7] ) -|OnClick| - -Source Location: (42:1,12 [44] x:\dir\subdir\Test\TestComponent.cshtml) -| - void OnClick(UIEventArgs e) { - } -| -Generated Location: (1073:27,12 [44] ) -| - void OnClick(UIEventArgs e) { - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.codegen.cs deleted file mode 100644 index 6dc4a0750a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.codegen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(OnClick); - } - #pragma warning restore 1998 -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - void OnClick(UIMouseEventArgs e) { - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.ir.txt deleted file mode 100644 index a29f78db65..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.ir.txt +++ /dev/null @@ -1,30 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick - IntermediateToken - - CSharp - ) - HtmlContent - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (42:1,12 [49] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (42:1,12 [49] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(UIMouseEventArgs e) {\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.mappings.txt deleted file mode 100644 index 0a370a2d5f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.mappings.txt +++ /dev/null @@ -1,16 +0,0 @@ -Source Location: (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) -|OnClick| -Generated Location: (950:23,133 [7] ) -|OnClick| - -Source Location: (42:1,12 [49] x:\dir\subdir\Test\TestComponent.cshtml) -| - void OnClick(UIMouseEventArgs e) { - } -| -Generated Location: (1073:27,12 [49] ) -| - void OnClick(UIMouseEventArgs e) { - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.codegen.cs deleted file mode 100644 index c49c3e267f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.codegen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(x => { }); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.ir.txt deleted file mode 100644 index 43fa8cb757..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.ir.txt +++ /dev/null @@ -1,26 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [31] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [11] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (18:0,18 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - x => { } - IntermediateToken - - CSharp - ) diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.mappings.txt deleted file mode 100644 index 610f3730a8..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (18:0,18 [8] x:\dir\subdir\Test\TestComponent.cshtml) -|x => { }| -Generated Location: (950:23,133 [8] ) -|x => { }| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.codegen.cs deleted file mode 100644 index 6dc4a0750a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.codegen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(OnClick); - } - #pragma warning restore 1998 -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - void OnClick(UIMouseEventArgs e) { - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.ir.txt deleted file mode 100644 index a29f78db65..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.ir.txt +++ /dev/null @@ -1,30 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick - IntermediateToken - - CSharp - ) - HtmlContent - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (42:1,12 [49] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (42:1,12 [49] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(UIMouseEventArgs e) {\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.mappings.txt deleted file mode 100644 index 0a370a2d5f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.mappings.txt +++ /dev/null @@ -1,16 +0,0 @@ -Source Location: (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) -|OnClick| -Generated Location: (950:23,133 [7] ) -|OnClick| - -Source Location: (42:1,12 [49] x:\dir\subdir\Test\TestComponent.cshtml) -| - void OnClick(UIMouseEventArgs e) { - } -| -Generated Location: (1073:27,12 [49] ) -| - void OnClick(UIMouseEventArgs e) { - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.codegen.cs deleted file mode 100644 index c49c3e267f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.codegen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(x => { }); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.ir.txt deleted file mode 100644 index 43fa8cb757..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.ir.txt +++ /dev/null @@ -1,26 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [31] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [11] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (18:0,18 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - x => { } - IntermediateToken - - CSharp - ) diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.mappings.txt deleted file mode 100644 index 610f3730a8..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (18:0,18 [8] x:\dir\subdir\Test\TestComponent.cshtml) -|x => { }| -Generated Location: (950:23,133 [8] ) -|x => { }| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.codegen.cs deleted file mode 100644 index b339a6b857..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.codegen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(OnClick); - } - #pragma warning restore 1998 -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - void OnClick() { - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.ir.txt deleted file mode 100644 index ce1ec8f759..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.ir.txt +++ /dev/null @@ -1,30 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick - IntermediateToken - - CSharp - ) - HtmlContent - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (42:1,12 [31] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (42:1,12 [31] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick() {\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.mappings.txt deleted file mode 100644 index f95192d92e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.mappings.txt +++ /dev/null @@ -1,16 +0,0 @@ -Source Location: (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) -|OnClick| -Generated Location: (950:23,133 [7] ) -|OnClick| - -Source Location: (42:1,12 [31] x:\dir\subdir\Test\TestComponent.cshtml) -| - void OnClick() { - } -| -Generated Location: (1073:27,12 [31] ) -| - void OnClick() { - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.codegen.cs deleted file mode 100644 index 2479d0a29a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.codegen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(() => { }); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.ir.txt deleted file mode 100644 index 95e52fa87f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.ir.txt +++ /dev/null @@ -1,26 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [32] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (18:0,18 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => { } - IntermediateToken - - CSharp - ) diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.mappings.txt deleted file mode 100644 index 5d5d60fe4c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (18:0,18 [9] x:\dir\subdir\Test\TestComponent.cshtml) -|() => { }| -Generated Location: (950:23,133 [9] ) -|() => { }| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.codegen.cs deleted file mode 100644 index 87a6b631f7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.codegen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue("foo"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.ir.txt deleted file mode 100644 index 4cd6780e07..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.ir.txt +++ /dev/null @@ -1,26 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [23] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [3] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - - CSharp - "foo" - IntermediateToken - - CSharp - ) diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.codegen.cs deleted file mode 100644 index b545b34713..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.codegen.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = typeof( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - int - -#line default -#line hidden - ); - __o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - 3 - -#line default -#line hidden - ); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - _my = default(Test.MyComponent); - -#line default -#line hidden - } - #pragma warning restore 1998 -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - - private MyComponent _my; - public void Foo() { System.GC.KeepAlive(_my); } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.ir.txt deleted file mode 100644 index af3f05c9cb..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.ir.txt +++ /dev/null @@ -1,35 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [44] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentTypeArgumentExtensionNode - (50:1,19 [3] x:\dir\subdir\Test\TestComponent.cshtml) - TItem - IntermediateToken - (50:1,19 [3] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - int - ComponentAttributeExtensionNode - (60:1,29 [1] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - IntermediateToken - (60:1,29 [1] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - 3 - RefExtensionNode - (68:1,37 [3] x:\dir\subdir\Test\TestComponent.cshtml) - _my - Test.MyComponent - HtmlContent - (75:1,44 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (75:1,44 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - HtmlContent - (182:6,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (182:6,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (91:3,12 [90] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (91:3,12 [90] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private MyComponent _my;\n public void Foo() { System.GC.KeepAlive(_my); }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.mappings.txt deleted file mode 100644 index 0a61d8b69b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.mappings.txt +++ /dev/null @@ -1,31 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (50:1,19 [3] x:\dir\subdir\Test\TestComponent.cshtml) -|int| -Generated Location: (1031:29,19 [3] ) -|int| - -Source Location: (60:1,29 [1] x:\dir\subdir\Test\TestComponent.cshtml) -|3| -Generated Location: (1245:36,29 [1] ) -|3| - -Source Location: (68:1,37 [3] x:\dir\subdir\Test\TestComponent.cshtml) -|_my| -Generated Location: (1534:45,37 [3] ) -|_my| - -Source Location: (91:3,12 [90] x:\dir\subdir\Test\TestComponent.cshtml) -| - private MyComponent _my; - public void Foo() { System.GC.KeepAlive(_my); } -| -Generated Location: (1716:52,12 [90] ) -| - private MyComponent _my; - public void Foo() { System.GC.KeepAlive(_my); } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.codegen.cs deleted file mode 100644 index eba8acca98..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.codegen.cs +++ /dev/null @@ -1,67 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, -1, -1, -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - 3 - -#line default -#line hidden - , -1, (__value) => { -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - _my = __value; - -#line default -#line hidden - } - ); - } - #pragma warning restore 1998 -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - - private MyComponent _my; - public void Foo() { System.GC.KeepAlive(_my); } - -#line default -#line hidden - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0, int __seq1, global::System.Action> __arg1) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.AddComponentReferenceCapture(__seq1, (__value) => { __arg1((global::Test.MyComponent)__value); }); - builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.ir.txt deleted file mode 100644 index 6cd775d303..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.ir.txt +++ /dev/null @@ -1,36 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [34] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentAttributeExtensionNode - (50:1,19 [1] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - IntermediateToken - (50:1,19 [1] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - 3 - RefExtensionNode - (58:1,27 [3] x:\dir\subdir\Test\TestComponent.cshtml) - _my - global::Test.MyComponent - HtmlContent - (65:1,34 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (65:1,34 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - HtmlContent - (172:6,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (172:6,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (81:3,12 [90] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (81:3,12 [90] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private MyComponent _my;\n public void Foo() { System.GC.KeepAlive(_my); }\n - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.mappings.txt deleted file mode 100644 index 870211d4c5..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.mappings.txt +++ /dev/null @@ -1,26 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (50:1,19 [1] x:\dir\subdir\Test\TestComponent.cshtml) -|3| -Generated Location: (1097:29,19 [1] ) -|3| - -Source Location: (58:1,27 [3] x:\dir\subdir\Test\TestComponent.cshtml) -|_my| -Generated Location: (1243:35,27 [3] ) -|_my| - -Source Location: (81:3,12 [90] x:\dir\subdir\Test\TestComponent.cshtml) -| - private MyComponent _my; - public void Foo() { System.GC.KeepAlive(_my); } -| -Generated Location: (1433:44,12 [90] ) -| - private MyComponent _my; - public void Foo() { System.GC.KeepAlive(_my); } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.codegen.cs deleted file mode 100644 index 06575bce03..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.codegen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" -__o = "My value"; - -#line default -#line hidden - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.ir.txt deleted file mode 100644 index 1e3e6ce893..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.ir.txt +++ /dev/null @@ -1,27 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpExpression - (2:0,2 [10] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (2:0,2 [10] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "My value" - HtmlContent - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - HtmlElement - (17:2,0 [14] x:\dir\subdir\Test\TestComponent.cshtml) - h1 - HtmlContent - (21:2,4 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (21:2,4 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Hello diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.mappings.txt deleted file mode 100644 index e4acf4e91b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (2:0,2 [10] x:\dir\subdir\Test\TestComponent.cshtml) -|"My value"| -Generated Location: (874:24,6 [10] ) -|"My value"| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.codegen.cs deleted file mode 100644 index 3c8fef1074..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.codegen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.ir.txt deleted file mode 100644 index b063139009..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.ir.txt +++ /dev/null @@ -1,29 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [7] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n \n - ComponentExtensionNode - (36:2,0 [22] x:\dir\subdir\Test\TestComponent.cshtml) - SomeOtherComponent - Test.SomeOtherComponent - HtmlContent - (58:2,22 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (58:2,22 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - HtmlElement - (62:4,0 [14] x:\dir\subdir\Test\TestComponent.cshtml) - h1 - HtmlContent - (66:4,4 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (66:4,4 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Hello diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.mappings.txt deleted file mode 100644 index 3917573adf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.codegen.cs deleted file mode 100644 index d23ff3765d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.codegen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" -using System; - -#line default -#line hidden - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.ir.txt deleted file mode 100644 index c2f340ba5b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.ir.txt +++ /dev/null @@ -1,25 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - UsingDirective - (1:0,1 [12] x:\dir\subdir\Test\TestComponent.cshtml) - System - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - HtmlElement - (17:2,0 [14] x:\dir\subdir\Test\TestComponent.cshtml) - h1 - HtmlContent - (21:2,4 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (21:2,4 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Hello diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.mappings.txt deleted file mode 100644 index ae847626d3..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (1:0,1 [12] x:\dir\subdir\Test\TestComponent.cshtml) -|using System| -Generated Location: (282:10,0 [12] ) -|using System| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.codegen.cs deleted file mode 100644 index 69a65f5ce1..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddAttribute(-1, "Header", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - builder.AddAttribute(-1, "Footer", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = "bye!"; - -#line default -#line hidden - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.ir.txt deleted file mode 100644 index 9cc23593bb..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,30 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [87] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - (50:2,4 [20] x:\dir\subdir\Test\TestComponent.cshtml) - Header - HtmlContent - (58:2,12 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (58:2,12 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Hi! - ComponentChildContent - (76:3,4 [26] x:\dir\subdir\Test\TestComponent.cshtml) - Footer - CSharpExpression - (86:3,14 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (86:3,14 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "bye!" diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.mappings.txt deleted file mode 100644 index cedac6119b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (86:3,14 [6] x:\dir\subdir\Test\TestComponent.cshtml) -|"bye!"| -Generated Location: (1257:32,14 [6] ) -|"bye!"| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.codegen.cs deleted file mode 100644 index a95a14e77e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.codegen.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - RenderFragment template = (context) => - -#line default -#line hidden - (builder2) => { -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = context.Index; - -#line default -#line hidden -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = context.Item.ToLower(); - -#line default -#line hidden - } -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ; - -#line default -#line hidden - __o = new Microsoft.AspNetCore.Components.RenderFragment( -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - template - -#line default -#line hidden - ); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.ir.txt deleted file mode 100644 index 5c76c02ce5..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.ir.txt +++ /dev/null @@ -1,43 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [17] x:\dir\subdir\Test\TestComponent.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (31:0,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (31:0,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (35:1,2 [54] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (35:1,2 [54] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderFragment template = (context) => - Template - (90:1,57 [48] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (90:1,57 [50] x:\dir\subdir\Test\TestComponent.cshtml) - li - HtmlContent - (94:1,61 [1] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (94:1,61 [1] x:\dir\subdir\Test\TestComponent.cshtml) - Html - # - CSharpExpression - (96:1,63 [13] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (96:1,63 [13] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.Index - HtmlContent - (109:1,76 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (109:1,76 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \- - CSharpExpression - (113:1,80 [22] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (113:1,80 [22] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.Item.ToLower() - CSharpCode - (140:1,107 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (140:1,107 [2] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ; - ComponentExtensionNode - (145:2,0 [35] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (168:2,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - Template - Template - CSharpExpression - (169:2,24 [8] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (169:2,24 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - template - HtmlContent - (180:2,35 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (180:2,35 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.mappings.txt deleted file mode 100644 index b518bb32e8..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.mappings.txt +++ /dev/null @@ -1,30 +0,0 @@ -Source Location: (14:0,14 [17] x:\dir\subdir\Test\TestComponent.cshtml) -|"*, TestAssembly"| -Generated Location: (502:15,37 [17] ) -|"*, TestAssembly"| - -Source Location: (35:1,2 [54] x:\dir\subdir\Test\TestComponent.cshtml) -| RenderFragment template = (context) => | -Generated Location: (987:28,2 [54] ) -| RenderFragment template = (context) => | - -Source Location: (96:1,63 [13] x:\dir\subdir\Test\TestComponent.cshtml) -|context.Index| -Generated Location: (1217:34,63 [13] ) -|context.Index| - -Source Location: (113:1,80 [22] x:\dir\subdir\Test\TestComponent.cshtml) -|context.Item.ToLower()| -Generated Location: (1395:39,80 [22] ) -|context.Item.ToLower()| - -Source Location: (140:1,107 [2] x:\dir\subdir\Test\TestComponent.cshtml) -|; | -Generated Location: (1624:45,107 [2] ) -|; | - -Source Location: (169:2,24 [8] x:\dir\subdir\Test\TestComponent.cshtml) -|template| -Generated Location: (1819:51,24 [8] ) -|template| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.codegen.cs deleted file mode 100644 index 64b2cd0629..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.codegen.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - RenderFragment p = (person) => - -#line default -#line hidden - (builder2) => { - __o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck( -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - person.Name - -#line default -#line hidden - ); - builder2.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder3) => { - } - )); - } -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - ; - -#line default -#line hidden - } - #pragma warning restore 1998 -#line 5 "x:\dir\subdir\Test\TestComponent.cshtml" - - class Person - { - public string Name { get; set; } - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.ir.txt deleted file mode 100644 index 6618985236..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.ir.txt +++ /dev/null @@ -1,35 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [17] x:\dir\subdir\Test\TestComponent.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (31:0,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (31:0,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (35:1,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (35:1,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n RenderFragment p = (person) => - Template - (81:2,44 [45] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (81:2,44 [45] x:\dir\subdir\Test\TestComponent.cshtml) - div - ComponentExtensionNode - (86:2,49 [34] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (105:2,68 [12] x:\dir\subdir\Test\TestComponent.cshtml) - Name - Name - CSharpExpression - (106:2,69 [11] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (106:2,69 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - person.Name - CSharpCode - (126:2,89 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (126:2,89 [3] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ;\n - CSharpCode - (144:4,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (144:4,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n class Person\n {\n public string Name { get; set; }\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.mappings.txt deleted file mode 100644 index 2617c56e67..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.mappings.txt +++ /dev/null @@ -1,39 +0,0 @@ -Source Location: (14:0,14 [17] x:\dir\subdir\Test\TestComponent.cshtml) -|"*, TestAssembly"| -Generated Location: (502:15,37 [17] ) -|"*, TestAssembly"| - -Source Location: (35:1,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) -| - RenderFragment p = (person) => | -Generated Location: (987:28,2 [45] ) -| - RenderFragment p = (person) => | - -Source Location: (106:2,69 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|person.Name| -Generated Location: (1310:36,69 [11] ) -|person.Name| - -Source Location: (126:2,89 [3] x:\dir\subdir\Test\TestComponent.cshtml) -|; -| -Generated Location: (1693:46,89 [3] ) -|; -| - -Source Location: (144:4,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) -| - class Person - { - public string Name { get; set; } - } -| -Generated Location: (1839:53,12 [76] ) -| - class Person - { - public string Name { get; set; } - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.codegen.cs deleted file mode 100644 index dbbb8065b5..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.codegen.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - RenderFragment p = (person) => - -#line default -#line hidden - (builder2) => { - __o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck( -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - person.Name - -#line default -#line hidden - ); - builder2.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder3) => { - } - )); - } -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - ; - -#line default -#line hidden - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { -#line 6 "x:\dir\subdir\Test\TestComponent.cshtml" -__o = "hello, world!"; - -#line default -#line hidden - } - )); - } - #pragma warning restore 1998 -#line 9 "x:\dir\subdir\Test\TestComponent.cshtml" - - class Person - { - public string Name { get; set; } - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.ir.txt deleted file mode 100644 index 4674bf0e0e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.ir.txt +++ /dev/null @@ -1,45 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [17] x:\dir\subdir\Test\TestComponent.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (31:0,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (31:0,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (35:1,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (35:1,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n RenderFragment p = (person) => - Template - (81:2,44 [45] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (81:2,44 [45] x:\dir\subdir\Test\TestComponent.cshtml) - div - ComponentExtensionNode - (86:2,49 [34] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (105:2,68 [12] x:\dir\subdir\Test\TestComponent.cshtml) - Name - Name - CSharpExpression - (106:2,69 [11] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (106:2,69 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - person.Name - CSharpCode - (126:2,89 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (126:2,89 [3] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ;\n - ComponentExtensionNode - (132:4,0 [49] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - - ChildContent - HtmlContent - (145:4,13 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (145:4,13 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpExpression - (149:5,2 [15] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (149:5,2 [15] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hello, world!" - HtmlContent - (165:5,18 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (165:5,18 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlContent - (181:6,14 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (181:6,14 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - CSharpCode - (197:8,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (197:8,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n class Person\n {\n public string Name { get; set; }\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.mappings.txt deleted file mode 100644 index dea3d8428f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.mappings.txt +++ /dev/null @@ -1,44 +0,0 @@ -Source Location: (14:0,14 [17] x:\dir\subdir\Test\TestComponent.cshtml) -|"*, TestAssembly"| -Generated Location: (502:15,37 [17] ) -|"*, TestAssembly"| - -Source Location: (35:1,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) -| - RenderFragment p = (person) => | -Generated Location: (987:28,2 [45] ) -| - RenderFragment p = (person) => | - -Source Location: (106:2,69 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|person.Name| -Generated Location: (1310:36,69 [11] ) -|person.Name| - -Source Location: (126:2,89 [3] x:\dir\subdir\Test\TestComponent.cshtml) -|; -| -Generated Location: (1693:46,89 [3] ) -|; -| - -Source Location: (149:5,2 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|"hello, world!"| -Generated Location: (1903:52,6 [15] ) -|"hello, world!"| - -Source Location: (197:8,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) -| - class Person - { - public string Name { get; set; } - } -| -Generated Location: (2096:61,12 [76] ) -| - class Person - { - public string Name { get; set; } - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.codegen.cs deleted file mode 100644 index 1c2e655a88..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.codegen.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - RenderFragment template = (person) => - -#line default -#line hidden - (builder2) => { -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = person.Name; - -#line default -#line hidden - } -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ; - -#line default -#line hidden - __o = new Microsoft.AspNetCore.Components.RenderFragment( -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - template - -#line default -#line hidden - ); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.ir.txt deleted file mode 100644 index 0b2d2a7eef..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.ir.txt +++ /dev/null @@ -1,37 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [17] x:\dir\subdir\Test\TestComponent.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (31:0,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (31:0,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (35:1,2 [47] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (35:1,2 [47] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderFragment template = (person) => - Template - (83:1,50 [22] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (83:1,50 [23] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (89:1,56 [11] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (89:1,56 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - person.Name - CSharpCode - (106:1,73 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (106:1,73 [2] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ; - ComponentExtensionNode - (111:2,0 [41] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (140:2,29 [9] x:\dir\subdir\Test\TestComponent.cshtml) - PersonTemplate - PersonTemplate - CSharpExpression - (141:2,30 [8] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (141:2,30 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - template - HtmlContent - (152:2,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (152:2,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.mappings.txt deleted file mode 100644 index 83d796d983..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.mappings.txt +++ /dev/null @@ -1,25 +0,0 @@ -Source Location: (14:0,14 [17] x:\dir\subdir\Test\TestComponent.cshtml) -|"*, TestAssembly"| -Generated Location: (502:15,37 [17] ) -|"*, TestAssembly"| - -Source Location: (35:1,2 [47] x:\dir\subdir\Test\TestComponent.cshtml) -| RenderFragment template = (person) => | -Generated Location: (987:28,2 [47] ) -| RenderFragment template = (person) => | - -Source Location: (89:1,56 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|person.Name| -Generated Location: (1203:34,56 [11] ) -|person.Name| - -Source Location: (106:1,73 [2] x:\dir\subdir\Test\TestComponent.cshtml) -|; | -Generated Location: (1387:40,73 [2] ) -|; | - -Source Location: (141:2,30 [8] x:\dir\subdir\Test\TestComponent.cshtml) -|template| -Generated Location: (1587:46,30 [8] ) -|template| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.codegen.cs deleted file mode 100644 index fe3b5a38c9..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.codegen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" -__o = RenderPerson((person) => (builder2) => { -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = person.Name; - -#line default -#line hidden -} -); - -#line default -#line hidden - } - #pragma warning restore 1998 -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - class Person - { - public string Name { get; set; } - } - - object RenderPerson(RenderFragment p) => null; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.ir.txt deleted file mode 100644 index 04ddbdf5e3..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.ir.txt +++ /dev/null @@ -1,31 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpExpression - (1:0,1 [48] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (1:0,1 [25] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderPerson((person) => - Template - (27:0,27 [22] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (27:0,27 [23] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (33:0,33 [11] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (33:0,33 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - person.Name - IntermediateToken - (50:0,50 [1] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ) - HtmlContent - (51:0,51 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (51:0,51 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (65:1,12 [138] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (65:1,12 [138] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n class Person\n {\n public string Name { get; set; }\n }\n\n object RenderPerson(RenderFragment p) => null;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.mappings.txt deleted file mode 100644 index b37981c1a8..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.mappings.txt +++ /dev/null @@ -1,34 +0,0 @@ -Source Location: (1:0,1 [25] x:\dir\subdir\Test\TestComponent.cshtml) -|RenderPerson((person) => | -Generated Location: (874:24,6 [25] ) -|RenderPerson((person) => | - -Source Location: (33:0,33 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|person.Name| -Generated Location: (1000:26,33 [11] ) -|person.Name| - -Source Location: (50:0,50 [1] x:\dir\subdir\Test\TestComponent.cshtml) -|)| -Generated Location: (1048:31,0 [1] ) -|)| - -Source Location: (65:1,12 [138] x:\dir\subdir\Test\TestComponent.cshtml) -| - class Person - { - public string Name { get; set; } - } - - object RenderPerson(RenderFragment p) => null; -| -Generated Location: (1195:38,12 [138] ) -| - class Person - { - public string Name { get; set; } - } - - object RenderPerson(RenderFragment p) => null; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.codegen.cs deleted file mode 100644 index 1a513d9bfe..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.codegen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - - RenderFragment p = (person) => - -#line default -#line hidden - (builder2) => { -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = person.Name; - -#line default -#line hidden - } -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ; - -#line default -#line hidden - } - #pragma warning restore 1998 -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - - class Person - { - public string Name { get; set; } - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.ir.txt deleted file mode 100644 index d04fb1ffca..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.ir.txt +++ /dev/null @@ -1,30 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpCode - (2:0,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (2:0,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n RenderFragment p = (person) => - Template - (48:1,44 [22] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (48:1,44 [23] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (54:1,50 [11] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (54:1,50 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - person.Name - CSharpCode - (71:1,67 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (71:1,67 [3] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ;\n - CSharpCode - (89:3,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (89:3,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n class Person\n {\n public string Name { get; set; }\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.mappings.txt deleted file mode 100644 index b9045e5bb7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.mappings.txt +++ /dev/null @@ -1,34 +0,0 @@ -Source Location: (2:0,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) -| - RenderFragment p = (person) => | -Generated Location: (870:24,2 [45] ) -| - RenderFragment p = (person) => | - -Source Location: (54:1,50 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|person.Name| -Generated Location: (1078:31,50 [11] ) -|person.Name| - -Source Location: (71:1,67 [3] x:\dir\subdir\Test\TestComponent.cshtml) -|; -| -Generated Location: (1256:37,67 [3] ) -|; -| - -Source Location: (89:3,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) -| - class Person - { - public string Name { get; set; } - } -| -Generated Location: (1402:44,12 [76] ) -| - class Person - { - public string Name { get; set; } - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.codegen.cs deleted file mode 100644 index 0da3a367ff..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.codegen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" -__o = RenderPerson((person) => (builder2) => { -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = person.Name; - -#line default -#line hidden -} -); - -#line default -#line hidden - } - #pragma warning restore 1998 -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - class Person - { - public string Name { get; set; } - } - - object RenderPerson(RenderFragment p) => null; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.ir.txt deleted file mode 100644 index abc67e5715..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.ir.txt +++ /dev/null @@ -1,31 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpExpression - (2:0,2 [48] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (2:0,2 [25] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderPerson((person) => - Template - (28:0,28 [22] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (28:0,28 [23] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (34:0,34 [11] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (34:0,34 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - person.Name - IntermediateToken - (51:0,51 [1] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ) - HtmlContent - (53:0,53 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (53:0,53 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (67:1,12 [138] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (67:1,12 [138] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n class Person\n {\n public string Name { get; set; }\n }\n\n object RenderPerson(RenderFragment p) => null;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.mappings.txt deleted file mode 100644 index c11ce14a08..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.mappings.txt +++ /dev/null @@ -1,34 +0,0 @@ -Source Location: (2:0,2 [25] x:\dir\subdir\Test\TestComponent.cshtml) -|RenderPerson((person) => | -Generated Location: (874:24,6 [25] ) -|RenderPerson((person) => | - -Source Location: (34:0,34 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|person.Name| -Generated Location: (1001:26,34 [11] ) -|person.Name| - -Source Location: (51:0,51 [1] x:\dir\subdir\Test\TestComponent.cshtml) -|)| -Generated Location: (1049:31,0 [1] ) -|)| - -Source Location: (67:1,12 [138] x:\dir\subdir\Test\TestComponent.cshtml) -| - class Person - { - public string Name { get; set; } - } - - object RenderPerson(RenderFragment p) => null; -| -Generated Location: (1196:38,12 [138] ) -| - class Person - { - public string Name { get; set; } - } - - object RenderPerson(RenderFragment p) => null; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.codegen.cs deleted file mode 100644 index a9dfa2f064..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.codegen.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - RenderFragment template = - -#line default -#line hidden - (builder2) => { - } -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ; - -#line default -#line hidden - __o = -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - template - -#line default -#line hidden - ; - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.ir.txt deleted file mode 100644 index ce6182b349..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.ir.txt +++ /dev/null @@ -1,37 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [17] x:\dir\subdir\Test\TestComponent.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (31:0,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (31:0,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (35:1,2 [27] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (35:1,2 [27] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderFragment template = - Template - (63:1,30 [15] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (63:1,30 [15] x:\dir\subdir\Test\TestComponent.cshtml) - div - HtmlContent - (68:1,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (68:1,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Joey - CSharpCode - (78:1,45 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (78:1,45 [2] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ; - ComponentExtensionNode - (83:2,0 [33] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - - Person - - CSharpExpression - (104:2,21 [9] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (105:2,22 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - template - HtmlContent - (116:2,33 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (116:2,33 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.mappings.txt deleted file mode 100644 index 4d64399583..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.mappings.txt +++ /dev/null @@ -1,20 +0,0 @@ -Source Location: (14:0,14 [17] x:\dir\subdir\Test\TestComponent.cshtml) -|"*, TestAssembly"| -Generated Location: (502:15,37 [17] ) -|"*, TestAssembly"| - -Source Location: (35:1,2 [27] x:\dir\subdir\Test\TestComponent.cshtml) -| RenderFragment template = | -Generated Location: (987:28,2 [27] ) -| RenderFragment template = | - -Source Location: (78:1,45 [2] x:\dir\subdir\Test\TestComponent.cshtml) -|; | -Generated Location: (1187:35,45 [2] ) -|; | - -Source Location: (105:2,22 [8] x:\dir\subdir\Test\TestComponent.cshtml) -|template| -Generated Location: (1315:41,22 [8] ) -|template| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.codegen.cs deleted file mode 100644 index aef1427130..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.codegen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" -__o = RenderPerson((builder2) => { -} -); - -#line default -#line hidden - } - #pragma warning restore 1998 -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - object RenderPerson(RenderFragment p) => null; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.ir.txt deleted file mode 100644 index 99a41a7949..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.ir.txt +++ /dev/null @@ -1,31 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpExpression - (1:0,1 [27] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (1:0,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderPerson( - Template - (15:0,15 [13] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (15:0,15 [13] x:\dir\subdir\Test\TestComponent.cshtml) - div - HtmlContent - (20:0,20 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (20:0,20 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - HI - IntermediateToken - (28:0,28 [1] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ) - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (43:1,12 [54] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (43:1,12 [54] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n object RenderPerson(RenderFragment p) => null;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.mappings.txt deleted file mode 100644 index 53fef3eae5..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (1:0,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) -|RenderPerson(| -Generated Location: (874:24,6 [13] ) -|RenderPerson(| - -Source Location: (28:0,28 [1] x:\dir\subdir\Test\TestComponent.cshtml) -|)| -Generated Location: (907:26,0 [1] ) -|)| - -Source Location: (43:1,12 [54] x:\dir\subdir\Test\TestComponent.cshtml) -| - object RenderPerson(RenderFragment p) => null; -| -Generated Location: (1054:33,12 [54] ) -| - object RenderPerson(RenderFragment p) => null; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_597/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_597/TestComponent.codegen.cs deleted file mode 100644 index 866e1f96c6..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_597/TestComponent.codegen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetValue( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - y - -#line default -#line hidden - ); - __o = Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => y = __value, y); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - string y = null; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_597/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_597/TestComponent.ir.txt deleted file mode 100644 index bd039a21c9..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_597/TestComponent.ir.txt +++ /dev/null @@ -1,38 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [22] x:\dir\subdir\Test\TestComponent.cshtml) - Counter - Test.Counter - ComponentAttributeExtensionNode - (48:1,17 [1] x:\dir\subdir\Test\TestComponent.cshtml) - v - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (48:1,17 [1] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - y - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (48:1,17 [1] x:\dir\subdir\Test\TestComponent.cshtml) - vChanged - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => y = __value, y) - HtmlContent - (53:1,22 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (53:1,22 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlContent - (92:4,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (92:4,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (67:2,12 [24] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (67:2,12 [24] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string y = null;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_597/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_597/TestComponent.mappings.txt deleted file mode 100644 index b04372471a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_597/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (48:1,17 [1] x:\dir\subdir\Test\TestComponent.cshtml) -|y| -Generated Location: (1075:29,17 [1] ) -|y| - -Source Location: (67:2,12 [24] x:\dir\subdir\Test\TestComponent.cshtml) -| - string y = null; -| -Generated Location: (1495:41,12 [24] ) -| - string y = null; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_609/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_609/TestComponent.codegen.cs deleted file mode 100644 index 825aae87ed..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_609/TestComponent.codegen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetValue( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - UserName - -#line default -#line hidden - ); - __o = Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => UserName = __value, UserName); - __o = Microsoft.AspNetCore.Components.BindMethods.GetValue( -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - UserIsActive - -#line default -#line hidden - ); - __o = Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => UserIsActive = __value, UserIsActive); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string UserName { get; set; } - public bool UserIsActive { get; set; } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_609/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_609/TestComponent.ir.txt deleted file mode 100644 index 762f8737ea..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_609/TestComponent.ir.txt +++ /dev/null @@ -1,46 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (31:1,0 [60] x:\dir\subdir\Test\TestComponent.cshtml) - User - Test.User - ComponentAttributeExtensionNode - (48:1,17 [9] x:\dir\subdir\Test\TestComponent.cshtml) - Name - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (49:1,18 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - UserName - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (48:1,17 [9] x:\dir\subdir\Test\TestComponent.cshtml) - NameChanged - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => UserName = __value, UserName) - ComponentAttributeExtensionNode - (74:1,43 [13] x:\dir\subdir\Test\TestComponent.cshtml) - IsActive - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (75:1,44 [12] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - UserIsActive - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (74:1,43 [13] x:\dir\subdir\Test\TestComponent.cshtml) - IsActiveChanged - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => UserIsActive = __value, UserIsActive) - HtmlContent - (91:1,60 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (91:1,60 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - HtmlContent - (196:6,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (196:6,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (107:3,12 [88] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (107:3,12 [88] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string UserName { get; set; }\n public bool UserIsActive { get; set; }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_609/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_609/TestComponent.mappings.txt deleted file mode 100644 index d01e84b908..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_609/TestComponent.mappings.txt +++ /dev/null @@ -1,26 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - -Source Location: (49:1,18 [8] x:\dir\subdir\Test\TestComponent.cshtml) -|UserName| -Generated Location: (1076:29,18 [8] ) -|UserName| - -Source Location: (75:1,44 [12] x:\dir\subdir\Test\TestComponent.cshtml) -|UserIsActive| -Generated Location: (1422:37,44 [12] ) -|UserIsActive| - -Source Location: (107:3,12 [88] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string UserName { get; set; } - public bool UserIsActive { get; set; } -| -Generated Location: (1875:49,12 [88] ) -| - public string UserName { get; set; } - public bool UserIsActive { get; set; } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_772/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_772/TestComponent.codegen.cs deleted file mode 100644 index 4f3db087b4..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_772/TestComponent.codegen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - [Microsoft.AspNetCore.Components.RouteAttribute("/")] - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - ((System.Action)(() => { -global::System.Object __typeHelper = "/"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = ""; - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_772/TestComponent.diagnostics.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_772/TestComponent.diagnostics.txt deleted file mode 100644 index 57b2bc7949..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_772/TestComponent.diagnostics.txt +++ /dev/null @@ -1,2 +0,0 @@ -x:\dir\subdir\Test\TestComponent.cshtml(8,2): Error RZ1035: Missing close angle for tag helper 'SurveyPrompt'. -x:\dir\subdir\Test\TestComponent.cshtml(8,2): Error RZ1034: Found a malformed 'SurveyPrompt' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_772/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_772/TestComponent.ir.txt deleted file mode 100644 index 37b5fb19ad..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_772/TestComponent.ir.txt +++ /dev/null @@ -1,36 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - RouteAttributeExtensionNode - - / - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - DirectiveToken - (37:1,6 [3] x:\dir\subdir\Test\TestComponent.cshtml) - "/" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlContent - (42:2,0 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (42:2,0 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (44:3,0 [22] x:\dir\subdir\Test\TestComponent.cshtml) - h1 - HtmlContent - (48:3,4 [13] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (48:3,4 [13] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Hello, world! - HtmlContent - (66:3,22 [32] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (66:3,22 [32] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\nWelcome to your new app.\n\n - ComponentExtensionNode - (98:7,0 [23] x:\dir\subdir\Test\TestComponent.cshtml) - SurveyPrompt - Test.SurveyPrompt - ComponentAttributeExtensionNode - (119:7,21 [0] x:\dir\subdir\Test\TestComponent.cshtml) - Title - Title - HtmlContent - (119:7,21 [0] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (119:7,21 [0] x:\dir\subdir\Test\TestComponent.cshtml) - Html - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_772/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_772/TestComponent.mappings.txt deleted file mode 100644 index a9b5edf72a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_772/TestComponent.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (562:16,38 [15] ) -|*, TestAssembly| - -Source Location: (37:1,6 [3] x:\dir\subdir\Test\TestComponent.cshtml) -|"/"| -Generated Location: (678:20,37 [3] ) -|"/"| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_773/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_773/TestComponent.codegen.cs deleted file mode 100644 index 4f3db087b4..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_773/TestComponent.codegen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - [Microsoft.AspNetCore.Components.RouteAttribute("/")] - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - ((System.Action)(() => { -global::System.Object __typeHelper = "/"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = ""; - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_773/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_773/TestComponent.ir.txt deleted file mode 100644 index 8e11bee99a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_773/TestComponent.ir.txt +++ /dev/null @@ -1,38 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - RouteAttributeExtensionNode - - / - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - DirectiveToken - (37:1,6 [3] x:\dir\subdir\Test\TestComponent.cshtml) - "/" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlContent - (42:2,0 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (42:2,0 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (44:3,0 [22] x:\dir\subdir\Test\TestComponent.cshtml) - h1 - HtmlContent - (48:3,4 [13] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (48:3,4 [13] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Hello, world! - HtmlContent - (66:3,22 [32] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (66:3,22 [32] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\nWelcome to your new app.\n\n - ComponentExtensionNode - (98:7,0 [41] x:\dir\subdir\Test\TestComponent.cshtml) - SurveyPrompt - Test.SurveyPrompt - ComponentAttributeExtensionNode - (119:7,21 [16] x:\dir\subdir\Test\TestComponent.cshtml) - Title - Title - HtmlContent - (119:7,21 [16] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (119:7,21 [16] x:\dir\subdir\Test\TestComponent.cshtml) - Html -
Test!
- HtmlContent - (139:7,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (139:7,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_773/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_773/TestComponent.mappings.txt deleted file mode 100644 index a9b5edf72a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_773/TestComponent.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (562:16,38 [15] ) -|*, TestAssembly| - -Source Location: (37:1,6 [3] x:\dir\subdir\Test\TestComponent.cshtml) -|"/"| -Generated Location: (678:20,37 [3] ) -|"/"| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_784/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_784/TestComponent.codegen.cs deleted file mode 100644 index e27aca9ed6..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_784/TestComponent.codegen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __o = Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(OnComponentHover); -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - __o = ParentBgColor; - -#line default -#line hidden - } - #pragma warning restore 1998 -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentBgColor { get; set; } = "#FFFFFF"; - - public void OnComponentHover(UIMouseEventArgs e) - { - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_784/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_784/TestComponent.ir.txt deleted file mode 100644 index f05985b010..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_784/TestComponent.ir.txt +++ /dev/null @@ -1,39 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [73] x:\dir\subdir\Test\TestComponent.cshtml) - p - HtmlAttribute - (16:0,16 [17] x:\dir\subdir\Test\TestComponent.cshtml) - onmouseover=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (17:0,17 [16] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnComponentHover - IntermediateToken - - CSharp - ) - HtmlAttribute - - style=" - " - HtmlAttributeValue - (42:0,42 [11] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (42:0,42 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Html - background: - CSharpExpressionAttributeValue - (53:0,53 [15] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (55:0,55 [13] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentBgColor - HtmlAttributeValue - (68:0,68 [1] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (68:0,68 [1] x:\dir\subdir\Test\TestComponent.cshtml) - Html - ; - HtmlContent - (73:0,73 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (73:0,73 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlContent - (220:7,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (220:7,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (87:1,12 [132] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (87:1,12 [132] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentBgColor { get; set; } = "#FFFFFF";\n\n public void OnComponentHover(UIMouseEventArgs e)\n {\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_784/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_784/TestComponent.mappings.txt deleted file mode 100644 index dfe4ea339c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/Regression_784/TestComponent.mappings.txt +++ /dev/null @@ -1,27 +0,0 @@ -Source Location: (17:0,17 [16] x:\dir\subdir\Test\TestComponent.cshtml) -|OnComponentHover| -Generated Location: (950:23,133 [16] ) -|OnComponentHover| - -Source Location: (55:0,55 [13] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentBgColor| -Generated Location: (1076:25,55 [13] ) -|ParentBgColor| - -Source Location: (87:1,12 [132] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentBgColor { get; set; } = "#FFFFFF"; - - public void OnComponentHover(UIMouseEventArgs e) - { - } -| -Generated Location: (1235:32,12 [132] ) -| - public string ParentBgColor { get; set; } = "#FFFFFF"; - - public void OnComponentHover(UIMouseEventArgs e) - { - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ScriptTag_WithErrorSuppressed/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ScriptTag_WithErrorSuppressed/TestComponent.codegen.cs deleted file mode 100644 index 919a59d52a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ScriptTag_WithErrorSuppressed/TestComponent.codegen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ScriptTag_WithErrorSuppressed/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ScriptTag_WithErrorSuppressed/TestComponent.ir.txt deleted file mode 100644 index 50d67b6e07..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/ScriptTag_WithErrorSuppressed/TestComponent.ir.txt +++ /dev/null @@ -1,36 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [144] x:\dir\subdir\Test\TestComponent.cshtml) - div - HtmlContent - (5:0,5 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (5:0,5 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (11:1,4 [125] x:\dir\subdir\Test\TestComponent.cshtml) - script - HtmlAttribute - - - - HtmlAttributeValue - - - IntermediateToken - - Html - some/url.js - HtmlAttribute - - - - HtmlAttributeValue - - - IntermediateToken - - Html - - HtmlContent - (78:1,71 [49] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (78:1,71 [49] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n some text\n some more text\n - HtmlContent - (136:4,13 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (136:4,13 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlContent - (144:5,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (144:5,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.codegen.cs deleted file mode 100644 index a041c175f6..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.codegen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" -__o = "My value"; - -#line default -#line hidden - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.ir.txt deleted file mode 100644 index e35b51185f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.ir.txt +++ /dev/null @@ -1,29 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [14] x:\dir\subdir\Test\TestComponent.cshtml) - h1 - HtmlContent - (4:0,4 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (4:0,4 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Hello - HtmlContent - (14:0,14 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (14:0,14 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - CSharpExpression - (20:2,2 [10] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (20:2,2 [10] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "My value" - HtmlContent - (31:2,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (31:2,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.mappings.txt deleted file mode 100644 index 1184d613a7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (20:2,2 [10] x:\dir\subdir\Test\TestComponent.cshtml) -|"My value"| -Generated Location: (874:24,6 [10] ) -|"My value"| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.codegen.cs deleted file mode 100644 index 3c8fef1074..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.codegen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "*, TestAssembly"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - } - )); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.ir.txt deleted file mode 100644 index f837db0a99..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.ir.txt +++ /dev/null @@ -1,31 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (31:1,0 [14] x:\dir\subdir\Test\TestComponent.cshtml) - h1 - HtmlContent - (35:1,4 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (35:1,4 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Hello - HtmlContent - (45:1,14 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (45:1,14 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - ComponentExtensionNode - (49:3,0 [22] x:\dir\subdir\Test\TestComponent.cshtml) - SomeOtherComponent - Test.SomeOtherComponent - HtmlContent - (71:3,22 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (71:3,22 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.mappings.txt deleted file mode 100644 index 3917573adf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (14:0,14 [15] x:\dir\subdir\Test\TestComponent.cshtml) -|*, TestAssembly| -Generated Location: (503:15,38 [15] ) -|*, TestAssembly| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.codegen.cs deleted file mode 100644 index 138dcf99f7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.codegen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - [Microsoft.AspNetCore.Components.RouteAttribute("/my/url")] - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -global::System.Object __typeHelper = "/my/url"; - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.ir.txt deleted file mode 100644 index d220046235..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.ir.txt +++ /dev/null @@ -1,29 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - RouteAttributeExtensionNode - - /my/url - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - DirectiveToken - (14:0,14 [36] ) - "*, Microsoft.AspNetCore.Components" - DirectiveToken - (14:0,14 [9] ) - "*, Test" - DirectiveToken - (24:2,6 [9] x:\dir\subdir\Test\TestComponent.cshtml) - "/my/url" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [14] x:\dir\subdir\Test\TestComponent.cshtml) - h1 - HtmlContent - (4:0,4 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (4:0,4 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Hello - HtmlContent - (14:0,14 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (14:0,14 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - HtmlContent - (35:3,0 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (35:3,0 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.mappings.txt deleted file mode 100644 index 1b7602da30..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/DesignTimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (24:2,6 [9] x:\dir\subdir\Test\TestComponent.cshtml) -|"/my/url"| -Generated Location: (567:16,37 [9] ) -|"/my/url"| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.codegen.cs deleted file mode 100644 index 7334305407..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.codegen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using Microsoft.AspNetCore.Components; - using System.Threading.Tasks; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue("async (e) => await Task.Delay(10)")); - builder.CloseElement(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.ir.txt deleted file mode 100644 index 98688cef84..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.ir.txt +++ /dev/null @@ -1,17 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - UsingDirective - (1:0,1 [30] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (31:1,0 [53] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (47:1,16 [33] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - - CSharp - "async (e) => await Task.Delay(10)" - IntermediateToken - - CSharp - ) diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.codegen.cs deleted file mode 100644 index ee72b453c7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.codegen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using Microsoft.AspNetCore.Components; - using System.Threading.Tasks; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(OnClick)); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - Task OnClick(UIMouseEventArgs e) - { - return Task.CompletedTask; - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.ir.txt deleted file mode 100644 index b24c7a572d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.ir.txt +++ /dev/null @@ -1,19 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - UsingDirective - (1:0,1 [30] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (31:1,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (47:1,16 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick - IntermediateToken - - CSharp - ) - CSharpCode - (73:2,12 [91] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (73:2,12 [91] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick(UIMouseEventArgs e) \n {\n return Task.CompletedTask;\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.mappings.txt deleted file mode 100644 index 5bada6842b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.mappings.txt +++ /dev/null @@ -1,15 +0,0 @@ -Source Location: (73:2,12 [91] x:\dir\subdir\Test\TestComponent.cshtml) -| - Task OnClick(UIMouseEventArgs e) - { - return Task.CompletedTask; - } -| -Generated Location: (918:22,12 [91] ) -| - Task OnClick(UIMouseEventArgs e) - { - return Task.CompletedTask; - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.codegen.cs deleted file mode 100644 index 7334305407..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.codegen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using Microsoft.AspNetCore.Components; - using System.Threading.Tasks; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue("async (e) => await Task.Delay(10)")); - builder.CloseElement(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.ir.txt deleted file mode 100644 index 98688cef84..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.ir.txt +++ /dev/null @@ -1,17 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - UsingDirective - (1:0,1 [30] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (31:1,0 [53] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (47:1,16 [33] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - - CSharp - "async (e) => await Task.Delay(10)" - IntermediateToken - - CSharp - ) diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.codegen.cs deleted file mode 100644 index 66065b377c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.codegen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using Microsoft.AspNetCore.Components; - using System.Threading.Tasks; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(OnClick)); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - Task OnClick() - { - return Task.CompletedTask; - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.ir.txt deleted file mode 100644 index b1f0a37924..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.ir.txt +++ /dev/null @@ -1,19 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - UsingDirective - (1:0,1 [30] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (31:1,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (47:1,16 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick - IntermediateToken - - CSharp - ) - CSharpCode - (73:2,12 [73] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (73:2,12 [73] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick() \n {\n return Task.CompletedTask;\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.mappings.txt deleted file mode 100644 index f459f65370..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.mappings.txt +++ /dev/null @@ -1,15 +0,0 @@ -Source Location: (73:2,12 [73] x:\dir\subdir\Test\TestComponent.cshtml) -| - Task OnClick() - { - return Task.CompletedTask; - } -| -Generated Location: (918:22,12 [73] ) -| - Task OnClick() - { - return Task.CompletedTask; - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index 1024358967..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "Value", Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(Microsoft.AspNetCore.Components.BindMethods.GetValue(ParentValue))); - builder.AddAttribute(2, "OnChanged", new System.Action(__value => ParentValue = __value)); - builder.CloseComponent(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index 828e856cc5..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,22 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [50] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (66:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - Value - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (66:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (66:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml) - OnChanged - OnChanged - CSharpExpression - - IntermediateToken - - CSharp - __value => ParentValue = __value - CSharpCode - (95:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (95:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index 39e5375176..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (95:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1061:23,12 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index e7807b0bac..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "Value", Microsoft.AspNetCore.Components.BindMethods.GetValue(ParentValue)); - builder.AddAttribute(2, "OnChanged", Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue)); - builder.CloseComponent(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index 8381d3fa92..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,22 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [50] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (66:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (66:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (66:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml) - OnChanged - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue) - CSharpCode - (95:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (95:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index 33a43a37f3..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (95:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1030:23,12 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index 5a8c21bf6d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "Value", Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(Microsoft.AspNetCore.Components.BindMethods.GetValue(ParentValue))); - builder.AddAttribute(2, "ValueChanged", new System.Action(__value => ParentValue = __value)); - builder.CloseComponent(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index fe38f2c035..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,22 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [40] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - Value - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - ValueChanged - CSharpExpression - - IntermediateToken - - CSharp - __value => ParentValue = __value - CSharpCode - (85:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (85:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index ab302becd2..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (85:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1064:23,12 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index c444fed0d0..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "Value", Microsoft.AspNetCore.Components.BindMethods.GetValue(ParentValue)); - builder.AddAttribute(2, "ValueChanged", Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue)); - builder.CloseComponent(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index 27e972b7bf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,22 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [40] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue) - CSharpCode - (85:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (85:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index 791d24c7dc..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (85:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1033:23,12 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index bb98cf1889..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "Value", Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(Microsoft.AspNetCore.Components.BindMethods.GetValue(ParentValue))); - builder.AddAttribute(2, "ValueChanged", new System.Action(__value => ParentValue = __value)); - builder.CloseComponent(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "42"; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index c1dbbf4635..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,22 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [40] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - Value - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (56:1,25 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - ValueChanged - CSharpExpression - - IntermediateToken - - CSharp - __value => ParentValue = __value - CSharpCode - (85:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (85:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "42";\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index 2504e46ac7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (85:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "42"; -| -Generated Location: (1064:23,12 [55] ) -| - public string ParentValue { get; set; } = "42"; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index f12516fd5e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "type", "text"); - builder.AddAttribute(2, "value", Microsoft.AspNetCore.Components.BindMethods.GetValue(CurrentDate, "MM/dd")); - builder.AddAttribute(3, "onchange", Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => CurrentDate = __value, CurrentDate, "MM/dd")); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index 6db3eedcb5..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,27 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (31:1,0 [77] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - - type=" - " - HtmlAttributeValue - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text - HtmlAttribute - (71:1,40 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (72:1,41 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - CurrentDate - IntermediateToken - - CSharp - , - IntermediateToken - - CSharp - "MM/dd" - IntermediateToken - - CSharp - ) - HtmlAttribute - (71:1,40 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => CurrentDate = __value, CurrentDate, "MM/dd") - CSharpCode - (122:2,12 [77] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (122:2,12 [77] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index d1cbd5da55..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (122:2,12 [77] x:\dir\subdir\Test\TestComponent.cshtml) -| - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -| -Generated Location: (1088:24,12 [77] ) -| - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index c46a006cef..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "type", "text"); - builder.AddAttribute(2, "value", Microsoft.AspNetCore.Components.BindMethods.GetValue(ParentValue)); - builder.AddAttribute(3, "onchange", Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue)); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index d2f4a5ac3d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,25 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (31:1,0 [56] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - - type=" - " - HtmlAttributeValue - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text - HtmlAttribute - (71:1,40 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (72:1,41 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - HtmlAttribute - (71:1,40 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue) - CSharpCode - (101:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (101:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index 2aff49febc..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (101:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1070:24,12 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index 29f0c99c5d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "div"); - builder.AddAttribute(1, "myvalue", Microsoft.AspNetCore.Components.BindMethods.GetValue(ParentValue)); - builder.AddAttribute(2, "myevent", Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue)); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index 55cbf4c344..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,22 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (31:1,0 [33] x:\dir\subdir\Test\TestComponent.cshtml) - div - HtmlAttribute - (48:1,17 [12] x:\dir\subdir\Test\TestComponent.cshtml) - myvalue=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (49:1,18 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - HtmlAttribute - (48:1,17 [12] x:\dir\subdir\Test\TestComponent.cshtml) - myevent=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue) - CSharpCode - (78:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (78:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index babd720e35..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (78:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; -| -Generated Location: (1015:23,12 [55] ) -| - public string ParentValue { get; set; } = "hi"; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index 29f0c99c5d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "div"); - builder.AddAttribute(1, "myvalue", Microsoft.AspNetCore.Components.BindMethods.GetValue(ParentValue)); - builder.AddAttribute(2, "myevent", Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue)); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index 22ff3383df..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,22 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (31:1,0 [27] x:\dir\subdir\Test\TestComponent.cshtml) - div - HtmlAttribute - (42:1,11 [12] x:\dir\subdir\Test\TestComponent.cshtml) - myvalue=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (43:1,12 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - HtmlAttribute - (42:1,11 [12] x:\dir\subdir\Test\TestComponent.cshtml) - myevent=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue) - CSharpCode - (72:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (72:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index c8ff92005e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (72:2,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; -| -Generated Location: (1015:23,12 [55] ) -| - public string ParentValue { get; set; } = "hi"; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.codegen.cs deleted file mode 100644 index 0213a46786..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - RenderFragment header = (context) => - -#line default -#line hidden - (builder2) => { - builder2.OpenElement(0, "div"); - builder2.AddContent(1, context.ToLowerInvariant()); - builder2.CloseElement(); - } -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ; - -#line default -#line hidden - builder.OpenComponent(2); - builder.AddAttribute(3, "Header", new Microsoft.AspNetCore.Components.RenderFragment(header)); - builder.AddAttribute(4, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - builder2.AddContent(5, "\n Some Content\n"); - } - )); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.ir.txt deleted file mode 100644 index 15c209e72c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,26 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpCode - (33:1,2 [46] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (33:1,2 [46] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderFragment header = (context) => - Template - (80:1,49 [37] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (80:1,49 [38] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (86:1,55 [26] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (86:1,55 [26] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.ToLowerInvariant() - CSharpCode - (118:1,87 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (118:1,87 [2] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ; - ComponentExtensionNode - (123:2,0 [62] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - - ChildContent - HtmlContent - (151:2,28 [20] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (151:2,28 [20] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n Some Content\n - ComponentAttributeExtensionNode - (143:2,20 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Header - Header - CSharpExpression - (144:2,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (144:2,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - header diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.mappings.txt deleted file mode 100644 index 5e6eb01dfa..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (33:1,2 [46] x:\dir\subdir\Test\TestComponent.cshtml) -| RenderFragment header = (context) => | -Generated Location: (602:17,2 [46] ) -| RenderFragment header = (context) => | - -Source Location: (118:1,87 [2] x:\dir\subdir\Test\TestComponent.cshtml) -|; | -Generated Location: (1023:27,87 [2] ) -|; | - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.codegen.cs deleted file mode 100644 index 0de09fc2a2..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - RenderFragment header = (context) => - -#line default -#line hidden - (builder2) => { - builder2.OpenElement(0, "div"); - builder2.AddContent(1, context.ToLowerInvariant()); - builder2.CloseElement(); - } -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ; - -#line default -#line hidden - builder.OpenComponent(2); - builder.AddAttribute(3, "Header", new Microsoft.AspNetCore.Components.RenderFragment(header)); - builder.AddAttribute(4, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - builder2.AddContent(5, "Some Content"); - } - )); - builder.AddAttribute(6, "Footer", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - builder2.AddContent(7, "Bye!"); - } - )); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.ir.txt deleted file mode 100644 index dd0662b682..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,29 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpCode - (33:1,2 [46] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (33:1,2 [46] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderFragment header = (context) => - Template - (80:1,49 [37] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (80:1,49 [38] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (86:1,55 [26] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (86:1,55 [26] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.ToLowerInvariant() - CSharpCode - (118:1,87 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (118:1,87 [2] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ; - ComponentExtensionNode - (123:2,0 [114] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - (155:3,2 [41] x:\dir\subdir\Test\TestComponent.cshtml) - ChildContent - HtmlContent - (169:3,16 [12] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (169:3,16 [12] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Some Content - ComponentChildContent - (200:4,2 [21] x:\dir\subdir\Test\TestComponent.cshtml) - Footer - HtmlContent - (208:4,10 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (208:4,10 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Bye! - ComponentAttributeExtensionNode - (143:2,20 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Header - Header - CSharpExpression - (144:2,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (144:2,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - header diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.mappings.txt deleted file mode 100644 index 5e6eb01dfa..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (33:1,2 [46] x:\dir\subdir\Test\TestComponent.cshtml) -| RenderFragment header = (context) => | -Generated Location: (602:17,2 [46] ) -| RenderFragment header = (context) => | - -Source Location: (118:1,87 [2] x:\dir\subdir\Test\TestComponent.cshtml) -|; | -Generated Location: (1023:27,87 [2] ) -|; | - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index 0b3d4b0115..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "type", "checkbox"); - builder.AddAttribute(2, "checked", Microsoft.AspNetCore.Components.BindMethods.GetValue(Enabled)); - builder.AddAttribute(3, "onchange", Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => Enabled = __value, Enabled)); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public bool Enabled { get; set; } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index 2b48165ac5..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,25 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (31:1,0 [41] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - - type=" - " - HtmlAttributeValue - (44:1,13 [8] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (44:1,13 [8] x:\dir\subdir\Test\TestComponent.cshtml) - Html - checkbox - HtmlAttribute - (60:1,29 [8] x:\dir\subdir\Test\TestComponent.cshtml) - checked=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (61:1,30 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Enabled - IntermediateToken - - CSharp - ) - HtmlAttribute - (60:1,29 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => Enabled = __value, Enabled) - CSharpCode - (86:2,12 [41] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (86:2,12 [41] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public bool Enabled { get; set; }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index dcc4eef3a2..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (86:2,12 [41] x:\dir\subdir\Test\TestComponent.cshtml) -| - public bool Enabled { get; set; } -| -Generated Location: (1064:24,12 [41] ) -| - public bool Enabled { get; set; } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index d347475c38..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,34 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "type", "text"); - builder.AddAttribute(2, "value", Microsoft.AspNetCore.Components.BindMethods.GetValue(CurrentDate, Format)); - builder.AddAttribute(3, "onchange", Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => CurrentDate = __value, CurrentDate, Format)); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); - - public string Format { get; set; } = "MM/dd/yyyy"; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index 5540459507..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,27 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (31:1,0 [63] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - - type=" - " - HtmlAttributeValue - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text - HtmlAttribute - (56:1,25 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (57:1,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - CurrentDate - IntermediateToken - - CSharp - , - IntermediateToken - (85:1,54 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Format - IntermediateToken - - CSharp - ) - HtmlAttribute - (56:1,25 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => CurrentDate = __value, CurrentDate, Format) - CSharpCode - (108:2,12 [135] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (108:2,12 [135] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n\n public string Format { get; set; } = "MM/dd/yyyy";\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index 40918f657f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,13 +0,0 @@ -Source Location: (108:2,12 [135] x:\dir\subdir\Test\TestComponent.cshtml) -| - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); - - public string Format { get; set; } = "MM/dd/yyyy"; -| -Generated Location: (1086:24,12 [135] ) -| - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); - - public string Format { get; set; } = "MM/dd/yyyy"; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index 415e7664c9..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "type", "text"); - builder.AddAttribute(2, "value", Microsoft.AspNetCore.Components.BindMethods.GetValue(CurrentDate, "MM/dd/yyyy")); - builder.AddAttribute(3, "onchange", Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => CurrentDate = __value, CurrentDate, "MM/dd/yyyy")); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index dc862daa4b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,27 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (31:1,0 [66] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - - type=" - " - HtmlAttributeValue - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text - HtmlAttribute - (56:1,25 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (57:1,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - CurrentDate - IntermediateToken - - CSharp - , - IntermediateToken - - CSharp - "MM/dd/yyyy" - IntermediateToken - - CSharp - ) - HtmlAttribute - (56:1,25 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => CurrentDate = __value, CurrentDate, "MM/dd/yyyy") - CSharpCode - (111:2,12 [77] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (111:2,12 [77] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index 1096d43fa1..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (111:2,12 [77] x:\dir\subdir\Test\TestComponent.cshtml) -| - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -| -Generated Location: (1098:24,12 [77] ) -| - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index c46a006cef..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "type", "text"); - builder.AddAttribute(2, "value", Microsoft.AspNetCore.Components.BindMethods.GetValue(ParentValue)); - builder.AddAttribute(3, "onchange", Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue)); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index c935b42bd5..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,25 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (31:1,0 [41] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - - type=" - " - HtmlAttributeValue - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text - HtmlAttribute - (56:1,25 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (57:1,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - HtmlAttribute - (56:1,25 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue) - CSharpCode - (86:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (86:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index aa078259ce..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (86:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1070:24,12 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.codegen.cs deleted file mode 100644 index 28468ad17a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "value", Microsoft.AspNetCore.Components.BindMethods.GetValue(ParentValue)); - builder.AddAttribute(2, "onchange", Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue)); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.ir.txt deleted file mode 100644 index 5ffdd8b1d7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,22 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (31:1,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (44:1,13 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (45:1,14 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - HtmlAttribute - (44:1,13 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => ParentValue = __value, ParentValue) - CSharpCode - (74:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (74:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.mappings.txt deleted file mode 100644 index f3ac3c4290..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (74:2,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1016:23,12 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic/TestComponent.codegen.cs deleted file mode 100644 index 847cb43fac..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic/TestComponent.codegen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent>(0); - builder.AddAttribute(1, "Item", Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck("hi")); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic/TestComponent.ir.txt deleted file mode 100644 index 9fba5ff2bf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic/TestComponent.ir.txt +++ /dev/null @@ -1,17 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [42] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentTypeArgumentExtensionNode - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - TItem - IntermediateToken - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - string - ComponentAttributeExtensionNode - (63:1,32 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (64:1,33 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (65:1,34 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.codegen.cs deleted file mode 100644 index 164ee4e0ef..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent>(0); - builder.AddAttribute(1, "Item", Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(Microsoft.AspNetCore.Components.BindMethods.GetValue(Value))); - builder.AddAttribute(2, "ItemChanged", new System.Action(__value => Value = __value)); - builder.CloseComponent(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - string Value; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.ir.txt deleted file mode 100644 index a0bade6d00..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.ir.txt +++ /dev/null @@ -1,24 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [43] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentTypeArgumentExtensionNode - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - TItem - IntermediateToken - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - string - ComponentAttributeExtensionNode - (67:1,36 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (67:1,36 [5] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Value - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (67:1,36 [5] x:\dir\subdir\Test\TestComponent.cshtml) - ItemChanged - ItemChanged - CSharpExpression - - IntermediateToken - - CSharp - __value => Value = __value - CSharpCode - (88:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (88:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string Value;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.mappings.txt deleted file mode 100644 index a8c3e765da..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (88:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) -| - string Value; -| -Generated Location: (1046:23,12 [21] ) -| - string Value; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.codegen.cs deleted file mode 100644 index faa5f80265..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent>(0); - builder.AddAttribute(1, "Item", Microsoft.AspNetCore.Components.BindMethods.GetValue(Value)); - builder.AddAttribute(2, "ItemChanged", Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => Value = __value, Value)); - builder.CloseComponent(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - string Value; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.ir.txt deleted file mode 100644 index a95252463e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.ir.txt +++ /dev/null @@ -1,24 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [43] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentTypeArgumentExtensionNode - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - TItem - IntermediateToken - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - string - ComponentAttributeExtensionNode - (67:1,36 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Item - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (67:1,36 [5] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Value - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (67:1,36 [5] x:\dir\subdir\Test\TestComponent.cshtml) - ItemChanged - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => Value = __value, Value) - CSharpCode - (88:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (88:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string Value;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.mappings.txt deleted file mode 100644 index 2cc63bc14b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (88:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) -| - string Value; -| -Generated Location: (1021:23,12 [21] ) -| - string Value; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.codegen.cs deleted file mode 100644 index e6f6d19f05..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.codegen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, 0, 1, 18, 2, Microsoft.AspNetCore.Components.BindMethods.GetValue(Value), 3, Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => Value = __value, Value)); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - string Value; - -#line default -#line hidden - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0, int __seq1, System.Object __arg1, int __seq2, System.Object __arg2) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Value", __arg0); - builder.AddAttribute(__seq1, "Item", __arg1); - builder.AddAttribute(__seq2, "ItemChanged", __arg2); - builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.ir.txt deleted file mode 100644 index 7b2b87cdfa..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.ir.txt +++ /dev/null @@ -1,28 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [42] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentAttributeExtensionNode - (66:1,35 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Value - Value - CSharpExpression - (67:1,36 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (68:1,37 [2] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - 18 - ComponentAttributeExtensionNode - (54:1,23 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Item - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (54:1,23 [5] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Value - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (54:1,23 [5] x:\dir\subdir\Test\TestComponent.cshtml) - ItemChanged - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => Value = __value, Value) - CSharpCode - (87:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (87:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string Value;\n - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.mappings.txt deleted file mode 100644 index 38ff236a02..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (87:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) -| - string Value; -| -Generated Location: (919:20,12 [21] ) -| - string Value; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.codegen.cs deleted file mode 100644 index c2808ab0c6..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.codegen.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, 0, 1, Microsoft.AspNetCore.Components.BindMethods.GetValue(Value), 2, __value => Value = __value); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - string Value; - -#line default -#line hidden - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0, int __seq1, global::System.Action __arg1) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.AddAttribute(__seq1, "ItemChanged", __arg1); - builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.ir.txt deleted file mode 100644 index a90c592808..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.ir.txt +++ /dev/null @@ -1,25 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [30] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentAttributeExtensionNode - (54:1,23 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (54:1,23 [5] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Value - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (54:1,23 [5] x:\dir\subdir\Test\TestComponent.cshtml) - ItemChanged - ItemChanged - CSharpExpression - - IntermediateToken - - CSharp - __value => Value = __value - CSharpCode - (75:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (75:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string Value;\n - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.mappings.txt deleted file mode 100644 index fe2d718f6b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (75:2,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) -| - string Value; -| -Generated Location: (844:20,12 [21] ) -| - string Value; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.codegen.cs deleted file mode 100644 index 8d7563e2ae..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent>(0); - builder.AddAttribute(1, "Item", Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck("hi")); - builder.AddAttribute(2, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((context) => (builder2) => { - builder2.AddContent(3, "\n "); - builder2.OpenElement(4, "div"); - builder2.AddContent(5, context.ToLower()); - builder2.CloseElement(); - builder2.AddContent(6, "\n"); - } - )); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.ir.txt deleted file mode 100644 index ec6dc1c525..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,25 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [90] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - - ChildContent - HtmlContent - (72:1,41 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (72:1,41 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (76:2,2 [29] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (82:2,8 [17] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (82:2,8 [17] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.ToLower() - HtmlContent - (105:2,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (105:2,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentTypeArgumentExtensionNode - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - TItem - IntermediateToken - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - string - ComponentAttributeExtensionNode - (63:1,32 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (64:1,33 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (65:1,34 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.codegen.cs deleted file mode 100644 index e9fc0b231e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.codegen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, 0, 1, "hi", 2, (context) => (builder2) => { - builder2.AddContent(3, "\n "); - builder2.OpenElement(4, "div"); - builder2.AddContent(5, context.ToLower()); - builder2.CloseElement(); - builder2.AddContent(6, "\n"); - } - ); - } - #pragma warning restore 1998 - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0, int __seq1, global::Microsoft.AspNetCore.Components.RenderFragment __arg1) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.AddAttribute(__seq1, "ChildContent", __arg1); - builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.ir.txt deleted file mode 100644 index 265a73f242..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.ir.txt +++ /dev/null @@ -1,26 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [77] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentChildContent - - ChildContent - HtmlContent - (59:1,28 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (59:1,28 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (63:2,2 [29] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (69:2,8 [17] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (69:2,8 [17] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.ToLower() - HtmlContent - (92:2,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (92:2,31 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentAttributeExtensionNode - (50:1,19 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (51:1,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.codegen.cs deleted file mode 100644 index c50be2453f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.codegen.cs +++ /dev/null @@ -1,25 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent>(0); - builder.AddAttribute(1, "Item", Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck("hi")); - builder.AddAttribute(2, "Other", 17); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.ir.txt deleted file mode 100644 index 9910509f0a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.ir.txt +++ /dev/null @@ -1,20 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [56] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentTypeArgumentExtensionNode - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - TItem - IntermediateToken - (50:1,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - string - ComponentAttributeExtensionNode - (63:1,32 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (64:1,33 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (65:1,34 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" - ComponentAttributeExtensionNode - - Other - - CSharpExpression - (79:1,48 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (81:1,50 [2] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - 17 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.codegen.cs deleted file mode 100644 index 49e4bd2ea6..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.codegen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, 0, 1, "hi", 2, 17); - } - #pragma warning restore 1998 - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0, int __seq1, System.Object __arg1) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.AddAttribute(__seq1, "Other", __arg1); - builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.ir.txt deleted file mode 100644 index 39aba3881e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.ir.txt +++ /dev/null @@ -1,21 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [43] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentAttributeExtensionNode - (50:1,19 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (51:1,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" - ComponentAttributeExtensionNode - - Other - - CSharpExpression - (66:1,35 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (68:1,37 [2] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - 17 - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.codegen.cs deleted file mode 100644 index a4e8100787..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.codegen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, 0, 1, "hi"); - } - #pragma warning restore 1998 - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.ir.txt deleted file mode 100644 index 1f3f11272d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.ir.txt +++ /dev/null @@ -1,18 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentAttributeExtensionNode - (50:1,19 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (51:1,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.codegen.cs deleted file mode 100644 index 7d1d0e9102..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.codegen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, 0, 1, "hi"); - builder.AddContent(2, "\n"); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_1(builder, 3, 4, "how are you?"); - builder.AddContent(5, "\n"); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_2(builder, 6, 7, "bye!"); - } - #pragma warning restore 1998 - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.CloseComponent(); - } - public static void CreateMyComponent_1(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.CloseComponent(); - } - public static void CreateMyComponent_2(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.ir.txt deleted file mode 100644 index d8e96e6b7b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.ir.txt +++ /dev/null @@ -1,32 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentAttributeExtensionNode - (50:1,19 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (51:1,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" - HtmlContent - (60:1,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (60:1,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (62:2,0 [39] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentAttributeExtensionNode - (81:2,19 [17] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (82:2,20 [16] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (83:2,21 [14] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "how are you?" - HtmlContent - (101:2,39 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (101:2,39 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentExtensionNode - (103:3,0 [31] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentAttributeExtensionNode - (122:3,19 [9] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (123:3,20 [8] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (124:3,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "bye!" - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_1 - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_2 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.codegen.cs deleted file mode 100644 index 688b77b076..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.codegen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent>(0); - builder.AddAttribute(1, "Item", Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck("hi")); - builder.AddAttribute(2, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((context) => (builder2) => { - builder2.OpenElement(3, "div"); - builder2.AddContent(4, context.ToLower()); - builder2.CloseElement(); - } - )); - builder.AddAttribute(5, "AnotherChildContent", (Microsoft.AspNetCore.Components.RenderFragment.Context>)((item) => (builder2) => { - builder2.AddContent(6, "\n "); - builder2.AddContent(7, System.Math.Max(0, item.Item)); - builder2.AddContent(8, ";\n"); - } - )); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.ir.txt deleted file mode 100644 index 6a69c8b163..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.ir.txt +++ /dev/null @@ -1,30 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [228] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - (88:2,2 [58] x:\dir\subdir\Test\TestComponent.cshtml) - ChildContent - HtmlElement - (102:2,16 [29] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (108:2,22 [17] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (108:2,22 [17] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.ToLower() - ComponentChildContent - (148:3,0 [95] x:\dir\subdir\Test\TestComponent.cshtml) - AnotherChildContent - HtmlContent - (184:3,36 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (184:3,36 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpExpression - (189:4,3 [29] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (189:4,3 [29] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - System.Math.Max(0, item.Item) - HtmlContent - (218:4,32 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (218:4,32 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - ;\n - ComponentTypeArgumentExtensionNode - (51:1,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) - TItem1 - IntermediateToken - (51:1,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - string - ComponentTypeArgumentExtensionNode - (65:1,34 [3] x:\dir\subdir\Test\TestComponent.cshtml) - TItem2 - IntermediateToken - (65:1,34 [3] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - int - ComponentAttributeExtensionNode - (75:1,44 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (76:1,45 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (77:1,46 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.codegen.cs deleted file mode 100644 index 93d075fcb8..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.codegen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, 0, 1, "hi", 2, new List(), 3, (context) => (builder2) => { - builder2.OpenElement(4, "div"); - builder2.AddContent(5, context.ToLower()); - builder2.CloseElement(); - } - , 6, (item) => (builder2) => { - builder2.AddContent(7, "\n "); - builder2.AddContent(8, System.Math.Max(0, item.Item)); - builder2.AddContent(9, ";\n"); - } - ); - } - #pragma warning restore 1998 - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem1 __arg0, int __seq1, global::System.Collections.Generic.List __arg1, int __seq2, global::Microsoft.AspNetCore.Components.RenderFragment __arg2, int __seq3, global::Microsoft.AspNetCore.Components.RenderFragment.Context> __arg3) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.AddAttribute(__seq1, "Items", __arg1); - builder.AddAttribute(__seq2, "ChildContent", __arg2); - builder.AddAttribute(__seq3, "AnotherChildContent", __arg3); - builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.ir.txt deleted file mode 100644 index 0f2f0df467..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.ir.txt +++ /dev/null @@ -1,32 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [229] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentChildContent - (89:2,2 [58] x:\dir\subdir\Test\TestComponent.cshtml) - ChildContent - HtmlElement - (103:2,16 [29] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (109:2,22 [17] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (109:2,22 [17] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.ToLower() - ComponentChildContent - (149:3,0 [95] x:\dir\subdir\Test\TestComponent.cshtml) - AnotherChildContent - HtmlContent - (185:3,36 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (185:3,36 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpExpression - (190:4,3 [29] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (190:4,3 [29] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - System.Math.Max(0, item.Item) - HtmlContent - (219:4,32 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (219:4,32 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - ;\n - ComponentAttributeExtensionNode - (50:1,19 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - CSharpExpression - (51:1,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hi" - ComponentAttributeExtensionNode - (65:1,34 [19] x:\dir\subdir\Test\TestComponent.cshtml) - Items - Items - CSharpExpression - (66:1,35 [18] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (67:1,36 [16] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - new List() - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Simple/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Simple/TestComponent.codegen.cs deleted file mode 100644 index 531a857416..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Simple/TestComponent.codegen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Simple/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Simple/TestComponent.ir.txt deleted file mode 100644 index 51b5023e8a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_Simple/TestComponent.ir.txt +++ /dev/null @@ -1,12 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [15] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.codegen.cs deleted file mode 100644 index 0d97d51a82..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "MyAttr", "abc"); - builder.AddAttribute(2, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - builder2.AddContent(3, "Some text"); - builder2.AddMarkupContent(4, "Nested text"); - } - )); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.ir.txt deleted file mode 100644 index 2c493db032..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,19 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [91] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - - ChildContent - HtmlContent - (57:1,26 [9] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (57:1,26 [9] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Some text - HtmlBlock - - Nested text - ComponentAttributeExtensionNode - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - MyAttr - MyAttr - HtmlContent - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - abc diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.codegen.cs deleted file mode 100644 index 81c9ffdeda..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - builder2.AddMarkupContent(2, "hello"); - } - )); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.ir.txt deleted file mode 100644 index ab64602394..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,14 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [47] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - - ChildContent - HtmlBlock - - hello diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.codegen.cs deleted file mode 100644 index 9dada26355..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - builder2.AddContent(2, "hello"); - } - )); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.ir.txt deleted file mode 100644 index 06b0cceb11..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,15 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [61] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - (44:1,13 [34] x:\dir\subdir\Test\TestComponent.cshtml) - ChildContent - HtmlContent - (58:1,27 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (58:1,27 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - hello diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.codegen.cs deleted file mode 100644 index 9116082d4b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.codegen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "OnClick", new System.Action(Increment)); - builder.CloseComponent(); - } - #pragma warning restore 1998 -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - - private int counter; - private void Increment(UIEventArgs e) { - counter++; - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.ir.txt deleted file mode 100644 index f3057c657e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.ir.txt +++ /dev/null @@ -1,17 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [35] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (53:1,22 [10] x:\dir\subdir\Test\TestComponent.cshtml) - OnClick - OnClick - CSharpExpression - (54:1,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (54:1,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Increment - CSharpCode - (82:3,12 [100] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (82:3,12 [100] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private int counter;\n private void Increment(UIEventArgs e) {\n counter++;\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.mappings.txt deleted file mode 100644 index 6eea8437b0..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.mappings.txt +++ /dev/null @@ -1,15 +0,0 @@ -Source Location: (82:3,12 [100] x:\dir\subdir\Test\TestComponent.cshtml) -| - private int counter; - private void Increment(UIEventArgs e) { - counter++; - } -| -Generated Location: (881:22,12 [100] ) -| - private int counter; - private void Increment(UIEventArgs e) { - counter++; - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.codegen.cs deleted file mode 100644 index 42ddaad1f1..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((context) => (builder2) => { - builder2.AddContent(2, context); - } - )); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.ir.txt deleted file mode 100644 index d10b873fb5..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,15 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [64] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - (44:1,13 [37] x:\dir\subdir\Test\TestComponent.cshtml) - ChildContent - CSharpExpression - (59:1,28 [7] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (59:1,28 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.codegen.cs deleted file mode 100644 index 6f9059be25..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.codegen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "StringProperty", Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(42.ToString())); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.ir.txt deleted file mode 100644 index 4f55ddf214..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.ir.txt +++ /dev/null @@ -1,15 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [49] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (60:1,29 [16] x:\dir\subdir\Test\TestComponent.cshtml) - StringProperty - StringProperty - CSharpExpression - (62:1,31 [13] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (62:1,31 [13] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - 42.ToString() diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.codegen.cs deleted file mode 100644 index cac7b04729..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "MyAttr", "abc"); - builder.AddAttribute(2, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((context) => (builder2) => { - builder2.AddContent(3, "Some text"); - builder2.OpenElement(4, "some-child"); - builder2.AddAttribute(5, "a", "1"); - builder2.AddContent(6, context.ToLowerInvariant()); - builder2.CloseElement(); - } - )); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.ir.txt deleted file mode 100644 index fea8c42816..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,24 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [107] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - - ChildContent - HtmlContent - (57:1,26 [9] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (57:1,26 [9] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Some text - HtmlElement - (66:1,35 [58] x:\dir\subdir\Test\TestComponent.cshtml) - some-child - HtmlAttribute - - - - HtmlAttributeValue - - - IntermediateToken - - Html - 1 - CSharpExpression - (85:1,54 [26] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (85:1,54 [26] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.ToLowerInvariant() - ComponentAttributeExtensionNode - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - MyAttr - MyAttr - HtmlContent - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - abc diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.codegen.cs deleted file mode 100644 index b80253027c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.codegen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "MyAttr", "abc"); - builder.AddAttribute(2, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((item) => (builder2) => { - builder2.AddContent(3, "\n Some text"); - builder2.OpenElement(4, "some-child"); - builder2.AddAttribute(5, "a", "1"); - builder2.AddContent(6, item.ToLowerInvariant()); - builder2.CloseElement(); - builder2.AddContent(7, "\n "); - } - )); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.ir.txt deleted file mode 100644 index c08d7061ca..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.ir.txt +++ /dev/null @@ -1,26 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [164] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - (61:2,2 [118] x:\dir\subdir\Test\TestComponent.cshtml) - ChildContent - HtmlContent - (90:2,31 [15] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (90:2,31 [15] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n Some text - HtmlElement - (105:3,13 [55] x:\dir\subdir\Test\TestComponent.cshtml) - some-child - HtmlAttribute - - - - HtmlAttributeValue - - - IntermediateToken - - Html - 1 - CSharpExpression - (124:3,32 [23] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (124:3,32 [23] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - item.ToLowerInvariant() - HtmlContent - (160:3,68 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (160:3,68 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentAttributeExtensionNode - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - MyAttr - MyAttr - HtmlContent - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - abc diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.codegen.cs deleted file mode 100644 index b80253027c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.codegen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "MyAttr", "abc"); - builder.AddAttribute(2, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((item) => (builder2) => { - builder2.AddContent(3, "\n Some text"); - builder2.OpenElement(4, "some-child"); - builder2.AddAttribute(5, "a", "1"); - builder2.AddContent(6, item.ToLowerInvariant()); - builder2.CloseElement(); - builder2.AddContent(7, "\n "); - } - )); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.ir.txt deleted file mode 100644 index f5d06e567f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.ir.txt +++ /dev/null @@ -1,26 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [164] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - (76:2,2 [103] x:\dir\subdir\Test\TestComponent.cshtml) - ChildContent - HtmlContent - (90:2,16 [15] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (90:2,16 [15] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n Some text - HtmlElement - (105:3,13 [55] x:\dir\subdir\Test\TestComponent.cshtml) - some-child - HtmlAttribute - - - - HtmlAttributeValue - - - IntermediateToken - - Html - 1 - CSharpExpression - (124:3,32 [23] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (124:3,32 [23] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - item.ToLowerInvariant() - HtmlContent - (160:3,68 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (160:3,68 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - ComponentAttributeExtensionNode - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - MyAttr - MyAttr - HtmlContent - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (52:1,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - abc diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.codegen.cs deleted file mode 100644 index 6d455d9ef9..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.codegen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "OnClick", new System.Action(e => { Increment(); })); - builder.CloseComponent(); - } - #pragma warning restore 1998 -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - - private int counter; - private void Increment() { - counter++; - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.ir.txt deleted file mode 100644 index 650e237e28..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.ir.txt +++ /dev/null @@ -1,17 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [49] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (53:1,22 [24] x:\dir\subdir\Test\TestComponent.cshtml) - OnClick - OnClick - CSharpExpression - (54:1,23 [23] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (55:1,24 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - e => { Increment(); } - CSharpCode - (96:3,12 [87] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (96:3,12 [87] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private int counter;\n private void Increment() {\n counter++;\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.mappings.txt deleted file mode 100644 index 1e331a5dcb..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.mappings.txt +++ /dev/null @@ -1,15 +0,0 @@ -Source Location: (96:3,12 [87] x:\dir\subdir\Test\TestComponent.cshtml) -| - private int counter; - private void Increment() { - counter++; - } -| -Generated Location: (893:22,12 [87] ) -| - private int counter; - private void Increment() { - counter++; - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.codegen.cs deleted file mode 100644 index 2e99450956..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.codegen.cs +++ /dev/null @@ -1,25 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "some-attribute", "foo"); - builder.AddAttribute(2, "another-attribute", 43.ToString()); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.ir.txt deleted file mode 100644 index 81e15493f9..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.ir.txt +++ /dev/null @@ -1,18 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [72] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - - some-attribute - - HtmlContent - (60:1,29 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (60:1,29 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - foo - ComponentAttributeExtensionNode - - another-attribute - - CSharpExpression - (84:1,53 [16] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (86:1,55 [13] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - 43.ToString() diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.codegen.cs deleted file mode 100644 index d3956e6d2e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.codegen.cs +++ /dev/null @@ -1,25 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - [Microsoft.AspNetCore.Components.RouteAttribute("/MyPage")] - [Microsoft.AspNetCore.Components.RouteAttribute("/AnotherRoute/{id}")] - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.ir.txt deleted file mode 100644 index 5ed1562534..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.ir.txt +++ /dev/null @@ -1,14 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - RouteAttributeExtensionNode - - /MyPage - RouteAttributeExtensionNode - - /AnotherRoute/{id} - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (76:3,0 [15] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.codegen.cs deleted file mode 100644 index 5fd12339b2..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.codegen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "IntProperty", Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(123)); - builder.AddAttribute(2, "BoolProperty", Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(true)); - builder.AddAttribute(3, "StringProperty", "My string"); - builder.AddAttribute(4, "ObjectProperty", Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(new SomeType())); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.ir.txt deleted file mode 100644 index e56cec3e92..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.ir.txt +++ /dev/null @@ -1,21 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [132] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (63:2,17 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntProperty - IntProperty - IntermediateToken - (63:2,17 [3] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - 123 - ComponentAttributeExtensionNode - (87:3,18 [4] x:\dir\subdir\Test\TestComponent.cshtml) - BoolProperty - BoolProperty - IntermediateToken - (87:3,18 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - true - ComponentAttributeExtensionNode - (114:4,20 [9] x:\dir\subdir\Test\TestComponent.cshtml) - StringProperty - StringProperty - HtmlContent - (114:4,20 [9] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (114:4,20 [9] x:\dir\subdir\Test\TestComponent.cshtml) - Html - My string - ComponentAttributeExtensionNode - (146:5,20 [14] x:\dir\subdir\Test\TestComponent.cshtml) - ObjectProperty - ObjectProperty - IntermediateToken - (146:5,20 [14] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - new SomeType() diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.codegen.cs deleted file mode 100644 index 4bf707b825..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.codegen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(OnClick)); - builder.CloseComponent(); - } - #pragma warning restore 1998 -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - - private Action OnClick { get; set; } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.ir.txt deleted file mode 100644 index 85be32648d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.ir.txt +++ /dev/null @@ -1,19 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [37] x:\dir\subdir\Test\TestComponent.cshtml) - DynamicElement - Test.DynamicElement - ComponentAttributeExtensionNode - (56:1,25 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick - onclick - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (57:1,26 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick - IntermediateToken - - CSharp - ) - CSharpCode - (84:3,12 [62] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (84:3,12 [62] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private Action OnClick { get; set; }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.mappings.txt deleted file mode 100644 index 9ddaeafa67..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (84:3,12 [62] x:\dir\subdir\Test\TestComponent.cshtml) -| - private Action OnClick { get; set; } -| -Generated Location: (934:22,12 [62] ) -| - private Action OnClick { get; set; } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.codegen.cs deleted file mode 100644 index adcb35739c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.codegen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "Coolness", Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck("very-cool")); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.ir.txt deleted file mode 100644 index 511caa57b3..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.ir.txt +++ /dev/null @@ -1,15 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [43] x:\dir\subdir\Test\TestComponent.cshtml) - CoolnessMeter - Test.CoolnessMeter - ComponentAttributeExtensionNode - (56:1,25 [14] x:\dir\subdir\Test\TestComponent.cshtml) - Coolness - Coolness - CSharpExpression - (57:1,26 [13] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (58:1,27 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "very-cool" diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.codegen.cs deleted file mode 100644 index 743a1d2535..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.codegen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddMarkupContent(0, "

Item1

\n"); -#line 6 "x:\dir\subdir\Test\TestComponent.cshtml" - foreach (var item2 in Items2) -{ - -#line default -#line hidden - builder.AddContent(1, " "); - builder.OpenElement(2, "p"); - builder.AddContent(3, "\n "); - builder.AddContent(4, ChildContent(item2)); - builder.AddContent(5, ";\n "); - builder.CloseElement(); - builder.AddContent(6, "\n"); -#line 11 "x:\dir\subdir\Test\TestComponent.cshtml" -} - -#line default -#line hidden - } - #pragma warning restore 1998 -#line 12 "x:\dir\subdir\Test\TestComponent.cshtml" - - [Parameter] TItem1 Item1 { get; set; } - [Parameter] List Items2 { get; set; } - [Parameter] RenderFragment ChildContent { get; set; } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.ir.txt deleted file mode 100644 index 19ae93068d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.ir.txt +++ /dev/null @@ -1,29 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (1:0,1 [40] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlBlock - -

Item1

\n - CSharpCode - (98:5,1 [34] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (98:5,1 [34] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - foreach (var item2 in Items2)\n{\n - HtmlContent - (132:7,0 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (132:7,0 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - - HtmlElement - (136:7,4 [40] x:\dir\subdir\Test\TestComponent.cshtml) - p - HtmlContent - (139:7,7 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (139:7,7 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpExpression - (146:8,5 [19] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (146:8,5 [19] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ChildContent(item2) - HtmlContent - (165:8,24 [7] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (165:8,24 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Html - ;\n - HtmlContent - (176:9,8 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (176:9,8 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (178:10,0 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (178:10,0 [3] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - }\n - CSharpCode - (193:11,12 [164] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (193:11,12 [164] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n [Parameter] TItem1 Item1 { get; set; }\n [Parameter] List Items2 { get; set; }\n [Parameter] RenderFragment ChildContent { get; set; }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.mappings.txt deleted file mode 100644 index ce3eb9c9b5..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.mappings.txt +++ /dev/null @@ -1,29 +0,0 @@ -Source Location: (98:5,1 [34] x:\dir\subdir\Test\TestComponent.cshtml) -|foreach (var item2 in Items2) -{ -| -Generated Location: (679:19,1 [34] ) -|foreach (var item2 in Items2) -{ -| - -Source Location: (178:10,0 [3] x:\dir\subdir\Test\TestComponent.cshtml) -|} -| -Generated Location: (1111:33,0 [3] ) -|} -| - -Source Location: (193:11,12 [164] x:\dir\subdir\Test\TestComponent.cshtml) -| - [Parameter] TItem1 Item1 { get; set; } - [Parameter] List Items2 { get; set; } - [Parameter] RenderFragment ChildContent { get; set; } -| -Generated Location: (1258:40,12 [164] ) -| - [Parameter] TItem1 Item1 { get; set; } - [Parameter] List Items2 { get; set; } - [Parameter] RenderFragment ChildContent { get; set; } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithDocType/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithDocType/TestComponent.codegen.cs deleted file mode 100644 index 1a8e86cab4..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithDocType/TestComponent.codegen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddMarkupContent(0, "
\n
"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithDocType/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithDocType/TestComponent.ir.txt deleted file mode 100644 index 52917e45c3..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithDocType/TestComponent.ir.txt +++ /dev/null @@ -1,12 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlBlock - -
\n
diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef/TestComponent.codegen.cs deleted file mode 100644 index d3fc981a86..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef/TestComponent.codegen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "ParamBefore", "before"); - builder.AddAttribute(2, "ParamAfter", "after"); - builder.AddComponentReferenceCapture(3, (__value) => { -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - myInstance = (Test.MyComponent)__value; - -#line default -#line hidden - } - ); - builder.CloseComponent(); - } - #pragma warning restore 1998 -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - - private Test.MyComponent myInstance; - public void Foo() { System.GC.KeepAlive(myInstance); } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef/TestComponent.ir.txt deleted file mode 100644 index c79c0afd23..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef/TestComponent.ir.txt +++ /dev/null @@ -1,21 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [72] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - - ParamBefore - - HtmlContent - (57:1,26 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (57:1,26 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - before - RefExtensionNode - (70:1,39 [10] x:\dir\subdir\Test\TestComponent.cshtml) - myInstance - Test.MyComponent - ComponentAttributeExtensionNode - - ParamAfter - - HtmlContent - (94:1,63 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (94:1,63 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - after - CSharpCode - (119:3,12 [104] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (119:3,12 [104] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private Test.MyComponent myInstance;\n public void Foo() { System.GC.KeepAlive(myInstance); }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef/TestComponent.mappings.txt deleted file mode 100644 index ea8d5c6853..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef/TestComponent.mappings.txt +++ /dev/null @@ -1,16 +0,0 @@ -Source Location: (70:1,39 [10] x:\dir\subdir\Test\TestComponent.cshtml) -|myInstance| -Generated Location: (888:21,39 [10] ) -|myInstance| - -Source Location: (119:3,12 [104] x:\dir\subdir\Test\TestComponent.cshtml) -| - private Test.MyComponent myInstance; - public void Foo() { System.GC.KeepAlive(myInstance); } -| -Generated Location: (1142:31,12 [104] ) -| - private Test.MyComponent myInstance; - public void Foo() { System.GC.KeepAlive(myInstance); } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.codegen.cs deleted file mode 100644 index 60c7ebc335..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "SomeProp", "val"); - builder.AddAttribute(2, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - builder2.AddContent(3, "\n Some "); - builder2.AddMarkupContent(4, "further content\n"); - } - )); - builder.AddComponentReferenceCapture(5, (__value) => { -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - myInstance = (Test.MyComponent)__value; - -#line default -#line hidden - } - ); - builder.CloseComponent(); - } - #pragma warning restore 1998 -#line 6 "x:\dir\subdir\Test\TestComponent.cshtml" - - private Test.MyComponent myInstance; - public void Foo() { System.GC.KeepAlive(myInstance); } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.ir.txt deleted file mode 100644 index 8407ec8378..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,22 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [96] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - - ChildContent - HtmlContent - (76:1,45 [11] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (76:1,45 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n Some - HtmlBlock - - further content\n - RefExtensionNode - (49:1,18 [10] x:\dir\subdir\Test\TestComponent.cshtml) - myInstance - Test.MyComponent - ComponentAttributeExtensionNode - - SomeProp - - HtmlContent - (71:1,40 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (71:1,40 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - val - CSharpCode - (143:5,12 [104] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (143:5,12 [104] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private Test.MyComponent myInstance;\n public void Foo() { System.GC.KeepAlive(myInstance); }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.mappings.txt deleted file mode 100644 index 9dbf41a99d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.mappings.txt +++ /dev/null @@ -1,16 +0,0 @@ -Source Location: (49:1,18 [10] x:\dir\subdir\Test\TestComponent.cshtml) -|myInstance| -Generated Location: (1083:26,18 [10] ) -|myInstance| - -Source Location: (143:5,12 [104] x:\dir\subdir\Test\TestComponent.cshtml) -| - private Test.MyComponent myInstance; - public void Foo() { System.GC.KeepAlive(myInstance); } -| -Generated Location: (1337:36,12 [104] ) -| - private Test.MyComponent myInstance; - public void Foo() { System.GC.KeepAlive(myInstance); } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Element_WithRef/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Element_WithRef/TestComponent.codegen.cs deleted file mode 100644 index 076c244509..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Element_WithRef/TestComponent.codegen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "elem"); - builder.AddAttribute(1, "attributebefore", "before"); - builder.AddAttribute(2, "attributeafter", "after"); - builder.AddElementReferenceCapture(3, (__value) => { -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - myElem = __value; - -#line default -#line hidden - } - ); - builder.AddContent(4, "Hello"); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - private Microsoft.AspNetCore.Components.ElementRef myElem; - public void Foo() { System.GC.KeepAlive(myElem); } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Element_WithRef/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Element_WithRef/TestComponent.ir.txt deleted file mode 100644 index 3becd3940c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Element_WithRef/TestComponent.ir.txt +++ /dev/null @@ -1,23 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [79] x:\dir\subdir\Test\TestComponent.cshtml) - elem - HtmlContent - (67:0,67 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (67:0,67 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Hello - HtmlAttribute - - attributebefore=" - " - HtmlAttributeValue - (23:0,23 [6] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (23:0,23 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - before - RefExtensionNode - (36:0,36 [6] x:\dir\subdir\Test\TestComponent.cshtml) - myElem - Element - HtmlAttribute - - attributeafter=" - " - HtmlAttributeValue - (60:0,60 [5] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (60:0,60 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - after - CSharpCode - (95:2,12 [122] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (95:2,12 [122] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private Microsoft.AspNetCore.Components.ElementRef myElem;\n public void Foo() { System.GC.KeepAlive(myElem); }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Element_WithRef/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Element_WithRef/TestComponent.mappings.txt deleted file mode 100644 index 71cbebbe5e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Element_WithRef/TestComponent.mappings.txt +++ /dev/null @@ -1,16 +0,0 @@ -Source Location: (36:0,36 [6] x:\dir\subdir\Test\TestComponent.cshtml) -|myElem| -Generated Location: (879:21,36 [6] ) -|myElem| - -Source Location: (95:2,12 [122] x:\dir\subdir\Test\TestComponent.cshtml) -| - private Microsoft.AspNetCore.Components.ElementRef myElem; - public void Foo() { System.GC.KeepAlive(myElem); } -| -Generated Location: (1154:32,12 [122] ) -| - private Microsoft.AspNetCore.Components.ElementRef myElem; - public void Foo() { System.GC.KeepAlive(myElem); } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.codegen.cs deleted file mode 100644 index daf7ed1d8e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.codegen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "onfocus", Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue("alert(\"Test\");")); - builder.CloseElement(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.ir.txt deleted file mode 100644 index 3d504c06f9..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.ir.txt +++ /dev/null @@ -1,17 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [34] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [14] x:\dir\subdir\Test\TestComponent.cshtml) - onfocus=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - - CSharp - "alert(\"Test\");" - IntermediateToken - - CSharp - ) diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.codegen.cs deleted file mode 100644 index 8d291c9a04..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(OnClick)); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - void OnClick(UIEventArgs e) { - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.ir.txt deleted file mode 100644 index db06c4f0ea..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.ir.txt +++ /dev/null @@ -1,19 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick - IntermediateToken - - CSharp - ) - CSharpCode - (42:1,12 [44] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (42:1,12 [44] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(UIEventArgs e) {\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.mappings.txt deleted file mode 100644 index 35125aed42..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.mappings.txt +++ /dev/null @@ -1,11 +0,0 @@ -Source Location: (42:1,12 [44] x:\dir\subdir\Test\TestComponent.cshtml) -| - void OnClick(UIEventArgs e) { - } -| -Generated Location: (918:22,12 [44] ) -| - void OnClick(UIEventArgs e) { - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.codegen.cs deleted file mode 100644 index 0848a804f7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(OnClick)); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - void OnClick(UIMouseEventArgs e) { - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.ir.txt deleted file mode 100644 index 1d316a8f81..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.ir.txt +++ /dev/null @@ -1,19 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick - IntermediateToken - - CSharp - ) - CSharpCode - (42:1,12 [49] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (42:1,12 [49] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(UIMouseEventArgs e) {\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.mappings.txt deleted file mode 100644 index 165e27a701..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.mappings.txt +++ /dev/null @@ -1,11 +0,0 @@ -Source Location: (42:1,12 [49] x:\dir\subdir\Test\TestComponent.cshtml) -| - void OnClick(UIMouseEventArgs e) { - } -| -Generated Location: (918:22,12 [49] ) -| - void OnClick(UIMouseEventArgs e) { - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.codegen.cs deleted file mode 100644 index 53546b8292..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.codegen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(x => { })); - builder.CloseElement(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.ir.txt deleted file mode 100644 index 6330618eda..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.ir.txt +++ /dev/null @@ -1,17 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [31] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [11] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (18:0,18 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - x => { } - IntermediateToken - - CSharp - ) diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.codegen.cs deleted file mode 100644 index 0848a804f7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(OnClick)); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - void OnClick(UIMouseEventArgs e) { - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.ir.txt deleted file mode 100644 index 1d316a8f81..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.ir.txt +++ /dev/null @@ -1,19 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick - IntermediateToken - - CSharp - ) - CSharpCode - (42:1,12 [49] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (42:1,12 [49] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(UIMouseEventArgs e) {\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.mappings.txt deleted file mode 100644 index 165e27a701..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.mappings.txt +++ /dev/null @@ -1,11 +0,0 @@ -Source Location: (42:1,12 [49] x:\dir\subdir\Test\TestComponent.cshtml) -| - void OnClick(UIMouseEventArgs e) { - } -| -Generated Location: (918:22,12 [49] ) -| - void OnClick(UIMouseEventArgs e) { - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.codegen.cs deleted file mode 100644 index 53546b8292..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.codegen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(x => { })); - builder.CloseElement(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.ir.txt deleted file mode 100644 index 6330618eda..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.ir.txt +++ /dev/null @@ -1,17 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [31] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [11] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (18:0,18 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - x => { } - IntermediateToken - - CSharp - ) diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.codegen.cs deleted file mode 100644 index 83bd39591f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(OnClick)); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - void OnClick() { - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.ir.txt deleted file mode 100644 index cac45e6297..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.ir.txt +++ /dev/null @@ -1,19 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick - IntermediateToken - - CSharp - ) - CSharpCode - (42:1,12 [31] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (42:1,12 [31] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick() {\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.mappings.txt deleted file mode 100644 index c009c34e8c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.mappings.txt +++ /dev/null @@ -1,11 +0,0 @@ -Source Location: (42:1,12 [31] x:\dir\subdir\Test\TestComponent.cshtml) -| - void OnClick() { - } -| -Generated Location: (918:22,12 [31] ) -| - void OnClick() { - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.codegen.cs deleted file mode 100644 index 160ee3f277..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.codegen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(() => { })); - builder.CloseElement(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.ir.txt deleted file mode 100644 index 64b7520723..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.ir.txt +++ /dev/null @@ -1,17 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [32] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (18:0,18 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => { } - IntermediateToken - - CSharp - ) diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.codegen.cs deleted file mode 100644 index b548a04645..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.codegen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "input"); - builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue("foo")); - builder.CloseElement(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.ir.txt deleted file mode 100644 index dfdc050a28..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.ir.txt +++ /dev/null @@ -1,17 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [23] x:\dir\subdir\Test\TestComponent.cshtml) - input - HtmlAttribute - (16:0,16 [3] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - - CSharp - "foo" - IntermediateToken - - CSharp - ) diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.codegen.cs deleted file mode 100644 index 006b008784..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.codegen.cs +++ /dev/null @@ -1,39 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent>(0); - builder.AddAttribute(1, "Item", Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(3)); - builder.AddComponentReferenceCapture(2, (__value) => { -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - _my = (Test.MyComponent)__value; - -#line default -#line hidden - } - ); - builder.CloseComponent(); - } - #pragma warning restore 1998 -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - - private MyComponent _my; - public void Foo() { System.GC.KeepAlive(_my); } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.ir.txt deleted file mode 100644 index 32c963b7f4..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.ir.txt +++ /dev/null @@ -1,19 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [44] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentTypeArgumentExtensionNode - (50:1,19 [3] x:\dir\subdir\Test\TestComponent.cshtml) - TItem - IntermediateToken - (50:1,19 [3] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - int - ComponentAttributeExtensionNode - (60:1,29 [1] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - IntermediateToken - (60:1,29 [1] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - 3 - RefExtensionNode - (68:1,37 [3] x:\dir\subdir\Test\TestComponent.cshtml) - _my - Test.MyComponent - CSharpCode - (91:3,12 [90] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (91:3,12 [90] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private MyComponent _my;\n public void Foo() { System.GC.KeepAlive(_my); }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.mappings.txt deleted file mode 100644 index 527982b014..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.mappings.txt +++ /dev/null @@ -1,16 +0,0 @@ -Source Location: (68:1,37 [3] x:\dir\subdir\Test\TestComponent.cshtml) -|_my| -Generated Location: (879:20,37 [3] ) -|_my| - -Source Location: (91:3,12 [90] x:\dir\subdir\Test\TestComponent.cshtml) -| - private MyComponent _my; - public void Foo() { System.GC.KeepAlive(_my); } -| -Generated Location: (1131:30,12 [90] ) -| - private MyComponent _my; - public void Foo() { System.GC.KeepAlive(_my); } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.codegen.cs deleted file mode 100644 index c299061cdb..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.codegen.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - __Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, 0, 1, 3, 2, (__value) => { -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - _my = __value; - -#line default -#line hidden - } - ); - } - #pragma warning restore 1998 -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - - private MyComponent _my; - public void Foo() { System.GC.KeepAlive(_my); } - -#line default -#line hidden - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0, int __seq1, global::System.Action> __arg1) - { - builder.OpenComponent>(seq); - builder.AddAttribute(__seq0, "Item", __arg0); - builder.AddComponentReferenceCapture(__seq1, (__value) => { __arg1((global::Test.MyComponent)__value); }); - builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.ir.txt deleted file mode 100644 index ec12816d5c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.ir.txt +++ /dev/null @@ -1,20 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [34] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - global::Test.MyComponent - ComponentAttributeExtensionNode - (50:1,19 [1] x:\dir\subdir\Test\TestComponent.cshtml) - Item - Item - IntermediateToken - (50:1,19 [1] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - 3 - RefExtensionNode - (58:1,27 [3] x:\dir\subdir\Test\TestComponent.cshtml) - _my - global::Test.MyComponent - CSharpCode - (81:3,12 [90] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (81:3,12 [90] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private MyComponent _my;\n public void Foo() { System.GC.KeepAlive(_my); }\n - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.mappings.txt deleted file mode 100644 index 5803b4379d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.mappings.txt +++ /dev/null @@ -1,16 +0,0 @@ -Source Location: (58:1,27 [3] x:\dir\subdir\Test\TestComponent.cshtml) -|_my| -Generated Location: (738:18,27 [3] ) -|_my| - -Source Location: (81:3,12 [90] x:\dir\subdir\Test\TestComponent.cshtml) -| - private MyComponent _my; - public void Foo() { System.GC.KeepAlive(_my); } -| -Generated Location: (928:27,12 [90] ) -| - private MyComponent _my; - public void Foo() { System.GC.KeepAlive(_my); } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.codegen.cs deleted file mode 100644 index 7dfa3b3021..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.codegen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddContent(0, "My value"); - builder.AddContent(1, "\n\n"); - builder.AddMarkupContent(2, "

Hello

"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.ir.txt deleted file mode 100644 index 7b9697cfba..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.ir.txt +++ /dev/null @@ -1,16 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpExpression - (2:0,2 [10] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (2:0,2 [10] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "My value" - HtmlContent - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - HtmlBlock - -

Hello

diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.codegen.cs deleted file mode 100644 index 4df487e6d7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.codegen.cs +++ /dev/null @@ -1,25 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.CloseComponent(); - builder.AddContent(1, "\n\n"); - builder.AddMarkupContent(2, "

Hello

"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.ir.txt deleted file mode 100644 index 6f9090488c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.ir.txt +++ /dev/null @@ -1,15 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (36:2,0 [22] x:\dir\subdir\Test\TestComponent.cshtml) - SomeOtherComponent - Test.SomeOtherComponent - HtmlContent - (58:2,22 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (58:2,22 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - HtmlBlock - -

Hello

diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.codegen.cs deleted file mode 100644 index 02d3036e76..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.codegen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - using System; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddMarkupContent(0, "

Hello

"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.ir.txt deleted file mode 100644 index 210b13ae3f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.ir.txt +++ /dev/null @@ -1,12 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - UsingDirective - (1:0,1 [14] x:\dir\subdir\Test\TestComponent.cshtml) - System - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlBlock - -

Hello

diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.codegen.cs deleted file mode 100644 index 6032dbfa1e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "Header", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - builder2.AddContent(2, "Hi!"); - } - )); - builder.AddAttribute(3, "Footer", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - builder2.AddContent(4, "bye!"); - } - )); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.ir.txt deleted file mode 100644 index ad902f45bf..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.ir.txt +++ /dev/null @@ -1,18 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [87] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - (50:2,4 [20] x:\dir\subdir\Test\TestComponent.cshtml) - Header - HtmlContent - (58:2,12 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (58:2,12 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Hi! - ComponentChildContent - (76:3,4 [26] x:\dir\subdir\Test\TestComponent.cshtml) - Footer - CSharpExpression - (86:3,14 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (86:3,14 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "bye!" diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.codegen.cs deleted file mode 100644 index 8068fdf5de..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.codegen.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - RenderFragment template = (context) => - -#line default -#line hidden - (builder2) => { - builder2.OpenElement(0, "li"); - builder2.AddContent(1, "#"); - builder2.AddContent(2, context.Index); - builder2.AddContent(3, " - "); - builder2.AddContent(4, context.Item.ToLower()); - builder2.CloseElement(); - } -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ; - -#line default -#line hidden - builder.OpenComponent(5); - builder.AddAttribute(6, "Template", new Microsoft.AspNetCore.Components.RenderFragment(template)); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.ir.txt deleted file mode 100644 index e7d96bc27c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.ir.txt +++ /dev/null @@ -1,29 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpCode - (35:1,2 [54] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (35:1,2 [54] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderFragment template = (context) => - Template - (90:1,57 [48] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (90:1,57 [50] x:\dir\subdir\Test\TestComponent.cshtml) - li - HtmlContent - (94:1,61 [1] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (94:1,61 [1] x:\dir\subdir\Test\TestComponent.cshtml) - Html - # - CSharpExpression - (96:1,63 [13] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (96:1,63 [13] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.Index - HtmlContent - (109:1,76 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (109:1,76 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \- - CSharpExpression - (113:1,80 [22] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (113:1,80 [22] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - context.Item.ToLower() - CSharpCode - (140:1,107 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (140:1,107 [2] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ; - ComponentExtensionNode - (145:2,0 [35] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (168:2,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - Template - Template - CSharpExpression - (169:2,24 [8] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (169:2,24 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - template diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.mappings.txt deleted file mode 100644 index 1963f1cf2c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (35:1,2 [54] x:\dir\subdir\Test\TestComponent.cshtml) -| RenderFragment template = (context) => | -Generated Location: (602:17,2 [54] ) -| RenderFragment template = (context) => | - -Source Location: (140:1,107 [2] x:\dir\subdir\Test\TestComponent.cshtml) -|; | -Generated Location: (1196:30,107 [2] ) -|; | - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.codegen.cs deleted file mode 100644 index cbf409e585..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.codegen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - RenderFragment p = (person) => - -#line default -#line hidden - (builder2) => { - builder2.OpenElement(0, "div"); - builder2.OpenComponent(1); - builder2.AddAttribute(2, "Name", Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(person.Name)); - builder2.CloseComponent(); - builder2.CloseElement(); - } -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - ; - -#line default -#line hidden - } - #pragma warning restore 1998 -#line 5 "x:\dir\subdir\Test\TestComponent.cshtml" - - class Person - { - public string Name { get; set; } - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.ir.txt deleted file mode 100644 index c7f75745ba..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.ir.txt +++ /dev/null @@ -1,23 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpCode - (35:1,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (35:1,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n RenderFragment p = (person) => - Template - (81:2,44 [45] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (81:2,44 [45] x:\dir\subdir\Test\TestComponent.cshtml) - div - ComponentExtensionNode - (86:2,49 [34] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (105:2,68 [12] x:\dir\subdir\Test\TestComponent.cshtml) - Name - Name - CSharpExpression - (106:2,69 [11] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (106:2,69 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - person.Name - CSharpCode - (126:2,89 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (126:2,89 [3] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ;\n - CSharpCode - (144:4,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (144:4,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n class Person\n {\n public string Name { get; set; }\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.mappings.txt deleted file mode 100644 index acde1a8af7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.mappings.txt +++ /dev/null @@ -1,29 +0,0 @@ -Source Location: (35:1,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) -| - RenderFragment p = (person) => | -Generated Location: (602:17,2 [45] ) -| - RenderFragment p = (person) => | - -Source Location: (126:2,89 [3] x:\dir\subdir\Test\TestComponent.cshtml) -|; -| -Generated Location: (1198:30,89 [3] ) -|; -| - -Source Location: (144:4,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) -| - class Person - { - public string Name { get; set; } - } -| -Generated Location: (1344:37,12 [76] ) -| - class Person - { - public string Name { get; set; } - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.codegen.cs deleted file mode 100644 index 75cf31b314..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.codegen.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - RenderFragment p = (person) => - -#line default -#line hidden - (builder2) => { - builder2.OpenElement(0, "div"); - builder2.OpenComponent(1); - builder2.AddAttribute(2, "Name", Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(person.Name)); - builder2.CloseComponent(); - builder2.CloseElement(); - } -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - ; - -#line default -#line hidden - builder.OpenComponent(3); - builder.AddAttribute(4, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => { - builder2.AddContent(5, "\n"); - builder2.AddContent(6, "hello, world!"); - builder2.AddContent(7, "\n"); - } - )); - builder.CloseComponent(); - } - #pragma warning restore 1998 -#line 9 "x:\dir\subdir\Test\TestComponent.cshtml" - - class Person - { - public string Name { get; set; } - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.ir.txt deleted file mode 100644 index 0ec2d91086..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.ir.txt +++ /dev/null @@ -1,31 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpCode - (35:1,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (35:1,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n RenderFragment p = (person) => - Template - (81:2,44 [45] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (81:2,44 [45] x:\dir\subdir\Test\TestComponent.cshtml) - div - ComponentExtensionNode - (86:2,49 [34] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (105:2,68 [12] x:\dir\subdir\Test\TestComponent.cshtml) - Name - Name - CSharpExpression - (106:2,69 [11] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (106:2,69 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - person.Name - CSharpCode - (126:2,89 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (126:2,89 [3] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ;\n - ComponentExtensionNode - (132:4,0 [49] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentChildContent - - ChildContent - HtmlContent - (145:4,13 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (145:4,13 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpExpression - (149:5,2 [15] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (149:5,2 [15] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "hello, world!" - HtmlContent - (165:5,18 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (165:5,18 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (197:8,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (197:8,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n class Person\n {\n public string Name { get; set; }\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.mappings.txt deleted file mode 100644 index c0db477d8a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.mappings.txt +++ /dev/null @@ -1,29 +0,0 @@ -Source Location: (35:1,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) -| - RenderFragment p = (person) => | -Generated Location: (602:17,2 [45] ) -| - RenderFragment p = (person) => | - -Source Location: (126:2,89 [3] x:\dir\subdir\Test\TestComponent.cshtml) -|; -| -Generated Location: (1198:30,89 [3] ) -|; -| - -Source Location: (197:8,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) -| - class Person - { - public string Name { get; set; } - } -| -Generated Location: (1742:45,12 [76] ) -| - class Person - { - public string Name { get; set; } - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.codegen.cs deleted file mode 100644 index dcb427879a..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.codegen.cs +++ /dev/null @@ -1,39 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - RenderFragment template = (person) => - -#line default -#line hidden - (builder2) => { - builder2.OpenElement(0, "div"); - builder2.AddContent(1, person.Name); - builder2.CloseElement(); - } -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ; - -#line default -#line hidden - builder.OpenComponent(2); - builder.AddAttribute(3, "PersonTemplate", new Microsoft.AspNetCore.Components.RenderFragment(template)); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.ir.txt deleted file mode 100644 index 0d9aff443e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.ir.txt +++ /dev/null @@ -1,23 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpCode - (35:1,2 [47] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (35:1,2 [47] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderFragment template = (person) => - Template - (83:1,50 [22] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (83:1,50 [23] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (89:1,56 [11] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (89:1,56 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - person.Name - CSharpCode - (106:1,73 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (106:1,73 [2] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ; - ComponentExtensionNode - (111:2,0 [41] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - (140:2,29 [9] x:\dir\subdir\Test\TestComponent.cshtml) - PersonTemplate - PersonTemplate - CSharpExpression - (141:2,30 [8] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (141:2,30 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - template diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.mappings.txt deleted file mode 100644 index ef5720700b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (35:1,2 [47] x:\dir\subdir\Test\TestComponent.cshtml) -| RenderFragment template = (person) => | -Generated Location: (602:17,2 [47] ) -| RenderFragment template = (person) => | - -Source Location: (106:1,73 [2] x:\dir\subdir\Test\TestComponent.cshtml) -|; | -Generated Location: (995:27,73 [2] ) -|; | - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.codegen.cs deleted file mode 100644 index a0fa8858ce..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.codegen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddContent(0, RenderPerson((person) => (builder2) => { - builder2.OpenElement(1, "div"); - builder2.AddContent(2, person.Name); - builder2.CloseElement(); - } - )); - } - #pragma warning restore 1998 -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - class Person - { - public string Name { get; set; } - } - - object RenderPerson(RenderFragment p) => null; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.ir.txt deleted file mode 100644 index 37914cc732..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.ir.txt +++ /dev/null @@ -1,20 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpExpression - (1:0,1 [48] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (1:0,1 [25] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderPerson((person) => - Template - (27:0,27 [22] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (27:0,27 [23] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (33:0,33 [11] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (33:0,33 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - person.Name - IntermediateToken - (50:0,50 [1] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ) - CSharpCode - (65:1,12 [138] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (65:1,12 [138] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n class Person\n {\n public string Name { get; set; }\n }\n\n object RenderPerson(RenderFragment p) => null;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.mappings.txt deleted file mode 100644 index 998fa7c231..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (65:1,12 [138] x:\dir\subdir\Test\TestComponent.cshtml) -| - class Person - { - public string Name { get; set; } - } - - object RenderPerson(RenderFragment p) => null; -| -Generated Location: (914:25,12 [138] ) -| - class Person - { - public string Name { get; set; } - } - - object RenderPerson(RenderFragment p) => null; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.codegen.cs deleted file mode 100644 index 333bd6f5d5..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.codegen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - - RenderFragment p = (person) => - -#line default -#line hidden - (builder2) => { - builder2.OpenElement(0, "div"); - builder2.AddContent(1, person.Name); - builder2.CloseElement(); - } -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ; - -#line default -#line hidden - } - #pragma warning restore 1998 -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - - class Person - { - public string Name { get; set; } - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.ir.txt deleted file mode 100644 index 5a22540dc7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.ir.txt +++ /dev/null @@ -1,21 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpCode - (2:0,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (2:0,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n RenderFragment p = (person) => - Template - (48:1,44 [22] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (48:1,44 [23] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (54:1,50 [11] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (54:1,50 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - person.Name - CSharpCode - (71:1,67 [3] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (71:1,67 [3] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ;\n - CSharpCode - (89:3,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (89:3,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n class Person\n {\n public string Name { get; set; }\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.mappings.txt deleted file mode 100644 index fa40ec8015..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.mappings.txt +++ /dev/null @@ -1,29 +0,0 @@ -Source Location: (2:0,2 [45] x:\dir\subdir\Test\TestComponent.cshtml) -| - RenderFragment p = (person) => | -Generated Location: (602:17,2 [45] ) -| - RenderFragment p = (person) => | - -Source Location: (71:1,67 [3] x:\dir\subdir\Test\TestComponent.cshtml) -|; -| -Generated Location: (987:28,67 [3] ) -|; -| - -Source Location: (89:3,12 [76] x:\dir\subdir\Test\TestComponent.cshtml) -| - class Person - { - public string Name { get; set; } - } -| -Generated Location: (1133:35,12 [76] ) -| - class Person - { - public string Name { get; set; } - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.codegen.cs deleted file mode 100644 index a0fa8858ce..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.codegen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddContent(0, RenderPerson((person) => (builder2) => { - builder2.OpenElement(1, "div"); - builder2.AddContent(2, person.Name); - builder2.CloseElement(); - } - )); - } - #pragma warning restore 1998 -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - class Person - { - public string Name { get; set; } - } - - object RenderPerson(RenderFragment p) => null; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.ir.txt deleted file mode 100644 index 8273aafc57..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.ir.txt +++ /dev/null @@ -1,20 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpExpression - (2:0,2 [48] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (2:0,2 [25] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderPerson((person) => - Template - (28:0,28 [22] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlElement - (28:0,28 [23] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpExpression - (34:0,34 [11] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (34:0,34 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - person.Name - IntermediateToken - (51:0,51 [1] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ) - CSharpCode - (67:1,12 [138] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (67:1,12 [138] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n class Person\n {\n public string Name { get; set; }\n }\n\n object RenderPerson(RenderFragment p) => null;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.mappings.txt deleted file mode 100644 index fd453a55c6..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (67:1,12 [138] x:\dir\subdir\Test\TestComponent.cshtml) -| - class Person - { - public string Name { get; set; } - } - - object RenderPerson(RenderFragment p) => null; -| -Generated Location: (914:25,12 [138] ) -| - class Person - { - public string Name { get; set; } - } - - object RenderPerson(RenderFragment p) => null; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.codegen.cs deleted file mode 100644 index 714746db4e..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.codegen.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - RenderFragment template = - -#line default -#line hidden - (builder2) => { - builder2.AddMarkupContent(0, "
Joey
"); - } -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - ; - -#line default -#line hidden - builder.OpenComponent(1); - builder.AddAttribute(2, "Person", template); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.ir.txt deleted file mode 100644 index bce4cf0b18..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.ir.txt +++ /dev/null @@ -1,21 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpCode - (35:1,2 [27] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (35:1,2 [27] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderFragment template = - Template - (63:1,30 [15] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlBlock - -
Joey
- CSharpCode - (78:1,45 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (78:1,45 [2] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ; - ComponentExtensionNode - (83:2,0 [33] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - Test.MyComponent - ComponentAttributeExtensionNode - - Person - - CSharpExpression - (104:2,21 [9] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (105:2,22 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - template diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.mappings.txt deleted file mode 100644 index 768ce896f0..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (35:1,2 [27] x:\dir\subdir\Test\TestComponent.cshtml) -| RenderFragment template = | -Generated Location: (602:17,2 [27] ) -| RenderFragment template = | - -Source Location: (78:1,45 [2] x:\dir\subdir\Test\TestComponent.cshtml) -|; | -Generated Location: (868:25,45 [2] ) -|; | - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.codegen.cs deleted file mode 100644 index 19de0ad213..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddContent(0, RenderPerson((builder2) => { - builder2.AddMarkupContent(1, "
HI
"); - } - )); - } - #pragma warning restore 1998 -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - object RenderPerson(RenderFragment p) => null; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.ir.txt deleted file mode 100644 index 0c92c8d333..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.ir.txt +++ /dev/null @@ -1,18 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - CSharpExpression - (1:0,1 [27] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (1:0,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderPerson( - Template - (15:0,15 [13] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlBlock - -
HI
- IntermediateToken - (28:0,28 [1] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ) - CSharpCode - (43:1,12 [54] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (43:1,12 [54] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n object RenderPerson(RenderFragment p) => null;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.mappings.txt deleted file mode 100644 index 75ad368ca8..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (43:1,12 [54] x:\dir\subdir\Test\TestComponent.cshtml) -| - object RenderPerson(RenderFragment p) => null; -| -Generated Location: (821:23,12 [54] ) -| - object RenderPerson(RenderFragment p) => null; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_597/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_597/TestComponent.codegen.cs deleted file mode 100644 index de8ea8d353..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_597/TestComponent.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "v", Microsoft.AspNetCore.Components.BindMethods.GetValue(y)); - builder.AddAttribute(2, "vChanged", Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => y = __value, y)); - builder.CloseComponent(); - } - #pragma warning restore 1998 -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - string y = null; - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_597/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_597/TestComponent.ir.txt deleted file mode 100644 index 3d82670555..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_597/TestComponent.ir.txt +++ /dev/null @@ -1,22 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [22] x:\dir\subdir\Test\TestComponent.cshtml) - Counter - Test.Counter - ComponentAttributeExtensionNode - (48:1,17 [1] x:\dir\subdir\Test\TestComponent.cshtml) - v - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (48:1,17 [1] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - y - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (48:1,17 [1] x:\dir\subdir\Test\TestComponent.cshtml) - vChanged - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => y = __value, y) - CSharpCode - (67:2,12 [24] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (67:2,12 [24] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string y = null;\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_597/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_597/TestComponent.mappings.txt deleted file mode 100644 index 727b6af35f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_597/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (67:2,12 [24] x:\dir\subdir\Test\TestComponent.cshtml) -| - string y = null; -| -Generated Location: (991:23,12 [24] ) -| - string y = null; -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_609/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_609/TestComponent.codegen.cs deleted file mode 100644 index 8c117e539f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_609/TestComponent.codegen.cs +++ /dev/null @@ -1,34 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenComponent(0); - builder.AddAttribute(1, "Name", Microsoft.AspNetCore.Components.BindMethods.GetValue(UserName)); - builder.AddAttribute(2, "NameChanged", Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => UserName = __value, UserName)); - builder.AddAttribute(3, "IsActive", Microsoft.AspNetCore.Components.BindMethods.GetValue(UserIsActive)); - builder.AddAttribute(4, "IsActiveChanged", Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => UserIsActive = __value, UserIsActive)); - builder.CloseComponent(); - } - #pragma warning restore 1998 -#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string UserName { get; set; } - public bool UserIsActive { get; set; } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_609/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_609/TestComponent.ir.txt deleted file mode 100644 index 7723e3e565..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_609/TestComponent.ir.txt +++ /dev/null @@ -1,30 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - ComponentExtensionNode - (31:1,0 [60] x:\dir\subdir\Test\TestComponent.cshtml) - User - Test.User - ComponentAttributeExtensionNode - (48:1,17 [9] x:\dir\subdir\Test\TestComponent.cshtml) - Name - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (49:1,18 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - UserName - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (48:1,17 [9] x:\dir\subdir\Test\TestComponent.cshtml) - NameChanged - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => UserName = __value, UserName) - ComponentAttributeExtensionNode - (74:1,43 [13] x:\dir\subdir\Test\TestComponent.cshtml) - IsActive - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetValue( - IntermediateToken - (75:1,44 [12] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - UserIsActive - IntermediateToken - - CSharp - ) - ComponentAttributeExtensionNode - (74:1,43 [13] x:\dir\subdir\Test\TestComponent.cshtml) - IsActiveChanged - - CSharpExpression - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.SetValueHandler(__value => UserIsActive = __value, UserIsActive) - CSharpCode - (107:3,12 [88] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (107:3,12 [88] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string UserName { get; set; }\n public bool UserIsActive { get; set; }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_609/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_609/TestComponent.mappings.txt deleted file mode 100644 index 77ef4f484c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_609/TestComponent.mappings.txt +++ /dev/null @@ -1,11 +0,0 @@ -Source Location: (107:3,12 [88] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string UserName { get; set; } - public bool UserIsActive { get; set; } -| -Generated Location: (1300:25,12 [88] ) -| - public string UserName { get; set; } - public bool UserIsActive { get; set; } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_772/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_772/TestComponent.codegen.cs deleted file mode 100644 index 2ce16627be..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_772/TestComponent.codegen.cs +++ /dev/null @@ -1,26 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - [Microsoft.AspNetCore.Components.RouteAttribute("/")] - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddMarkupContent(0, "

Hello, world!

\n\nWelcome to your new app.\n\n"); - builder.OpenComponent(1); - builder.AddAttribute(2, "Title", ""); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_772/TestComponent.diagnostics.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_772/TestComponent.diagnostics.txt deleted file mode 100644 index 57b2bc7949..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_772/TestComponent.diagnostics.txt +++ /dev/null @@ -1,2 +0,0 @@ -x:\dir\subdir\Test\TestComponent.cshtml(8,2): Error RZ1035: Missing close angle for tag helper 'SurveyPrompt'. -x:\dir\subdir\Test\TestComponent.cshtml(8,2): Error RZ1034: Found a malformed 'SurveyPrompt' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_772/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_772/TestComponent.ir.txt deleted file mode 100644 index b127a13de4..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_772/TestComponent.ir.txt +++ /dev/null @@ -1,17 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - RouteAttributeExtensionNode - - / - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlBlock - -

Hello, world!

\n\nWelcome to your new app.\n\n - ComponentExtensionNode - (98:7,0 [23] x:\dir\subdir\Test\TestComponent.cshtml) - SurveyPrompt - Test.SurveyPrompt - ComponentAttributeExtensionNode - (119:7,21 [0] x:\dir\subdir\Test\TestComponent.cshtml) - Title - Title - HtmlContent - (119:7,21 [0] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (119:7,21 [0] x:\dir\subdir\Test\TestComponent.cshtml) - Html - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_773/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_773/TestComponent.codegen.cs deleted file mode 100644 index a75a64a1e6..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_773/TestComponent.codegen.cs +++ /dev/null @@ -1,26 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - [Microsoft.AspNetCore.Components.RouteAttribute("/")] - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddMarkupContent(0, "

Hello, world!

\n\nWelcome to your new app.\n\n"); - builder.OpenComponent(1); - builder.AddAttribute(2, "Title", "
Test!
"); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_773/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_773/TestComponent.ir.txt deleted file mode 100644 index 1fb9a8886b..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_773/TestComponent.ir.txt +++ /dev/null @@ -1,17 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - RouteAttributeExtensionNode - - / - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlBlock - -

Hello, world!

\n\nWelcome to your new app.\n\n - ComponentExtensionNode - (98:7,0 [41] x:\dir\subdir\Test\TestComponent.cshtml) - SurveyPrompt - Test.SurveyPrompt - ComponentAttributeExtensionNode - (119:7,21 [16] x:\dir\subdir\Test\TestComponent.cshtml) - Title - Title - HtmlContent - (119:7,21 [16] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (119:7,21 [16] x:\dir\subdir\Test\TestComponent.cshtml) - Html -
Test!
diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_784/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_784/TestComponent.codegen.cs deleted file mode 100644 index 1132f45145..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_784/TestComponent.codegen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "p"); - builder.AddAttribute(1, "onmouseover", Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue(OnComponentHover)); - builder.AddAttribute(2, "style", "background:" + " " + (ParentBgColor) + ";"); - builder.CloseElement(); - } - #pragma warning restore 1998 -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentBgColor { get; set; } = "#FFFFFF"; - - public void OnComponentHover(UIMouseEventArgs e) - { - } - -#line default -#line hidden - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_784/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_784/TestComponent.ir.txt deleted file mode 100644 index 4a5b1e1c63..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_784/TestComponent.ir.txt +++ /dev/null @@ -1,26 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [73] x:\dir\subdir\Test\TestComponent.cshtml) - p - HtmlAttribute - (16:0,16 [17] x:\dir\subdir\Test\TestComponent.cshtml) - onmouseover=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindMethods.GetEventHandlerValue( - IntermediateToken - (17:0,17 [16] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnComponentHover - IntermediateToken - - CSharp - ) - HtmlAttribute - - style=" - " - HtmlAttributeValue - (42:0,42 [11] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (42:0,42 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Html - background: - CSharpExpressionAttributeValue - (53:0,53 [15] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (55:0,55 [13] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentBgColor - HtmlAttributeValue - (68:0,68 [1] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (68:0,68 [1] x:\dir\subdir\Test\TestComponent.cshtml) - Html - ; - CSharpCode - (87:1,12 [132] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (87:1,12 [132] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentBgColor { get; set; } = "#FFFFFF";\n\n public void OnComponentHover(UIMouseEventArgs e)\n {\n }\n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_784/TestComponent.mappings.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_784/TestComponent.mappings.txt deleted file mode 100644 index c9f709e2c1..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/Regression_784/TestComponent.mappings.txt +++ /dev/null @@ -1,17 +0,0 @@ -Source Location: (87:1,12 [132] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentBgColor { get; set; } = "#FFFFFF"; - - public void OnComponentHover(UIMouseEventArgs e) - { - } -| -Generated Location: (1019:23,12 [132] ) -| - public string ParentBgColor { get; set; } = "#FFFFFF"; - - public void OnComponentHover(UIMouseEventArgs e) - { - } -| - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ScriptTag_WithErrorSuppressed/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ScriptTag_WithErrorSuppressed/TestComponent.codegen.cs deleted file mode 100644 index 4a3c1c6225..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ScriptTag_WithErrorSuppressed/TestComponent.codegen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.OpenElement(0, "div"); - builder.AddContent(1, "\n "); - builder.OpenElement(2, "script"); - builder.AddAttribute(3, "src", "some/url.js"); - builder.AddAttribute(4, "anotherattribute", ""); - builder.AddContent(5, "\n some text\n some more text\n "); - builder.CloseElement(); - builder.AddContent(6, "\n"); - builder.CloseElement(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ScriptTag_WithErrorSuppressed/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ScriptTag_WithErrorSuppressed/TestComponent.ir.txt deleted file mode 100644 index e96a9b8477..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/ScriptTag_WithErrorSuppressed/TestComponent.ir.txt +++ /dev/null @@ -1,25 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlElement - (0:0,0 [144] x:\dir\subdir\Test\TestComponent.cshtml) - div - HtmlContent - (5:0,5 [6] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (5:0,5 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlElement - (11:1,4 [125] x:\dir\subdir\Test\TestComponent.cshtml) - script - HtmlAttribute - - - - HtmlAttributeValue - - - IntermediateToken - - Html - some/url.js - HtmlAttribute - - - - HtmlAttributeValue - - - IntermediateToken - - Html - - HtmlContent - (78:1,71 [49] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (78:1,71 [49] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n some text\n some more text\n - HtmlContent - (136:4,13 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (136:4,13 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.codegen.cs deleted file mode 100644 index 9b8920ec7c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.codegen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddMarkupContent(0, "

Hello

\n\n"); - builder.AddContent(1, "My value"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.ir.txt deleted file mode 100644 index e11585d5f6..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.ir.txt +++ /dev/null @@ -1,14 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlBlock - -

Hello

\n\n - CSharpExpression - (20:2,2 [10] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (20:2,2 [10] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "My value" diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.codegen.cs deleted file mode 100644 index 3f04a5e7e6..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.codegen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddMarkupContent(0, "

Hello

\n\n"); - builder.OpenComponent(1); - builder.CloseComponent(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.ir.txt deleted file mode 100644 index 9c3a0c453f..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.ir.txt +++ /dev/null @@ -1,13 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlBlock - -

Hello

\n\n - ComponentExtensionNode - (49:3,0 [22] x:\dir\subdir\Test\TestComponent.cshtml) - SomeOtherComponent - Test.SomeOtherComponent diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.codegen.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.codegen.cs deleted file mode 100644 index 9c401bc703..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.codegen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - [Microsoft.AspNetCore.Components.RouteAttribute("/my/url")] - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - base.BuildRenderTree(builder); - builder.AddMarkupContent(0, "

Hello

"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.ir.txt b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.ir.txt deleted file mode 100644 index 01e9d759a7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TestFiles/RuntimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.ir.txt +++ /dev/null @@ -1,13 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - RouteAttributeExtensionNode - - /my/url - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - - IntermediateToken - - CSharp - base.BuildRenderTree(builder); - HtmlBlock - -

Hello

diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TypingTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TypingTest.cs deleted file mode 100644 index 72aa448d63..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/TypingTest.cs +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using Xunit; -using Xunit.Sdk; - -namespace Microsoft.AspNetCore.Components.Build.Test -{ - // Similar to design time code generation tests, but goes a character at a time. - // Don't add many of these since they are slow - instead add features to existing - // tests here, and use these as smoke tests, not for detailed regression testing. - public class TypingTest : RazorIntegrationTestBase - { - internal override bool DesignTime => true; - - internal override bool UseTwoPhaseCompilation => false; - - [Fact] - public void DoSomeTyping() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] int Value { get; set; } - [Parameter] Action ValueChanged { get; set; } - [Parameter] string AnotherValue { get; set; } - } - - public class ModelState - { - public Action Bind(Func func) => throw null; - } -} -")); - var text = @" -@addTagHelper *, TestAssembly -
- - x)"" /> - -
- -@functions { - Test.ModelState ModelState { get; set; } -}"; - - for (var i = 0; i <= text.Length; i++) - { - try - { - CompileToCSharp(text.Substring(0, i)); - } - catch (Exception ex) - { - throw new XunitException($@" -Code generation failed on iteration {i} with source text: -{text.Substring(0, i)} - -Exception: -{ex} -"); - } - } - } - - [Fact] // Regression test for #1068 - public void Regression_1068() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" - -@functions { - Test.ModelState ModelState { get; set; } -} -"); - - // Assert - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/WorkingDirectoryRazorIntegrationTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/WorkingDirectoryRazorIntegrationTest.cs deleted file mode 100644 index f85b50120c..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/WorkingDirectoryRazorIntegrationTest.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.IO; -using System.Runtime.InteropServices; -using Xunit; - -namespace Microsoft.AspNetCore.Components.Build.Test -{ - // Integration tests focused on file path handling for class/namespace names - public class WorkingDirectoryRazorIntegrationTest : RazorIntegrationTestBase - { - public WorkingDirectoryRazorIntegrationTest() - { - WorkingDirectory = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ArbitraryWindowsPath : ArbitraryMacLinuxPath; - WorkingDirectory += "-Dir"; - } - - internal override string WorkingDirectory { get; } - - [Theory] - [InlineData("ItemAtRoot.cs", "Test_Dir", "ItemAtRoot")] - [InlineData("Dir1\\MyFile.cs", "Test_Dir.Dir1", "MyFile")] - [InlineData("Dir1\\Dir2\\MyFile.cs", "Test_Dir.Dir1.Dir2", "MyFile")] - public void CreatesClassWithCorrectNameAndNamespace(string relativePath, string expectedNamespace, string expectedClassName) - { - // Arrange - relativePath = relativePath.Replace('\\', Path.DirectorySeparatorChar); - - // Act - var result = CompileToAssembly(relativePath, ""); - - // Assert - Assert.Empty(result.Diagnostics); - - var type = Assert.Single(result.Assembly.GetTypes()); - Assert.Equal(expectedNamespace, type.Namespace); - Assert.Equal(expectedClassName, type.Name); - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.E2ETest/Infrastructure/BrowserTestBase.cs b/src/Components/test/Microsoft.AspNetCore.Components.E2ETest/Infrastructure/BrowserTestBase.cs index cc13ce5b7a..2487632d09 100644 --- a/src/Components/test/Microsoft.AspNetCore.Components.E2ETest/Infrastructure/BrowserTestBase.cs +++ b/src/Components/test/Microsoft.AspNetCore.Components.E2ETest/Infrastructure/BrowserTestBase.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .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; diff --git a/src/Components/test/Microsoft.AspNetCore.Components.E2ETest/Tests/ComponentRenderingTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.E2ETest/Tests/ComponentRenderingTest.cs index ac9547b54e..a50ccb1748 100644 --- a/src/Components/test/Microsoft.AspNetCore.Components.E2ETest/Tests/ComponentRenderingTest.cs +++ b/src/Components/test/Microsoft.AspNetCore.Components.E2ETest/Tests/ComponentRenderingTest.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .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; diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/BaseTagHelperDescriptorProviderTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/BaseTagHelperDescriptorProviderTest.cs deleted file mode 100644 index 23f5770dd1..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/BaseTagHelperDescriptorProviderTest.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.CSharp; -using Microsoft.Extensions.DependencyModel; - -namespace Microsoft.AspNetCore.Components.Razor -{ - public abstract class BaseTagHelperDescriptorProviderTest - { - static BaseTagHelperDescriptorProviderTest() - { - var dependencyContext = DependencyContext.Load(typeof(ComponentTagHelperDescriptorProviderTest).Assembly); - - var metadataReferences = dependencyContext.CompileLibraries - .SelectMany(l => l.ResolveReferencePaths()) - .Select(assemblyPath => MetadataReference.CreateFromFile(assemblyPath)) - .ToArray(); - - BaseCompilation = CSharpCompilation.Create( - "TestAssembly", - Array.Empty(), - metadataReferences, - new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)); - - CSharpParseOptions = new CSharpParseOptions(LanguageVersion.CSharp7_3); - } - - protected static Compilation BaseCompilation { get; } - - protected static CSharpParseOptions CSharpParseOptions { get; } - - protected static CSharpSyntaxTree Parse(string text) - { - return (CSharpSyntaxTree)CSharpSyntaxTree.ParseText(text, CSharpParseOptions); - } - - // For simplicity in testing, exclude the built-in components. We'll add more and we - // don't want to update the tests when that happens. - protected static TagHelperDescriptor[] ExcludeBuiltInComponents(TagHelperDescriptorProviderContext context) - { - return context.Results - .Where(c => c.AssemblyName == "TestAssembly") - .OrderBy(c => c.Name) - .ToArray(); - } - - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/BindTagHelperDescriptorProviderTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/BindTagHelperDescriptorProviderTest.cs deleted file mode 100644 index 2c3c6a9c41..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/BindTagHelperDescriptorProviderTest.cs +++ /dev/null @@ -1,683 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.CodeAnalysis.Razor; -using Xunit; - -namespace Microsoft.AspNetCore.Components.Razor -{ - public class BindTagHelperDescriptorProviderTest : BaseTagHelperDescriptorProviderTest - { - [Fact] - public void Execute_FindsBindTagHelperOnComponentType_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : IComponent - { - public void Init(RenderHandle renderHandle) { } - - public void SetParameters(ParameterCollection parameters) { } - - [Parameter] - string MyProperty { get; set; } - - [Parameter] - Action MyPropertyChanged { get; set; } - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - // We run after component discovery and depend on the results. - var componentProvider = new ComponentTagHelperDescriptorProvider(); - componentProvider.Execute(context); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetBindTagHelpers(context); - var bind = Assert.Single(matches); - - // These are features Bind Tags Helpers don't use. Verifying them once here and - // then ignoring them. - Assert.Empty(bind.AllowedChildTags); - Assert.Null(bind.TagOutputHint); - - // These are features that are invariants of all Bind Tag Helpers. Verifying them once - // here and then ignoring them. - Assert.Empty(bind.Diagnostics); - Assert.False(bind.HasErrors); - Assert.Equal(BlazorMetadata.Bind.TagHelperKind, bind.Kind); - Assert.Equal(BlazorMetadata.Bind.RuntimeName, bind.Metadata[TagHelperMetadata.Runtime.Name]); - Assert.False(bind.IsDefaultKind()); - Assert.False(bind.KindUsesDefaultTagHelperRuntime()); - - Assert.Equal("MyProperty", bind.Metadata[BlazorMetadata.Bind.ValueAttribute]); - Assert.Equal("MyPropertyChanged", bind.Metadata[BlazorMetadata.Bind.ChangeAttribute]); - - Assert.Equal( - "Binds the provided expression to the 'MyProperty' property and a change event " + - "delegate to the 'MyPropertyChanged' property of the component.", - bind.Documentation); - - // These are all trivially derived from the assembly/namespace/type name - Assert.Equal("TestAssembly", bind.AssemblyName); - Assert.Equal("Test.MyComponent", bind.Name); - Assert.Equal("Test.MyComponent", bind.DisplayName); - Assert.Equal("Test.MyComponent", bind.GetTypeName()); - - var rule = Assert.Single(bind.TagMatchingRules); - Assert.Empty(rule.Diagnostics); - Assert.False(rule.HasErrors); - Assert.Null(rule.ParentTag); - Assert.Equal("MyComponent", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Empty(requiredAttribute.Diagnostics); - Assert.Equal("bind-MyProperty", requiredAttribute.DisplayName); - Assert.Equal("bind-MyProperty", requiredAttribute.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.FullMatch, requiredAttribute.NameComparison); - Assert.Null(requiredAttribute.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.None, requiredAttribute.ValueComparison); - - var attribute = Assert.Single(bind.BoundAttributes); - - // Invariants - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal(BlazorMetadata.Bind.TagHelperKind, attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - Assert.False(attribute.HasIndexer); - Assert.Null(attribute.IndexerNamePrefix); - Assert.Null(attribute.IndexerTypeName); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.False(attribute.IsIndexerStringProperty); - - Assert.Equal( - "Binds the provided expression to the 'MyProperty' property and a change event " + - "delegate to the 'MyPropertyChanged' property of the component.", - attribute.Documentation); - - Assert.Equal("bind-MyProperty", attribute.Name); - Assert.Equal("MyProperty", attribute.GetPropertyName()); - Assert.Equal("string Test.MyComponent.MyProperty", attribute.DisplayName); - - // Defined from the property type - Assert.Equal("System.String", attribute.TypeName); - Assert.True(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - } - - [Fact] - public void Execute_NoMatchedPropertiesOnComponent_IgnoresComponent() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : IComponent - { - public void Init(RenderHandle renderHandle) { } - - public void SetParameters(ParameterCollection parameters) { } - - public string MyProperty { get; set; } - - public Action MyPropertyChangedNotMatch { get; set; } - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - // We run after component discovery and depend on the results. - var componentProvider = new ComponentTagHelperDescriptorProvider(); - componentProvider.Execute(context); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetBindTagHelpers(context); - Assert.Empty(matches); - } - - [Fact] - public void Execute_BindOnElement_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindElement(""div"", null, ""myprop"", ""myevent"")] - public class BindAttributes - { - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetBindTagHelpers(context); - var bind = Assert.Single(matches); - - // These are features Bind Tags Helpers don't use. Verifying them once here and - // then ignoring them. - Assert.Empty(bind.AllowedChildTags); - Assert.Null(bind.TagOutputHint); - - // These are features that are invariants of all Bind Tag Helpers. Verifying them once - // here and then ignoring them. - Assert.Empty(bind.Diagnostics); - Assert.False(bind.HasErrors); - Assert.Equal(BlazorMetadata.Bind.TagHelperKind, bind.Kind); - Assert.Equal(BlazorMetadata.Bind.RuntimeName, bind.Metadata[TagHelperMetadata.Runtime.Name]); - Assert.False(bind.IsDefaultKind()); - Assert.False(bind.KindUsesDefaultTagHelperRuntime()); - - Assert.Equal("myprop", bind.Metadata[BlazorMetadata.Bind.ValueAttribute]); - Assert.Equal("myevent", bind.Metadata[BlazorMetadata.Bind.ChangeAttribute]); - Assert.False(bind.IsInputElementBindTagHelper()); - Assert.False(bind.IsInputElementFallbackBindTagHelper()); - - Assert.Equal( - "Binds the provided expression to the 'myprop' attribute and a change event " + - "delegate to the 'myevent' attribute.", - bind.Documentation); - - // These are all trivially derived from the assembly/namespace/type name - Assert.Equal("TestAssembly", bind.AssemblyName); - Assert.Equal("Bind", bind.Name); - Assert.Equal("Test.BindAttributes", bind.DisplayName); - Assert.Equal("Test.BindAttributes", bind.GetTypeName()); - - // The tag matching rule for a bind-Component is always the component name + the attribute name - var rule = Assert.Single(bind.TagMatchingRules); - Assert.Empty(rule.Diagnostics); - Assert.False(rule.HasErrors); - Assert.Null(rule.ParentTag); - Assert.Equal("div", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Empty(requiredAttribute.Diagnostics); - Assert.Equal("bind", requiredAttribute.DisplayName); - Assert.Equal("bind", requiredAttribute.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.FullMatch, requiredAttribute.NameComparison); - Assert.Null(requiredAttribute.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.None, requiredAttribute.ValueComparison); - - var attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("bind")); - - // Invariants - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal(BlazorMetadata.Bind.TagHelperKind, attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - Assert.False(attribute.HasIndexer); - Assert.Null(attribute.IndexerNamePrefix); - Assert.Null(attribute.IndexerTypeName); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.False(attribute.IsIndexerStringProperty); - - Assert.Equal( - "Binds the provided expression to the 'myprop' attribute and a change event " + - "delegate to the 'myevent' attribute.", - attribute.Documentation); - - Assert.Equal("bind", attribute.Name); - Assert.Equal("Bind", attribute.GetPropertyName()); - Assert.Equal("object Test.BindAttributes.Bind", attribute.DisplayName); - - // Defined from the property type - Assert.Equal("System.Object", attribute.TypeName); - Assert.False(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - - attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("format")); - - // Invariants - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal(BlazorMetadata.Bind.TagHelperKind, attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - Assert.False(attribute.HasIndexer); - Assert.Null(attribute.IndexerNamePrefix); - Assert.Null(attribute.IndexerTypeName); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.False(attribute.IsIndexerStringProperty); - - Assert.Equal( - "Specifies a format to convert the value specified by the 'bind' attribute. " + - "The format string can currently only be used with expressions of type DateTime.", - attribute.Documentation); - - Assert.Equal("format-myprop", attribute.Name); - Assert.Equal("Format_myprop", attribute.GetPropertyName()); - Assert.Equal("string Test.BindAttributes.Format_myprop", attribute.DisplayName); - - // Defined from the property type - Assert.Equal("System.String", attribute.TypeName); - Assert.True(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - } - - [Fact] - public void Execute_BindOnElementWithSuffix_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindElement(""div"", ""myprop"", ""myprop"", ""myevent"")] - public class BindAttributes - { - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetBindTagHelpers(context); - var bind = Assert.Single(matches); - - Assert.Equal("myprop", bind.Metadata[BlazorMetadata.Bind.ValueAttribute]); - Assert.Equal("myevent", bind.Metadata[BlazorMetadata.Bind.ChangeAttribute]); - Assert.False(bind.IsInputElementBindTagHelper()); - Assert.False(bind.IsInputElementFallbackBindTagHelper()); - - var rule = Assert.Single(bind.TagMatchingRules); - Assert.Equal("div", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Equal("bind-myprop", requiredAttribute.DisplayName); - Assert.Equal("bind-myprop", requiredAttribute.Name); - - var attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("bind")); - Assert.Equal("bind-myprop", attribute.Name); - Assert.Equal("Bind_myprop", attribute.GetPropertyName()); - Assert.Equal("object Test.BindAttributes.Bind_myprop", attribute.DisplayName); - - attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("format")); - Assert.Equal("format-myprop", attribute.Name); - Assert.Equal("Format_myprop", attribute.GetPropertyName()); - Assert.Equal("string Test.BindAttributes.Format_myprop", attribute.DisplayName); - } - - [Fact] - public void Execute_BindOnInputElementWithoutTypeAttribute_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindInputElement(null, null, ""myprop"", ""myevent"")] - public class BindAttributes - { - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetBindTagHelpers(context); - var bind = Assert.Single(matches); - - Assert.Equal("myprop", bind.Metadata[BlazorMetadata.Bind.ValueAttribute]); - Assert.Equal("myevent", bind.Metadata[BlazorMetadata.Bind.ChangeAttribute]); - Assert.False(bind.Metadata.ContainsKey(BlazorMetadata.Bind.TypeAttribute)); - Assert.True(bind.IsInputElementBindTagHelper()); - Assert.True(bind.IsInputElementFallbackBindTagHelper()); - - var rule = Assert.Single(bind.TagMatchingRules); - Assert.Equal("input", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Equal("bind", requiredAttribute.DisplayName); - Assert.Equal("bind", requiredAttribute.Name); - - var attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("bind")); - Assert.Equal("bind", attribute.Name); - Assert.Equal("Bind", attribute.GetPropertyName()); - Assert.Equal("object Test.BindAttributes.Bind", attribute.DisplayName); - - attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("format")); - Assert.Equal("format-myprop", attribute.Name); - Assert.Equal("Format_myprop", attribute.GetPropertyName()); - Assert.Equal("string Test.BindAttributes.Format_myprop", attribute.DisplayName); - } - - [Fact] - public void Execute_BindOnInputElementWithTypeAttribute_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindInputElement(""checkbox"", null, ""myprop"", ""myevent"")] - public class BindAttributes - { - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetBindTagHelpers(context); - var bind = Assert.Single(matches); - - Assert.Equal("myprop", bind.Metadata[BlazorMetadata.Bind.ValueAttribute]); - Assert.Equal("myevent", bind.Metadata[BlazorMetadata.Bind.ChangeAttribute]); - Assert.Equal("checkbox", bind.Metadata[BlazorMetadata.Bind.TypeAttribute]); - Assert.True(bind.IsInputElementBindTagHelper()); - Assert.False(bind.IsInputElementFallbackBindTagHelper()); - - var rule = Assert.Single(bind.TagMatchingRules); - Assert.Equal("input", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - Assert.Collection( - rule.Attributes, - a => - { - Assert.Equal("type", a.DisplayName); - Assert.Equal("type", a.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.FullMatch, a.NameComparison); - Assert.Equal("checkbox", a.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.FullMatch, a.ValueComparison); - }, - a => - { - Assert.Equal("bind", a.DisplayName); - Assert.Equal("bind", a.Name); - }); - - var attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("bind")); - Assert.Equal("bind", attribute.Name); - Assert.Equal("Bind", attribute.GetPropertyName()); - Assert.Equal("object Test.BindAttributes.Bind", attribute.DisplayName); - - attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("format")); - Assert.Equal("format-myprop", attribute.Name); - Assert.Equal("Format_myprop", attribute.GetPropertyName()); - Assert.Equal("string Test.BindAttributes.Format_myprop", attribute.DisplayName); - } - - [Fact] - public void Execute_BindOnInputElementWithTypeAttributeAndSuffix_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindInputElement(""checkbox"", ""somevalue"", ""myprop"", ""myevent"")] - public class BindAttributes - { - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetBindTagHelpers(context); - var bind = Assert.Single(matches); - - Assert.Equal("myprop", bind.Metadata[BlazorMetadata.Bind.ValueAttribute]); - Assert.Equal("myevent", bind.Metadata[BlazorMetadata.Bind.ChangeAttribute]); - Assert.Equal("checkbox", bind.Metadata[BlazorMetadata.Bind.TypeAttribute]); - Assert.True(bind.IsInputElementBindTagHelper()); - Assert.False(bind.IsInputElementFallbackBindTagHelper()); - - var rule = Assert.Single(bind.TagMatchingRules); - Assert.Equal("input", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - Assert.Collection( - rule.Attributes, - a => - { - Assert.Equal("type", a.DisplayName); - Assert.Equal("type", a.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.FullMatch, a.NameComparison); - Assert.Equal("checkbox", a.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.FullMatch, a.ValueComparison); - }, - a => - { - Assert.Equal("bind-somevalue", a.DisplayName); - Assert.Equal("bind-somevalue", a.Name); - }); - - var attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("bind")); - Assert.Equal("bind-somevalue", attribute.Name); - Assert.Equal("Bind_somevalue", attribute.GetPropertyName()); - Assert.Equal("object Test.BindAttributes.Bind_somevalue", attribute.DisplayName); - - attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("format")); - Assert.Equal("format-somevalue", attribute.Name); - Assert.Equal("Format_somevalue", attribute.GetPropertyName()); - Assert.Equal("string Test.BindAttributes.Format_somevalue", attribute.DisplayName); - } - - [Fact] - public void Execute_BindFallback_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation; - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var bind = Assert.Single(context.Results, r => r.IsFallbackBindTagHelper()); - - // These are features Bind Tags Helpers don't use. Verifying them once here and - // then ignoring them. - Assert.Empty(bind.AllowedChildTags); - Assert.Null(bind.TagOutputHint); - - // These are features that are invariants of all Bind Tag Helpers. Verifying them once - // here and then ignoring them. - Assert.Empty(bind.Diagnostics); - Assert.False(bind.HasErrors); - Assert.Equal(BlazorMetadata.Bind.TagHelperKind, bind.Kind); - Assert.Equal(BlazorMetadata.Bind.RuntimeName, bind.Metadata[TagHelperMetadata.Runtime.Name]); - Assert.False(bind.IsDefaultKind()); - Assert.False(bind.KindUsesDefaultTagHelperRuntime()); - - Assert.False(bind.Metadata.ContainsKey(BlazorMetadata.Bind.ValueAttribute)); - Assert.False(bind.Metadata.ContainsKey(BlazorMetadata.Bind.ChangeAttribute)); - Assert.True(bind.IsFallbackBindTagHelper()); - - Assert.Equal( - "Binds the provided expression to an attribute and a change event, based on the naming of " + - "the bind attribute. For example: bind-value-onchange=\"...\" will assign the " + - "current value of the expression to the 'value' attribute, and assign a delegate that attempts " + - "to set the value to the 'onchange' attribute.", - bind.Documentation); - - // These are all trivially derived from the assembly/namespace/type name - Assert.Equal("Microsoft.AspNetCore.Components", bind.AssemblyName); - Assert.Equal("Bind", bind.Name); - Assert.Equal("Microsoft.AspNetCore.Components.Bind", bind.DisplayName); - Assert.Equal("Microsoft.AspNetCore.Components.Bind", bind.GetTypeName()); - - // The tag matching rule for a bind-Component is always the component name + the attribute name - var rule = Assert.Single(bind.TagMatchingRules); - Assert.Empty(rule.Diagnostics); - Assert.False(rule.HasErrors); - Assert.Null(rule.ParentTag); - Assert.Equal("*", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Empty(requiredAttribute.Diagnostics); - Assert.Equal("bind-...", requiredAttribute.DisplayName); - Assert.Equal("bind-", requiredAttribute.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch, requiredAttribute.NameComparison); - Assert.Null(requiredAttribute.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.None, requiredAttribute.ValueComparison); - - var attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("bind")); - - // Invariants - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal(BlazorMetadata.Bind.TagHelperKind, attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.False(attribute.IsIndexerStringProperty); - - Assert.True(attribute.HasIndexer); - Assert.Equal("bind-", attribute.IndexerNamePrefix); - Assert.Equal("System.Object", attribute.IndexerTypeName); - - Assert.Equal( - "Binds the provided expression to an attribute and a change event, based on the naming of " + - "the bind attribute. For example: bind-value-onchange=\"...\" will assign the " + - "current value of the expression to the 'value' attribute, and assign a delegate that attempts " + - "to set the value to the 'onchange' attribute.", - attribute.Documentation); - - Assert.Equal("bind-...", attribute.Name); - Assert.Equal("Bind", attribute.GetPropertyName()); - Assert.Equal( - "System.Collections.Generic.Dictionary Microsoft.AspNetCore.Components.Bind.Bind", - attribute.DisplayName); - - // Defined from the property type - Assert.Equal("System.Collections.Generic.Dictionary", attribute.TypeName); - Assert.False(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - - attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("format")); - - // Invariants - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal(BlazorMetadata.Bind.TagHelperKind, attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - Assert.True(attribute.HasIndexer); - Assert.Equal("format-", attribute.IndexerNamePrefix); - Assert.Equal("System.String", attribute.IndexerTypeName); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.True(attribute.IsIndexerStringProperty); - - Assert.Equal( - "Specifies a format to convert the value specified by the corresponding bind attribute. " + - "For example: format-value=\"...\" will apply a format string to the value " + - "specified in bind-value-.... The format string can currently only be used with " + - "expressions of type DateTime.", - attribute.Documentation); - - Assert.Equal("format-...", attribute.Name); - Assert.Equal("Format", attribute.GetPropertyName()); - Assert.Equal( - "System.Collections.Generic.Dictionary Microsoft.AspNetCore.Components.Bind.Format", - attribute.DisplayName); - - // Defined from the property type - Assert.Equal("System.Collections.Generic.Dictionary", attribute.TypeName); - Assert.False(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - } - - - private static TagHelperDescriptor[] GetBindTagHelpers(TagHelperDescriptorProviderContext context) - { - return ExcludeBuiltInComponents(context).Where(t => t.IsBindTagHelper()).ToArray(); - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/ComponentDocumentRewritePassTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/ComponentDocumentRewritePassTest.cs deleted file mode 100644 index b7a2341e61..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/ComponentDocumentRewritePassTest.cs +++ /dev/null @@ -1,476 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; - - -namespace Microsoft.AspNetCore.Components.Razor -{ - public class ComponentDocumentRewritePassTest - { - public ComponentDocumentRewritePassTest() - { - var test = TagHelperDescriptorBuilder.Create("test", "test"); - test.TagMatchingRule(b => b.TagName = "test"); - - TagHelpers = new List() - { - test.Build(), - }; - - Pass = new ComponentDocumentRewritePass(); - Engine = RazorProjectEngine.Create( - BlazorExtensionInitializer.DefaultConfiguration, - RazorProjectFileSystem.Create(Environment.CurrentDirectory), - b => - { - b.Features.Add(new ComponentDocumentClassifierPass()); - b.Features.Add(Pass); - b.Features.Add(new StaticTagHelperFeature() { TagHelpers = TagHelpers, }); - }).Engine; - } - - private RazorEngine Engine { get; } - - private ComponentDocumentRewritePass Pass { get; } - - private List TagHelpers { get; } - - [Fact] - public void Execute_RewritesHtml_Basic() - { - // Arrange - var document = CreateDocument(@" - - - Hello, World! - -"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var method = documentNode.FindPrimaryMethod(); - Assert.Collection( - method.Children, - c => Assert.IsType(c), - c => NodeAssert.Whitespace(c), - c => NodeAssert.Element(c, "html")); - - var html = NodeAssert.Element(method.Children[2], "html"); - Assert.Equal(2, html.Source.Value.AbsoluteIndex); - Assert.Equal(1, html.Source.Value.LineIndex); - Assert.Equal(0, html.Source.Value.CharacterIndex); - Assert.Equal(68, html.Source.Value.Length); - Assert.Collection( - html.Children, - c => NodeAssert.Whitespace(c), - c => NodeAssert.Element(c, "head"), - c => NodeAssert.Whitespace(c)); - - var head = NodeAssert.Element(html.Children[1], "head"); - Assert.Equal(12, head.Source.Value.AbsoluteIndex); - Assert.Equal(2, head.Source.Value.LineIndex); - Assert.Equal(2, head.Source.Value.CharacterIndex); - Assert.Equal(49, head.Source.Value.Length); - Assert.Collection( - head.Children, - c => NodeAssert.Attribute(c, "cool", "beans"), - c => NodeAssert.Content(c, "Hello, World!")); - } - - [Fact] - public void Execute_RewritesHtml_Mixed() - { - // Arrange - var document = CreateDocument(@" - - - -"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var method = documentNode.FindPrimaryMethod(); - Assert.Collection( - method.Children, - c => Assert.IsType(c), - c => NodeAssert.Whitespace(c), - c => NodeAssert.Element(c, "html")); - - var html = NodeAssert.Element(method.Children[2], "html"); - Assert.Equal(2, html.Source.Value.AbsoluteIndex); - Assert.Equal(1, html.Source.Value.LineIndex); - Assert.Equal(0, html.Source.Value.CharacterIndex); - Assert.Equal(81, html.Source.Value.Length); - Assert.Collection( - html.Children, - c => NodeAssert.Whitespace(c), - c => NodeAssert.Element(c, "head"), - c => NodeAssert.Whitespace(c)); - - var head = NodeAssert.Element(html.Children[1], "head"); - Assert.Equal(12, head.Source.Value.AbsoluteIndex); - Assert.Equal(2, head.Source.Value.LineIndex); - Assert.Equal(2, head.Source.Value.CharacterIndex); - Assert.Equal(62, head.Source.Value.Length); - Assert.Collection( - head.Children, - c => NodeAssert.Attribute(c, "cool", "beans"), - c => NodeAssert.CSharpAttribute(c, "csharp", "yes"), - c => Assert.IsType(c), - c => NodeAssert.Whitespace(c)); - - var mixed = Assert.IsType(head.Children[2]); - Assert.Collection( - mixed.Children, - c => Assert.IsType(c), - c => Assert.IsType(c)); - } - - [Fact] - public void Execute_RewritesHtml_WithCode() - { - // Arrange - var document = CreateDocument(@" - - @if (some_bool) - { - - @hello - - } -"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var method = documentNode.FindPrimaryMethod(); - Assert.Collection( - method.Children, - c => Assert.IsType(c), - c => NodeAssert.Whitespace(c), - c => NodeAssert.Element(c, "html")); - - var html = NodeAssert.Element(method.Children[2], "html"); - Assert.Equal(2, html.Source.Value.AbsoluteIndex); - Assert.Equal(1, html.Source.Value.LineIndex); - Assert.Equal(0, html.Source.Value.CharacterIndex); - Assert.Equal(90, html.Source.Value.Length); - Assert.Collection( - html.Children, - c => NodeAssert.Whitespace(c), - c => Assert.IsType(c), - c => Assert.IsType(c), - c => NodeAssert.Whitespace(c), - c => NodeAssert.Element(c, "head"), - c => NodeAssert.Whitespace(c), - c => Assert.IsType(c)); - - var head = NodeAssert.Element(html.Children[4], "head"); - Assert.Equal(36, head.Source.Value.AbsoluteIndex); - Assert.Equal(4, head.Source.Value.LineIndex); - Assert.Equal(2, head.Source.Value.CharacterIndex); - Assert.Equal(42, head.Source.Value.Length); - Assert.Collection( - head.Children, - c => NodeAssert.Attribute(c, "cool", "beans"), - c => NodeAssert.Whitespace(c), - c => Assert.IsType(c), - c => NodeAssert.Whitespace(c)); - } - - [Fact] - public void Execute_RewritesHtml_TagHelper() - { - // Arrange - var document = CreateDocument(@" -@addTagHelper ""*, test"" - - - - Hello, World! - - -"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var method = documentNode.FindPrimaryMethod(); - Assert.Collection( - method.Children, - c => Assert.IsType(c), - c => NodeAssert.Whitespace(c), - c => Assert.IsType(c), - c => NodeAssert.Element(c, "html")); - - var html = NodeAssert.Element(method.Children[3], "html"); - Assert.Equal(27, html.Source.Value.AbsoluteIndex); - Assert.Equal(2, html.Source.Value.LineIndex); - Assert.Equal(0, html.Source.Value.CharacterIndex); - Assert.Equal(95, html.Source.Value.Length); - Assert.Collection( - html.Children, - c => NodeAssert.Whitespace(c), - c => Assert.IsType(c), - c => NodeAssert.Whitespace(c)); - - var body = html.Children - .OfType().Single().Children - .OfType().Single(); - - Assert.Collection( - body.Children, - c => NodeAssert.Whitespace(c), - c => NodeAssert.Element(c, "head"), - c => NodeAssert.Whitespace(c)); - - var head = body.Children[1]; - Assert.Equal(49, head.Source.Value.AbsoluteIndex); - Assert.Equal(4, head.Source.Value.LineIndex); - Assert.Equal(4, head.Source.Value.CharacterIndex); - Assert.Equal(53, head.Source.Value.Length); - Assert.Collection( - head.Children, - c => NodeAssert.Attribute(c, "cool", "beans"), - c => NodeAssert.Content(c, "Hello, World!")); - } - - [Fact] - public void Execute_RewritesHtml_UnbalancedClosing_MisuseOfVoidElement() - { - // Arrange - var document = CreateDocument(@""); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var method = documentNode.FindPrimaryMethod(); - Assert.Collection( - method.Children, - c => Assert.IsType(c), - c => NodeAssert.Element(c, "input"), - c => NodeAssert.Element(c, "input")); - - var input2 = NodeAssert.Element(method.Children[2], "input"); - Assert.Equal(7, input2.Source.Value.AbsoluteIndex); - Assert.Equal(0, input2.Source.Value.LineIndex); - Assert.Equal(7, input2.Source.Value.CharacterIndex); - Assert.Equal(8, input2.Source.Value.Length); - - var diagnostic = Assert.Single(input2.Diagnostics); - Assert.Same(BlazorDiagnosticFactory.UnexpectedClosingTagForVoidElement.Id, diagnostic.Id); - Assert.Equal(input2.Source, diagnostic.Span); - } - - [Fact] - public void Execute_RewritesHtml_UnbalancedClosingTagAtTopLevel() - { - // Arrange - var document = CreateDocument(@" -"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var method = documentNode.FindPrimaryMethod(); - Assert.Collection( - method.Children, - c => Assert.IsType(c), - c => NodeAssert.Whitespace(c), - c => NodeAssert.Element(c, "html")); - - var html = NodeAssert.Element(method.Children[2], "html"); - Assert.Equal(2, html.Source.Value.AbsoluteIndex); - Assert.Equal(1, html.Source.Value.LineIndex); - Assert.Equal(0, html.Source.Value.CharacterIndex); - Assert.Equal(7, html.Source.Value.Length); - - var diagnostic = Assert.Single(html.Diagnostics); - Assert.Same(BlazorDiagnosticFactory.UnexpectedClosingTag.Id, diagnostic.Id); - Assert.Equal(html.Source, diagnostic.Span); - } - - [Fact] - public void Execute_RewritesHtml_MismatchedClosingTag() - { - // Arrange - var document = CreateDocument(@" - -
- -"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var method = documentNode.FindPrimaryMethod(); - Assert.Collection( - method.Children, - c => Assert.IsType(c), - c => NodeAssert.Whitespace(c), - c => NodeAssert.Element(c, "html")); - - var html = NodeAssert.Element(method.Children[2], "html"); - Assert.Collection( - html.Children, - c => NodeAssert.Whitespace(c), - c => NodeAssert.Element(c, "div"), - c => NodeAssert.Whitespace(c)); - - var div = NodeAssert.Element(html.Children[1], "div"); - Assert.Equal(12, div.Source.Value.AbsoluteIndex); - Assert.Equal(2, div.Source.Value.LineIndex); - Assert.Equal(2, div.Source.Value.CharacterIndex); - Assert.Equal(5, div.Source.Value.Length); - - var diagnostic = Assert.Single(div.Diagnostics); - Assert.Same(BlazorDiagnosticFactory.MismatchedClosingTag.Id, diagnostic.Id); - Assert.Equal(21,diagnostic.Span.AbsoluteIndex); - Assert.Equal(3, diagnostic.Span.LineIndex); - Assert.Equal(2, diagnostic.Span.CharacterIndex); - Assert.Equal(7, diagnostic.Span.Length); - } - - [Fact] - public void Execute_RewritesHtml_MalformedHtmlAtEnd() - { - // Arrange - var document = CreateDocument(@" - Assert.IsType(c), - c => NodeAssert.Whitespace(c), - c => NodeAssert.Content(c, " -
"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var method = documentNode.FindPrimaryMethod(); - Assert.Collection( - method.Children, - c => Assert.IsType(c), - c => NodeAssert.Whitespace(c), - c => NodeAssert.Element(c, "html")); - - var html = NodeAssert.Element(method.Children[2], "html"); - Assert.Collection( - html.Children, - c => NodeAssert.Whitespace(c), - c => NodeAssert.Element(c, "div")); - - var diagnostic = Assert.Single(html.Diagnostics); - Assert.Same(BlazorDiagnosticFactory.UnclosedTag.Id, diagnostic.Id); - Assert.Equal(2, diagnostic.Span.AbsoluteIndex); - Assert.Equal(1, diagnostic.Span.LineIndex); - Assert.Equal(0, diagnostic.Span.CharacterIndex); - Assert.Equal(6, diagnostic.Span.Length); - - var div = NodeAssert.Element(html.Children[1], "div"); - - diagnostic = Assert.Single(div.Diagnostics); - Assert.Same(BlazorDiagnosticFactory.UnclosedTag.Id, diagnostic.Id); - Assert.Equal(12, diagnostic.Span.AbsoluteIndex); - Assert.Equal(2, diagnostic.Span.LineIndex); - Assert.Equal(2, diagnostic.Span.CharacterIndex); - Assert.Equal(5, diagnostic.Span.Length); - } - - private RazorCodeDocument CreateDocument(string content) - { - // Normalize newlines since we are testing lengths of things. - content = content.Replace("\r", ""); - content = content.Replace("\n", "\r\n"); - - var source = RazorSourceDocument.Create(content, "test.cshtml"); - return RazorCodeDocument.Create(source); - } - - private DocumentIntermediateNode Lower(RazorCodeDocument codeDocument) - { - for (var i = 0; i < Engine.Phases.Count; i++) - { - var phase = Engine.Phases[i]; - if (phase is IRazorDocumentClassifierPhase) - { - break; - } - - phase.Execute(codeDocument); - } - - var document = codeDocument.GetDocumentIntermediateNode(); - Engine.Features.OfType().Single().Execute(codeDocument, document); - return document; - } - - private class StaticTagHelperFeature : ITagHelperFeature - { - public RazorEngine Engine { get; set; } - - public List TagHelpers { get; set; } - - public IReadOnlyList GetDescriptors() - { - return TagHelpers; - } - } - } -} \ No newline at end of file diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/ComponentTagHelperDescriptorProviderTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/ComponentTagHelperDescriptorProviderTest.cs deleted file mode 100644 index ce6f25d6af..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/ComponentTagHelperDescriptorProviderTest.cs +++ /dev/null @@ -1,1243 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.CodeAnalysis.Razor; -using Xunit; - -namespace Microsoft.AspNetCore.Components.Razor -{ - public class ComponentTagHelperDescriptorProviderTest : BaseTagHelperDescriptorProviderTest - { - [Fact] - public void Execute_FindsIComponentType_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : IComponent - { - public void Init(RenderHandle renderHandle) { } - - public void SetParameters(ParameterCollection parameters) { } - - [Parameter] - private string MyProperty { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components); - - // These are features Components don't use. Verifying them once here and - // then ignoring them. - Assert.Empty(component.AllowedChildTags); - Assert.Null(component.TagOutputHint); - - // These are features that are invariants of all Components. Verifying them once - // here and then ignoring them. - Assert.Empty(component.Diagnostics); - Assert.False(component.HasErrors); - Assert.Equal(BlazorMetadata.Component.TagHelperKind, component.Kind); - Assert.False(component.IsDefaultKind()); - Assert.False(component.KindUsesDefaultTagHelperRuntime()); - - // No documentation in this test - Assert.Null(component.Documentation); - - // These are all trivially derived from the assembly/namespace/type name - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - Assert.Equal("Test.MyComponent", component.DisplayName); - Assert.Equal("Test.MyComponent", component.GetTypeName()); - - // Our use of matching rules is also very simple, and derived from the name. Verifying - // it once in detail here and then ignoring it. - var rule = Assert.Single(component.TagMatchingRules); - Assert.Empty(rule.Attributes); - Assert.Empty(rule.Diagnostics); - Assert.False(rule.HasErrors); - Assert.Null(rule.ParentTag); - Assert.Equal("MyComponent", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - // Our use of metadata is also (for now) an invariant for all Components - other than the type name - // which is trivial. Verifying it once in detail and then ignoring it. - Assert.Collection( - component.Metadata.OrderBy(kvp => kvp.Key), - kvp => { Assert.Equal(TagHelperMetadata.Common.TypeName, kvp.Key); Assert.Equal("Test.MyComponent", kvp.Value); }, - kvp => { Assert.Equal(TagHelperMetadata.Runtime.Name, kvp.Key); Assert.Equal("Blazor.IComponent", kvp.Value); }); - - // Our use of bound attributes is what tests will focus on. As you might expect right now, this test - // is going to cover a lot of trivial stuff that will be true for all components/component-properties. - var attribute = Assert.Single(component.BoundAttributes); - - // Invariants - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal("Blazor.Component", attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - - // Related to dictionaries/indexers, not supported currently, not sure if we ever will - Assert.False(attribute.HasIndexer); - Assert.Null(attribute.IndexerNamePrefix); - Assert.Null(attribute.IndexerTypeName); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.False(attribute.IsIndexerStringProperty); - - // No documentation in this test - Assert.Null(attribute.Documentation); - - // Names are trivially derived from the property name - Assert.Equal("MyProperty", attribute.Name); - Assert.Equal("MyProperty", attribute.GetPropertyName()); - Assert.Equal("string Test.MyComponent.MyProperty", attribute.DisplayName); - - // Defined from the property type - Assert.Equal("System.String", attribute.TypeName); - Assert.True(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - - // Our use of metadata is also (for now) an invariant for all Component properties - other than the type name - // which is trivial. Verifying it once in detail and then ignoring it. - Assert.Collection( - attribute.Metadata.OrderBy(kvp => kvp.Key), - kvp => { Assert.Equal(TagHelperMetadata.Common.PropertyName, kvp.Key); Assert.Equal("MyProperty", kvp.Value); }); - } - - [Fact] - public void Execute_FindsIComponentType_CreatesDescriptor_Generic() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : IComponent - { - public void Init(RenderHandle renderHandle) { } - - public void SetParameters(ParameterCollection parameters) { } - - [Parameter] - private string MyProperty { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - Assert.Equal("Test.MyComponent", component.DisplayName); - Assert.Equal("Test.MyComponent", component.GetTypeName()); - - Assert.True(component.IsGenericTypedComponent()); - - var rule = Assert.Single(component.TagMatchingRules); - Assert.Equal("MyComponent", rule.TagName); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("MyProperty", a.Name); - Assert.Equal("MyProperty", a.GetPropertyName()); - Assert.Equal("string Test.MyComponent.MyProperty", a.DisplayName); - Assert.Equal("System.String", a.TypeName); - - }, - a => - { - Assert.Equal("T", a.Name); - Assert.Equal("T", a.GetPropertyName()); - Assert.Equal("T", a.DisplayName); - Assert.Equal("System.Type", a.TypeName); - Assert.True(a.IsTypeParameterProperty()); - }); - } - - [Fact] - public void Execute_FindsBlazorComponentType_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - string MyProperty { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - var attribute = Assert.Single(component.BoundAttributes); - Assert.Equal("MyProperty", attribute.Name); - Assert.Equal("System.String", attribute.TypeName); - } - - [Fact] // bool properties support minimized attributes - public void Execute_BoolProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - bool MyProperty { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - var attribute = Assert.Single(component.BoundAttributes); - Assert.Equal("MyProperty", attribute.Name); - Assert.Equal("System.Boolean", attribute.TypeName); - - Assert.False(attribute.HasIndexer); - Assert.True(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - Assert.False(attribute.IsStringProperty); - } - - [Fact] // enum properties have some special intellisense behavior - public void Execute_EnumProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public enum MyEnum - { - One, - Two - } - - public class MyComponent : ComponentBase - { - [Parameter] - MyEnum MyProperty { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - var attribute = Assert.Single(component.BoundAttributes); - Assert.Equal("MyProperty", attribute.Name); - Assert.Equal("Test.MyEnum", attribute.TypeName); - - Assert.False(attribute.HasIndexer); - Assert.False(attribute.IsBooleanProperty); - Assert.True(attribute.IsEnum); - Assert.False(attribute.IsStringProperty); - } - - [Fact] - public void Execute_GenericProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - T MyProperty { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("MyProperty", a.Name); - Assert.Equal("MyProperty", a.GetPropertyName()); - Assert.Equal("T Test.MyComponent.MyProperty", a.DisplayName); - Assert.Equal("T", a.TypeName); - Assert.True(a.IsGenericTypedProperty()); - - }, - a => - { - Assert.Equal("T", a.Name); - Assert.Equal("T", a.GetPropertyName()); - Assert.Equal("T", a.DisplayName); - Assert.Equal("System.Type", a.TypeName); - Assert.True(a.IsTypeParameterProperty()); - }); - } - - [Fact] - public void Execute_MultipleGenerics_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - T MyProperty1 { get; set; } - - [Parameter] - U MyProperty2 { get; set; } - - [Parameter] - V MyProperty3 { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("MyProperty1", a.Name); - Assert.Equal("T", a.TypeName); - Assert.True(a.IsGenericTypedProperty()); - }, - a => - { - Assert.Equal("MyProperty2", a.Name); - Assert.Equal("U", a.TypeName); - Assert.True(a.IsGenericTypedProperty()); - }, - a => - { - Assert.Equal("MyProperty3", a.Name); - Assert.Equal("V", a.TypeName); - Assert.True(a.IsGenericTypedProperty()); - }, - a => - { - Assert.Equal("T", a.Name); - Assert.True(a.IsTypeParameterProperty()); - }, - a => - { - Assert.Equal("U", a.Name); - Assert.True(a.IsTypeParameterProperty()); - }, - a => - { - Assert.Equal("V", a.Name); - Assert.True(a.IsTypeParameterProperty()); - }); - } - - [Fact] - public void Execute_DelegateProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - Action OnClick { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - var attribute = Assert.Single(component.BoundAttributes); - Assert.Equal("OnClick", attribute.Name); - Assert.Equal("System.Action", attribute.TypeName); - - Assert.False(attribute.HasIndexer); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - Assert.False(attribute.IsStringProperty); - Assert.True(attribute.IsDelegateProperty()); - Assert.False(attribute.IsChildContentProperty()); - } - - [Fact] - public void Execute_DelegateProperty_CreatesDescriptor_Generic() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - Action OnClick { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("OnClick", a.Name); - Assert.Equal("System.Action", a.TypeName); - Assert.False(a.HasIndexer); - Assert.False(a.IsBooleanProperty); - Assert.False(a.IsEnum); - Assert.False(a.IsStringProperty); - Assert.True(a.IsDelegateProperty()); - Assert.False(a.IsChildContentProperty()); - Assert.True(a.IsGenericTypedProperty()); - - }, - a => - { - Assert.Equal("T", a.Name); - Assert.Equal("T", a.GetPropertyName()); - Assert.Equal("T", a.DisplayName); - Assert.Equal("System.Type", a.TypeName); - Assert.True(a.IsTypeParameterProperty()); - }); - } - - [Fact] - public void Execute_RenderFragmentProperty_CreatesDescriptors() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - RenderFragment ChildContent2 { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - var attribute = Assert.Single(component.BoundAttributes); - Assert.Equal("ChildContent2", attribute.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment", attribute.TypeName); - - Assert.False(attribute.HasIndexer); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - Assert.False(attribute.IsStringProperty); - Assert.False(attribute.IsDelegateProperty()); // We treat RenderFragment as separate from generalized delegates - Assert.True(attribute.IsChildContentProperty()); - Assert.False(attribute.IsParameterizedChildContentProperty()); - - var childContent = Assert.Single(components, c => c.IsChildContentTagHelper()); - - Assert.Equal("TestAssembly", childContent.AssemblyName); - Assert.Equal("Test.MyComponent.ChildContent2", childContent.Name); - - Assert.Empty(childContent.BoundAttributes); - } - - [Fact] - public void Execute_RenderFragmentOfTProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - RenderFragment ChildContent2 { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes, - a => - { - Assert.Equal("ChildContent2", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment", a.TypeName); - - Assert.False(a.HasIndexer); - Assert.False(a.IsBooleanProperty); - Assert.False(a.IsEnum); - Assert.False(a.IsStringProperty); - Assert.False(a.IsDelegateProperty()); // We treat RenderFragment as separate from generalized delegates - Assert.True(a.IsChildContentProperty()); - Assert.True(a.IsParameterizedChildContentProperty()); - Assert.False(a.IsGenericTypedProperty()); - }, - a => - { - Assert.Equal(BlazorMetadata.ChildContent.ParameterAttributeName, a.Name); - Assert.True(a.IsChildContentParameterNameProperty()); - }); - - var childContent = Assert.Single(components, c => c.IsChildContentTagHelper()); - - Assert.Equal("TestAssembly", childContent.AssemblyName); - Assert.Equal("Test.MyComponent.ChildContent2", childContent.Name); - - // A RenderFragment tag helper has a parameter to allow you to set the lambda parameter name. - var contextAttribute = Assert.Single(childContent.BoundAttributes); - Assert.Equal(BlazorMetadata.ChildContent.ParameterAttributeName, contextAttribute.Name); - Assert.Equal("System.String", contextAttribute.TypeName); - Assert.Equal("Specifies the parameter name for the 'ChildContent2' child content expression.", contextAttribute.Documentation); - Assert.True(contextAttribute.IsChildContentParameterNameProperty()); - } - - [Fact] - public void Execute_RenderFragmentOfTProperty_ComponentDefinesContextParameter() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - RenderFragment ChildContent2 { get; set; } - - [Parameter] - string Context { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes, - a => - { - Assert.Equal("ChildContent2", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment", a.TypeName); - - Assert.False(a.HasIndexer); - Assert.False(a.IsBooleanProperty); - Assert.False(a.IsEnum); - Assert.False(a.IsStringProperty); - Assert.False(a.IsDelegateProperty()); // We treat RenderFragment as separate from generalized delegates - Assert.True(a.IsChildContentProperty()); - Assert.True(a.IsParameterizedChildContentProperty()); - Assert.False(a.IsGenericTypedProperty()); - }, - a => - { - Assert.Equal(BlazorMetadata.ChildContent.ParameterAttributeName, a.Name); - Assert.False(a.IsChildContentParameterNameProperty()); - }); - - var childContent = Assert.Single(components, c => c.IsChildContentTagHelper()); - - Assert.Equal("TestAssembly", childContent.AssemblyName); - Assert.Equal("Test.MyComponent.ChildContent2", childContent.Name); - - // A RenderFragment tag helper has a parameter to allow you to set the lambda parameter name. - var contextAttribute = Assert.Single(childContent.BoundAttributes); - Assert.Equal(BlazorMetadata.ChildContent.ParameterAttributeName, contextAttribute.Name); - Assert.Equal("System.String", contextAttribute.TypeName); - Assert.Equal("Specifies the parameter name for the 'ChildContent2' child content expression.", contextAttribute.Documentation); - Assert.True(contextAttribute.IsChildContentParameterNameProperty()); - } - - [Fact] - public void Execute_RenderFragmentGenericProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - RenderFragment ChildContent2 { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("ChildContent2", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment", a.TypeName); - - Assert.False(a.HasIndexer); - Assert.False(a.IsBooleanProperty); - Assert.False(a.IsEnum); - Assert.False(a.IsStringProperty); - Assert.False(a.IsDelegateProperty()); // We treat RenderFragment as separate from generalized delegates - Assert.True(a.IsChildContentProperty()); - Assert.True(a.IsParameterizedChildContentProperty()); - Assert.True(a.IsGenericTypedProperty()); - - }, - a => - { - Assert.Equal(BlazorMetadata.ChildContent.ParameterAttributeName, a.Name); - Assert.True(a.IsChildContentParameterNameProperty()); - }, - a => - { - Assert.Equal("T", a.Name); - Assert.Equal("T", a.GetPropertyName()); - Assert.Equal("T", a.DisplayName); - Assert.Equal("System.Type", a.TypeName); - Assert.True(a.IsTypeParameterProperty()); - }); - - var childContent = Assert.Single(components, c => c.IsChildContentTagHelper()); - - Assert.Equal("TestAssembly", childContent.AssemblyName); - Assert.Equal("Test.MyComponent.ChildContent2", childContent.Name); - - // A RenderFragment tag helper has a parameter to allow you to set the lambda parameter name. - var contextAttribute = Assert.Single(childContent.BoundAttributes); - Assert.Equal(BlazorMetadata.ChildContent.ParameterAttributeName, contextAttribute.Name); - Assert.Equal("System.String", contextAttribute.TypeName); - Assert.Equal("Specifies the parameter name for the 'ChildContent2' child content expression.", contextAttribute.Documentation); - Assert.True(contextAttribute.IsChildContentParameterNameProperty()); - } - - [Fact] - public void Execute_RenderFragmentClosedGenericListProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System.Collections.Generic; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - RenderFragment> ChildContent2 { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("ChildContent2", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment>", a.TypeName); - - Assert.False(a.HasIndexer); - Assert.False(a.IsBooleanProperty); - Assert.False(a.IsEnum); - Assert.False(a.IsStringProperty); - Assert.False(a.IsDelegateProperty()); // We treat RenderFragment as separate from generalized delegates - Assert.True(a.IsChildContentProperty()); - Assert.True(a.IsParameterizedChildContentProperty()); - Assert.False(a.IsGenericTypedProperty()); - - }, - a => - { - Assert.Equal(BlazorMetadata.ChildContent.ParameterAttributeName, a.Name); - Assert.True(a.IsChildContentParameterNameProperty()); - }, - a => - { - Assert.Equal("T", a.Name); - Assert.Equal("T", a.GetPropertyName()); - Assert.Equal("T", a.DisplayName); - Assert.Equal("System.Type", a.TypeName); - Assert.True(a.IsTypeParameterProperty()); - }); - - var childContent = Assert.Single(components, c => c.IsChildContentTagHelper()); - - Assert.Equal("TestAssembly", childContent.AssemblyName); - Assert.Equal("Test.MyComponent.ChildContent2", childContent.Name); - - // A RenderFragment tag helper has a parameter to allow you to set the lambda parameter name. - var contextAttribute = Assert.Single(childContent.BoundAttributes); - Assert.Equal(BlazorMetadata.ChildContent.ParameterAttributeName, contextAttribute.Name); - Assert.Equal("System.String", contextAttribute.TypeName); - Assert.Equal("Specifies the parameter name for the 'ChildContent2' child content expression.", contextAttribute.Documentation); - Assert.True(contextAttribute.IsChildContentParameterNameProperty()); - } - - [Fact] - public void Execute_RenderFragmentGenericListProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System.Collections.Generic; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - RenderFragment> ChildContent2 { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("ChildContent2", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment>", a.TypeName); - - Assert.False(a.HasIndexer); - Assert.False(a.IsBooleanProperty); - Assert.False(a.IsEnum); - Assert.False(a.IsStringProperty); - Assert.False(a.IsDelegateProperty()); // We treat RenderFragment as separate from generalized delegates - Assert.True(a.IsChildContentProperty()); - Assert.True(a.IsParameterizedChildContentProperty()); - Assert.True(a.IsGenericTypedProperty()); - - }, - a => - { - Assert.Equal(BlazorMetadata.ChildContent.ParameterAttributeName, a.Name); - Assert.True(a.IsChildContentParameterNameProperty()); - }, - a => - { - Assert.Equal("T", a.Name); - Assert.Equal("T", a.GetPropertyName()); - Assert.Equal("T", a.DisplayName); - Assert.Equal("System.Type", a.TypeName); - Assert.True(a.IsTypeParameterProperty()); - }); - - var childContent = Assert.Single(components, c => c.IsChildContentTagHelper()); - - Assert.Equal("TestAssembly", childContent.AssemblyName); - Assert.Equal("Test.MyComponent.ChildContent2", childContent.Name); - - // A RenderFragment tag helper has a parameter to allow you to set the lambda parameter name. - var contextAttribute = Assert.Single(childContent.BoundAttributes); - Assert.Equal(BlazorMetadata.ChildContent.ParameterAttributeName, contextAttribute.Name); - Assert.Equal("System.String", contextAttribute.TypeName); - Assert.Equal("Specifies the parameter name for the 'ChildContent2' child content expression.", contextAttribute.Documentation); - Assert.True(contextAttribute.IsChildContentParameterNameProperty()); - } - - [Fact] - public void Execute_RenderFragmentGenericContextProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - RenderFragment ChildContent2 { get; set; } - - public class Context - { - public T Item { get; set; } - } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("ChildContent2", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment.Context>", a.TypeName); - - Assert.False(a.HasIndexer); - Assert.False(a.IsBooleanProperty); - Assert.False(a.IsEnum); - Assert.False(a.IsStringProperty); - Assert.False(a.IsDelegateProperty()); // We treat RenderFragment as separate from generalized delegates - Assert.True(a.IsChildContentProperty()); - Assert.True(a.IsParameterizedChildContentProperty()); - Assert.True(a.IsGenericTypedProperty()); - - }, - a => - { - Assert.Equal(BlazorMetadata.ChildContent.ParameterAttributeName, a.Name); - Assert.True(a.IsChildContentParameterNameProperty()); - }, - a => - { - Assert.Equal("T", a.Name); - Assert.Equal("T", a.GetPropertyName()); - Assert.Equal("T", a.DisplayName); - Assert.Equal("System.Type", a.TypeName); - Assert.True(a.IsTypeParameterProperty()); - }); - - var childContent = Assert.Single(components, c => c.IsChildContentTagHelper()); - - Assert.Equal("TestAssembly", childContent.AssemblyName); - Assert.Equal("Test.MyComponent.ChildContent2", childContent.Name); - - // A RenderFragment tag helper has a parameter to allow you to set the lambda parameter name. - var contextAttribute = Assert.Single(childContent.BoundAttributes); - Assert.Equal(BlazorMetadata.ChildContent.ParameterAttributeName, contextAttribute.Name); - Assert.Equal("System.String", contextAttribute.TypeName); - Assert.Equal("Specifies the parameter name for the 'ChildContent2' child content expression.", contextAttribute.Documentation); - } - - [Fact] - public void Execute_MultipleRenderFragmentProperties_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - RenderFragment ChildContent { get; set; } - - [Parameter] - RenderFragment Header { get; set; } - - [Parameter] - RenderFragment Footer { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("ChildContent", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment", a.TypeName); - Assert.True(a.IsChildContentProperty()); - }, - a => - { - Assert.Equal(BlazorMetadata.ChildContent.ParameterAttributeName, a.Name); - Assert.True(a.IsChildContentParameterNameProperty()); - }, - a => - { - Assert.Equal("Footer", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment", a.TypeName); - Assert.True(a.IsChildContentProperty()); - }, - a => - { - Assert.Equal("Header", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment", a.TypeName); - Assert.True(a.IsChildContentProperty()); - }); - - - var childContents = components.Where(c => c.IsChildContentTagHelper()).OrderBy(c => c.Name); - Assert.Collection( - childContents, - c => Assert.Equal("Test.MyComponent.ChildContent", c.Name), - c => Assert.Equal("Test.MyComponent.Footer", c.Name), - c => Assert.Equal("Test.MyComponent.Header", c.Name)); - } - - [Fact] // This component has lots of properties that don't become components. - public void Execute_IgnoredProperties_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public abstract class MyBase : ComponentBase - { - [Parameter] - protected string Hidden { get; set; } - } - - public class MyComponent : MyBase - { - [Parameter] - string NoSetter { get; } - - [Parameter] - static string StaticProperty { get; set; } - - public string NoParameterAttribute { get; set; } - - // No attribute here, hides base-class property of the same name. - protected new int Hidden { get; set; } - - public string this[int i] - { - get { throw null; } - set { throw null; } - } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Empty(component.BoundAttributes); - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/EventHandlerTagHelperDescriptorProviderTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/EventHandlerTagHelperDescriptorProviderTest.cs deleted file mode 100644 index 8456b6e6ae..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/EventHandlerTagHelperDescriptorProviderTest.cs +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.CodeAnalysis.Razor; -using Xunit; - -namespace Microsoft.AspNetCore.Components.Razor -{ - public class EventHandlerTagHelperDescriptorProviderTest : BaseTagHelperDescriptorProviderTest - { - [Fact] - public void Execute_EventHandler_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [EventHandler(""onclick"", typeof(Action))] - public class EventHandlers - { - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new EventHandlerTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetEventHandlerTagHelpers(context); - var item = Assert.Single(matches); - - // These are features Event Handler Tag Helpers don't use. Verifying them once here and - // then ignoring them. - Assert.Empty(item.AllowedChildTags); - Assert.Null(item.TagOutputHint); - - // These are features that are invariants of all Event Handler Helpers. Verifying them once - // here and then ignoring them. - Assert.Empty(item.Diagnostics); - Assert.False(item.HasErrors); - Assert.Equal(BlazorMetadata.EventHandler.TagHelperKind, item.Kind); - Assert.Equal(BlazorMetadata.EventHandler.RuntimeName, item.Metadata[TagHelperMetadata.Runtime.Name]); - Assert.False(item.IsDefaultKind()); - Assert.False(item.KindUsesDefaultTagHelperRuntime()); - - Assert.Equal( - "Sets the 'onclick' attribute to the provided string or delegate value. " + - "A delegate value should be of type 'System.Action'.", - item.Documentation); - - // These are all trivially derived from the assembly/namespace/type name - Assert.Equal("TestAssembly", item.AssemblyName); - Assert.Equal("onclick", item.Name); - Assert.Equal("Test.EventHandlers", item.DisplayName); - Assert.Equal("Test.EventHandlers", item.GetTypeName()); - - // The tag matching rule for an event handler is just the attribute name - var rule = Assert.Single(item.TagMatchingRules); - Assert.Empty(rule.Diagnostics); - Assert.False(rule.HasErrors); - Assert.Null(rule.ParentTag); - Assert.Equal("*", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Empty(requiredAttribute.Diagnostics); - Assert.Equal("onclick", requiredAttribute.DisplayName); - Assert.Equal("onclick", requiredAttribute.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.FullMatch, requiredAttribute.NameComparison); - Assert.Null(requiredAttribute.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.None, requiredAttribute.ValueComparison); - - var attribute = Assert.Single(item.BoundAttributes); - - // Invariants - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal(BlazorMetadata.EventHandler.TagHelperKind, attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - Assert.False(attribute.HasIndexer); - Assert.Null(attribute.IndexerNamePrefix); - Assert.Null(attribute.IndexerTypeName); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.False(attribute.IsIndexerStringProperty); - - Assert.Collection( - attribute.Metadata.OrderBy(kvp => kvp.Key), - kvp => Assert.Equal(kvp, new KeyValuePair(BlazorMetadata.Component.WeaklyTypedKey, bool.TrueString)), - kvp => Assert.Equal(kvp, new KeyValuePair("Common.PropertyName", "onclick"))); - - Assert.Equal( - "Sets the 'onclick' attribute to the provided string or delegate value. " + - "A delegate value should be of type 'System.Action'.", - attribute.Documentation); - - Assert.Equal("onclick", attribute.Name); - Assert.Equal("onclick", attribute.GetPropertyName()); - Assert.Equal("string Test.EventHandlers.onclick", attribute.DisplayName); - - // Defined from the property type - Assert.Equal("System.String", attribute.TypeName); - Assert.True(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - } - - private static TagHelperDescriptor[] GetEventHandlerTagHelpers(TagHelperDescriptorProviderContext context) - { - return ExcludeBuiltInComponents(context).Where(t => t.IsEventHandlerTagHelper()).ToArray(); - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/GenericTypeNameRewriterTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/GenericTypeNameRewriterTest.cs deleted file mode 100644 index 8dd8874c48..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/GenericTypeNameRewriterTest.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using Microsoft.CodeAnalysis.CSharp; -using Xunit; - -namespace Microsoft.AspNetCore.Components.Razor -{ - public class GenericTypeNameRewriterTest - { - [Theory] - [InlineData("TItem2", "Type2")] - - // Unspecified argument -> System.Object - [InlineData("TItem3", "System.Object")] - - // Not a type parameter - [InlineData("TItem4", "TItem4")] - - // In a qualified name, not a type parameter - [InlineData("TItem1.TItem2", "TItem1.TItem2")] - - // Type parameters can't have type parameters - [InlineData("TItem1.TItem2", "TItem1.TItem2")] - [InlineData("TItem2, System.TItem2, RenderFragment>", "TItem2, System.TItem2, RenderFragment>")] - public void GenericTypeNameRewriter_CanReplaceTypeParametersWithTypeArguments(string original, string expected) - { - // Arrange - var visitor = new GenericTypeNameRewriter(new Dictionary() - { - { "TItem1", new GenericTypeNameRewriter.Binding(){ Content = "Type1", } }, - { "TItem2", new GenericTypeNameRewriter.Binding(){ Content = "Type2", } }, - { "TItem3", new GenericTypeNameRewriter.Binding(){ Content = null, } }, - }); - - var parsed = SyntaxFactory.ParseTypeName(original); - - // Act - var actual = visitor.Visit(parsed); - - // Assert - Assert.Equal(expected, actual.ToString()); - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/GlobalQualifiedTypeNameRewriterTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/GlobalQualifiedTypeNameRewriterTest.cs deleted file mode 100644 index f343176bcc..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/GlobalQualifiedTypeNameRewriterTest.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using Microsoft.CodeAnalysis.CSharp; -using Xunit; - -namespace Microsoft.AspNetCore.Components.Razor -{ - public class GlobalQualifiedTypeNameRewriterTest - { - [Theory] - [InlineData("String", "global::String")] - [InlineData("System.String", "global::System.String")] - [InlineData("TItem2", "TItem2")] - [InlineData("System.Collections.Generic.List", "global::System.Collections.Generic.List")] - [InlineData("System.Collections.Generic.Dictionary", "global::System.Collections.Generic.Dictionary")] - [InlineData("System.Collections.TItem3.Dictionary", "global::System.Collections.TItem3.Dictionary")] - [InlineData("System.Collections.TItem3.TItem1", "global::System.Collections.TItem3.TItem1")] - - // This case is interesting because we know TITem2 to be a generic type parameter, - // and we know that this will never be valid, which is why we don't bother rewriting. - [InlineData("TItem2", "TItem2")] - public void GlobalQualifiedTypeNameRewriter_CanQualifyNames(string original, string expected) - { - // Arrange - var visitor = new GlobalQualifiedTypeNameRewriter(new[] { "TItem1", "TItem2", "TItem3" }); - - var parsed = SyntaxFactory.ParseTypeName(original); - - // Act - var actual = visitor.Visit(parsed); - - // Assert - Assert.Equal(expected, actual.ToString()); - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/HtmlBlockPassTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/HtmlBlockPassTest.cs deleted file mode 100644 index 178310503d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/HtmlBlockPassTest.cs +++ /dev/null @@ -1,385 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; - - -namespace Microsoft.AspNetCore.Components.Razor -{ - public class HtmlBlockPassTest - { - public HtmlBlockPassTest() - { - Pass = new HtmlBlockPass(); - Engine = RazorProjectEngine.Create( - BlazorExtensionInitializer.DefaultConfiguration, - RazorProjectFileSystem.Create(Environment.CurrentDirectory), - b => - { - BlazorExtensionInitializer.Register(b); - - if (b.Features.OfType().Any()) - { - b.Features.Remove(b.Features.OfType().Single()); - } - }).Engine; - - Pass.Engine = Engine; - } - - private RazorEngine Engine { get; } - - private HtmlBlockPass Pass { get; } - - [Fact] - public void Execute_RewritesHtml_Basic() - { - // Arrange - var document = CreateDocument(@" - - - Hello, World! - -"); - - var expected = NormalizeContent(@" - - - Hello, World! - -"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var block = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, block.Content, ignoreLineEndingDifferences: true); - } - - [Fact] - public void Execute_RewritesHtml_WithComment() - { - // Arrange - var document = CreateDocument(@"StartEnd"); - - var expected = NormalizeContent(@"StartEnd"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var block = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, block.Content, ignoreLineEndingDifferences: true); - } - - [Fact] - public void Execute_RewritesHtml_MergesSiblings() - { - // Arrange - var document = CreateDocument(@" - - @(""Hi"")
-
-
@(""Hi"")
-"); - - var expected = NormalizeContent(@" -
-
- "); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var block = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, block.Content, ignoreLineEndingDifferences: true); - } - - [Fact] - public void Execute_RewritesHtml_MergesSiblings_LeftEdge() - { - // Arrange - var document = CreateDocument(@" -
-
-
@(""Hi"")
-"); - - var expected = NormalizeContent(@" -
-
- "); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var block = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, block.Content, ignoreLineEndingDifferences: true); - } - - - [Fact] - public void Execute_RewritesHtml_CSharpInAttributes() - { - // Arrange - var document = CreateDocument(@" - - -
foo
- -"); - - var expected = NormalizeContent("
foo
\n "); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var block = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, block.Content, ignoreLineEndingDifferences: true); - } - - [Fact] - public void Execute_RewritesHtml_CSharpInBody() - { - // Arrange - var document = CreateDocument(@" - - -
@foo
-
rewriteme
-
@bar
- -"); - - var expected = NormalizeContent("
rewriteme
\n "); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var block = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, block.Content, ignoreLineEndingDifferences: true); - } - - [Fact] - public void Execute_RewritesHtml_EncodesHtmlEntities() - { - // Arrange - var document = CreateDocument(@" -
- <span>Hi</span> -
"); - - var expected = NormalizeContent(@" -
- <span>Hi</span> -
"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var block = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, block.Content, ignoreLineEndingDifferences: true); - } - - [Fact] - public void Execute_RewritesHtml_EmptyNonvoid() - { - // Arrange - var document = CreateDocument(@""); - - var expected = NormalizeContent(@""); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var block = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, block.Content, ignoreLineEndingDifferences: true); - } - - [Fact] - public void Execute_RewritesHtml_Void() - { - // Arrange - var document = CreateDocument(@""); - - var expected = NormalizeContent(@""); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var block = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, block.Content, ignoreLineEndingDifferences: true); - } - - [Fact] - public void Execute_CannotRewriteHtml_CSharpInCode() - { - // Arrange - var document = CreateDocument(@" - - @if (some_bool) - { - - @hello - - } -"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - Assert.Empty(documentNode.FindDescendantNodes()); - } - - [Fact] - public void Execute_CannotRewriteHtml_Script() - { - // Arrange - var document = CreateDocument(@" - - @if (some_bool) - { - - - - } -"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - Assert.Empty(documentNode.FindDescendantNodes()); - } - - // The unclosed tag will have errors, so we won't rewrite it or its parent. - [Fact] - public void Execute_CannotRewriteHtml_Errors() - { - // Arrange - var document = CreateDocument(@" - - -"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - Assert.Empty(documentNode.FindDescendantNodes()); - } - - [Fact] - public void Execute_RewritesHtml_MismatchedClosingTag() - { - // Arrange - var document = CreateDocument(@" - -
-
rewriteme
- -"); - - var expected = NormalizeContent("
rewriteme
\n "); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var block = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, block.Content, ignoreLineEndingDifferences: true); - } - - private string NormalizeContent(string content) - { - // Test inputs frequently have leading space for readability. - content = content.TrimStart(); - - // Normalize newlines since we are testing lengths of things. - content = content.Replace("\r", ""); - content = content.Replace("\n", "\r\n"); - - return content; - } - - private RazorCodeDocument CreateDocument(string content) - { - // Normalize newlines since we are testing lengths of things. - content = content.Replace("\r", ""); - content = content.Replace("\n", "\r\n"); - - var source = RazorSourceDocument.Create(content, "test.cshtml"); - return RazorCodeDocument.Create(source); - } - - private DocumentIntermediateNode Lower(RazorCodeDocument codeDocument) - { - for (var i = 0; i < Engine.Phases.Count; i++) - { - var phase = Engine.Phases[i]; - if (phase is IRazorCSharpLoweringPhase) - { - break; - } - - phase.Execute(codeDocument); - } - - var document = codeDocument.GetDocumentIntermediateNode(); - Engine.Features.OfType().Single().Execute(codeDocument, document); - return document; - } - - private class StaticTagHelperFeature : ITagHelperFeature - { - public RazorEngine Engine { get; set; } - - public List TagHelpers { get; set; } - - public IReadOnlyList GetDescriptors() - { - return TagHelpers; - } - } - } -} \ No newline at end of file diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/Microsoft.AspNetCore.Components.Razor.Extensions.Test.csproj b/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/Microsoft.AspNetCore.Components.Razor.Extensions.Test.csproj deleted file mode 100644 index e19722c89d..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/Microsoft.AspNetCore.Components.Razor.Extensions.Test.csproj +++ /dev/null @@ -1,33 +0,0 @@ - - - - netcoreapp3.0 - - false - - - true - 7.1 - - - - - - - - - - - - - - - - - - - - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/NodeAssert.cs b/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/NodeAssert.cs deleted file mode 100644 index 766cb81b17..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/NodeAssert.cs +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Text; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; - -namespace Microsoft.AspNetCore.Components.Razor -{ - internal static class NodeAssert - { - public static HtmlAttributeIntermediateNode Attribute(IntermediateNode node, string attributeName, string attributeValue) - { - Assert.NotNull(node); - - var attributeNode = Assert.IsType(node); - Assert.Equal(attributeName, attributeNode.AttributeName); - - var attributeValueNode = Assert.IsType(Assert.Single(attributeNode.Children)); - var actual = new StringBuilder(); - for (var i = 0; i < attributeValueNode.Children.Count; i++) - { - var token = Assert.IsType(attributeValueNode.Children[i]); - Assert.Equal(TokenKind.Html, token.Kind); - actual.Append(token.Content); - } - - Assert.Equal(attributeValue, actual.ToString()); - - return attributeNode; - } - - public static HtmlAttributeIntermediateNode Attribute(IntermediateNodeCollection nodes, string attributeName, string attributeValue) - { - Assert.NotNull(nodes); - return Attribute(Assert.Single(nodes), attributeName, attributeValue); - } - - public static HtmlContentIntermediateNode Content(IntermediateNode node, string content, bool trim = true) - { - Assert.NotNull(node); - - var contentNode = Assert.IsType(node); - - var actual = new StringBuilder(); - for (var i = 0; i < contentNode.Children.Count; i++) - { - var token = Assert.IsType(contentNode.Children[i]); - Assert.Equal(TokenKind.Html, token.Kind); - actual.Append(token.Content); - } - - Assert.Equal(content, trim ? actual.ToString().Trim() : actual.ToString()); - return contentNode; - } - - public static HtmlContentIntermediateNode Content(IntermediateNodeCollection nodes, string content, bool trim = true) - { - Assert.NotNull(nodes); - return Content(Assert.Single(nodes), content, trim); - } - - public static HtmlAttributeIntermediateNode CSharpAttribute(IntermediateNode node, string attributeName, string attributeValue) - { - Assert.NotNull(node); - - var attributeNode = Assert.IsType(node); - Assert.Equal(attributeName, attributeNode.AttributeName); - - var attributeValueNode = Assert.IsType(Assert.Single(attributeNode.Children)); - var actual = new StringBuilder(); - for (var i = 0; i < attributeValueNode.Children.Count; i++) - { - var token = Assert.IsType(attributeValueNode.Children[i]); - Assert.Equal(TokenKind.CSharp, token.Kind); - actual.Append(token.Content); - } - - Assert.Equal(attributeValue, actual.ToString()); - - return attributeNode; - } - - public static HtmlAttributeIntermediateNode CSharpAttribute(IntermediateNodeCollection nodes, string attributeName, string attributeValue) - { - Assert.NotNull(nodes); - return Attribute(Assert.Single(nodes), attributeName, attributeValue); - } - - public static HtmlElementIntermediateNode Element(IntermediateNode node, string tagName) - { - Assert.NotNull(node); - - var elementNode = Assert.IsType(node); - Assert.Equal(tagName, elementNode.TagName); - return elementNode; - } - - public static HtmlElementIntermediateNode Element(IntermediateNodeCollection nodes, string tagName) - { - Assert.NotNull(nodes); - return Element(Assert.Single(nodes), tagName); - } - - public static HtmlContentIntermediateNode Whitespace(IntermediateNode node) - { - Assert.NotNull(node); - - var contentNode = Assert.IsType(node); - for (var i = 0; i < contentNode.Children.Count; i++) - { - var token = Assert.IsType(contentNode.Children[i]); - Assert.Equal(TokenKind.Html, token.Kind); - Assert.True(string.IsNullOrWhiteSpace(token.Content)); - } - - return contentNode; - } - - public static HtmlContentIntermediateNode Whitespace(IntermediateNodeCollection nodes) - { - Assert.NotNull(nodes); - return Whitespace(Assert.Single(nodes)); - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/RefTagHelperDescriptorProviderTest.cs b/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/RefTagHelperDescriptorProviderTest.cs deleted file mode 100644 index 89b5ffd6f7..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/RefTagHelperDescriptorProviderTest.cs +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language; -using System.Linq; -using Xunit; - -namespace Microsoft.AspNetCore.Components.Razor -{ - public class RefTagHelperDescriptorProviderTest : BaseTagHelperDescriptorProviderTest - { - [Fact] - public void Execute_CreatesDescriptor() - { - // Arrange - var context = TagHelperDescriptorProviderContext.Create(); - var provider = new RefTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = context.Results.Where(result => result.IsRefTagHelper()); - var item = Assert.Single(matches); - - Assert.Empty(item.AllowedChildTags); - Assert.Null(item.TagOutputHint); - Assert.Empty(item.Diagnostics); - Assert.False(item.HasErrors); - Assert.Equal(BlazorMetadata.Ref.TagHelperKind, item.Kind); - Assert.Equal(BlazorMetadata.Ref.RuntimeName, item.Metadata[TagHelperMetadata.Runtime.Name]); - Assert.False(item.IsDefaultKind()); - Assert.False(item.KindUsesDefaultTagHelperRuntime()); - - Assert.Equal( - "Populates the specified field or property with a reference to the element or component.", - item.Documentation); - - Assert.Equal("Microsoft.AspNetCore.Components", item.AssemblyName); - Assert.Equal("Ref", item.Name); - Assert.Equal("Microsoft.AspNetCore.Components.Ref", item.DisplayName); - Assert.Equal("Microsoft.AspNetCore.Components.Ref", item.GetTypeName()); - - // The tag matching rule for a ref is just the attribute name "ref" - var rule = Assert.Single(item.TagMatchingRules); - Assert.Empty(rule.Diagnostics); - Assert.False(rule.HasErrors); - Assert.Null(rule.ParentTag); - Assert.Equal("*", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Empty(requiredAttribute.Diagnostics); - Assert.Equal("ref", requiredAttribute.DisplayName); - Assert.Equal("ref", requiredAttribute.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.FullMatch, requiredAttribute.NameComparison); - Assert.Null(requiredAttribute.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.None, requiredAttribute.ValueComparison); - - var attribute = Assert.Single(item.BoundAttributes); - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal(BlazorMetadata.Ref.TagHelperKind, attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - Assert.False(attribute.HasIndexer); - Assert.Null(attribute.IndexerNamePrefix); - Assert.Null(attribute.IndexerTypeName); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.False(attribute.IsIndexerStringProperty); - - Assert.Equal( - "Populates the specified field or property with a reference to the element or component.", - attribute.Documentation); - - Assert.Equal("ref", attribute.Name); - Assert.Equal("Ref", attribute.GetPropertyName()); - Assert.Equal("object Microsoft.AspNetCore.Components.Ref.Ref", attribute.DisplayName); - Assert.Equal("System.Object", attribute.TypeName); - Assert.False(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - } - } -} diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/xunit.runner.json b/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/xunit.runner.json deleted file mode 100644 index 6ce741b6c0..0000000000 --- a/src/Components/test/Microsoft.AspNetCore.Components.Razor.Extensions.Test/xunit.runner.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "shadowCopy": false -} \ No newline at end of file diff --git a/src/Components/test/testapps/BasicTestApp/BasicTestApp.csproj b/src/Components/test/testapps/BasicTestApp/BasicTestApp.csproj index 7651dd7cec..1d6a19d2cf 100644 --- a/src/Components/test/testapps/BasicTestApp/BasicTestApp.csproj +++ b/src/Components/test/testapps/BasicTestApp/BasicTestApp.csproj @@ -3,9 +3,8 @@ netstandard2.0 - - dotnet - run --project ../../../blazor/src/Microsoft.AspNetCore.Blazor.Cli serve --pathbase /subdir + + --pathbase /subdir @@ -14,5 +13,9 @@ - + + + + + diff --git a/src/Components/test/testapps/TestContentPackage/TestContentPackage.csproj b/src/Components/test/testapps/TestContentPackage/TestContentPackage.csproj index ad01a49160..7740468e59 100644 --- a/src/Components/test/testapps/TestContentPackage/TestContentPackage.csproj +++ b/src/Components/test/testapps/TestContentPackage/TestContentPackage.csproj @@ -12,7 +12,7 @@ - + @@ -24,4 +24,8 @@ + + + + diff --git a/src/Components/test/testapps/TestServer/TestServer.csproj b/src/Components/test/testapps/TestServer/TestServer.csproj index a907580e1d..abce454f2d 100644 --- a/src/Components/test/testapps/TestServer/TestServer.csproj +++ b/src/Components/test/testapps/TestServer/TestServer.csproj @@ -8,11 +8,15 @@ - + + + + + diff --git a/src/DefaultBuilder/testassets/CreateDefaultBuilderApp/CreateDefaultBuilderApp.csproj b/src/DefaultBuilder/testassets/CreateDefaultBuilderApp/CreateDefaultBuilderApp.csproj index f92ff6051e..c95cdbdc94 100644 --- a/src/DefaultBuilder/testassets/CreateDefaultBuilderApp/CreateDefaultBuilderApp.csproj +++ b/src/DefaultBuilder/testassets/CreateDefaultBuilderApp/CreateDefaultBuilderApp.csproj @@ -1,9 +1,12 @@  + + Exe netcoreapp3.0 aspnetcore-CreateDefaultBuilder-20170424224131 + true diff --git a/src/Framework/pkg/Metapackage.targets b/src/Framework/pkg/Metapackage.targets index 365eacc8fa..6307d33621 100644 --- a/src/Framework/pkg/Metapackage.targets +++ b/src/Framework/pkg/Metapackage.targets @@ -38,8 +38,6 @@ - - diff --git a/src/Framework/src/SharedFx.targets b/src/Framework/src/SharedFx.targets index 17c1ddc1b2..9027f74b31 100644 --- a/src/Framework/src/SharedFx.targets +++ b/src/Framework/src/SharedFx.targets @@ -4,8 +4,6 @@ This targets file should only be imported by .shfxproj files. --> - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) diff --git a/src/Hosting/Hosting/src/WebHostBuilder.cs b/src/Hosting/Hosting/src/WebHostBuilder.cs index 8c104068d6..f076c91bc4 100644 --- a/src/Hosting/Hosting/src/WebHostBuilder.cs +++ b/src/Hosting/Hosting/src/WebHostBuilder.cs @@ -186,8 +186,8 @@ namespace Microsoft.AspNetCore.Hosting } catch { - // Dispose the host if there's a failure to initialize, this should clean up - // will dispose services that were constructed until the exception was thrown + // Dispose the host if there's a failure to initialize, this should dispose + // services that were constructed until the exception was thrown host.Dispose(); throw; } diff --git a/src/Http/Headers/src/DateTimeFormatter.cs b/src/Http/Headers/src/DateTimeFormatter.cs deleted file mode 100644 index 06893155bd..0000000000 --- a/src/Http/Headers/src/DateTimeFormatter.cs +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Globalization; -using System.Runtime.CompilerServices; -using Microsoft.Extensions.Primitives; - -namespace Microsoft.Net.Http.Headers -{ - internal static class DateTimeFormatter - { - private static readonly DateTimeFormatInfo FormatInfo = CultureInfo.InvariantCulture.DateTimeFormat; - - private static readonly string[] MonthNames = FormatInfo.AbbreviatedMonthNames; - private static readonly string[] DayNames = FormatInfo.AbbreviatedDayNames; - - private static readonly int Rfc1123DateLength = "ddd, dd MMM yyyy HH:mm:ss GMT".Length; - private static readonly int QuotedRfc1123DateLength = Rfc1123DateLength + 2; - - // ASCII numbers are in the range 48 - 57. - private const int AsciiNumberOffset = 0x30; - - private const string Gmt = "GMT"; - private const char Comma = ','; - private const char Space = ' '; - private const char Colon = ':'; - private const char Quote = '"'; - - public static string ToRfc1123String(this DateTimeOffset dateTime) - { - return ToRfc1123String(dateTime, false); - } - - public static string ToRfc1123String(this DateTimeOffset dateTime, bool quoted) - { - var universal = dateTime.UtcDateTime; - - var length = quoted ? QuotedRfc1123DateLength : Rfc1123DateLength; - var target = new InplaceStringBuilder(length); - - if (quoted) - { - target.Append(Quote); - } - - target.Append(DayNames[(int)universal.DayOfWeek]); - target.Append(Comma); - target.Append(Space); - AppendNumber(ref target, universal.Day); - target.Append(Space); - target.Append(MonthNames[universal.Month - 1]); - target.Append(Space); - AppendYear(ref target, universal.Year); - target.Append(Space); - AppendTimeOfDay(ref target, universal.TimeOfDay); - target.Append(Space); - target.Append(Gmt); - - if (quoted) - { - target.Append(Quote); - } - - return target.ToString(); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - private static void AppendYear(ref InplaceStringBuilder target, int year) - { - target.Append(GetAsciiChar(year / 1000)); - target.Append(GetAsciiChar(year % 1000 / 100)); - target.Append(GetAsciiChar(year % 100 / 10)); - target.Append(GetAsciiChar(year % 10)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - private static void AppendTimeOfDay(ref InplaceStringBuilder target, TimeSpan timeOfDay) - { - AppendNumber(ref target, timeOfDay.Hours); - target.Append(Colon); - AppendNumber(ref target, timeOfDay.Minutes); - target.Append(Colon); - AppendNumber(ref target, timeOfDay.Seconds); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - private static void AppendNumber(ref InplaceStringBuilder target, int number) - { - target.Append(GetAsciiChar(number / 10)); - target.Append(GetAsciiChar(number % 10)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - private static char GetAsciiChar(int value) - { - return (char)(AsciiNumberOffset + value); - } - } -} diff --git a/src/Http/Headers/src/HeaderUtilities.cs b/src/Http/Headers/src/HeaderUtilities.cs index c45ca9cf43..0d193b4e61 100644 --- a/src/Http/Headers/src/HeaderUtilities.cs +++ b/src/Http/Headers/src/HeaderUtilities.cs @@ -589,7 +589,16 @@ namespace Microsoft.Net.Http.Headers public static string FormatDate(DateTimeOffset dateTime, bool quoted) { - return dateTime.ToRfc1123String(quoted); + if (quoted) + { + return string.Create(31, dateTime, (span, dt) => + { + span[0] = span[30] = '"'; + dt.TryFormat(span.Slice(1), out _, "r"); + }); + } + + return dateTime.ToString("r"); } public static StringSegment RemoveQuotes(StringSegment input) @@ -616,7 +625,7 @@ namespace Microsoft.Net.Http.Headers { input = RemoveQuotes(input); - // First pass to calculate the size of the InplaceStringBuilder + // First pass to calculate the size of the string var backSlashCount = CountBackslashesForDecodingQuotedString(input); if (backSlashCount == 0) @@ -624,26 +633,32 @@ namespace Microsoft.Net.Http.Headers return input; } - var stringBuilder = new InplaceStringBuilder(input.Length - backSlashCount); - - for (var i = 0; i < input.Length; i++) + return string.Create(input.Length - backSlashCount, input, (span, segment) => { - if (i < input.Length - 1 && input[i] == '\\') + var spanIndex = 0; + var spanLength = span.Length; + for (var i = 0; i < segment.Length && (uint)spanIndex < (uint)spanLength; i++) { - // If there is an backslash character as the last character in the string, - // we will assume that it should be included literally in the unescaped string - // Ex: "hello\\" => "hello\\" - // Also, if a sender adds a quoted pair like '\\''n', - // we will assume it is over escaping and just add a n to the string. - // Ex: "he\\llo" => "hello" - stringBuilder.Append(input[i + 1]); - i++; - continue; - } - stringBuilder.Append(input[i]); - } + int nextIndex = i + 1; + if ((uint)nextIndex < (uint)segment.Length && segment[i] == '\\') + { + // If there is an backslash character as the last character in the string, + // we will assume that it should be included literally in the unescaped string + // Ex: "hello\\" => "hello\\" + // Also, if a sender adds a quoted pair like '\\''n', + // we will assume it is over escaping and just add a n to the string. + // Ex: "he\\llo" => "hello" + span[spanIndex] = segment[nextIndex]; + i++; + } + else + { + span[spanIndex] = segment[i]; + } - return stringBuilder.ToString(); + spanIndex++; + } + }); } private static int CountBackslashesForDecodingQuotedString(StringSegment input) @@ -687,25 +702,27 @@ namespace Microsoft.Net.Http.Headers // By calling this, we know that the string requires quotes around it to be a valid token. var backSlashCount = CountAndCheckCharactersNeedingBackslashesWhenEncoding(input); - var stringBuilder = new InplaceStringBuilder(input.Length + backSlashCount + 2); // 2 for quotes - stringBuilder.Append('\"'); + // 2 for quotes + return string.Create(input.Length + backSlashCount + 2, input, (span, segment) => { + // Helps to elide the bounds check for span[0] + span[span.Length - 1] = span[0] = '\"'; - for (var i = 0; i < input.Length; i++) - { - if (input[i] == '\\' || input[i] == '\"') + var spanIndex = 1; + for (var i = 0; i < segment.Length; i++) { - stringBuilder.Append('\\'); + if (segment[i] == '\\' || segment[i] == '\"') + { + span[spanIndex++] = '\\'; + } + else if ((segment[i] <= 0x1F || segment[i] == 0x7F) && segment[i] != 0x09) + { + // Control characters are not allowed in a quoted-string, which include all characters + // below 0x1F (except for 0x09 (TAB)) and 0x7F. + throw new FormatException($"Invalid control character '{segment[i]}' in input."); + } + span[spanIndex++] = segment[i]; } - else if ((input[i] <= 0x1F || input[i] == 0x7F) && input[i] != 0x09) - { - // Control characters are not allowed in a quoted-string, which include all characters - // below 0x1F (except for 0x09 (TAB)) and 0x7F. - throw new FormatException($"Invalid control character '{input[i]}' in input."); - } - stringBuilder.Append(input[i]); - } - stringBuilder.Append('\"'); - return stringBuilder.ToString(); + }); } private static int CountAndCheckCharactersNeedingBackslashesWhenEncoding(StringSegment input) diff --git a/src/Http/Headers/src/SetCookieHeaderValue.cs b/src/Http/Headers/src/SetCookieHeaderValue.cs index 979844613e..8529593486 100644 --- a/src/Http/Headers/src/SetCookieHeaderValue.cs +++ b/src/Http/Headers/src/SetCookieHeaderValue.cs @@ -3,6 +3,7 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Diagnostics.Contracts; using System.Text; using Microsoft.Extensions.Primitives; @@ -24,7 +25,8 @@ namespace Microsoft.Net.Http.Headers private const string HttpOnlyToken = "httponly"; private const string SeparatorToken = "; "; private const string EqualsToken = "="; - private const string DefaultPath = "/"; // TODO: Used? + private const int ExpiresDateLength = 29; + private const string ExpiresDateFormat = "r"; private static readonly HttpHeaderParser SingleValueParser = new GenericHeaderParser(false, GetSetCookieLength); @@ -99,14 +101,11 @@ namespace Microsoft.Net.Http.Headers { var length = _name.Length + EqualsToken.Length + _value.Length; - string expires = null; string maxAge = null; - string sameSite = null; if (Expires.HasValue) { - expires = HeaderUtilities.FormatDate(Expires.GetValueOrDefault()); - length += SeparatorToken.Length + ExpiresToken.Length + EqualsToken.Length + expires.Length; + length += SeparatorToken.Length + ExpiresToken.Length + EqualsToken.Length + ExpiresDateLength; } if (MaxAge.HasValue) @@ -132,7 +131,7 @@ namespace Microsoft.Net.Http.Headers if (SameSite != SameSiteMode.None) { - sameSite = SameSite == SameSiteMode.Lax ? SameSiteLaxToken : SameSiteStrictToken; + var sameSite = SameSite == SameSiteMode.Lax ? SameSiteLaxToken : SameSiteStrictToken; length += SeparatorToken.Length + SameSiteToken.Length + EqualsToken.Length + sameSite.Length; } @@ -141,61 +140,75 @@ namespace Microsoft.Net.Http.Headers length += SeparatorToken.Length + HttpOnlyToken.Length; } - var sb = new InplaceStringBuilder(length); - - sb.Append(_name); - sb.Append(EqualsToken); - sb.Append(_value); - - if (expires != null) + return string.Create(length, (this, maxAge), (span, tuple) => { - AppendSegment(ref sb, ExpiresToken, expires); - } + var (headerValue, maxAgeValue) = tuple; - if (maxAge != null) - { - AppendSegment(ref sb, MaxAgeToken, maxAge); - } + Append(ref span, headerValue._name); + Append(ref span, EqualsToken); + Append(ref span, headerValue._value); - if (Domain != null) - { - AppendSegment(ref sb, DomainToken, Domain); - } + if (headerValue.Expires is DateTimeOffset expiresValue) + { + Append(ref span, SeparatorToken); + Append(ref span, ExpiresToken); + Append(ref span, EqualsToken); - if (Path != null) - { - AppendSegment(ref sb, PathToken, Path); - } + var formatted = expiresValue.TryFormat(span, out var charsWritten, ExpiresDateFormat); + span = span.Slice(charsWritten); - if (Secure) - { - AppendSegment(ref sb, SecureToken, null); - } + Debug.Assert(formatted); + } - if (SameSite != SameSiteMode.None) - { - AppendSegment(ref sb, SameSiteToken, sameSite); - } + if (maxAgeValue != null) + { + AppendSegment(ref span, MaxAgeToken, maxAgeValue); + } - if (HttpOnly) - { - AppendSegment(ref sb, HttpOnlyToken, null); - } + if (headerValue.Domain != null) + { + AppendSegment(ref span, DomainToken, headerValue.Domain); + } - return sb.ToString(); + if (headerValue.Path != null) + { + AppendSegment(ref span, PathToken, headerValue.Path); + } + + if (headerValue.Secure) + { + AppendSegment(ref span, SecureToken, null); + } + + if (headerValue.SameSite != SameSiteMode.None) + { + AppendSegment(ref span, SameSiteToken, headerValue.SameSite == SameSiteMode.Lax ? SameSiteLaxToken : SameSiteStrictToken); + } + + if (headerValue.HttpOnly) + { + AppendSegment(ref span, HttpOnlyToken, null); + } + }); } - private static void AppendSegment(ref InplaceStringBuilder builder, StringSegment name, StringSegment value) + private static void AppendSegment(ref Span span, StringSegment name, StringSegment value) { - builder.Append(SeparatorToken); - builder.Append(name); + Append(ref span, SeparatorToken); + Append(ref span, name.AsSpan()); if (value != null) { - builder.Append(EqualsToken); - builder.Append(value); + Append(ref span, EqualsToken); + Append(ref span, value.AsSpan()); } } + private static void Append(ref Span span, ReadOnlySpan other) + { + other.CopyTo(span); + span = span.Slice(other.Length); + } + /// /// Append string representation of this to given /// . @@ -452,14 +465,14 @@ namespace Microsoft.Net.Http.Headers result.HttpOnly = true; } // extension-av = - else - { + else + { // TODO: skiping it for now to avoid parsing failure? Store it in a list? // = (no spaces) if (!ReadEqualsSign(input, ref offset)) { return 0; - } + } ReadToSemicolonOrEnd(input, ref offset); } } diff --git a/src/Http/Http/perf/HeaderUtilitiesBenchmark.cs b/src/Http/Http/perf/HeaderUtilitiesBenchmark.cs new file mode 100644 index 0000000000..566ae6e987 --- /dev/null +++ b/src/Http/Http/perf/HeaderUtilitiesBenchmark.cs @@ -0,0 +1,24 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +using System; +using BenchmarkDotNet.Attributes; +using Microsoft.Extensions.Primitives; + +namespace Microsoft.Net.Http.Headers +{ + public class HeaderUtilitiesBenchmark + { + [Benchmark] + public StringSegment UnescapeAsQuotedString() + { + return HeaderUtilities.UnescapeAsQuotedString("\"hello\\\"foo\\\\bar\\\\baz\\\\\""); + } + + [Benchmark] + public StringSegment EscapeAsQuotedString() + { + return HeaderUtilities.EscapeAsQuotedString("\"hello\\\"foo\\\\bar\\\\baz\\\\\""); + } + } +} diff --git a/src/Http/Http/perf/StreamPipeReaderBenchmark.cs b/src/Http/Http/perf/StreamPipeReaderBenchmark.cs index 28940baac0..2b5ef7c24b 100644 --- a/src/Http/Http/perf/StreamPipeReaderBenchmark.cs +++ b/src/Http/Http/perf/StreamPipeReaderBenchmark.cs @@ -2,6 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; +using System.IO.Pipelines; using System.Text; using System.Threading; using System.Threading.Tasks; diff --git a/src/Http/Http/perf/StreamPipeWriterBenchmark.cs b/src/Http/Http/perf/StreamPipeWriterBenchmark.cs index b1bb04e8dc..dd7836120d 100644 --- a/src/Http/Http/perf/StreamPipeWriterBenchmark.cs +++ b/src/Http/Http/perf/StreamPipeWriterBenchmark.cs @@ -1,7 +1,8 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.IO; +using System.IO.Pipelines; using System.Text; using System.Threading.Tasks; using BenchmarkDotNet.Attributes; diff --git a/src/Http/Http/src/StreamPipeReader.cs b/src/Http/Http/src/StreamPipeReader.cs index 241bfb4549..cd62041bed 100644 --- a/src/Http/Http/src/StreamPipeReader.cs +++ b/src/Http/Http/src/StreamPipeReader.cs @@ -12,7 +12,7 @@ using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; -namespace Microsoft.AspNetCore.Http +namespace System.IO.Pipelines { /// /// Implements PipeReader using an underlying stream. diff --git a/src/Http/Http/src/StreamPipeReaderOptions.cs b/src/Http/Http/src/StreamPipeReaderOptions.cs index 5c43f1cfb0..3a951db7cc 100644 --- a/src/Http/Http/src/StreamPipeReaderOptions.cs +++ b/src/Http/Http/src/StreamPipeReaderOptions.cs @@ -1,9 +1,12 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + using System; using System.Buffers; using System.Collections.Generic; using System.Text; -namespace Microsoft.AspNetCore.Http +namespace System.IO.Pipelines { public class StreamPipeReaderOptions { diff --git a/src/Http/Http/src/StreamPipeWriter.cs b/src/Http/Http/src/StreamPipeWriter.cs index 4a75db24f9..f93950feec 100644 --- a/src/Http/Http/src/StreamPipeWriter.cs +++ b/src/Http/Http/src/StreamPipeWriter.cs @@ -12,10 +12,10 @@ using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; -namespace Microsoft.AspNetCore.Http +namespace System.IO.Pipelines { /// - /// Implements PipeWriter using a underlying stream. + /// Implements PipeWriter using a underlying stream. /// public class StreamPipeWriter : PipeWriter, IDisposable { @@ -50,7 +50,7 @@ namespace Microsoft.AspNetCore.Http } /// - /// Creates a new StreamPipeWrapper + /// Creates a new StreamPipeWrapper /// /// The stream to write to public StreamPipeWriter(Stream writingStream) : this(writingStream, 4096) diff --git a/src/Http/Http/src/ThrowHelper.cs b/src/Http/Http/src/ThrowHelper.cs index e16db82913..e671d9f6ee 100644 --- a/src/Http/Http/src/ThrowHelper.cs +++ b/src/Http/Http/src/ThrowHelper.cs @@ -4,7 +4,7 @@ using System; using System.Runtime.CompilerServices; -namespace Microsoft.AspNetCore.Http +namespace System.IO.Pipelines { internal static class ThrowHelper { diff --git a/src/Http/Http/test/DefaultHttpContextTests.cs b/src/Http/Http/test/DefaultHttpContextTests.cs index 4aeeabb565..eed9dad007 100644 --- a/src/Http/Http/test/DefaultHttpContextTests.cs +++ b/src/Http/Http/test/DefaultHttpContextTests.cs @@ -9,10 +9,11 @@ using System.Reflection; using System.Security.Claims; using System.Threading; using System.Threading.Tasks; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; using Xunit; -namespace Microsoft.AspNetCore.Http +namespace System.IO.Pipelines.Tests { public class DefaultHttpContextTests { diff --git a/src/Http/Http/test/FlushResultCancellationTests.cs b/src/Http/Http/test/FlushResultCancellationTests.cs index 9f02b9a538..e1f2476682 100644 --- a/src/Http/Http/test/FlushResultCancellationTests.cs +++ b/src/Http/Http/test/FlushResultCancellationTests.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; using Xunit; -namespace Microsoft.AspNetCore.Http.Tests +namespace System.IO.Pipelines.Tests { public class FlushResultCancellationTests : PipeTest { diff --git a/src/Http/Http/test/PipeTest.cs b/src/Http/Http/test/PipeTest.cs index c94b4a5827..1aa2e5e06a 100644 --- a/src/Http/Http/test/PipeTest.cs +++ b/src/Http/Http/test/PipeTest.cs @@ -5,7 +5,7 @@ using System; using System.IO; using System.IO.Pipelines; -namespace Microsoft.AspNetCore.Http.Tests +namespace System.IO.Pipelines.Tests { public abstract class PipeTest : IDisposable { diff --git a/src/Http/Http/test/PipeWriterTests.cs b/src/Http/Http/test/PipeWriterTests.cs index 564ea88f08..7edffabf2b 100644 --- a/src/Http/Http/test/PipeWriterTests.cs +++ b/src/Http/Http/test/PipeWriterTests.cs @@ -10,7 +10,7 @@ using System.Linq; using System.Threading.Tasks; using Xunit; -namespace Microsoft.AspNetCore.Http.Tests +namespace System.IO.Pipelines.Tests { public class PipeWriterTests : PipeTest { diff --git a/src/Http/Http/test/ReadAsyncCancellationTests.cs b/src/Http/Http/test/ReadAsyncCancellationTests.cs index 86a599c391..72c80a7058 100644 --- a/src/Http/Http/test/ReadAsyncCancellationTests.cs +++ b/src/Http/Http/test/ReadAsyncCancellationTests.cs @@ -10,7 +10,7 @@ using System.Threading; using System.Threading.Tasks; using Xunit; -namespace Microsoft.AspNetCore.Http.Tests +namespace System.IO.Pipelines.Tests { public class ReadAsyncCancellationTests : PipeTest { diff --git a/src/Http/Http/test/StreamPipeReaderTests.cs b/src/Http/Http/test/StreamPipeReaderTests.cs index 8eb6fcdf91..97e8f3ab63 100644 --- a/src/Http/Http/test/StreamPipeReaderTests.cs +++ b/src/Http/Http/test/StreamPipeReaderTests.cs @@ -12,7 +12,7 @@ using System.Threading; using System.Threading.Tasks; using Xunit; -namespace Microsoft.AspNetCore.Http.Tests +namespace System.IO.Pipelines.Tests { public partial class StreamPipeReaderTests : PipeTest { @@ -151,7 +151,7 @@ namespace Microsoft.AspNetCore.Http.Tests Assert.NotEqual(readResult, readResult2); } - [Fact] + [Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/4621")] public async Task ReadCanBeCancelledViaProvidedCancellationToken() { var pipeReader = new StreamPipeReader(new HangingStream()); diff --git a/src/Http/Http/test/StreamPipeWriterTests.cs b/src/Http/Http/test/StreamPipeWriterTests.cs index daa4298a11..e9bee842a1 100644 --- a/src/Http/Http/test/StreamPipeWriterTests.cs +++ b/src/Http/Http/test/StreamPipeWriterTests.cs @@ -10,7 +10,7 @@ using System.Threading; using System.Threading.Tasks; using Xunit; -namespace Microsoft.AspNetCore.Http.Tests +namespace System.IO.Pipelines.Tests { public class StreamPipeWriterTests : PipeTest { diff --git a/src/Http/Http/test/TestMemoryPool.cs b/src/Http/Http/test/TestMemoryPool.cs index 746248a1bc..dfb6b0477a 100644 --- a/src/Http/Http/test/TestMemoryPool.cs +++ b/src/Http/Http/test/TestMemoryPool.cs @@ -9,7 +9,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Threading; -namespace Microsoft.AspNetCore.Http.Tests +namespace System.IO.Pipelines.Tests { public class TestMemoryPool : MemoryPool { diff --git a/src/Http/HttpAbstractions.sln b/src/Http/HttpAbstractions.sln index bbac5e1b46..3a1bc20567 100644 --- a/src/Http/HttpAbstractions.sln +++ b/src/Http/HttpAbstractions.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.28407.52 +# Visual Studio 15 +VisualStudioVersion = 15.0.28307.136 MinimumVisualStudioVersion = 15.0.26124.0 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Authentication.Abstractions", "Authentication.Abstractions", "{587C3D55-6092-4B86-99F5-E9772C9C1ADB}" EndProject @@ -109,10 +109,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{DC519C5E-CA6E-48CA-BF35-B46305B83013}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.IISIntegration", "..\Servers\IIS\src\Microsoft.AspNetCore.Server.IISIntegration\Microsoft.AspNetCore.Server.IISIntegration.csproj", "{DF1EF1B6-9795-4957-979C-F62F58F91743}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.HttpOverrides", "..\Middleware\HttpOverrides\src\Microsoft.AspNetCore.HttpOverrides.csproj", "{611794D2-EF3A-422A-A077-23E61C7ADE49}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.IISIntegration", "..\Servers\IIS\IISIntegration\src\Microsoft.AspNetCore.Server.IISIntegration.csproj", "{1062FCDE-E145-40EC-B175-FDBCAA0C59A0}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -579,18 +579,6 @@ Global {1909E2E3-D435-47AA-B2AB-D6EC58BEDC0D}.Release|x64.Build.0 = Release|Any CPU {1909E2E3-D435-47AA-B2AB-D6EC58BEDC0D}.Release|x86.ActiveCfg = Release|Any CPU {1909E2E3-D435-47AA-B2AB-D6EC58BEDC0D}.Release|x86.Build.0 = Release|Any CPU - {DF1EF1B6-9795-4957-979C-F62F58F91743}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DF1EF1B6-9795-4957-979C-F62F58F91743}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DF1EF1B6-9795-4957-979C-F62F58F91743}.Debug|x64.ActiveCfg = Debug|Any CPU - {DF1EF1B6-9795-4957-979C-F62F58F91743}.Debug|x64.Build.0 = Debug|Any CPU - {DF1EF1B6-9795-4957-979C-F62F58F91743}.Debug|x86.ActiveCfg = Debug|Any CPU - {DF1EF1B6-9795-4957-979C-F62F58F91743}.Debug|x86.Build.0 = Debug|Any CPU - {DF1EF1B6-9795-4957-979C-F62F58F91743}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DF1EF1B6-9795-4957-979C-F62F58F91743}.Release|Any CPU.Build.0 = Release|Any CPU - {DF1EF1B6-9795-4957-979C-F62F58F91743}.Release|x64.ActiveCfg = Release|Any CPU - {DF1EF1B6-9795-4957-979C-F62F58F91743}.Release|x64.Build.0 = Release|Any CPU - {DF1EF1B6-9795-4957-979C-F62F58F91743}.Release|x86.ActiveCfg = Release|Any CPU - {DF1EF1B6-9795-4957-979C-F62F58F91743}.Release|x86.Build.0 = Release|Any CPU {611794D2-EF3A-422A-A077-23E61C7ADE49}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {611794D2-EF3A-422A-A077-23E61C7ADE49}.Debug|Any CPU.Build.0 = Debug|Any CPU {611794D2-EF3A-422A-A077-23E61C7ADE49}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -603,6 +591,18 @@ Global {611794D2-EF3A-422A-A077-23E61C7ADE49}.Release|x64.Build.0 = Release|Any CPU {611794D2-EF3A-422A-A077-23E61C7ADE49}.Release|x86.ActiveCfg = Release|Any CPU {611794D2-EF3A-422A-A077-23E61C7ADE49}.Release|x86.Build.0 = Release|Any CPU + {1062FCDE-E145-40EC-B175-FDBCAA0C59A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1062FCDE-E145-40EC-B175-FDBCAA0C59A0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1062FCDE-E145-40EC-B175-FDBCAA0C59A0}.Debug|x64.ActiveCfg = Debug|Any CPU + {1062FCDE-E145-40EC-B175-FDBCAA0C59A0}.Debug|x64.Build.0 = Debug|Any CPU + {1062FCDE-E145-40EC-B175-FDBCAA0C59A0}.Debug|x86.ActiveCfg = Debug|Any CPU + {1062FCDE-E145-40EC-B175-FDBCAA0C59A0}.Debug|x86.Build.0 = Debug|Any CPU + {1062FCDE-E145-40EC-B175-FDBCAA0C59A0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1062FCDE-E145-40EC-B175-FDBCAA0C59A0}.Release|Any CPU.Build.0 = Release|Any CPU + {1062FCDE-E145-40EC-B175-FDBCAA0C59A0}.Release|x64.ActiveCfg = Release|Any CPU + {1062FCDE-E145-40EC-B175-FDBCAA0C59A0}.Release|x64.Build.0 = Release|Any CPU + {1062FCDE-E145-40EC-B175-FDBCAA0C59A0}.Release|x86.ActiveCfg = Release|Any CPU + {1062FCDE-E145-40EC-B175-FDBCAA0C59A0}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -649,8 +649,8 @@ Global {EEA036BB-E6B8-4D01-907B-D4B34B4368DB} = {793FFE24-138A-4C3D-81AB-18D625E36230} {1909E2E3-D435-47AA-B2AB-D6EC58BEDC0D} = {793FFE24-138A-4C3D-81AB-18D625E36230} {DC519C5E-CA6E-48CA-BF35-B46305B83013} = {14A7B3DE-46C8-4245-B0BD-9AFF3795C163} - {DF1EF1B6-9795-4957-979C-F62F58F91743} = {793FFE24-138A-4C3D-81AB-18D625E36230} {611794D2-EF3A-422A-A077-23E61C7ADE49} = {793FFE24-138A-4C3D-81AB-18D625E36230} + {1062FCDE-E145-40EC-B175-FDBCAA0C59A0} = {793FFE24-138A-4C3D-81AB-18D625E36230} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {85B5E151-2E9D-419C-83DD-0DDCF446C83A} diff --git a/src/Http/WebUtilities/src/HttpResponseStreamWriter.cs b/src/Http/WebUtilities/src/HttpResponseStreamWriter.cs index 9e0bf57c92..c5bcdd0aa3 100644 --- a/src/Http/WebUtilities/src/HttpResponseStreamWriter.cs +++ b/src/Http/WebUtilities/src/HttpResponseStreamWriter.cs @@ -210,7 +210,7 @@ namespace Microsoft.AspNetCore.WebUtilities private async Task WriteAsyncAwaited(char[] values, int index, int count) { Debug.Assert(count > 0); - Debug.Assert(_charBufferSize - _charBufferCount > count); + Debug.Assert(_charBufferSize - _charBufferCount < count); while (count > 0) { @@ -220,7 +220,6 @@ namespace Microsoft.AspNetCore.WebUtilities } CopyToCharBuffer(values, ref index, ref count); - Debug.Assert(count == 0); } } diff --git a/src/Identity/.gitignore b/src/Identity/.gitignore deleted file mode 100644 index 22d237f27e..0000000000 --- a/src/Identity/.gitignore +++ /dev/null @@ -1,32 +0,0 @@ -[Oo]bj/ -[Bb]in/ -TestResults/ -.nuget/ -_ReSharper.*/ -packages/ -artifacts/ -PublishProfiles/ -*.user -*.suo -*.cache -*.docstates -_ReSharper.* -nuget.exe -*net45.csproj -*net451.csproj -*k10.csproj -*.psess -*.vsp -*.pidb -*.userprefs -*DS_Store -*.ncrunchsolution -*.*sdf -*.ipch -*.sln.ide -project.lock.json -.vs -.vscode -.build/ -.testPublish/ -global.json diff --git a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/ApiAuthSample.csproj b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/ApiAuthSample.csproj new file mode 100644 index 0000000000..7e1f228988 --- /dev/null +++ b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/ApiAuthSample.csproj @@ -0,0 +1,35 @@ + + + + netcoreapp3.0 + aspnet-ApiAuthSample-12ED8ECC-9EF1-4D31-87B4-1405B3198E5E + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Identity/samples/ApiAuthSample/Areas/Identity/Pages/Shared/_LoginPartial.cshtml b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Areas/Identity/Pages/Shared/_LoginPartial.cshtml similarity index 100% rename from src/Identity/samples/ApiAuthSample/Areas/Identity/Pages/Shared/_LoginPartial.cshtml rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Areas/Identity/Pages/Shared/_LoginPartial.cshtml diff --git a/src/Identity/samples/ApiAuthSample/Areas/Identity/Pages/_ViewImports.cshtml b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Areas/Identity/Pages/_ViewImports.cshtml similarity index 100% rename from src/Identity/samples/ApiAuthSample/Areas/Identity/Pages/_ViewImports.cshtml rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Areas/Identity/Pages/_ViewImports.cshtml diff --git a/src/Identity/samples/ApiAuthSample/Controllers/ValuesController.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Controllers/ValuesController.cs similarity index 100% rename from src/Identity/samples/ApiAuthSample/Controllers/ValuesController.cs rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Controllers/ValuesController.cs diff --git a/src/Identity/samples/ApiAuthSample/Data/ApplicationDbContext.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Data/ApplicationDbContext.cs similarity index 100% rename from src/Identity/samples/ApiAuthSample/Data/ApplicationDbContext.cs rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Data/ApplicationDbContext.cs diff --git a/src/Identity/samples/ApiAuthSample/Data/Migrations/20180919224505_InitialMigration.Designer.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Data/Migrations/20180919224505_InitialMigration.Designer.cs similarity index 100% rename from src/Identity/samples/ApiAuthSample/Data/Migrations/20180919224505_InitialMigration.Designer.cs rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Data/Migrations/20180919224505_InitialMigration.Designer.cs diff --git a/src/Identity/samples/ApiAuthSample/Data/Migrations/20180919224505_InitialMigration.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Data/Migrations/20180919224505_InitialMigration.cs similarity index 100% rename from src/Identity/samples/ApiAuthSample/Data/Migrations/20180919224505_InitialMigration.cs rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Data/Migrations/20180919224505_InitialMigration.cs diff --git a/src/Identity/samples/ApiAuthSample/Data/Migrations/ApplicationDbContextModelSnapshot.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Data/Migrations/ApplicationDbContextModelSnapshot.cs similarity index 100% rename from src/Identity/samples/ApiAuthSample/Data/Migrations/ApplicationDbContextModelSnapshot.cs rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Data/Migrations/ApplicationDbContextModelSnapshot.cs diff --git a/src/Identity/samples/ApiAuthSample/Models/ApplicationUser.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Models/ApplicationUser.cs similarity index 100% rename from src/Identity/samples/ApiAuthSample/Models/ApplicationUser.cs rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Models/ApplicationUser.cs diff --git a/src/Identity/samples/ApiAuthSample/Pages/Index.cshtml b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Pages/Index.cshtml similarity index 100% rename from src/Identity/samples/ApiAuthSample/Pages/Index.cshtml rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Pages/Index.cshtml diff --git a/src/Identity/samples/ApiAuthSample/Pages/Index.cshtml.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Pages/Index.cshtml.cs similarity index 100% rename from src/Identity/samples/ApiAuthSample/Pages/Index.cshtml.cs rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Pages/Index.cshtml.cs diff --git a/src/Identity/samples/ApiAuthSample/Program.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Program.cs similarity index 100% rename from src/Identity/samples/ApiAuthSample/Program.cs rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Program.cs diff --git a/src/Identity/samples/ApiAuthSample/Startup.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Startup.cs similarity index 100% rename from src/Identity/samples/ApiAuthSample/Startup.cs rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Startup.cs diff --git a/src/Identity/samples/ApiAuthSample/app.db b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/app.db similarity index 100% rename from src/Identity/samples/ApiAuthSample/app.db rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/app.db diff --git a/src/Identity/samples/ApiAuthSample/appsettings.Development.json b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/appsettings.Development.json similarity index 100% rename from src/Identity/samples/ApiAuthSample/appsettings.Development.json rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/appsettings.Development.json diff --git a/src/Identity/samples/ApiAuthSample/appsettings.json b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/appsettings.json similarity index 100% rename from src/Identity/samples/ApiAuthSample/appsettings.json rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/appsettings.json diff --git a/src/Identity/samples/ApiAuthSample/package-lock.json b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/package-lock.json similarity index 100% rename from src/Identity/samples/ApiAuthSample/package-lock.json rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/package-lock.json diff --git a/src/Identity/samples/ApiAuthSample/wwwroot/js/app.js b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/wwwroot/js/app.js similarity index 100% rename from src/Identity/samples/ApiAuthSample/wwwroot/js/app.js rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/wwwroot/js/app.js diff --git a/src/Identity/samples/ApiAuthSample/wwwroot/js/oidc-client.js b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/wwwroot/js/oidc-client.js similarity index 100% rename from src/Identity/samples/ApiAuthSample/wwwroot/js/oidc-client.js rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/wwwroot/js/oidc-client.js diff --git a/src/Identity/samples/ApiAuthSample/wwwroot/js/oidc-client.min.js b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/wwwroot/js/oidc-client.min.js similarity index 100% rename from src/Identity/samples/ApiAuthSample/wwwroot/js/oidc-client.min.js rename to src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/wwwroot/js/oidc-client.min.js diff --git a/src/Identity/src/ApiAuth.IS/Authentication/AuthenticationBuilderExtensions.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/AuthenticationBuilderExtensions.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Authentication/AuthenticationBuilderExtensions.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Authentication/AuthenticationBuilderExtensions.cs diff --git a/src/Identity/src/ApiAuth.IS/Authentication/IdentityServerJwtBearerOptionsConfiguration.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtBearerOptionsConfiguration.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Authentication/IdentityServerJwtBearerOptionsConfiguration.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtBearerOptionsConfiguration.cs diff --git a/src/Identity/src/ApiAuth.IS/Authentication/IdentityServerJwtConstants.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtConstants.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Authentication/IdentityServerJwtConstants.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtConstants.cs diff --git a/src/Identity/src/ApiAuth.IS/Authentication/IdentityServerJwtPolicySchemeForwardSelector.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtPolicySchemeForwardSelector.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Authentication/IdentityServerJwtPolicySchemeForwardSelector.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtPolicySchemeForwardSelector.cs diff --git a/src/Identity/src/ApiAuth.IS/Authentication/StaticConfigurationManager.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/StaticConfigurationManager.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Authentication/StaticConfigurationManager.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Authentication/StaticConfigurationManager.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/ApplicationProfiles.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfiles.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/ApplicationProfiles.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfiles.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/ApplicationProfilesPropertyNames.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfilesPropertyNames.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/ApplicationProfilesPropertyNames.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfilesPropertyNames.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/ApplicationProfilesPropertyValues.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfilesPropertyValues.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/ApplicationProfilesPropertyValues.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfilesPropertyValues.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/AspNetConventionsConfigureOptions.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/AspNetConventionsConfigureOptions.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/AspNetConventionsConfigureOptions.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/AspNetConventionsConfigureOptions.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/ClientDefinition.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ClientDefinition.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/ClientDefinition.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ClientDefinition.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/ConfigureApiResources.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureApiResources.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/ConfigureApiResources.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureApiResources.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/ConfigureClientScopes.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureClientScopes.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/ConfigureClientScopes.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureClientScopes.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/ConfigureClients.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureClients.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/ConfigureClients.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureClients.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/ConfigureIdentityResources.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureIdentityResources.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/ConfigureIdentityResources.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureIdentityResources.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/ConfigureSigningCredentials.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureSigningCredentials.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/ConfigureSigningCredentials.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureSigningCredentials.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/IIdentityServerJwtDescriptor.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IIdentityServerJwtDescriptor.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/IIdentityServerJwtDescriptor.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IIdentityServerJwtDescriptor.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/IdentityResourceDefinition.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IdentityResourceDefinition.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/IdentityResourceDefinition.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IdentityResourceDefinition.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/IdentityServerJwtApiDescriptor.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IdentityServerJwtApiDescriptor.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/IdentityServerJwtApiDescriptor.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IdentityServerJwtApiDescriptor.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/KeyDefinition.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/KeyDefinition.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/KeyDefinition.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/KeyDefinition.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/KeySources.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/KeySources.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/KeySources.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/KeySources.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/ResourceDefinition.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ResourceDefinition.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/ResourceDefinition.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ResourceDefinition.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/ServiceDefinition.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ServiceDefinition.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/ServiceDefinition.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ServiceDefinition.cs diff --git a/src/Identity/src/ApiAuth.IS/Configuration/SigningKeysLoader.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/SigningKeysLoader.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Configuration/SigningKeysLoader.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Configuration/SigningKeysLoader.cs diff --git a/src/Identity/src/ApiAuth.IS/Data/ApiAuthorizationDbContext.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Data/ApiAuthorizationDbContext.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Data/ApiAuthorizationDbContext.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Data/ApiAuthorizationDbContext.cs diff --git a/src/Identity/src/ApiAuth.IS/Extensions/AbsoluteUrlFactory.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/AbsoluteUrlFactory.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Extensions/AbsoluteUrlFactory.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Extensions/AbsoluteUrlFactory.cs diff --git a/src/Identity/src/ApiAuth.IS/Extensions/AutoRedirectEndSessionEndpoint.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/AutoRedirectEndSessionEndpoint.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Extensions/AutoRedirectEndSessionEndpoint.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Extensions/AutoRedirectEndSessionEndpoint.cs diff --git a/src/Identity/src/ApiAuth.IS/Extensions/DefaultClientRequestParametersProvider.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/DefaultClientRequestParametersProvider.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Extensions/DefaultClientRequestParametersProvider.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Extensions/DefaultClientRequestParametersProvider.cs diff --git a/src/Identity/src/ApiAuth.IS/Extensions/IAbsoluteUrlFactory.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/IAbsoluteUrlFactory.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Extensions/IAbsoluteUrlFactory.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Extensions/IAbsoluteUrlFactory.cs diff --git a/src/Identity/src/ApiAuth.IS/Extensions/IClientRequestParametersProvider.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/IClientRequestParametersProvider.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Extensions/IClientRequestParametersProvider.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Extensions/IClientRequestParametersProvider.cs diff --git a/src/Identity/src/ApiAuth.IS/Extensions/RelativeRedirectUriValidator.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/RelativeRedirectUriValidator.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Extensions/RelativeRedirectUriValidator.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Extensions/RelativeRedirectUriValidator.cs diff --git a/src/Identity/src/ApiAuth.IS/IdentityServerBuilderConfigurationExtensions.cs b/src/Identity/ApiAuthorization.IdentityServer/src/IdentityServerBuilderConfigurationExtensions.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/IdentityServerBuilderConfigurationExtensions.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/IdentityServerBuilderConfigurationExtensions.cs diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Microsoft.AspNetCore.ApiAuthorization.IdentityServer.csproj b/src/Identity/ApiAuthorization.IdentityServer/src/Microsoft.AspNetCore.ApiAuthorization.IdentityServer.csproj new file mode 100644 index 0000000000..d3f272a544 --- /dev/null +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Microsoft.AspNetCore.ApiAuthorization.IdentityServer.csproj @@ -0,0 +1,21 @@ + + + + netcoreapp3.0 + ASP.NET Core API Authorization package powered by Identity Server. + true + aspnetcore;apiauth;identity + false + + + + + + + + + + + + + diff --git a/src/Identity/src/ApiAuth.IS/Options/ApiAuthorizationOptions.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiAuthorizationOptions.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Options/ApiAuthorizationOptions.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiAuthorizationOptions.cs diff --git a/src/Identity/src/ApiAuth.IS/Options/ApiResourceBuilder.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiResourceBuilder.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Options/ApiResourceBuilder.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiResourceBuilder.cs diff --git a/src/Identity/src/ApiAuth.IS/Options/ApiResourceCollection.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiResourceCollection.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Options/ApiResourceCollection.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiResourceCollection.cs diff --git a/src/Identity/src/ApiAuth.IS/Options/ClientBuilder.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ClientBuilder.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Options/ClientBuilder.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Options/ClientBuilder.cs diff --git a/src/Identity/src/ApiAuth.IS/Options/ClientCollection.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ClientCollection.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Options/ClientCollection.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Options/ClientCollection.cs diff --git a/src/Identity/src/ApiAuth.IS/Options/IdentityResourceBuilder.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/IdentityResourceBuilder.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Options/IdentityResourceBuilder.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Options/IdentityResourceBuilder.cs diff --git a/src/Identity/src/ApiAuth.IS/Options/IdentityResourceCollection.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/IdentityResourceCollection.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/Options/IdentityResourceCollection.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Options/IdentityResourceCollection.cs diff --git a/src/Identity/src/ApiAuth.IS/Properties/AssemblyInfo.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Properties/AssemblyInfo.cs similarity index 64% rename from src/Identity/src/ApiAuth.IS/Properties/AssemblyInfo.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/Properties/AssemblyInfo.cs index da88d94be5..17a9364ae8 100644 --- a/src/Identity/src/ApiAuth.IS/Properties/AssemblyInfo.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Properties/AssemblyInfo.cs @@ -3,5 +3,5 @@ using System.Runtime.CompilerServices; -[assembly: InternalsVisibleTo("Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] -[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey = 0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")] \ No newline at end of file +[assembly: InternalsVisibleTo("Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey = 0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")] diff --git a/src/Identity/src/ApiAuth.IS/TagHelpers/ClientParametersTagHelper.cs b/src/Identity/ApiAuthorization.IdentityServer/src/TagHelpers/ClientParametersTagHelper.cs similarity index 100% rename from src/Identity/src/ApiAuth.IS/TagHelpers/ClientParametersTagHelper.cs rename to src/Identity/ApiAuthorization.IdentityServer/src/TagHelpers/ClientParametersTagHelper.cs diff --git a/src/Identity/test/ApiAuth.IS.Test/Authentication/LocalApiJwtBearerConfigurationTest.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Authentication/LocalApiJwtBearerConfigurationTest.cs similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/Authentication/LocalApiJwtBearerConfigurationTest.cs rename to src/Identity/ApiAuthorization.IdentityServer/test/Authentication/LocalApiJwtBearerConfigurationTest.cs diff --git a/src/Identity/test/ApiAuth.IS.Test/Authentication/LocalApiPolicySchemeForwardSelectorTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Authentication/LocalApiPolicySchemeForwardSelectorTests.cs similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/Authentication/LocalApiPolicySchemeForwardSelectorTests.cs rename to src/Identity/ApiAuthorization.IdentityServer/test/Authentication/LocalApiPolicySchemeForwardSelectorTests.cs diff --git a/src/Identity/test/ApiAuth.IS.Test/Configuration/AspNetConventionsConfigureOptionsTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/AspNetConventionsConfigureOptionsTests.cs similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/Configuration/AspNetConventionsConfigureOptionsTests.cs rename to src/Identity/ApiAuthorization.IdentityServer/test/Configuration/AspNetConventionsConfigureOptionsTests.cs diff --git a/src/Identity/test/ApiAuth.IS.Test/Configuration/ConfigureApiResourcesTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureApiResourcesTests.cs similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/Configuration/ConfigureApiResourcesTests.cs rename to src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureApiResourcesTests.cs diff --git a/src/Identity/test/ApiAuth.IS.Test/Configuration/ConfigureClientScopesTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientScopesTests.cs similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/Configuration/ConfigureClientScopesTests.cs rename to src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientScopesTests.cs diff --git a/src/Identity/test/ApiAuth.IS.Test/Configuration/ConfigureClientsTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientsTests.cs similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/Configuration/ConfigureClientsTests.cs rename to src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientsTests.cs diff --git a/src/Identity/test/ApiAuth.IS.Test/Configuration/ConfigureSigningCredentialsTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureSigningCredentialsTests.cs similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/Configuration/ConfigureSigningCredentialsTests.cs rename to src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureSigningCredentialsTests.cs diff --git a/src/Identity/test/ApiAuth.IS.Test/Configuration/LocalApiDescriptorTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/LocalApiDescriptorTests.cs similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/Configuration/LocalApiDescriptorTests.cs rename to src/Identity/ApiAuthorization.IdentityServer/test/Configuration/LocalApiDescriptorTests.cs diff --git a/src/Identity/test/ApiAuth.IS.Test/Configuration/SigningKeysLoaderTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/SigningKeysLoaderTests.cs similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/Configuration/SigningKeysLoaderTests.cs rename to src/Identity/ApiAuthorization.IdentityServer/test/Configuration/SigningKeysLoaderTests.cs diff --git a/src/Identity/test/ApiAuth.IS.Test/Extensions/AbsoluteUrlFactoryTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/AbsoluteUrlFactoryTests.cs similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/Extensions/AbsoluteUrlFactoryTests.cs rename to src/Identity/ApiAuthorization.IdentityServer/test/Extensions/AbsoluteUrlFactoryTests.cs diff --git a/src/Identity/test/ApiAuth.IS.Test/Extensions/AutoRedirectEndSessionEndpointTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/AutoRedirectEndSessionEndpointTests.cs similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/Extensions/AutoRedirectEndSessionEndpointTests.cs rename to src/Identity/ApiAuthorization.IdentityServer/test/Extensions/AutoRedirectEndSessionEndpointTests.cs diff --git a/src/Identity/test/ApiAuth.IS.Test/Extensions/RelativeRedirectUriValidatorTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/RelativeRedirectUriValidatorTests.cs similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/Extensions/RelativeRedirectUriValidatorTests.cs rename to src/Identity/ApiAuthorization.IdentityServer/test/Extensions/RelativeRedirectUriValidatorTests.cs diff --git a/src/Identity/test/ApiAuth.IS.Test/Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Test.csproj b/src/Identity/ApiAuthorization.IdentityServer/test/Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Tests.csproj similarity index 84% rename from src/Identity/test/ApiAuth.IS.Test/Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Test.csproj rename to src/Identity/ApiAuthorization.IdentityServer/test/Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Tests.csproj index 8dc9683fb3..9726e74142 100644 --- a/src/Identity/test/ApiAuth.IS.Test/Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Test.csproj +++ b/src/Identity/ApiAuthorization.IdentityServer/test/Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Tests.csproj @@ -5,7 +5,7 @@ - + diff --git a/src/Identity/test/ApiAuth.IS.Test/TagHelpers/ClientParametersTagHelperTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/TagHelpers/ClientParametersTagHelperTests.cs similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/TagHelpers/ClientParametersTagHelperTests.cs rename to src/Identity/ApiAuthorization.IdentityServer/test/TagHelpers/ClientParametersTagHelperTests.cs diff --git a/src/Identity/test/ApiAuth.IS.Test/TestLogger.cs b/src/Identity/ApiAuthorization.IdentityServer/test/TestLogger.cs similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/TestLogger.cs rename to src/Identity/ApiAuthorization.IdentityServer/test/TestLogger.cs diff --git a/src/Identity/test/ApiAuth.IS.Test/current.pfx b/src/Identity/ApiAuthorization.IdentityServer/test/current.pfx similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/current.pfx rename to src/Identity/ApiAuthorization.IdentityServer/test/current.pfx diff --git a/src/Identity/test/ApiAuth.IS.Test/expired.pfx b/src/Identity/ApiAuthorization.IdentityServer/test/expired.pfx similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/expired.pfx rename to src/Identity/ApiAuthorization.IdentityServer/test/expired.pfx diff --git a/src/Identity/test/ApiAuth.IS.Test/future.pfx b/src/Identity/ApiAuthorization.IdentityServer/test/future.pfx similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/future.pfx rename to src/Identity/ApiAuthorization.IdentityServer/test/future.pfx diff --git a/src/Identity/test/ApiAuth.IS.Test/test.pfx b/src/Identity/ApiAuthorization.IdentityServer/test/test.pfx similarity index 100% rename from src/Identity/test/ApiAuth.IS.Test/test.pfx rename to src/Identity/ApiAuthorization.IdentityServer/test/test.pfx diff --git a/src/Identity/src/Identity/AspNetRoleManager.cs b/src/Identity/Core/src/AspNetRoleManager.cs similarity index 100% rename from src/Identity/src/Identity/AspNetRoleManager.cs rename to src/Identity/Core/src/AspNetRoleManager.cs diff --git a/src/Identity/src/Identity/AspNetUserManager.cs b/src/Identity/Core/src/AspNetUserManager.cs similarity index 100% rename from src/Identity/src/Identity/AspNetUserManager.cs rename to src/Identity/Core/src/AspNetUserManager.cs diff --git a/src/Identity/src/Identity/BuilderExtensions.cs b/src/Identity/Core/src/BuilderExtensions.cs similarity index 100% rename from src/Identity/src/Identity/BuilderExtensions.cs rename to src/Identity/Core/src/BuilderExtensions.cs diff --git a/src/Identity/src/Identity/DataProtectionTokenProvider.cs b/src/Identity/Core/src/DataProtectionTokenProvider.cs similarity index 100% rename from src/Identity/src/Identity/DataProtectionTokenProvider.cs rename to src/Identity/Core/src/DataProtectionTokenProvider.cs diff --git a/src/Identity/src/Identity/DataProtectionTokenProviderOptions.cs b/src/Identity/Core/src/DataProtectionTokenProviderOptions.cs similarity index 100% rename from src/Identity/src/Identity/DataProtectionTokenProviderOptions.cs rename to src/Identity/Core/src/DataProtectionTokenProviderOptions.cs diff --git a/src/Identity/src/Identity/ExternalLoginInfo.cs b/src/Identity/Core/src/ExternalLoginInfo.cs similarity index 100% rename from src/Identity/src/Identity/ExternalLoginInfo.cs rename to src/Identity/Core/src/ExternalLoginInfo.cs diff --git a/src/Identity/src/Identity/ISecurityStampValidator.cs b/src/Identity/Core/src/ISecurityStampValidator.cs similarity index 100% rename from src/Identity/src/Identity/ISecurityStampValidator.cs rename to src/Identity/Core/src/ISecurityStampValidator.cs diff --git a/src/Identity/src/Identity/ITwoFactorSecurityStampValidator.cs b/src/Identity/Core/src/ITwoFactorSecurityStampValidator.cs similarity index 100% rename from src/Identity/src/Identity/ITwoFactorSecurityStampValidator.cs rename to src/Identity/Core/src/ITwoFactorSecurityStampValidator.cs diff --git a/src/Identity/src/Identity/IdentityBuilderExtensions.cs b/src/Identity/Core/src/IdentityBuilderExtensions.cs similarity index 100% rename from src/Identity/src/Identity/IdentityBuilderExtensions.cs rename to src/Identity/Core/src/IdentityBuilderExtensions.cs diff --git a/src/Identity/src/Identity/IdentityConstants.cs b/src/Identity/Core/src/IdentityConstants.cs similarity index 100% rename from src/Identity/src/Identity/IdentityConstants.cs rename to src/Identity/Core/src/IdentityConstants.cs diff --git a/src/Identity/src/Identity/IdentityCookiesBuilder.cs b/src/Identity/Core/src/IdentityCookiesBuilder.cs similarity index 100% rename from src/Identity/src/Identity/IdentityCookiesBuilder.cs rename to src/Identity/Core/src/IdentityCookiesBuilder.cs diff --git a/src/Identity/src/Identity/IdentityCookiesBuilderExtensions.cs b/src/Identity/Core/src/IdentityCookiesBuilderExtensions.cs similarity index 100% rename from src/Identity/src/Identity/IdentityCookiesBuilderExtensions.cs rename to src/Identity/Core/src/IdentityCookiesBuilderExtensions.cs diff --git a/src/Identity/src/Identity/IdentityServiceCollectionExtensions.cs b/src/Identity/Core/src/IdentityServiceCollectionExtensions.cs similarity index 100% rename from src/Identity/src/Identity/IdentityServiceCollectionExtensions.cs rename to src/Identity/Core/src/IdentityServiceCollectionExtensions.cs diff --git a/src/Identity/src/Identity/Microsoft.AspNetCore.Identity.csproj b/src/Identity/Core/src/Microsoft.AspNetCore.Identity.csproj similarity index 51% rename from src/Identity/src/Identity/Microsoft.AspNetCore.Identity.csproj rename to src/Identity/Core/src/Microsoft.AspNetCore.Identity.csproj index 9ef7ddb110..7641e34897 100644 --- a/src/Identity/src/Identity/Microsoft.AspNetCore.Identity.csproj +++ b/src/Identity/Core/src/Microsoft.AspNetCore.Identity.csproj @@ -8,13 +8,10 @@ - - - - - - - + + + + diff --git a/src/Identity/src/Core/Properties/AssemblyInfo.cs b/src/Identity/Core/src/Properties/AssemblyInfo.cs similarity index 100% rename from src/Identity/src/Core/Properties/AssemblyInfo.cs rename to src/Identity/Core/src/Properties/AssemblyInfo.cs diff --git a/src/Identity/src/Identity/Properties/Resources.Designer.cs b/src/Identity/Core/src/Properties/Resources.Designer.cs similarity index 100% rename from src/Identity/src/Identity/Properties/Resources.Designer.cs rename to src/Identity/Core/src/Properties/Resources.Designer.cs diff --git a/src/Identity/src/Identity/Properties/debugSettings.json b/src/Identity/Core/src/Properties/debugSettings.json similarity index 100% rename from src/Identity/src/Identity/Properties/debugSettings.json rename to src/Identity/Core/src/Properties/debugSettings.json diff --git a/src/Identity/src/Identity/Resources.resx b/src/Identity/Core/src/Resources.resx similarity index 100% rename from src/Identity/src/Identity/Resources.resx rename to src/Identity/Core/src/Resources.resx diff --git a/src/Identity/src/Identity/SecurityStampRefreshingPrincipalContext.cs b/src/Identity/Core/src/SecurityStampRefreshingPrincipalContext.cs similarity index 100% rename from src/Identity/src/Identity/SecurityStampRefreshingPrincipalContext.cs rename to src/Identity/Core/src/SecurityStampRefreshingPrincipalContext.cs diff --git a/src/Identity/src/Identity/SecurityStampValidator.cs b/src/Identity/Core/src/SecurityStampValidator.cs similarity index 100% rename from src/Identity/src/Identity/SecurityStampValidator.cs rename to src/Identity/Core/src/SecurityStampValidator.cs diff --git a/src/Identity/src/Identity/SecurityStampValidatorOptions.cs b/src/Identity/Core/src/SecurityStampValidatorOptions.cs similarity index 100% rename from src/Identity/src/Identity/SecurityStampValidatorOptions.cs rename to src/Identity/Core/src/SecurityStampValidatorOptions.cs diff --git a/src/Identity/src/Identity/SignInManager.cs b/src/Identity/Core/src/SignInManager.cs similarity index 100% rename from src/Identity/src/Identity/SignInManager.cs rename to src/Identity/Core/src/SignInManager.cs diff --git a/src/Identity/src/Identity/TwoFactorSecurityStampValidator.cs b/src/Identity/Core/src/TwoFactorSecurityStampValidator.cs similarity index 100% rename from src/Identity/src/Identity/TwoFactorSecurityStampValidator.cs rename to src/Identity/Core/src/TwoFactorSecurityStampValidator.cs diff --git a/src/Identity/src/Identity/baseline.netcore.json b/src/Identity/Core/src/baseline.netcore.json similarity index 100% rename from src/Identity/src/Identity/baseline.netcore.json rename to src/Identity/Core/src/baseline.netcore.json diff --git a/src/Identity/src/Identity/baseline.netframework.json b/src/Identity/Core/src/baseline.netframework.json similarity index 100% rename from src/Identity/src/Identity/baseline.netframework.json rename to src/Identity/Core/src/baseline.netframework.json diff --git a/src/Identity/Directory.Build.props b/src/Identity/Directory.Build.props index 3f03503e4d..7a3a58cbc2 100644 --- a/src/Identity/Directory.Build.props +++ b/src/Identity/Directory.Build.props @@ -1,32 +1,8 @@ - - - - - - + + - Microsoft ASP.NET Core - https://github.com/aspnet/Identity - git - $(MSBuildThisFileDirectory) - $(MSBuildThisFileDirectory)build\Key.snk - true - true - - false - $(MSBuildThisFileDirectory)..\Shared\ - - - - - $(MSBuildThisFileDirectory)..\..\artifacts\ - $(ArtifactsDir)$(Configuration)\ - $(ArtifactsConfigurationDir)packages\ - $(BasePackageOutputPath)product\ - $(BasePackageOutputPath)internal\ + $(MSBuildThisFileDirectory)test\Shared\ diff --git a/src/Identity/Directory.Build.targets b/src/Identity/Directory.Build.targets deleted file mode 100644 index f5a3f65909..0000000000 --- a/src/Identity/Directory.Build.targets +++ /dev/null @@ -1,17 +0,0 @@ - - - $(MicrosoftNETCoreAppPackageVersion) - - - - - false - - $(ProductPackageOutputPath) - $(InternalPackageOutputPath) - - - diff --git a/src/Identity/src/EF/IdentityDbContext.cs b/src/Identity/EntityFrameworkCore/src/IdentityDbContext.cs similarity index 100% rename from src/Identity/src/EF/IdentityDbContext.cs rename to src/Identity/EntityFrameworkCore/src/IdentityDbContext.cs diff --git a/src/Identity/src/EF/IdentityEntityFrameworkBuilderExtensions.cs b/src/Identity/EntityFrameworkCore/src/IdentityEntityFrameworkBuilderExtensions.cs similarity index 100% rename from src/Identity/src/EF/IdentityEntityFrameworkBuilderExtensions.cs rename to src/Identity/EntityFrameworkCore/src/IdentityEntityFrameworkBuilderExtensions.cs diff --git a/src/Identity/src/EF/IdentityUserContext.cs b/src/Identity/EntityFrameworkCore/src/IdentityUserContext.cs similarity index 100% rename from src/Identity/src/EF/IdentityUserContext.cs rename to src/Identity/EntityFrameworkCore/src/IdentityUserContext.cs diff --git a/src/Identity/src/EF/Microsoft.AspNetCore.Identity.EntityFrameworkCore.csproj b/src/Identity/EntityFrameworkCore/src/Microsoft.AspNetCore.Identity.EntityFrameworkCore.csproj similarity index 57% rename from src/Identity/src/EF/Microsoft.AspNetCore.Identity.EntityFrameworkCore.csproj rename to src/Identity/EntityFrameworkCore/src/Microsoft.AspNetCore.Identity.EntityFrameworkCore.csproj index 5d20f316e2..2c558a1c4a 100644 --- a/src/Identity/src/EF/Microsoft.AspNetCore.Identity.EntityFrameworkCore.csproj +++ b/src/Identity/EntityFrameworkCore/src/Microsoft.AspNetCore.Identity.EntityFrameworkCore.csproj @@ -9,12 +9,9 @@ - - - - - - + + + diff --git a/src/Identity/src/EF/Properties/Resources.Designer.cs b/src/Identity/EntityFrameworkCore/src/Properties/Resources.Designer.cs similarity index 100% rename from src/Identity/src/EF/Properties/Resources.Designer.cs rename to src/Identity/EntityFrameworkCore/src/Properties/Resources.Designer.cs diff --git a/src/Identity/src/EF/Resources.resx b/src/Identity/EntityFrameworkCore/src/Resources.resx similarity index 100% rename from src/Identity/src/EF/Resources.resx rename to src/Identity/EntityFrameworkCore/src/Resources.resx diff --git a/src/Identity/src/EF/RoleStore.cs b/src/Identity/EntityFrameworkCore/src/RoleStore.cs similarity index 100% rename from src/Identity/src/EF/RoleStore.cs rename to src/Identity/EntityFrameworkCore/src/RoleStore.cs diff --git a/src/Identity/src/EF/UserOnlyStore.cs b/src/Identity/EntityFrameworkCore/src/UserOnlyStore.cs similarity index 100% rename from src/Identity/src/EF/UserOnlyStore.cs rename to src/Identity/EntityFrameworkCore/src/UserOnlyStore.cs diff --git a/src/Identity/src/EF/UserStore.cs b/src/Identity/EntityFrameworkCore/src/UserStore.cs similarity index 100% rename from src/Identity/src/EF/UserStore.cs rename to src/Identity/EntityFrameworkCore/src/UserStore.cs diff --git a/src/Identity/src/EF/baseline.netcore.json b/src/Identity/EntityFrameworkCore/src/baseline.netcore.json similarity index 100% rename from src/Identity/src/EF/baseline.netcore.json rename to src/Identity/EntityFrameworkCore/src/baseline.netcore.json diff --git a/src/Identity/test/EF.InMemory.Test/InMemoryContext.cs b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryContext.cs similarity index 100% rename from src/Identity/test/EF.InMemory.Test/InMemoryContext.cs rename to src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryContext.cs diff --git a/src/Identity/test/EF.InMemory.Test/InMemoryEFOnlyUsersTest.cs b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryEFOnlyUsersTest.cs similarity index 100% rename from src/Identity/test/EF.InMemory.Test/InMemoryEFOnlyUsersTest.cs rename to src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryEFOnlyUsersTest.cs diff --git a/src/Identity/test/EF.InMemory.Test/InMemoryEFUserStoreTest.cs b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryEFUserStoreTest.cs similarity index 100% rename from src/Identity/test/EF.InMemory.Test/InMemoryEFUserStoreTest.cs rename to src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryEFUserStoreTest.cs diff --git a/src/Identity/test/EF.InMemory.Test/InMemoryStoreWithGenericsTest.cs b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryStoreWithGenericsTest.cs similarity index 100% rename from src/Identity/test/EF.InMemory.Test/InMemoryStoreWithGenericsTest.cs rename to src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryStoreWithGenericsTest.cs diff --git a/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test.csproj b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test.csproj new file mode 100644 index 0000000000..9fe201df82 --- /dev/null +++ b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test.csproj @@ -0,0 +1,20 @@ + + + + netcoreapp3.0 + + + + + + + + + + + + + + + + diff --git a/src/Identity/test/EF.InMemory.Test/RoleStoreTest.cs b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/RoleStoreTest.cs similarity index 100% rename from src/Identity/test/EF.InMemory.Test/RoleStoreTest.cs rename to src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/RoleStoreTest.cs diff --git a/src/Identity/test/EF.InMemory.Test/TestIdentityFactory.cs b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/TestIdentityFactory.cs similarity index 100% rename from src/Identity/test/EF.InMemory.Test/TestIdentityFactory.cs rename to src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/TestIdentityFactory.cs diff --git a/src/Identity/test/EF.Test/ApiConsistencyTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/ApiConsistencyTest.cs similarity index 100% rename from src/Identity/test/EF.Test/ApiConsistencyTest.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/ApiConsistencyTest.cs diff --git a/src/Identity/test/EF.Test/CustomPocoTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/CustomPocoTest.cs similarity index 100% rename from src/Identity/test/EF.Test/CustomPocoTest.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/CustomPocoTest.cs diff --git a/src/Identity/test/EF.Test/DbUtil.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/DbUtil.cs similarity index 100% rename from src/Identity/test/EF.Test/DbUtil.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/DbUtil.cs diff --git a/src/Identity/test/EF.Test/DefaultPocoTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/DefaultPocoTest.cs similarity index 100% rename from src/Identity/test/EF.Test/DefaultPocoTest.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/DefaultPocoTest.cs diff --git a/src/Identity/test/EF.Test/MaxKeyLengthSchemaTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/MaxKeyLengthSchemaTest.cs similarity index 100% rename from src/Identity/test/EF.Test/MaxKeyLengthSchemaTest.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/MaxKeyLengthSchemaTest.cs diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test.csproj b/src/Identity/EntityFrameworkCore/test/EF.Test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test.csproj new file mode 100644 index 0000000000..9439f32577 --- /dev/null +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test.csproj @@ -0,0 +1,29 @@ + + + + netcoreapp3.0 + + + true + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Identity/test/EF.Test/SqlStoreOnlyUsersTestBase.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/SqlStoreOnlyUsersTestBase.cs similarity index 100% rename from src/Identity/test/EF.Test/SqlStoreOnlyUsersTestBase.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/SqlStoreOnlyUsersTestBase.cs diff --git a/src/Identity/test/EF.Test/SqlStoreTestBase.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/SqlStoreTestBase.cs similarity index 100% rename from src/Identity/test/EF.Test/SqlStoreTestBase.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/SqlStoreTestBase.cs diff --git a/src/Identity/test/EF.Test/UserOnlyCustomContextTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/UserOnlyCustomContextTest.cs similarity index 100% rename from src/Identity/test/EF.Test/UserOnlyCustomContextTest.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/UserOnlyCustomContextTest.cs diff --git a/src/Identity/test/EF.Test/UserOnlyTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/UserOnlyTest.cs similarity index 100% rename from src/Identity/test/EF.Test/UserOnlyTest.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/UserOnlyTest.cs diff --git a/src/Identity/test/EF.Test/UserStoreEncryptPersonalDataTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreEncryptPersonalDataTest.cs similarity index 100% rename from src/Identity/test/EF.Test/UserStoreEncryptPersonalDataTest.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreEncryptPersonalDataTest.cs diff --git a/src/Identity/test/EF.Test/UserStoreGuidKeyTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreGuidKeyTest.cs similarity index 100% rename from src/Identity/test/EF.Test/UserStoreGuidKeyTest.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreGuidKeyTest.cs diff --git a/src/Identity/test/EF.Test/UserStoreIntKeyTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreIntKeyTest.cs similarity index 100% rename from src/Identity/test/EF.Test/UserStoreIntKeyTest.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreIntKeyTest.cs diff --git a/src/Identity/test/EF.Test/UserStoreStringKeyTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreStringKeyTest.cs similarity index 100% rename from src/Identity/test/EF.Test/UserStoreStringKeyTest.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreStringKeyTest.cs diff --git a/src/Identity/test/EF.Test/UserStoreTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreTest.cs similarity index 100% rename from src/Identity/test/EF.Test/UserStoreTest.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreTest.cs diff --git a/src/Identity/test/EF.Test/UserStoreWithGenericsTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreWithGenericsTest.cs similarity index 100% rename from src/Identity/test/EF.Test/UserStoreWithGenericsTest.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreWithGenericsTest.cs diff --git a/src/Identity/test/EF.Test/Utilities/ScratchDatabaseFixture.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/Utilities/ScratchDatabaseFixture.cs similarity index 100% rename from src/Identity/test/EF.Test/Utilities/ScratchDatabaseFixture.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/Utilities/ScratchDatabaseFixture.cs diff --git a/src/Identity/test/EF.Test/Utilities/SqlServerTestStore.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/Utilities/SqlServerTestStore.cs similarity index 100% rename from src/Identity/test/EF.Test/Utilities/SqlServerTestStore.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/Utilities/SqlServerTestStore.cs diff --git a/src/Identity/test/EF.Test/Utilities/TestEnvironment.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/Utilities/TestEnvironment.cs similarity index 100% rename from src/Identity/test/EF.Test/Utilities/TestEnvironment.cs rename to src/Identity/EntityFrameworkCore/test/EF.Test/Utilities/TestEnvironment.cs diff --git a/src/Identity/test/EF.Test/config.json b/src/Identity/EntityFrameworkCore/test/EF.Test/config.json similarity index 100% rename from src/Identity/test/EF.Test/config.json rename to src/Identity/EntityFrameworkCore/test/EF.Test/config.json diff --git a/src/Identity/src/Core/AuthenticatorTokenProvider.cs b/src/Identity/Extensions.Core/src/AuthenticatorTokenProvider.cs similarity index 100% rename from src/Identity/src/Core/AuthenticatorTokenProvider.cs rename to src/Identity/Extensions.Core/src/AuthenticatorTokenProvider.cs diff --git a/src/Identity/src/Core/Base32.cs b/src/Identity/Extensions.Core/src/Base32.cs similarity index 100% rename from src/Identity/src/Core/Base32.cs rename to src/Identity/Extensions.Core/src/Base32.cs diff --git a/src/Identity/src/Core/ClaimsIdentityOptions.cs b/src/Identity/Extensions.Core/src/ClaimsIdentityOptions.cs similarity index 100% rename from src/Identity/src/Core/ClaimsIdentityOptions.cs rename to src/Identity/Extensions.Core/src/ClaimsIdentityOptions.cs diff --git a/src/Identity/src/Core/DefaultPersonalDataProtector.cs b/src/Identity/Extensions.Core/src/DefaultPersonalDataProtector.cs similarity index 100% rename from src/Identity/src/Core/DefaultPersonalDataProtector.cs rename to src/Identity/Extensions.Core/src/DefaultPersonalDataProtector.cs diff --git a/src/Identity/src/Core/EmailTokenProvider.cs b/src/Identity/Extensions.Core/src/EmailTokenProvider.cs similarity index 100% rename from src/Identity/src/Core/EmailTokenProvider.cs rename to src/Identity/Extensions.Core/src/EmailTokenProvider.cs diff --git a/src/Identity/src/Core/ILookupNormalizer.cs b/src/Identity/Extensions.Core/src/ILookupNormalizer.cs similarity index 100% rename from src/Identity/src/Core/ILookupNormalizer.cs rename to src/Identity/Extensions.Core/src/ILookupNormalizer.cs diff --git a/src/Identity/src/Core/ILookupProtector.cs b/src/Identity/Extensions.Core/src/ILookupProtector.cs similarity index 100% rename from src/Identity/src/Core/ILookupProtector.cs rename to src/Identity/Extensions.Core/src/ILookupProtector.cs diff --git a/src/Identity/src/Core/ILookupProtectorKeyRing.cs b/src/Identity/Extensions.Core/src/ILookupProtectorKeyRing.cs similarity index 100% rename from src/Identity/src/Core/ILookupProtectorKeyRing.cs rename to src/Identity/Extensions.Core/src/ILookupProtectorKeyRing.cs diff --git a/src/Identity/src/Core/IPasswordHasher.cs b/src/Identity/Extensions.Core/src/IPasswordHasher.cs similarity index 100% rename from src/Identity/src/Core/IPasswordHasher.cs rename to src/Identity/Extensions.Core/src/IPasswordHasher.cs diff --git a/src/Identity/src/Core/IPasswordValidator.cs b/src/Identity/Extensions.Core/src/IPasswordValidator.cs similarity index 100% rename from src/Identity/src/Core/IPasswordValidator.cs rename to src/Identity/Extensions.Core/src/IPasswordValidator.cs diff --git a/src/Identity/src/Core/IPersonalDataProtector.cs b/src/Identity/Extensions.Core/src/IPersonalDataProtector.cs similarity index 100% rename from src/Identity/src/Core/IPersonalDataProtector.cs rename to src/Identity/Extensions.Core/src/IPersonalDataProtector.cs diff --git a/src/Identity/src/Core/IProtectedUserStore.cs b/src/Identity/Extensions.Core/src/IProtectedUserStore.cs similarity index 100% rename from src/Identity/src/Core/IProtectedUserStore.cs rename to src/Identity/Extensions.Core/src/IProtectedUserStore.cs diff --git a/src/Identity/src/Core/IQueryableRoleStore.cs b/src/Identity/Extensions.Core/src/IQueryableRoleStore.cs similarity index 100% rename from src/Identity/src/Core/IQueryableRoleStore.cs rename to src/Identity/Extensions.Core/src/IQueryableRoleStore.cs diff --git a/src/Identity/src/Core/IQueryableUserStore.cs b/src/Identity/Extensions.Core/src/IQueryableUserStore.cs similarity index 100% rename from src/Identity/src/Core/IQueryableUserStore.cs rename to src/Identity/Extensions.Core/src/IQueryableUserStore.cs diff --git a/src/Identity/src/Core/IRoleClaimStore.cs b/src/Identity/Extensions.Core/src/IRoleClaimStore.cs similarity index 100% rename from src/Identity/src/Core/IRoleClaimStore.cs rename to src/Identity/Extensions.Core/src/IRoleClaimStore.cs diff --git a/src/Identity/src/Core/IRoleStore.cs b/src/Identity/Extensions.Core/src/IRoleStore.cs similarity index 100% rename from src/Identity/src/Core/IRoleStore.cs rename to src/Identity/Extensions.Core/src/IRoleStore.cs diff --git a/src/Identity/src/Core/IRoleValidator.cs b/src/Identity/Extensions.Core/src/IRoleValidator.cs similarity index 100% rename from src/Identity/src/Core/IRoleValidator.cs rename to src/Identity/Extensions.Core/src/IRoleValidator.cs diff --git a/src/Identity/src/Core/IUserAuthenticationTokenStore.cs b/src/Identity/Extensions.Core/src/IUserAuthenticationTokenStore.cs similarity index 100% rename from src/Identity/src/Core/IUserAuthenticationTokenStore.cs rename to src/Identity/Extensions.Core/src/IUserAuthenticationTokenStore.cs diff --git a/src/Identity/src/Core/IUserAuthenticatorKeyStore.cs b/src/Identity/Extensions.Core/src/IUserAuthenticatorKeyStore.cs similarity index 100% rename from src/Identity/src/Core/IUserAuthenticatorKeyStore.cs rename to src/Identity/Extensions.Core/src/IUserAuthenticatorKeyStore.cs diff --git a/src/Identity/src/Core/IUserClaimStore.cs b/src/Identity/Extensions.Core/src/IUserClaimStore.cs similarity index 100% rename from src/Identity/src/Core/IUserClaimStore.cs rename to src/Identity/Extensions.Core/src/IUserClaimStore.cs diff --git a/src/Identity/src/Core/IUserClaimsPrincipalFactory.cs b/src/Identity/Extensions.Core/src/IUserClaimsPrincipalFactory.cs similarity index 100% rename from src/Identity/src/Core/IUserClaimsPrincipalFactory.cs rename to src/Identity/Extensions.Core/src/IUserClaimsPrincipalFactory.cs diff --git a/src/Identity/src/Core/IUserEmailStore.cs b/src/Identity/Extensions.Core/src/IUserEmailStore.cs similarity index 100% rename from src/Identity/src/Core/IUserEmailStore.cs rename to src/Identity/Extensions.Core/src/IUserEmailStore.cs diff --git a/src/Identity/src/Core/IUserLockoutStore.cs b/src/Identity/Extensions.Core/src/IUserLockoutStore.cs similarity index 100% rename from src/Identity/src/Core/IUserLockoutStore.cs rename to src/Identity/Extensions.Core/src/IUserLockoutStore.cs diff --git a/src/Identity/src/Core/IUserLoginStore.cs b/src/Identity/Extensions.Core/src/IUserLoginStore.cs similarity index 100% rename from src/Identity/src/Core/IUserLoginStore.cs rename to src/Identity/Extensions.Core/src/IUserLoginStore.cs diff --git a/src/Identity/src/Core/IUserPasswordStore.cs b/src/Identity/Extensions.Core/src/IUserPasswordStore.cs similarity index 100% rename from src/Identity/src/Core/IUserPasswordStore.cs rename to src/Identity/Extensions.Core/src/IUserPasswordStore.cs diff --git a/src/Identity/src/Core/IUserPhoneNumberStore.cs b/src/Identity/Extensions.Core/src/IUserPhoneNumberStore.cs similarity index 100% rename from src/Identity/src/Core/IUserPhoneNumberStore.cs rename to src/Identity/Extensions.Core/src/IUserPhoneNumberStore.cs diff --git a/src/Identity/src/Core/IUserRoleStore.cs b/src/Identity/Extensions.Core/src/IUserRoleStore.cs similarity index 100% rename from src/Identity/src/Core/IUserRoleStore.cs rename to src/Identity/Extensions.Core/src/IUserRoleStore.cs diff --git a/src/Identity/src/Core/IUserSecurityStampStore.cs b/src/Identity/Extensions.Core/src/IUserSecurityStampStore.cs similarity index 100% rename from src/Identity/src/Core/IUserSecurityStampStore.cs rename to src/Identity/Extensions.Core/src/IUserSecurityStampStore.cs diff --git a/src/Identity/src/Core/IUserStore.cs b/src/Identity/Extensions.Core/src/IUserStore.cs similarity index 100% rename from src/Identity/src/Core/IUserStore.cs rename to src/Identity/Extensions.Core/src/IUserStore.cs diff --git a/src/Identity/src/Core/IUserTwoFactorRecoveryCodeStore.cs b/src/Identity/Extensions.Core/src/IUserTwoFactorRecoveryCodeStore.cs similarity index 100% rename from src/Identity/src/Core/IUserTwoFactorRecoveryCodeStore.cs rename to src/Identity/Extensions.Core/src/IUserTwoFactorRecoveryCodeStore.cs diff --git a/src/Identity/src/Core/IUserTwoFactorStore.cs b/src/Identity/Extensions.Core/src/IUserTwoFactorStore.cs similarity index 100% rename from src/Identity/src/Core/IUserTwoFactorStore.cs rename to src/Identity/Extensions.Core/src/IUserTwoFactorStore.cs diff --git a/src/Identity/src/Core/IUserTwoFactorTokenProvider.cs b/src/Identity/Extensions.Core/src/IUserTwoFactorTokenProvider.cs similarity index 100% rename from src/Identity/src/Core/IUserTwoFactorTokenProvider.cs rename to src/Identity/Extensions.Core/src/IUserTwoFactorTokenProvider.cs diff --git a/src/Identity/src/Core/IUserValidator.cs b/src/Identity/Extensions.Core/src/IUserValidator.cs similarity index 100% rename from src/Identity/src/Core/IUserValidator.cs rename to src/Identity/Extensions.Core/src/IUserValidator.cs diff --git a/src/Identity/src/Core/IdentityBuilder.cs b/src/Identity/Extensions.Core/src/IdentityBuilder.cs similarity index 100% rename from src/Identity/src/Core/IdentityBuilder.cs rename to src/Identity/Extensions.Core/src/IdentityBuilder.cs diff --git a/src/Identity/src/Core/IdentityError.cs b/src/Identity/Extensions.Core/src/IdentityError.cs similarity index 100% rename from src/Identity/src/Core/IdentityError.cs rename to src/Identity/Extensions.Core/src/IdentityError.cs diff --git a/src/Identity/src/Core/IdentityErrorDescriber.cs b/src/Identity/Extensions.Core/src/IdentityErrorDescriber.cs similarity index 100% rename from src/Identity/src/Core/IdentityErrorDescriber.cs rename to src/Identity/Extensions.Core/src/IdentityErrorDescriber.cs diff --git a/src/Identity/src/Core/IdentityOptions.cs b/src/Identity/Extensions.Core/src/IdentityOptions.cs similarity index 100% rename from src/Identity/src/Core/IdentityOptions.cs rename to src/Identity/Extensions.Core/src/IdentityOptions.cs diff --git a/src/Identity/src/Core/IdentityResult.cs b/src/Identity/Extensions.Core/src/IdentityResult.cs similarity index 100% rename from src/Identity/src/Core/IdentityResult.cs rename to src/Identity/Extensions.Core/src/IdentityResult.cs diff --git a/src/Identity/src/Core/IdentityServiceCollectionExtensions.cs b/src/Identity/Extensions.Core/src/IdentityServiceCollectionExtensions.cs similarity index 100% rename from src/Identity/src/Core/IdentityServiceCollectionExtensions.cs rename to src/Identity/Extensions.Core/src/IdentityServiceCollectionExtensions.cs diff --git a/src/Identity/src/Core/LockoutOptions.cs b/src/Identity/Extensions.Core/src/LockoutOptions.cs similarity index 100% rename from src/Identity/src/Core/LockoutOptions.cs rename to src/Identity/Extensions.Core/src/LockoutOptions.cs diff --git a/src/Identity/src/Core/Microsoft.Extensions.Identity.Core.csproj b/src/Identity/Extensions.Core/src/Microsoft.Extensions.Identity.Core.csproj similarity index 53% rename from src/Identity/src/Core/Microsoft.Extensions.Identity.Core.csproj rename to src/Identity/Extensions.Core/src/Microsoft.Extensions.Identity.Core.csproj index 14dc8722e5..8a471194b9 100644 --- a/src/Identity/src/Core/Microsoft.Extensions.Identity.Core.csproj +++ b/src/Identity/Extensions.Core/src/Microsoft.Extensions.Identity.Core.csproj @@ -8,10 +8,10 @@ - - - - + + + + diff --git a/src/Identity/src/Core/PasswordHasher.cs b/src/Identity/Extensions.Core/src/PasswordHasher.cs similarity index 100% rename from src/Identity/src/Core/PasswordHasher.cs rename to src/Identity/Extensions.Core/src/PasswordHasher.cs diff --git a/src/Identity/src/Core/PasswordHasherCompatibilityMode.cs b/src/Identity/Extensions.Core/src/PasswordHasherCompatibilityMode.cs similarity index 100% rename from src/Identity/src/Core/PasswordHasherCompatibilityMode.cs rename to src/Identity/Extensions.Core/src/PasswordHasherCompatibilityMode.cs diff --git a/src/Identity/src/Core/PasswordHasherOptions.cs b/src/Identity/Extensions.Core/src/PasswordHasherOptions.cs similarity index 100% rename from src/Identity/src/Core/PasswordHasherOptions.cs rename to src/Identity/Extensions.Core/src/PasswordHasherOptions.cs diff --git a/src/Identity/src/Core/PasswordOptions.cs b/src/Identity/Extensions.Core/src/PasswordOptions.cs similarity index 100% rename from src/Identity/src/Core/PasswordOptions.cs rename to src/Identity/Extensions.Core/src/PasswordOptions.cs diff --git a/src/Identity/src/Core/PasswordValidator.cs b/src/Identity/Extensions.Core/src/PasswordValidator.cs similarity index 100% rename from src/Identity/src/Core/PasswordValidator.cs rename to src/Identity/Extensions.Core/src/PasswordValidator.cs diff --git a/src/Identity/src/Core/PasswordVerificationResult.cs b/src/Identity/Extensions.Core/src/PasswordVerificationResult.cs similarity index 100% rename from src/Identity/src/Core/PasswordVerificationResult.cs rename to src/Identity/Extensions.Core/src/PasswordVerificationResult.cs diff --git a/src/Identity/src/Core/PersonalDataAttribute.cs b/src/Identity/Extensions.Core/src/PersonalDataAttribute.cs similarity index 100% rename from src/Identity/src/Core/PersonalDataAttribute.cs rename to src/Identity/Extensions.Core/src/PersonalDataAttribute.cs diff --git a/src/Identity/src/Core/PhoneNumberTokenProvider.cs b/src/Identity/Extensions.Core/src/PhoneNumberTokenProvider.cs similarity index 100% rename from src/Identity/src/Core/PhoneNumberTokenProvider.cs rename to src/Identity/Extensions.Core/src/PhoneNumberTokenProvider.cs diff --git a/src/Identity/src/Core/PrincipalExtensions.cs b/src/Identity/Extensions.Core/src/PrincipalExtensions.cs similarity index 100% rename from src/Identity/src/Core/PrincipalExtensions.cs rename to src/Identity/Extensions.Core/src/PrincipalExtensions.cs diff --git a/src/Identity/src/Identity/Properties/AssemblyInfo.cs b/src/Identity/Extensions.Core/src/Properties/AssemblyInfo.cs similarity index 100% rename from src/Identity/src/Identity/Properties/AssemblyInfo.cs rename to src/Identity/Extensions.Core/src/Properties/AssemblyInfo.cs diff --git a/src/Identity/src/Core/Properties/Resources.Designer.cs b/src/Identity/Extensions.Core/src/Properties/Resources.Designer.cs similarity index 100% rename from src/Identity/src/Core/Properties/Resources.Designer.cs rename to src/Identity/Extensions.Core/src/Properties/Resources.Designer.cs diff --git a/src/Identity/src/Core/ProtectedPersonalDataAttribute.cs b/src/Identity/Extensions.Core/src/ProtectedPersonalDataAttribute.cs similarity index 100% rename from src/Identity/src/Core/ProtectedPersonalDataAttribute.cs rename to src/Identity/Extensions.Core/src/ProtectedPersonalDataAttribute.cs diff --git a/src/Identity/src/Core/Resources.resx b/src/Identity/Extensions.Core/src/Resources.resx similarity index 100% rename from src/Identity/src/Core/Resources.resx rename to src/Identity/Extensions.Core/src/Resources.resx diff --git a/src/Identity/src/Core/Rfc6238AuthenticationService.cs b/src/Identity/Extensions.Core/src/Rfc6238AuthenticationService.cs similarity index 100% rename from src/Identity/src/Core/Rfc6238AuthenticationService.cs rename to src/Identity/Extensions.Core/src/Rfc6238AuthenticationService.cs diff --git a/src/Identity/src/Core/RoleManager.cs b/src/Identity/Extensions.Core/src/RoleManager.cs similarity index 100% rename from src/Identity/src/Core/RoleManager.cs rename to src/Identity/Extensions.Core/src/RoleManager.cs diff --git a/src/Identity/src/Core/RoleValidator.cs b/src/Identity/Extensions.Core/src/RoleValidator.cs similarity index 100% rename from src/Identity/src/Core/RoleValidator.cs rename to src/Identity/Extensions.Core/src/RoleValidator.cs diff --git a/src/Identity/src/Core/SignInOptions.cs b/src/Identity/Extensions.Core/src/SignInOptions.cs similarity index 100% rename from src/Identity/src/Core/SignInOptions.cs rename to src/Identity/Extensions.Core/src/SignInOptions.cs diff --git a/src/Identity/src/Core/SignInResult.cs b/src/Identity/Extensions.Core/src/SignInResult.cs similarity index 100% rename from src/Identity/src/Core/SignInResult.cs rename to src/Identity/Extensions.Core/src/SignInResult.cs diff --git a/src/Identity/src/Core/StoreOptions.cs b/src/Identity/Extensions.Core/src/StoreOptions.cs similarity index 100% rename from src/Identity/src/Core/StoreOptions.cs rename to src/Identity/Extensions.Core/src/StoreOptions.cs diff --git a/src/Identity/src/Core/TokenOptions.cs b/src/Identity/Extensions.Core/src/TokenOptions.cs similarity index 100% rename from src/Identity/src/Core/TokenOptions.cs rename to src/Identity/Extensions.Core/src/TokenOptions.cs diff --git a/src/Identity/src/Core/TokenProviderDescriptor.cs b/src/Identity/Extensions.Core/src/TokenProviderDescriptor.cs similarity index 100% rename from src/Identity/src/Core/TokenProviderDescriptor.cs rename to src/Identity/Extensions.Core/src/TokenProviderDescriptor.cs diff --git a/src/Identity/src/Core/TotpSecurityStampBasedTokenProvider.cs b/src/Identity/Extensions.Core/src/TotpSecurityStampBasedTokenProvider.cs similarity index 100% rename from src/Identity/src/Core/TotpSecurityStampBasedTokenProvider.cs rename to src/Identity/Extensions.Core/src/TotpSecurityStampBasedTokenProvider.cs diff --git a/src/Identity/src/Core/UpperInvariantLookupNormalizer.cs b/src/Identity/Extensions.Core/src/UpperInvariantLookupNormalizer.cs similarity index 100% rename from src/Identity/src/Core/UpperInvariantLookupNormalizer.cs rename to src/Identity/Extensions.Core/src/UpperInvariantLookupNormalizer.cs diff --git a/src/Identity/src/Core/UserClaimsPrincipalFactory.cs b/src/Identity/Extensions.Core/src/UserClaimsPrincipalFactory.cs similarity index 100% rename from src/Identity/src/Core/UserClaimsPrincipalFactory.cs rename to src/Identity/Extensions.Core/src/UserClaimsPrincipalFactory.cs diff --git a/src/Identity/src/Core/UserLoginInfo.cs b/src/Identity/Extensions.Core/src/UserLoginInfo.cs similarity index 100% rename from src/Identity/src/Core/UserLoginInfo.cs rename to src/Identity/Extensions.Core/src/UserLoginInfo.cs diff --git a/src/Identity/src/Core/UserManager.cs b/src/Identity/Extensions.Core/src/UserManager.cs similarity index 99% rename from src/Identity/src/Core/UserManager.cs rename to src/Identity/Extensions.Core/src/UserManager.cs index ff5ac02ab8..e5569a65aa 100644 --- a/src/Identity/src/Core/UserManager.cs +++ b/src/Identity/Extensions.Core/src/UserManager.cs @@ -1332,7 +1332,7 @@ namespace Microsoft.AspNetCore.Identity } /// - /// Returns a flag indicating whether the specified is a member of the give named role. + /// Returns a flag indicating whether the specified is a member of the given named role. /// /// The user whose role membership should be checked. /// The name of the role to be checked. @@ -1931,7 +1931,7 @@ namespace Microsoft.AspNetCore.Identity } /// - /// Retrieves a flag indicating whether user lockout can enabled for the specified user. + /// Retrieves a flag indicating whether user lockout can be enabled for the specified user. /// /// The user whose ability to be locked out should be returned. /// @@ -1950,7 +1950,7 @@ namespace Microsoft.AspNetCore.Identity /// /// Gets the last a user's last lockout expired, if any. - /// Any time in the past should be indicates a user is not locked out. + /// A time value in the past indicates a user is not currently locked out. /// /// The user whose lockout date should be retrieved. /// diff --git a/src/Identity/src/Core/UserOptions.cs b/src/Identity/Extensions.Core/src/UserOptions.cs similarity index 100% rename from src/Identity/src/Core/UserOptions.cs rename to src/Identity/Extensions.Core/src/UserOptions.cs diff --git a/src/Identity/src/Core/UserValidator.cs b/src/Identity/Extensions.Core/src/UserValidator.cs similarity index 100% rename from src/Identity/src/Core/UserValidator.cs rename to src/Identity/Extensions.Core/src/UserValidator.cs diff --git a/src/Identity/src/Core/baseline.netcore.json b/src/Identity/Extensions.Core/src/baseline.netcore.json similarity index 100% rename from src/Identity/src/Core/baseline.netcore.json rename to src/Identity/Extensions.Core/src/baseline.netcore.json diff --git a/src/Identity/src/Stores/IdentityRole.cs b/src/Identity/Extensions.Stores/src/IdentityRole.cs similarity index 100% rename from src/Identity/src/Stores/IdentityRole.cs rename to src/Identity/Extensions.Stores/src/IdentityRole.cs diff --git a/src/Identity/src/Stores/IdentityRoleClaim.cs b/src/Identity/Extensions.Stores/src/IdentityRoleClaim.cs similarity index 100% rename from src/Identity/src/Stores/IdentityRoleClaim.cs rename to src/Identity/Extensions.Stores/src/IdentityRoleClaim.cs diff --git a/src/Identity/src/Stores/IdentityUser.cs b/src/Identity/Extensions.Stores/src/IdentityUser.cs similarity index 100% rename from src/Identity/src/Stores/IdentityUser.cs rename to src/Identity/Extensions.Stores/src/IdentityUser.cs diff --git a/src/Identity/src/Stores/IdentityUserClaim.cs b/src/Identity/Extensions.Stores/src/IdentityUserClaim.cs similarity index 100% rename from src/Identity/src/Stores/IdentityUserClaim.cs rename to src/Identity/Extensions.Stores/src/IdentityUserClaim.cs diff --git a/src/Identity/src/Stores/IdentityUserLogin.cs b/src/Identity/Extensions.Stores/src/IdentityUserLogin.cs similarity index 100% rename from src/Identity/src/Stores/IdentityUserLogin.cs rename to src/Identity/Extensions.Stores/src/IdentityUserLogin.cs diff --git a/src/Identity/src/Stores/IdentityUserRole.cs b/src/Identity/Extensions.Stores/src/IdentityUserRole.cs similarity index 100% rename from src/Identity/src/Stores/IdentityUserRole.cs rename to src/Identity/Extensions.Stores/src/IdentityUserRole.cs diff --git a/src/Identity/src/Stores/IdentityUserToken.cs b/src/Identity/Extensions.Stores/src/IdentityUserToken.cs similarity index 100% rename from src/Identity/src/Stores/IdentityUserToken.cs rename to src/Identity/Extensions.Stores/src/IdentityUserToken.cs diff --git a/src/Identity/src/Stores/Microsoft.Extensions.Identity.Stores.csproj b/src/Identity/Extensions.Stores/src/Microsoft.Extensions.Identity.Stores.csproj similarity index 62% rename from src/Identity/src/Stores/Microsoft.Extensions.Identity.Stores.csproj rename to src/Identity/Extensions.Stores/src/Microsoft.Extensions.Identity.Stores.csproj index e567cf2749..a5e7c7c5fa 100644 --- a/src/Identity/src/Stores/Microsoft.Extensions.Identity.Stores.csproj +++ b/src/Identity/Extensions.Stores/src/Microsoft.Extensions.Identity.Stores.csproj @@ -8,12 +8,9 @@ - - - - - - + + + diff --git a/src/Identity/src/Stores/RoleStoreBase.cs b/src/Identity/Extensions.Stores/src/RoleStoreBase.cs similarity index 100% rename from src/Identity/src/Stores/RoleStoreBase.cs rename to src/Identity/Extensions.Stores/src/RoleStoreBase.cs diff --git a/src/Identity/src/Stores/UserStoreBase.cs b/src/Identity/Extensions.Stores/src/UserStoreBase.cs similarity index 100% rename from src/Identity/src/Stores/UserStoreBase.cs rename to src/Identity/Extensions.Stores/src/UserStoreBase.cs diff --git a/src/Identity/src/Stores/baseline.netcore.json b/src/Identity/Extensions.Stores/src/baseline.netcore.json similarity index 100% rename from src/Identity/src/Stores/baseline.netcore.json rename to src/Identity/Extensions.Stores/src/baseline.netcore.json diff --git a/src/Identity/Identity.sln b/src/Identity/Identity.sln index 564ff51d95..0cfc71f9bb 100644 --- a/src/Identity/Identity.sln +++ b/src/Identity/Identity.sln @@ -1,79 +1,122 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.27130.2027 -MinimumVisualStudioVersion = 15.0.26730.03 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{0F647068-6602-4E24-B1DC-8ED91481A50A}" - ProjectSection(SolutionItems) = preProject - src\Directory.Build.props = src\Directory.Build.props - EndProjectSection +VisualStudioVersion = 15.0.26124.0 +MinimumVisualStudioVersion = 15.0.26124.0 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ApiAuthorization.IdentityServer", "ApiAuthorization.IdentityServer", "{25ACABEB-F8FA-4BD8-A39B-836924D40223}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{52D59F18-62D2-4D17-8CF2-BE192445AF8E}" - ProjectSection(SolutionItems) = preProject - test\Directory.Build.props = test\Directory.Build.props - EndProjectSection +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{325EA45D-56C9-468E-B24C-6B57F85E90AF}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Identity", "src\Identity\Microsoft.AspNetCore.Identity.csproj", "{1729302E-A58E-4652-B639-5B6B68DA2748}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApiAuthSample", "ApiAuthorization.IdentityServer\samples\ApiAuthSample\ApiAuthSample.csproj", "{AADD8652-321B-4C7E-B345-C789776667D4}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Identity.Test", "test\Identity.Test\Microsoft.AspNetCore.Identity.Test.csproj", "{2CF3927B-19E4-4866-9BAA-2C131580E7C3}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.ApiAuthorization.IdentityServer", "ApiAuthorization.IdentityServer\src\Microsoft.AspNetCore.ApiAuthorization.IdentityServer.csproj", "{4650E92F-C492-4B44-84FD-83C88972071D}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Identity.InMemory.Test", "test\InMemory.Test\Microsoft.AspNetCore.Identity.InMemory.Test.csproj", "{65161409-C4C4-4D63-A73B-231FCFF4D503}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Tests", "ApiAuthorization.IdentityServer\test\Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Tests.csproj", "{219C7185-7963-452C-BDD6-85057E3612D0}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{58D94A0E-C2B7-43A7-8826-99ECBB1E0A50}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Core", "Core", "{ACA35118-4AB2-45CE-99A2-F3E71DC04D49}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IdentitySample.Mvc", "samples\IdentitySample.Mvc\IdentitySample.Mvc.csproj", "{E1BFA023-CFFD-49CE-8466-1C28DD2EC1F6}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Identity", "Core\src\Microsoft.AspNetCore.Identity.csproj", "{B6AC3237-41CC-4799-9E4E-2A0D3283C834}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test", "test\EF.Test\Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test.csproj", "{37236EA3-915D-46D5-997C-DF513C500E4B}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "EntityFrameworkCore", "EntityFrameworkCore", "{80E3D631-B45D-4A6A-A957-454EFF6E41F2}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test", "test\EF.InMemory.Test\Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test.csproj", "{EA7EB28F-53B8-4009-9C6B-74DB090CA8DD}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Identity.EntityFrameworkCore", "EntityFrameworkCore\src\Microsoft.AspNetCore.Identity.EntityFrameworkCore.csproj", "{470D3752-4253-4BE6-8EEC-647556FD6889}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Identity.EntityFrameworkCore", "src\EF\Microsoft.AspNetCore.Identity.EntityFrameworkCore.csproj", "{4490894C-3572-4E63-86F1-EE5105CE8A06}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{833B8FE4-68F4-4751-9483-53F541F26E1B}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Identity.Specification.Tests", "src\Specification.Tests\Microsoft.AspNetCore.Identity.Specification.Tests.csproj", "{5608E828-DD54-4E2A-B73C-FC22268BE797}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Extensions.Identity.Core", "src\Core\Microsoft.Extensions.Identity.Core.csproj", "{D5905D78-A32E-44B8-8F21-EDAEDC95D9B8}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Extensions.Core", "Extensions.Core", "{AE1BD7A4-44B1-4A78-A25B-5D2FEBF52977}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Extensions.Identity.Stores", "src\Stores\Microsoft.Extensions.Identity.Stores.csproj", "{FADA11FC-DC06-4832-A569-7B2374A6CD42}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Extensions.Identity.Core", "Extensions.Core\src\Microsoft.Extensions.Identity.Core.csproj", "{937F5280-EE8C-4C0F-8DCE-BABA9DD29E8F}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WebSites", "WebSites", "{1F83D453-E094-4D28-BCFA-9E537ABB5AD6}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Extensions.Stores", "Extensions.Stores", "{35483108-9E53-4FE5-A0E2-729D5448AE37}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{42F5B772-1D61-4C18-9457-412DE8E170A5}" - ProjectSection(SolutionItems) = preProject - Directory.Build.props = Directory.Build.props - Directory.Build.targets = Directory.Build.targets - EndProjectSection +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Extensions.Identity.Stores", "Extensions.Stores\src\Microsoft.Extensions.Identity.Stores.csproj", "{2ED964ED-DD61-4E0C-A40F-9E706C5DED9E}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IdentitySample.DefaultUI", "samples\IdentitySample.DefaultUI\IdentitySample.DefaultUI.csproj", "{ACC75F4F-EA7D-49E0-A64C-9D4A3DFD5B8A}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{7F5A4F96-E847-486E-8278-FE72E68C5810}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Identity.UI", "src\UI\Microsoft.AspNetCore.Identity.UI.csproj", "{894E102D-56D4-4B02-8F13-8781F4324C3E}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IdentitySample.DefaultUI", "samples\IdentitySample.DefaultUI\IdentitySample.DefaultUI.csproj", "{B9A44F66-42AF-450D-9E34-7DD79869F225}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Identity.DefaultUI.WebSite", "test\WebSites\Identity.DefaultUI.WebSite\Identity.DefaultUI.WebSite.csproj", "{CAE02AD2-F941-4ACB-B469-13EFF551BB74}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IdentitySample.Mvc", "samples\IdentitySample.Mvc\IdentitySample.Mvc.csproj", "{D67C2ED8-55FD-4D57-8A4F-C6983265A745}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Identity.FunctionalTests", "test\Identity.FunctionalTests\Microsoft.AspNetCore.Identity.FunctionalTests.csproj", "{B3616029-7DA6-4FB3-8722-D5AC69884B3F}" - ProjectSection(ProjectDependencies) = postProject - {894E102D-56D4-4B02-8F13-8781F4324C3E} = {894E102D-56D4-4B02-8F13-8781F4324C3E} - EndProjectSection +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Specification.Tests", "Specification.Tests", "{F767B361-F0A3-451A-A659-1DB5F08AED6E}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApiAuthSample", "samples\ApiAuthSample\ApiAuthSample.csproj", "{7FA90737-4A2D-4BBB-8245-F6564D462FCB}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Identity.Specification.Tests", "Specification.Tests\src\Microsoft.AspNetCore.Identity.Specification.Tests.csproj", "{7AE1CE81-F93B-4E49-A481-1B0EE2EFDE0B}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.ApiAuthorization.IdentityServer", "src\ApiAuth.IS\Microsoft.AspNetCore.ApiAuthorization.IdentityServer.csproj", "{590C70E2-FCCC-49C2-93F3-60B7AA0533A4}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{7CABB49A-742B-4402-82EB-CD2A5514CF54}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Test", "test\ApiAuth.IS.Test\Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Test.csproj", "{ECFE11DD-1111-4557-8E28-42F8E9878823}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Identity.FunctionalTests", "test\Identity.FunctionalTests\Microsoft.AspNetCore.Identity.FunctionalTests.csproj", "{FE4C359B-0155-4C07-8797-A33291B7A5EA}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Identity.Test", "test\Identity.Test\Microsoft.AspNetCore.Identity.Test.csproj", "{08B472C6-1859-4E22-8F91-2742DD9DC48D}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Identity.InMemory.Test", "test\InMemory.Test\Microsoft.AspNetCore.Identity.InMemory.Test.csproj", "{83B37863-5C94-48E4-AAD6-1DF7E1D2FBFA}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "testassets", "testassets", "{E96F9610-F26B-4FB2-869C-3DDFA011FFA7}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Identity.DefaultUI.WebSite", "testassets\Identity.DefaultUI.WebSite\Identity.DefaultUI.WebSite.csproj", "{35C96499-4B59-44A2-B09B-83D3BEA9E45F}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "UI", "UI", "{77BD6E4E-FA78-4FB7-8D57-F3C337790962}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Identity.UI", "UI\src\Microsoft.AspNetCore.Identity.UI.csproj", "{29890CAC-D5AC-4644-9337-CF853683423F}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "dependencies", "dependencies", "{EEF25A64-AE4E-4B15-8045-F26EC6DD2996}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Http", "..\Http\Http\src\Microsoft.AspNetCore.Http.csproj", "{913C4E0B-64A2-4655-A2FD-EF72A3471AD4}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Hosting", "..\Hosting\Hosting\src\Microsoft.AspNetCore.Hosting.csproj", "{CF5345B3-EEF7-4CFC-B963-D34E47F697A5}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.TestHost", "..\Hosting\TestHost\src\Microsoft.AspNetCore.TestHost.csproj", "{C763AABD-4B9A-4BE5-9DED-C980FD76BC53}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Authorization", "..\Security\Authorization\Core\src\Microsoft.AspNetCore.Authorization.csproj", "{2684E887-6DE3-4BB8-9B8E-80791457092A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Rewrite", "..\Middleware\Rewrite\src\Microsoft.AspNetCore.Rewrite.csproj", "{B23309CC-4FBF-402F-8926-D6EDB738784B}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Authentication.Twitter", "..\Security\Authentication\Twitter\src\Microsoft.AspNetCore.Authentication.Twitter.csproj", "{08A04E75-10E7-4FBC-8B4B-664345E8BEEC}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Authentication.Cookies", "..\Security\Authentication\Cookies\src\Microsoft.AspNetCore.Authentication.Cookies.csproj", "{21A8B5F0-9063-4A0E-9A6E-496977534203}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.StaticFiles", "..\Middleware\StaticFiles\src\Microsoft.AspNetCore.StaticFiles.csproj", "{031CB4EE-B043-4FC6-9D02-18EC60D47B87}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Testing", "..\Mvc\src\Microsoft.AspNetCore.Mvc.Testing\Microsoft.AspNetCore.Mvc.Testing.csproj", "{D3EEC342-6362-4C61-9E42-957063901C10}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.Kestrel.Core", "..\Servers\Kestrel\Core\src\Microsoft.AspNetCore.Server.Kestrel.Core.csproj", "{3305D777-062C-4F8B-BCA6-23C1871504F8}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.Kestrel", "..\Servers\Kestrel\Kestrel\src\Microsoft.AspNetCore.Server.Kestrel.csproj", "{06339361-AD2B-4EAD-B2B4-A5FF2462ACFA}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions", "..\Servers\Kestrel\Transport.Abstractions\src\Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.csproj", "{A0001CC6-64EF-40A5-B18C-A7B870FEE7EA}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.CookiePolicy", "..\Security\CookiePolicy\src\Microsoft.AspNetCore.CookiePolicy.csproj", "{5A3F9FE4-60E5-481E-BD8B-207B50E09C49}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Diagnostics", "..\Middleware\Diagnostics\src\Microsoft.AspNetCore.Diagnostics.csproj", "{359D1811-5249-41AF-AE21-E3032AC1F9FB}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.DataProtection", "..\DataProtection\DataProtection\src\Microsoft.AspNetCore.DataProtection.csproj", "{695B250A-0B2B-4C64-B90D-0547D446437B}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Authentication.Google", "..\Security\Authentication\Google\src\Microsoft.AspNetCore.Authentication.Google.csproj", "{9866C7F8-CFAD-48EF-8FA7-8E513D4EEB94}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc", "..\Mvc\src\Microsoft.AspNetCore.Mvc\Microsoft.AspNetCore.Mvc.csproj", "{0A7B4840-5C94-4AA4-B5FA-4B6FE1F24509}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Core", "..\Mvc\src\Microsoft.AspNetCore.Mvc.Core\Microsoft.AspNetCore.Mvc.Core.csproj", "{89D4ADBA-8124-4B4B-9E25-12FBF6976EE1}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore", "..\Middleware\Diagnostics.EntityFrameworkCore\src\Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.csproj", "{2ABD07B2-9CA8-4A8D-BD8D-275B5B6E4E28}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Authentication.Facebook", "..\Security\Authentication\Facebook\src\Microsoft.AspNetCore.Authentication.Facebook.csproj", "{C260677E-6DDA-46EF-B522-86273D9AB4CF}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.DataProtection.Extensions", "..\DataProtection\Extensions\src\Microsoft.AspNetCore.DataProtection.Extensions.csproj", "{B1014D85-8CC5-495E-8AD2-BD5CFCB8FE2D}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.HttpsPolicy", "..\Middleware\HttpsPolicy\src\Microsoft.AspNetCore.HttpsPolicy.csproj", "{0B75D2E0-7B18-4DAF-848B-EE2C836F1B1A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.IISIntegration", "..\Servers\IIS\IISIntegration\src\Microsoft.AspNetCore.Server.IISIntegration.csproj", "{BEFAC4AC-70FB-403C-AE5D-2E2CE3508095}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.Kestrel.Https", "..\Servers\Kestrel\Https\src\Microsoft.AspNetCore.Server.Kestrel.Https.csproj", "{A34551AD-DBC3-4BA0-B116-AEBA8C40E39B}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Debug|x64 = Debug|x64 Debug|x86 = Debug|x86 - DebugNoWPF|Any CPU = DebugNoWPF|Any CPU - DebugNoWPF|x64 = DebugNoWPF|x64 - DebugNoWPF|x86 = DebugNoWPF|x86 Release|Any CPU = Release|Any CPU Release|x64 = Release|x64 Release|x86 = Release|x86 - ReleaseNoWPF|Any CPU = ReleaseNoWPF|Any CPU - ReleaseNoWPF|x64 = ReleaseNoWPF|x64 - ReleaseNoWPF|x86 = ReleaseNoWPF|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {1729302E-A58E-4652-B639-5B6B68DA2748}.Debug|Any CPU.ActiveCfg = Debug|Any CPU @@ -509,6 +552,6 @@ Global {ECFE11DD-1111-4557-8E28-42F8E9878823} = {52D59F18-62D2-4D17-8CF2-BE192445AF8E} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {B3F2A592-CCE0-40C2-8CA4-7B1293DED874} + SolutionGuid = {37006CC5-F2DD-411A-BC9C-565614CD85CD} EndGlobalSection EndGlobal diff --git a/src/Identity/NuGetPackageVerifier.json b/src/Identity/NuGetPackageVerifier.json deleted file mode 100644 index eff389943d..0000000000 --- a/src/Identity/NuGetPackageVerifier.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "Default": { - "rules": [ - "DefaultCompositeRule" - ], - "packages": { - "Microsoft.AspNetCore.Identity.UI": { - "Exclusions": { - "DOC_MISSING": { - "lib/netcoreapp3.0/Microsoft.AspNetCore.Identity.UI.Views.V3.dll": "This assembly is generated and contains precompiled razor pages", - "lib/netcoreapp3.0/Microsoft.AspNetCore.Identity.UI.Views.V4.dll": "This assembly is generated and contains precompiled razor pages" - } - } - } - } - } -} diff --git a/src/Identity/README.md b/src/Identity/README.md index 2d659ad4da..8cfaf18654 100644 --- a/src/Identity/README.md +++ b/src/Identity/README.md @@ -1,14 +1,8 @@ ASP.NET Core Identity -=== - -AppVeyor: [![AppVeyor](https://ci.appveyor.com/api/projects/status/vf79kttspnblh2hx/branch/dev?svg=true)](https://ci.appveyor.com/project/aspnetci/Identity/branch/dev) - -Travis: [![Travis](https://travis-ci.org/aspnet/Identity.svg?branch=dev)](https://travis-ci.org/aspnet/Identity) +===================== ASP.NET Core Identity is the membership system for building ASP.NET Core web applications, including membership, login, and user data. ASP.NET Core Identity allows you to add login features to your application and makes it easy to customize data about the logged in user. -This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the [Home](https://github.com/aspnet/home) repo. - ## ASP.NET Identity for ASP.NET MVC 5 The previous versions of Identity for MVC5 and lower, previously available on CodePlex, are available at https://github.com/aspnet/AspNetIdentity @@ -19,8 +13,8 @@ The previous versions of Identity for MVC5 and lower, previously available on Co * ASP.NET Identity MongoDB Providers: * [By Tugberk Ugurlu](https://github.com/tugberkugurlu/AspNetCore.Identity.MongoDB) - * [By Alexandre Spieser](https://github.com/alexandre-spieser/AspNetCore.Identity.MongoDbCore) - * [ASP.NET Identity LinqToDB Provider](https://github.com/ili/LinqToDB.Identity) + * [By Alexandre Spieser](https://github.com/alexandre-spieser/AspNetCore.Identity.MongoDbCore) + * [ASP.NET Identity LinqToDB Provider](https://github.com/ili/LinqToDB.Identity) * [ASP.NET Identity DynamoDB Provider](https://github.com/miltador/AspNetCore.Identity.DynamoDB) * ASP.NET Identity RavenDB Providers: * [By Judah Gabriel Himango](https://github.com/JudahGabriel/RavenDB.Identity) @@ -29,3 +23,4 @@ The previous versions of Identity for MVC5 and lower, previously available on Co * [ASP.NET Identity Firebase Provider](https://github.com/aguacongas/Identity.Firebase) * [ASP.NET Identity Redis Provider](https://github.com/aguacongas/Identity.Redis) * [ASP.NET Identity DocumentDB](https://github.com/FelschR/AspNetCore.Identity.DocumentDB) + * [ASP.NET Identity Amazon Cognito Provider](https://github.com/aws/aws-aspnet-cognito-identity-provider) diff --git a/src/Identity/src/Specification.Tests/IdentityResultAssert.cs b/src/Identity/Specification.Tests/src/IdentityResultAssert.cs similarity index 100% rename from src/Identity/src/Specification.Tests/IdentityResultAssert.cs rename to src/Identity/Specification.Tests/src/IdentityResultAssert.cs diff --git a/src/Identity/src/Specification.Tests/IdentitySpecificationTestBase.cs b/src/Identity/Specification.Tests/src/IdentitySpecificationTestBase.cs similarity index 100% rename from src/Identity/src/Specification.Tests/IdentitySpecificationTestBase.cs rename to src/Identity/Specification.Tests/src/IdentitySpecificationTestBase.cs diff --git a/src/Identity/Specification.Tests/src/Microsoft.AspNetCore.Identity.Specification.Tests.csproj b/src/Identity/Specification.Tests/src/Microsoft.AspNetCore.Identity.Specification.Tests.csproj new file mode 100644 index 0000000000..b257b97b0a --- /dev/null +++ b/src/Identity/Specification.Tests/src/Microsoft.AspNetCore.Identity.Specification.Tests.csproj @@ -0,0 +1,22 @@ + + + + Shared test suite for Asp.Net Identity Core store implementations. + netcoreapp3.0 + true + aspnetcore;identity;membership + false + true + + + + + + + + + + + + + diff --git a/src/Identity/src/Specification.Tests/TestLogger.cs b/src/Identity/Specification.Tests/src/TestLogger.cs similarity index 100% rename from src/Identity/src/Specification.Tests/TestLogger.cs rename to src/Identity/Specification.Tests/src/TestLogger.cs diff --git a/src/Identity/src/Specification.Tests/UserManagerSpecificationTests.cs b/src/Identity/Specification.Tests/src/UserManagerSpecificationTests.cs similarity index 100% rename from src/Identity/src/Specification.Tests/UserManagerSpecificationTests.cs rename to src/Identity/Specification.Tests/src/UserManagerSpecificationTests.cs diff --git a/src/Identity/src/Specification.Tests/baseline.netcore.json b/src/Identity/Specification.Tests/src/baseline.netcore.json similarity index 100% rename from src/Identity/src/Specification.Tests/baseline.netcore.json rename to src/Identity/Specification.Tests/src/baseline.netcore.json diff --git a/src/Identity/src/UI/Areas/Identity/Filters/ExternalLoginsPageFilter.cs b/src/Identity/UI/src/Areas/Identity/Filters/ExternalLoginsPageFilter.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Filters/ExternalLoginsPageFilter.cs rename to src/Identity/UI/src/Areas/Identity/Filters/ExternalLoginsPageFilter.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/AccessDenied.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/AccessDenied.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/AccessDenied.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/AccessDenied.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/AccessDenied.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/AccessDenied.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/AccessDenied.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/AccessDenied.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ConfirmEmail.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ConfirmEmail.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ConfirmEmail.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ConfirmEmail.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ConfirmEmail.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ConfirmEmail.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ConfirmEmail.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ConfirmEmail.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ExternalLogin.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ExternalLogin.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ExternalLogin.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ExternalLogin.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ExternalLogin.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ExternalLogin.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ExternalLogin.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ExternalLogin.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ForgotPassword.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ForgotPassword.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ForgotPassword.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ForgotPassword.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ForgotPassword.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ForgotPassword.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ForgotPassword.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ForgotPassword.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ForgotPasswordConfirmation.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ForgotPasswordConfirmation.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ForgotPasswordConfirmation.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ForgotPasswordConfirmation.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ForgotPasswordConfirmation.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ForgotPasswordConfirmation.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ForgotPasswordConfirmation.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ForgotPasswordConfirmation.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Lockout.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Lockout.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Lockout.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Lockout.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Lockout.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Lockout.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Lockout.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Lockout.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Login.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Login.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Login.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Login.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Login.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Login.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Login.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Login.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/LoginWith2fa.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/LoginWith2fa.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/LoginWith2fa.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/LoginWith2fa.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/LoginWith2fa.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/LoginWith2fa.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/LoginWith2fa.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/LoginWith2fa.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/LoginWithRecoveryCode.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/LoginWithRecoveryCode.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/LoginWithRecoveryCode.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/LoginWithRecoveryCode.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/LoginWithRecoveryCode.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/LoginWithRecoveryCode.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/LoginWithRecoveryCode.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/LoginWithRecoveryCode.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Logout.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Logout.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Logout.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Logout.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Logout.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Logout.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Logout.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Logout.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ChangePassword.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ChangePassword.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ChangePassword.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ChangePassword.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ChangePassword.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ChangePassword.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ChangePassword.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ChangePassword.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/DeletePersonalData.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/DeletePersonalData.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/DeletePersonalData.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/DeletePersonalData.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/DeletePersonalData.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/DeletePersonalData.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/DeletePersonalData.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/DeletePersonalData.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/Disable2fa.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/Disable2fa.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/Disable2fa.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/Disable2fa.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/Disable2fa.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/Disable2fa.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/Disable2fa.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/Disable2fa.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/DownloadPersonalData.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/DownloadPersonalData.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/DownloadPersonalData.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/DownloadPersonalData.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/DownloadPersonalData.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/DownloadPersonalData.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/DownloadPersonalData.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/DownloadPersonalData.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/EnableAuthenticator.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/EnableAuthenticator.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/EnableAuthenticator.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/EnableAuthenticator.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/EnableAuthenticator.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/EnableAuthenticator.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/EnableAuthenticator.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/EnableAuthenticator.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ExternalLogins.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ExternalLogins.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ExternalLogins.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ExternalLogins.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ExternalLogins.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ExternalLogins.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ExternalLogins.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ExternalLogins.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/GenerateRecoveryCodes.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/GenerateRecoveryCodes.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/GenerateRecoveryCodes.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/GenerateRecoveryCodes.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/GenerateRecoveryCodes.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/GenerateRecoveryCodes.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/GenerateRecoveryCodes.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/GenerateRecoveryCodes.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/Index.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/Index.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/Index.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/Index.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/Index.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/Index.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/Index.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/Index.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ManageNavPages.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ManageNavPages.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ManageNavPages.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ManageNavPages.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/PersonalData.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/PersonalData.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/PersonalData.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/PersonalData.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/PersonalData.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/PersonalData.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/PersonalData.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/PersonalData.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ResetAuthenticator.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ResetAuthenticator.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ResetAuthenticator.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ResetAuthenticator.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ResetAuthenticator.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ResetAuthenticator.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ResetAuthenticator.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ResetAuthenticator.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/SetPassword.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/SetPassword.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/SetPassword.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/SetPassword.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/SetPassword.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/SetPassword.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/SetPassword.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/SetPassword.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ShowRecoveryCodes.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ShowRecoveryCodes.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ShowRecoveryCodes.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ShowRecoveryCodes.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ShowRecoveryCodes.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ShowRecoveryCodes.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/ShowRecoveryCodes.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/ShowRecoveryCodes.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/TwoFactorAuthentication.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/TwoFactorAuthentication.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/TwoFactorAuthentication.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/TwoFactorAuthentication.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/TwoFactorAuthentication.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/TwoFactorAuthentication.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/TwoFactorAuthentication.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/TwoFactorAuthentication.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/_Layout.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/_Layout.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/_Layout.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/_Layout.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/_ManageNav.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/_ManageNav.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/_ManageNav.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/_ManageNav.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/_StatusMessage.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/_StatusMessage.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/_StatusMessage.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/_StatusMessage.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/_ViewImports.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/_ViewImports.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/_ViewImports.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/_ViewImports.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/_ViewStart.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/_ViewStart.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Manage/_ViewStart.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Manage/_ViewStart.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Register.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Register.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Register.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Register.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Register.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Register.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/Register.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Register.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ResetPassword.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ResetPassword.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ResetPassword.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ResetPassword.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ResetPassword.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ResetPassword.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ResetPassword.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ResetPassword.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ResetPasswordConfirmation.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ResetPasswordConfirmation.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ResetPasswordConfirmation.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ResetPasswordConfirmation.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ResetPasswordConfirmation.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ResetPasswordConfirmation.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/ResetPasswordConfirmation.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/ResetPasswordConfirmation.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Account/_ViewImports.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/_ViewImports.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Account/_ViewImports.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Account/_ViewImports.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Error.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Error.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Error.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Error.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/Error.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V3/Error.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/Error.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V3/Error.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/_Layout.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/_Layout.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/_Layout.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/_Layout.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/_ValidationScriptsPartial.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/_ValidationScriptsPartial.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/_ValidationScriptsPartial.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/_ValidationScriptsPartial.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/_ViewImports.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/_ViewImports.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/_ViewImports.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/_ViewImports.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V3/_ViewStart.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/_ViewStart.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V3/_ViewStart.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V3/_ViewStart.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/AccessDenied.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/AccessDenied.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/AccessDenied.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/AccessDenied.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/AccessDenied.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/AccessDenied.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/AccessDenied.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/AccessDenied.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ConfirmEmail.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ConfirmEmail.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ConfirmEmail.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ConfirmEmail.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ConfirmEmail.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ConfirmEmail.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ConfirmEmail.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ConfirmEmail.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ForgotPassword.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ForgotPassword.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ForgotPassword.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ForgotPassword.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ForgotPassword.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ForgotPassword.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ForgotPassword.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ForgotPassword.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ForgotPasswordConfirmation.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ForgotPasswordConfirmation.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ForgotPasswordConfirmation.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ForgotPasswordConfirmation.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ForgotPasswordConfirmation.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ForgotPasswordConfirmation.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ForgotPasswordConfirmation.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ForgotPasswordConfirmation.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Lockout.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Lockout.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Lockout.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Lockout.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Lockout.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Lockout.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Lockout.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Lockout.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Login.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Login.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Login.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Login.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Login.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Login.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Login.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Login.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/LoginWith2fa.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/LoginWith2fa.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/LoginWith2fa.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/LoginWith2fa.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/LoginWith2fa.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/LoginWith2fa.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/LoginWith2fa.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/LoginWith2fa.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/LoginWithRecoveryCode.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/LoginWithRecoveryCode.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/LoginWithRecoveryCode.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/LoginWithRecoveryCode.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/LoginWithRecoveryCode.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/LoginWithRecoveryCode.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/LoginWithRecoveryCode.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/LoginWithRecoveryCode.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Logout.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Logout.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Logout.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Logout.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Logout.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Logout.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Logout.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Logout.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ChangePassword.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ChangePassword.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ChangePassword.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ChangePassword.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ChangePassword.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ChangePassword.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ChangePassword.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ChangePassword.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/DeletePersonalData.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/DeletePersonalData.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/DeletePersonalData.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/DeletePersonalData.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/DeletePersonalData.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/DeletePersonalData.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/DeletePersonalData.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/DeletePersonalData.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/Disable2fa.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Disable2fa.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/Disable2fa.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Disable2fa.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/Disable2fa.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Disable2fa.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/Disable2fa.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Disable2fa.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/DownloadPersonalData.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/DownloadPersonalData.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/DownloadPersonalData.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/DownloadPersonalData.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/DownloadPersonalData.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/DownloadPersonalData.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/DownloadPersonalData.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/DownloadPersonalData.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/EnableAuthenticator.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/EnableAuthenticator.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/EnableAuthenticator.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/EnableAuthenticator.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/EnableAuthenticator.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/EnableAuthenticator.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/EnableAuthenticator.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/EnableAuthenticator.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ExternalLogins.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ExternalLogins.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ExternalLogins.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ExternalLogins.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ExternalLogins.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ExternalLogins.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ExternalLogins.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ExternalLogins.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/GenerateRecoveryCodes.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/GenerateRecoveryCodes.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/GenerateRecoveryCodes.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/GenerateRecoveryCodes.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/GenerateRecoveryCodes.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/GenerateRecoveryCodes.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/GenerateRecoveryCodes.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/GenerateRecoveryCodes.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/Index.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Index.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/Index.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Index.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/Index.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Index.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/Index.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Index.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ManageNavPages.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ManageNavPages.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ManageNavPages.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ManageNavPages.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/PersonalData.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/PersonalData.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/PersonalData.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/PersonalData.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/PersonalData.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/PersonalData.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/PersonalData.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/PersonalData.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ResetAuthenticator.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ResetAuthenticator.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ResetAuthenticator.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ResetAuthenticator.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ResetAuthenticator.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ResetAuthenticator.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ResetAuthenticator.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ResetAuthenticator.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/SetPassword.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/SetPassword.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/SetPassword.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/SetPassword.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/SetPassword.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/SetPassword.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/SetPassword.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/SetPassword.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ShowRecoveryCodes.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ShowRecoveryCodes.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ShowRecoveryCodes.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ShowRecoveryCodes.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ShowRecoveryCodes.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ShowRecoveryCodes.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/ShowRecoveryCodes.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ShowRecoveryCodes.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/TwoFactorAuthentication.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/TwoFactorAuthentication.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/TwoFactorAuthentication.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/TwoFactorAuthentication.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/TwoFactorAuthentication.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/TwoFactorAuthentication.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/TwoFactorAuthentication.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/TwoFactorAuthentication.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/_Layout.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/_Layout.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/_Layout.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/_Layout.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/_ManageNav.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/_ManageNav.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/_ManageNav.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/_ManageNav.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/_StatusMessage.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/_StatusMessage.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/_StatusMessage.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/_StatusMessage.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/_ViewImports.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/_ViewImports.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/_ViewImports.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/_ViewImports.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/_ViewStart.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/_ViewStart.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Manage/_ViewStart.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/_ViewStart.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Register.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Register.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Register.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Register.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Register.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Register.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/Register.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Register.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ResetPassword.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResetPassword.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ResetPassword.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResetPassword.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ResetPassword.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResetPassword.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ResetPassword.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResetPassword.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ResetPasswordConfirmation.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResetPasswordConfirmation.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ResetPasswordConfirmation.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResetPasswordConfirmation.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ResetPasswordConfirmation.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResetPasswordConfirmation.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/ResetPasswordConfirmation.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResetPasswordConfirmation.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Account/_ViewImports.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/_ViewImports.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Account/_ViewImports.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Account/_ViewImports.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Error.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Error.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Error.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Error.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/Error.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Error.cshtml.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/Error.cshtml.cs rename to src/Identity/UI/src/Areas/Identity/Pages/V4/Error.cshtml.cs diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/_Layout.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/_Layout.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/_Layout.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/_Layout.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/_ValidationScriptsPartial.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/_ValidationScriptsPartial.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/_ValidationScriptsPartial.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/_ValidationScriptsPartial.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/_ViewImports.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/_ViewImports.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/_ViewImports.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/_ViewImports.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Pages/V4/_ViewStart.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/_ViewStart.cshtml similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Pages/V4/_ViewStart.cshtml rename to src/Identity/UI/src/Areas/Identity/Pages/V4/_ViewStart.cshtml diff --git a/src/Identity/src/UI/Areas/Identity/Services/EmailSender.cs b/src/Identity/UI/src/Areas/Identity/Services/EmailSender.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Services/EmailSender.cs rename to src/Identity/UI/src/Areas/Identity/Services/EmailSender.cs diff --git a/src/Identity/src/UI/Areas/Identity/Services/IEmailSender.cs b/src/Identity/UI/src/Areas/Identity/Services/IEmailSender.cs similarity index 100% rename from src/Identity/src/UI/Areas/Identity/Services/IEmailSender.cs rename to src/Identity/UI/src/Areas/Identity/Services/IEmailSender.cs diff --git a/src/Identity/src/UI/DefaultUIOptions.cs b/src/Identity/UI/src/DefaultUIOptions.cs similarity index 100% rename from src/Identity/src/UI/DefaultUIOptions.cs rename to src/Identity/UI/src/DefaultUIOptions.cs diff --git a/src/Identity/src/UI/IdentityBuilderUIExtensions.cs b/src/Identity/UI/src/IdentityBuilderUIExtensions.cs similarity index 100% rename from src/Identity/src/UI/IdentityBuilderUIExtensions.cs rename to src/Identity/UI/src/IdentityBuilderUIExtensions.cs diff --git a/src/Identity/src/UI/IdentityDefaultUIAttribute.cs b/src/Identity/UI/src/IdentityDefaultUIAttribute.cs similarity index 100% rename from src/Identity/src/UI/IdentityDefaultUIAttribute.cs rename to src/Identity/UI/src/IdentityDefaultUIAttribute.cs diff --git a/src/Identity/src/UI/IdentityDefaultUIConfigureOptions.cs b/src/Identity/UI/src/IdentityDefaultUIConfigureOptions.cs similarity index 100% rename from src/Identity/src/UI/IdentityDefaultUIConfigureOptions.cs rename to src/Identity/UI/src/IdentityDefaultUIConfigureOptions.cs diff --git a/src/Identity/src/UI/IdentityPageModelConvention.cs b/src/Identity/UI/src/IdentityPageModelConvention.cs similarity index 100% rename from src/Identity/src/UI/IdentityPageModelConvention.cs rename to src/Identity/UI/src/IdentityPageModelConvention.cs diff --git a/src/Identity/src/UI/IdentityServiceCollectionUIExtensions.cs b/src/Identity/UI/src/IdentityServiceCollectionUIExtensions.cs similarity index 100% rename from src/Identity/src/UI/IdentityServiceCollectionUIExtensions.cs rename to src/Identity/UI/src/IdentityServiceCollectionUIExtensions.cs diff --git a/src/Identity/src/UI/Microsoft.AspNetCore.Identity.UI.csproj b/src/Identity/UI/src/Microsoft.AspNetCore.Identity.UI.csproj similarity index 82% rename from src/Identity/src/UI/Microsoft.AspNetCore.Identity.UI.csproj rename to src/Identity/UI/src/Microsoft.AspNetCore.Identity.UI.csproj index 8cefb6242d..b90fa1a437 100644 --- a/src/Identity/src/UI/Microsoft.AspNetCore.Identity.UI.csproj +++ b/src/Identity/UI/src/Microsoft.AspNetCore.Identity.UI.csproj @@ -29,15 +29,12 @@ - - - - - - - - - + + + + + + @@ -63,7 +60,7 @@ - + - <_AllItemsFullPathWithTargetPath Include="$(MSBuildThisFileDirectory)$(IntermediateOutputPath)%(UIFrameworkVersionMoniker.Identity)\$(TargetName).Views.%(UIFrameworkVersionMoniker.Identity).*" /> + <_GeneratedRazorViews Include="$(TargetDir)$(TargetName).Views.%(UIFrameworkVersionMoniker.Identity).dll" /> + <_GeneratedRazorViews Include="$(TargetDir)$(TargetName).Views.%(UIFrameworkVersionMoniker.Identity).pdb" /> - - %(Filename)%(Extension) + + %(FileName)%(Extension) PreserveNewest @@ -152,8 +150,8 @@ - - + + - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - - 0.9.9 - 2.3.0 - 2.3.0 - 2.3.0 - 3.0.0-build-20181114.5 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-preview-181113-11 - 2.2.1 - 3.0.0-preview-181109-02 - 3.0.0-preview-181109-02 - 3.0.0-preview-181109-02 - 3.0.0-preview-181109-02 - 3.0.0-preview-181109-02 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview1-26907-05 - 3.0.0-preview-18579-0056 - 15.6.1 - 3.0.1 - 3.0.0-alpha1-10742 - 4.10.0 - 2.0.3 - 4.6.0-preview1-26907-04 - 0.10.0 - 2.3.1 - 2.3.1 - 2.3.1 - 2.4.0 - - - - diff --git a/src/Identity/build/repo.props b/src/Identity/build/repo.props deleted file mode 100644 index 744ce282f7..0000000000 --- a/src/Identity/build/repo.props +++ /dev/null @@ -1,11 +0,0 @@ - - - - - false - - - - - - diff --git a/src/Identity/build/repo.targets b/src/Identity/build/repo.targets deleted file mode 100644 index 867ea2537a..0000000000 --- a/src/Identity/build/repo.targets +++ /dev/null @@ -1,8 +0,0 @@ - - - - - Configuration=$(Configuration)NoWPF - - - diff --git a/src/Identity/build/sources.props b/src/Identity/build/sources.props deleted file mode 100644 index 9215df9751..0000000000 --- a/src/Identity/build/sources.props +++ /dev/null @@ -1,17 +0,0 @@ - - - - - $(DotNetRestoreSources) - - $(RestoreSources); - https://dotnet.myget.org/F/dotnet-core/api/v3/index.json; - https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json; - https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json; - - - $(RestoreSources); - https://api.nuget.org/v3/index.json; - - - diff --git a/src/Identity/samples/ApiAuthSample/ApiAuthSample.csproj b/src/Identity/samples/ApiAuthSample/ApiAuthSample.csproj deleted file mode 100644 index d6f43b9d64..0000000000 --- a/src/Identity/samples/ApiAuthSample/ApiAuthSample.csproj +++ /dev/null @@ -1,39 +0,0 @@ - - - - netcoreapp3.0 - aspnet-ApiAuthSample-12ED8ECC-9EF1-4D31-87B4-1405B3198E5E - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Identity/samples/ApiAuthSample/Properties/launchSettings.json b/src/Identity/samples/ApiAuthSample/Properties/launchSettings.json deleted file mode 100644 index 99ff3ccfc3..0000000000 --- a/src/Identity/samples/ApiAuthSample/Properties/launchSettings.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:14440", - "sslPort": 44316 - } - }, - "$schema": "http://json.schemastore.org/launchsettings.json", - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "ApiAuthSample": { - "commandName": "Project", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "applicationUrl": "https://localhost:5001;http://localhost:5000" - }, - "Docker": { - "commandName": "Docker", - "launchBrowser": true, - "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}" - } - } -} \ No newline at end of file diff --git a/src/Identity/samples/IdentitySample.DefaultUI/IdentitySample.DefaultUI.csproj b/src/Identity/samples/IdentitySample.DefaultUI/IdentitySample.DefaultUI.csproj index 39f6bb9d43..0637f96151 100644 --- a/src/Identity/samples/IdentitySample.DefaultUI/IdentitySample.DefaultUI.csproj +++ b/src/Identity/samples/IdentitySample.DefaultUI/IdentitySample.DefaultUI.csproj @@ -1,4 +1,4 @@ - + Identity sample MVC application on ASP.NET Core using the default UI @@ -7,30 +7,26 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/src/Identity/samples/IdentitySample.Mvc/IdentitySample.Mvc.csproj b/src/Identity/samples/IdentitySample.Mvc/IdentitySample.Mvc.csproj index 8b3e7f604a..b78dc55331 100644 --- a/src/Identity/samples/IdentitySample.Mvc/IdentitySample.Mvc.csproj +++ b/src/Identity/samples/IdentitySample.Mvc/IdentitySample.Mvc.csproj @@ -1,4 +1,4 @@ - + Identity sample MVC application on ASP.NET Core @@ -7,29 +7,25 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/src/Identity/src/ApiAuth.IS/Microsoft.AspNetCore.ApiAuthorization.IdentityServer.csproj b/src/Identity/src/ApiAuth.IS/Microsoft.AspNetCore.ApiAuthorization.IdentityServer.csproj deleted file mode 100644 index 1e0af1cd26..0000000000 --- a/src/Identity/src/ApiAuth.IS/Microsoft.AspNetCore.ApiAuthorization.IdentityServer.csproj +++ /dev/null @@ -1,24 +0,0 @@ - - - - netcoreapp3.0 - ASP.NET Core API Authorization package powered by Identity Server. - true - aspnetcore;apiauth;identity - false - - - - - - - - - - - - - - - - diff --git a/src/Identity/src/Directory.Build.props b/src/Identity/src/Directory.Build.props deleted file mode 100644 index 4b89a431e7..0000000000 --- a/src/Identity/src/Directory.Build.props +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/src/Identity/src/Specification.Tests/Microsoft.AspNetCore.Identity.Specification.Tests.csproj b/src/Identity/src/Specification.Tests/Microsoft.AspNetCore.Identity.Specification.Tests.csproj deleted file mode 100644 index 0c8446af4d..0000000000 --- a/src/Identity/src/Specification.Tests/Microsoft.AspNetCore.Identity.Specification.Tests.csproj +++ /dev/null @@ -1,24 +0,0 @@ - - - - Shared test suite for Asp.Net Identity Core store implementations. - netcoreapp3.0 - true - aspnetcore;identity;membership - true - - - - - - - - - - - - - - - - diff --git a/src/Identity/startvs.cmd b/src/Identity/startvs.cmd new file mode 100644 index 0000000000..7dfe1fc0ff --- /dev/null +++ b/src/Identity/startvs.cmd @@ -0,0 +1,3 @@ +@ECHO OFF + +%~dp0..\..\startvs.cmd %~dp0Identity.sln diff --git a/src/Identity/test/Directory.Build.props b/src/Identity/test/Directory.Build.props deleted file mode 100644 index b9ebade8ca..0000000000 --- a/src/Identity/test/Directory.Build.props +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/Identity/test/EF.InMemory.Test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test.csproj b/src/Identity/test/EF.InMemory.Test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test.csproj deleted file mode 100644 index 4c15efc47c..0000000000 --- a/src/Identity/test/EF.InMemory.Test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test.csproj +++ /dev/null @@ -1,23 +0,0 @@ - - - - netcoreapp3.0 - - - - - - - - - - - - - - - - - - - diff --git a/src/Identity/test/EF.Test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test.csproj b/src/Identity/test/EF.Test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test.csproj deleted file mode 100644 index 4cea868fcb..0000000000 --- a/src/Identity/test/EF.Test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test.csproj +++ /dev/null @@ -1,29 +0,0 @@ - - - - netcoreapp3.0 - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Identity/test/Identity.FunctionalTests/Microsoft.AspNetCore.Identity.FunctionalTests.csproj b/src/Identity/test/Identity.FunctionalTests/Microsoft.AspNetCore.Identity.FunctionalTests.csproj index 3c201f9c7b..324891f27c 100644 --- a/src/Identity/test/Identity.FunctionalTests/Microsoft.AspNetCore.Identity.FunctionalTests.csproj +++ b/src/Identity/test/Identity.FunctionalTests/Microsoft.AspNetCore.Identity.FunctionalTests.csproj @@ -1,16 +1,12 @@ - + netcoreapp3.0 - - - - - - + + @@ -18,29 +14,13 @@ - - - - + + + + + + - - - <_IdentityUIViewsAssemblies Include="$(MSBuildThisFileDirectory)..\..\src\UI\bin\$(Configuration)\netcoreapp3.0\Microsoft.AspNetCore.Identity.UI.Views.*.dll" /> - - - - - - - - - - - - - + diff --git a/src/Identity/test/Identity.Test/IdentityUIScriptsTest.cs b/src/Identity/test/Identity.Test/IdentityUIScriptsTest.cs index 857bff95c0..f18fde8e52 100644 --- a/src/Identity/test/Identity.Test/IdentityUIScriptsTest.cs +++ b/src/Identity/test/Identity.Test/IdentityUIScriptsTest.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using AngleSharp.Dom.Html; @@ -70,7 +70,7 @@ namespace Microsoft.AspNetCore.Identity.Test public async Task IdentityUI_ScriptTags_FallbackSourceContent_Matches_CDNContent(ScriptTag scriptTag) { var slnDir = GetSolutionDir(); - var wwwrootDir = Path.Combine(slnDir, "src", "UI", "wwwroot", scriptTag.Version); + var wwwrootDir = Path.Combine(slnDir, "UI", "src", "wwwroot", scriptTag.Version); var cdnContent = await _httpClient.GetStringAsync(scriptTag.Src); var fallbackSrcContent = File.ReadAllText( @@ -96,8 +96,8 @@ namespace Microsoft.AspNetCore.Identity.Test private static List GetScriptTags() { var slnDir = GetSolutionDir(); - var uiDirV3 = Path.Combine(slnDir, "src", "UI", "Areas", "Identity", "Pages", "V3"); - var uiDirV4 = Path.Combine(slnDir, "src", "UI", "Areas", "Identity", "Pages", "V4"); + var uiDirV3 = Path.Combine(slnDir, "UI", "src", "Areas", "Identity", "Pages", "V3"); + var uiDirV4 = Path.Combine(slnDir, "UI", "src", "Areas", "Identity", "Pages", "V4"); var cshtmlFiles = GetRazorFiles(uiDirV3).Concat(GetRazorFiles(uiDirV4)); var scriptTags = new List(); diff --git a/src/Identity/test/Identity.Test/Microsoft.AspNetCore.Identity.Test.csproj b/src/Identity/test/Identity.Test/Microsoft.AspNetCore.Identity.Test.csproj index eea6850afc..d58f615965 100644 --- a/src/Identity/test/Identity.Test/Microsoft.AspNetCore.Identity.Test.csproj +++ b/src/Identity/test/Identity.Test/Microsoft.AspNetCore.Identity.Test.csproj @@ -5,20 +5,17 @@ - + - - - - - - - - - - + + + + + + + diff --git a/src/Identity/test/InMemory.Test/Microsoft.AspNetCore.Identity.InMemory.Test.csproj b/src/Identity/test/InMemory.Test/Microsoft.AspNetCore.Identity.InMemory.Test.csproj index 4e99761dd1..b59b531ab1 100644 --- a/src/Identity/test/InMemory.Test/Microsoft.AspNetCore.Identity.InMemory.Test.csproj +++ b/src/Identity/test/InMemory.Test/Microsoft.AspNetCore.Identity.InMemory.Test.csproj @@ -5,18 +5,15 @@ - + - - - - - - - - + + + + + diff --git a/src/Identity/test/Shared/PocoRole.cs b/src/Identity/test/Shared/PocoModel/PocoRole.cs similarity index 100% rename from src/Identity/test/Shared/PocoRole.cs rename to src/Identity/test/Shared/PocoModel/PocoRole.cs diff --git a/src/Identity/test/Shared/PocoRoleClaim.cs b/src/Identity/test/Shared/PocoModel/PocoRoleClaim.cs similarity index 100% rename from src/Identity/test/Shared/PocoRoleClaim.cs rename to src/Identity/test/Shared/PocoModel/PocoRoleClaim.cs diff --git a/src/Identity/test/Shared/PocoUser.cs b/src/Identity/test/Shared/PocoModel/PocoUser.cs similarity index 100% rename from src/Identity/test/Shared/PocoUser.cs rename to src/Identity/test/Shared/PocoModel/PocoUser.cs diff --git a/src/Identity/test/Shared/PocoUserClaim.cs b/src/Identity/test/Shared/PocoModel/PocoUserClaim.cs similarity index 100% rename from src/Identity/test/Shared/PocoUserClaim.cs rename to src/Identity/test/Shared/PocoModel/PocoUserClaim.cs diff --git a/src/Identity/test/Shared/PocoUserLogin.cs b/src/Identity/test/Shared/PocoModel/PocoUserLogin.cs similarity index 100% rename from src/Identity/test/Shared/PocoUserLogin.cs rename to src/Identity/test/Shared/PocoModel/PocoUserLogin.cs diff --git a/src/Identity/test/Shared/PocoUserRole.cs b/src/Identity/test/Shared/PocoModel/PocoUserRole.cs similarity index 100% rename from src/Identity/test/Shared/PocoUserRole.cs rename to src/Identity/test/Shared/PocoModel/PocoUserRole.cs diff --git a/src/Identity/test/Shared/PocoUserToken.cs b/src/Identity/test/Shared/PocoModel/PocoUserToken.cs similarity index 100% rename from src/Identity/test/Shared/PocoUserToken.cs rename to src/Identity/test/Shared/PocoModel/PocoUserToken.cs diff --git a/src/Identity/test/WebSites/Directory.Build.props b/src/Identity/test/WebSites/Directory.Build.props deleted file mode 100644 index c8a4ec4440..0000000000 --- a/src/Identity/test/WebSites/Directory.Build.props +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Identity.DefaultUI.WebSite.csproj b/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Identity.DefaultUI.WebSite.csproj deleted file mode 100644 index 17fa5548f4..0000000000 --- a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Identity.DefaultUI.WebSite.csproj +++ /dev/null @@ -1,48 +0,0 @@ - - - - netcoreapp3.0 - aspnet-Identity.DefaultUI.WebSite-80C658D8-CED7-467F-9B47-75DA3BC1A16D - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Properties/launchSettings.json b/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Properties/launchSettings.json deleted file mode 100644 index 9ceafce5ee..0000000000 --- a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Properties/launchSettings.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:27891/", - "sslPort": 44333 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_HTTPS_PORT": "44333", - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "Identity.DefaultUI.WebSite": { - "commandName": "Project", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_URLS": "https://localhost:44333;http://localhost:27891", - "ASPNETCORE_ENVIRONMENT": "Development" - } - } - } -} \ No newline at end of file diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/ApplicationUserStartup.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/ApplicationUserStartup.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/ApplicationUserStartup.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/ApplicationUserStartup.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Bootstrap3Startup.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Bootstrap3Startup.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Bootstrap3Startup.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Bootstrap3Startup.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Data/ApplicationDbContext.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/ApplicationDbContext.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Data/ApplicationDbContext.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Data/ApplicationDbContext.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Data/ApplicationUser.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/ApplicationUser.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Data/ApplicationUser.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Data/ApplicationUser.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Data/Migrations/00000000000000_CreateIdentitySchema.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/00000000000000_CreateIdentitySchema.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Data/Migrations/00000000000000_CreateIdentitySchema.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/00000000000000_CreateIdentitySchema.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Data/Migrations/20180217170630_UpdateIdentitySchema.Designer.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/20180217170630_UpdateIdentitySchema.Designer.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Data/Migrations/20180217170630_UpdateIdentitySchema.Designer.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/20180217170630_UpdateIdentitySchema.Designer.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Data/Migrations/20180217170630_UpdateIdentitySchema.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/20180217170630_UpdateIdentitySchema.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Data/Migrations/20180217170630_UpdateIdentitySchema.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/20180217170630_UpdateIdentitySchema.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Data/Migrations/IdentityDbContextModelSnapshot.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/IdentityDbContextModelSnapshot.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Data/Migrations/IdentityDbContextModelSnapshot.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/IdentityDbContextModelSnapshot.cs diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Identity.DefaultUI.WebSite.csproj b/src/Identity/testassets/Identity.DefaultUI.WebSite/Identity.DefaultUI.WebSite.csproj new file mode 100644 index 0000000000..65f21e44cb --- /dev/null +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Identity.DefaultUI.WebSite.csproj @@ -0,0 +1,44 @@ + + + + netcoreapp3.0 + aspnet-Identity.DefaultUI.WebSite-80C658D8-CED7-467F-9B47-75DA3BC1A16D + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/NoIdentityStartup.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/NoIdentityStartup.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/NoIdentityStartup.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/NoIdentityStartup.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/About.cshtml b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/About.cshtml similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/About.cshtml rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/About.cshtml diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/About.cshtml.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/About.cshtml.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/About.cshtml.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/About.cshtml.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Contact.cshtml b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Contact.cshtml similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Contact.cshtml rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Contact.cshtml diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Contact.cshtml.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Contact.cshtml.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Contact.cshtml.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Contact.cshtml.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Contoso/Login.cshtml b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Contoso/Login.cshtml similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Contoso/Login.cshtml rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Contoso/Login.cshtml diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Contoso/Login.cshtml.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Contoso/Login.cshtml.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Contoso/Login.cshtml.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Contoso/Login.cshtml.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Error.cshtml b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Error.cshtml similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Error.cshtml rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Error.cshtml diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Error.cshtml.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Error.cshtml.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Error.cshtml.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Error.cshtml.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Index.cshtml b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Index.cshtml similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Index.cshtml rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Index.cshtml diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Index.cshtml.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Index.cshtml.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Index.cshtml.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Index.cshtml.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Privacy.cshtml b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Privacy.cshtml similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Privacy.cshtml rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Privacy.cshtml diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Privacy.cshtml.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Privacy.cshtml.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Privacy.cshtml.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Privacy.cshtml.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Shared/_CookieConsentPartial.cshtml b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Shared/_CookieConsentPartial.cshtml similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Shared/_CookieConsentPartial.cshtml rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Shared/_CookieConsentPartial.cshtml diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Shared/_LoginPartial.cshtml b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Shared/_LoginPartial.cshtml similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/Shared/_LoginPartial.cshtml rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Shared/_LoginPartial.cshtml diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/_Layout.cshtml b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/_Layout.cshtml similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/_Layout.cshtml rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/_Layout.cshtml diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/_ValidationScriptsPartial.cshtml b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/_ValidationScriptsPartial.cshtml similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/_ValidationScriptsPartial.cshtml rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/_ValidationScriptsPartial.cshtml diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/_ViewImports.cshtml b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/_ViewImports.cshtml similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/_ViewImports.cshtml rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/_ViewImports.cshtml diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/_ViewStart.cshtml b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/_ViewStart.cshtml similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Pages/_ViewStart.cshtml rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/_ViewStart.cshtml diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/PocoUser.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/PocoUser.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/PocoUser.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/PocoUser.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/PocoUserStartup.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/PocoUserStartup.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/PocoUserStartup.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/PocoUserStartup.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Program.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Program.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Program.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Program.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationBuilderExtensions.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationBuilderExtensions.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationBuilderExtensions.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationBuilderExtensions.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationConstants.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationConstants.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationConstants.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationConstants.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationHandler.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationHandler.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationHandler.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationHandler.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationOptions.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationOptions.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationOptions.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationOptions.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Services/ContosoEmailSender.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoEmailSender.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Services/ContosoEmailSender.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoEmailSender.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Services/IdentityEmail.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/IdentityEmail.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Services/IdentityEmail.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Services/IdentityEmail.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Startup.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Startup.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/Startup.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/Startup.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/StartupBase.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/StartupBase.cs similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/StartupBase.cs rename to src/Identity/testassets/Identity.DefaultUI.WebSite/StartupBase.cs diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/appsettings.Development.json b/src/Identity/testassets/Identity.DefaultUI.WebSite/appsettings.Development.json similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/appsettings.Development.json rename to src/Identity/testassets/Identity.DefaultUI.WebSite/appsettings.Development.json diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/appsettings.json b/src/Identity/testassets/Identity.DefaultUI.WebSite/appsettings.json similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/appsettings.json rename to src/Identity/testassets/Identity.DefaultUI.WebSite/appsettings.json diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/css/site.css b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/css/site.css similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/css/site.css rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/css/site.css diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/favicon.ico b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/favicon.ico similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/favicon.ico rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/favicon.ico diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/js/site.js b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/js/site.js similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/js/site.js rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/js/site.js diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/LICENSE b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/LICENSE similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/LICENSE rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/LICENSE diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css.map b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css.map similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css.map rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css.map diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css.map b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css.map similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css.map rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css.map diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css.map b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css.map similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css.map rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css.map diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap.css b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap.css similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap.css rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap.css diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js.map b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js.map similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js.map rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js.map diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.js b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.js similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.js rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.js diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.js.map b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.js.map similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.js.map rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.js.map diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js.map b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js.map similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js.map rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js.map diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/npm.js b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/npm.js similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/npm.js rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/bootstrap/dist/js/npm.js diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/LICENSE.md b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/LICENSE.md similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/LICENSE.md rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/LICENSE.md diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/dist/additional-methods.js b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/dist/additional-methods.js similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/dist/additional-methods.js rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/dist/additional-methods.js diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/dist/additional-methods.min.js b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/dist/additional-methods.min.js similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/dist/additional-methods.min.js rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/dist/additional-methods.min.js diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/dist/jquery.validate.js b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/dist/jquery.validate.js similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/dist/jquery.validate.js rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/dist/jquery.validate.js diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery/LICENSE.txt b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery/LICENSE.txt similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery/LICENSE.txt rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery/LICENSE.txt diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery/dist/jquery.js b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery/dist/jquery.js similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery/dist/jquery.js rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery/dist/jquery.js diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery/dist/jquery.min.js b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery/dist/jquery.min.js similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery/dist/jquery.min.js rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery/dist/jquery.min.js diff --git a/src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery/dist/jquery.min.map b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery/dist/jquery.min.map similarity index 100% rename from src/Identity/test/WebSites/Identity.DefaultUI.WebSite/wwwroot/lib/jquery/dist/jquery.min.map rename to src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery/dist/jquery.min.map diff --git a/src/Identity/version.props b/src/Identity/version.props deleted file mode 100644 index 03bcf51212..0000000000 --- a/src/Identity/version.props +++ /dev/null @@ -1,17 +0,0 @@ - - - 3.0.0 - alpha1 - $(VersionPrefix) - $(VersionPrefix)-$(VersionSuffix)-final - t000 - a- - $(FeatureBranchVersionPrefix)$(VersionSuffix)-$([System.Text.RegularExpressions.Regex]::Replace('$(FeatureBranchVersionSuffix)', '[^\w-]', '-')) - $(VersionSuffix)-$(BuildNumber) - 0.6.0 - alpha1 - $(ExperimentalVersionPrefix) - $(ExperimentalVersionPrefix)-$(ExperimentalVersionSuffix)-final - $(ExperimentalVersionSuffix)-$(BuildNumber) - - diff --git a/src/Installers/Windows/AspNetCoreModule-Setup/ANCMIISExpressV1/ancm_iis_express.wxs b/src/Installers/Windows/AspNetCoreModule-Setup/ANCMIISExpressV1/ancm_iis_express.wxs index 4ffaaa5e94..95838a853e 100644 --- a/src/Installers/Windows/AspNetCoreModule-Setup/ANCMIISExpressV1/ancm_iis_express.wxs +++ b/src/Installers/Windows/AspNetCoreModule-Setup/ANCMIISExpressV1/ancm_iis_express.wxs @@ -36,15 +36,6 @@ - - - - - - - - - @@ -200,7 +191,7 @@ diff --git a/src/Installers/Windows/AspNetCoreModule-Setup/ANCMIISExpressV2/ancm_iis_expressv2.wxs b/src/Installers/Windows/AspNetCoreModule-Setup/ANCMIISExpressV2/ancm_iis_expressv2.wxs index 62c90523f3..a5ed751f14 100644 --- a/src/Installers/Windows/AspNetCoreModule-Setup/ANCMIISExpressV2/ancm_iis_expressv2.wxs +++ b/src/Installers/Windows/AspNetCoreModule-Setup/ANCMIISExpressV2/ancm_iis_expressv2.wxs @@ -38,17 +38,6 @@ - - - - - - - - - - - @@ -188,7 +177,7 @@ @@ -218,7 +207,7 @@ @@ -231,7 +220,7 @@ diff --git a/src/Installers/Windows/AspNetCoreModule-Setup/ANCMPackageResolver/ANCMPackageResolver.csproj b/src/Installers/Windows/AspNetCoreModule-Setup/ANCMPackageResolver/ANCMPackageResolver.csproj deleted file mode 100644 index c585d69ae2..0000000000 --- a/src/Installers/Windows/AspNetCoreModule-Setup/ANCMPackageResolver/ANCMPackageResolver.csproj +++ /dev/null @@ -1,27 +0,0 @@ - - - netstandard1.0 - true - true - $(RepositoryRoot).deps\ANCM - - - - - - - - - - - $(RepositoryRoot).deps\ANCM; - - - $(RestoreSources); - https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json; - https://api.nuget.org/v3/index.json; - https://dotnet.myget.org/F/dotnet-core/api/v3/index.json; - - - - diff --git a/src/Installers/Windows/AspNetCoreModule-Setup/ANCMV1/aspnetcoremodule.wxs b/src/Installers/Windows/AspNetCoreModule-Setup/ANCMV1/aspnetcoremodule.wxs index e589ae342c..776ecfd404 100644 --- a/src/Installers/Windows/AspNetCoreModule-Setup/ANCMV1/aspnetcoremodule.wxs +++ b/src/Installers/Windows/AspNetCoreModule-Setup/ANCMV1/aspnetcoremodule.wxs @@ -24,15 +24,6 @@ - - - - - - - - - @@ -173,7 +164,7 @@ diff --git a/src/Installers/Windows/AspNetCoreModule-Setup/ANCMV2/aspnetcoremodulev2.wxs b/src/Installers/Windows/AspNetCoreModule-Setup/ANCMV2/aspnetcoremodulev2.wxs index de647f5237..7778785a64 100644 --- a/src/Installers/Windows/AspNetCoreModule-Setup/ANCMV2/aspnetcoremodulev2.wxs +++ b/src/Installers/Windows/AspNetCoreModule-Setup/ANCMV2/aspnetcoremodulev2.wxs @@ -24,17 +24,6 @@ - - - - - - - - - - - @@ -163,7 +152,7 @@ @@ -192,7 +181,7 @@ @@ -206,7 +195,7 @@ @@ -308,7 +297,7 @@ - + diff --git a/src/Installers/Windows/AspNetCoreModule-Setup/Directory.Build.props b/src/Installers/Windows/AspNetCoreModule-Setup/Directory.Build.props index 4b9d69aa1d..88b706c2e7 100644 --- a/src/Installers/Windows/AspNetCoreModule-Setup/Directory.Build.props +++ b/src/Installers/Windows/AspNetCoreModule-Setup/Directory.Build.props @@ -3,6 +3,7 @@ + <_TwoDigitYear>$([MSBuild]::Subtract($([System.DateTime]::UtcNow.Year), 2000)) <_ThreeDigitDayOfYear>$([System.DateTime]::UtcNow.DayOfYear.ToString().PadLeft(3, '0')) @@ -28,15 +29,54 @@ $(AspNetCoreSetupRoot)build\ - $(RepositoryRoot).deps\ANCM\Microsoft.AspNetCore.AspNetCoreModule\$(MicrosoftAspNetCoreAspNetCoreModulePackageVersion)\ - $(RepositoryRoot).deps\ANCM\Microsoft.AspNetCore.AspNetCoreModuleV2\$(MicrosoftAspNetCoreAspNetCoreModuleV2PackageVersion)\ - $(PreBuiltANCMSchema)contentFiles\any\any\ - $(PreBuiltANCMV2Schema)contentFiles\any\any\ + <_ServerIISBasePath>$(RepositoryRoot)\src\Servers\IIS\ BLDVERMAJOR=$(BLDVERMAJOR);BLDVERMINOR=$(BLDVERMINOR);BLDNUMMAJOR=$(BLDNUMMAJOR);BLDNUMMINOR=$(BLDNUMMINOR);$(DefineConstants) ANCMMsiVersion=$(ANCMMsiVersion);ANCMOutOfProcessNugetPackageHandlerVersion=$(ANCMOutOfProcessNugetPackageHandlerVersion);$(DefineConstants) - PreBuiltANCMRoot=$(PreBuiltANCMRoot);PreBuiltANCMV2Root=$(PreBuiltANCMV2Root);$(DefineConstants) - PreBuiltANCMSchema=$(PreBuiltANCMSchema);PreBuiltANCMV2Schema=$(PreBuiltANCMV2Schema);$(DefineConstants) + + AspNetCoreSchemaPath=$(_ServerIISBasePath)AspNetCoreModuleV2\AspNetCore\aspnetcore_schema_v2.xml; + AspNetCoreMofPath=$(_ServerIISBasePath)AspNetCoreModuleV2\AspNetCore\ancm.mof; + $(DefineConstants) + + + + AspNetCoreV1WoW64 + True + True + false + + + AspNetCoreV2WoW64 + True + True + false + + + AspNetCoreV2HandlerWoW64 + True + True + false + + + + AspNetCoreV1 + True + True + false + + + AspNetCoreV2 + True + True + false + + + AspNetCoreV2Handler + True + True + false + + diff --git a/src/Installers/Windows/AspNetCoreModule-Setup/build/settings/common.props b/src/Installers/Windows/AspNetCoreModule-Setup/build/settings/common.props index 0130b6e5ab..3dfffe943f 100644 --- a/src/Installers/Windows/AspNetCoreModule-Setup/build/settings/common.props +++ b/src/Installers/Windows/AspNetCoreModule-Setup/build/settings/common.props @@ -13,7 +13,7 @@ - 10.0.15063.0 + 10.0.17134.0 $(IisOobWinSdkVersion) Unicode bin\$(Configuration)\$(PlatformShortname)\ diff --git a/src/Installers/Windows/AspNetCoreModule-Setup/build/settings/debug.props b/src/Installers/Windows/AspNetCoreModule-Setup/build/settings/debug.props index 710f5553d0..f836b47097 100644 --- a/src/Installers/Windows/AspNetCoreModule-Setup/build/settings/debug.props +++ b/src/Installers/Windows/AspNetCoreModule-Setup/build/settings/debug.props @@ -14,7 +14,6 @@ true Disabled - true EnableFastChecks MultiThreadedDebug @@ -22,7 +21,6 @@ false false true - /JMC- diff --git a/src/Installers/Windows/Directory.Build.props b/src/Installers/Windows/Directory.Build.props index 6a33e27c7d..641ea3aa93 100644 --- a/src/Installers/Windows/Directory.Build.props +++ b/src/Installers/Windows/Directory.Build.props @@ -1,13 +1,8 @@ - $([MSBuild]::NormalizeDirectory('$(MSBuildThisFileDirectory)..\..\..\')) - $(RepositoryRoot)artifacts\$(Configuration)\installers\ - $(RepositoryRoot)bin\$(Configuration)\$(MSBuildProjectName)\ - $(BaseOutputPath) - $(RepositoryRoot)obj\$(MSBuildProjectName)\ - $(BaseIntermediateOutputPath)$(Configuration)\ - $(IntermediateOutputPath)$(Platform)\ + true + true diff --git a/src/Installers/Windows/Directory.Build.targets b/src/Installers/Windows/Directory.Build.targets index 8dc63cace9..b5cebea51b 100644 --- a/src/Installers/Windows/Directory.Build.targets +++ b/src/Installers/Windows/Directory.Build.targets @@ -1,4 +1,4 @@ - + diff --git a/src/Installers/Windows/InstallerTasks/InstallerTasks.csproj b/src/Installers/Windows/InstallerTasks/InstallerTasks.csproj deleted file mode 100644 index a6d3ce18f1..0000000000 --- a/src/Installers/Windows/InstallerTasks/InstallerTasks.csproj +++ /dev/null @@ -1,23 +0,0 @@ - - - - net461 - false - false - - - - - - - - - - $(WiXSdkPath)\Microsoft.Deployment.WindowsInstaller.dll - - - $(WiXSdkPath)\Microsoft.Deployment.WindowsInstaller.Package.dll - - - - diff --git a/src/Installers/Windows/Installers.sln b/src/Installers/Windows/Installers.sln index 0572e5d0ee..b34c18e8de 100644 --- a/src/Installers/Windows/Installers.sln +++ b/src/Installers/Windows/Installers.sln @@ -25,8 +25,6 @@ Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "WindowsHostingBundle", "Win EndProject Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "SharedFramework", "SharedFramework\SharedFramework.wixproj", "{C681D730-4505-42C6-9E6C-87F757C4FB32}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InstallerTasks", "InstallerTasks\InstallerTasks.csproj", "{D58277B2-4C1F-46D6-B9E1-845C711E3B55}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -131,18 +129,6 @@ Global {C681D730-4505-42C6-9E6C-87F757C4FB32}.Release|x64.ActiveCfg = Release|x86 {C681D730-4505-42C6-9E6C-87F757C4FB32}.Release|x86.ActiveCfg = Release|x86 {C681D730-4505-42C6-9E6C-87F757C4FB32}.Release|x86.Build.0 = Release|x86 - {D58277B2-4C1F-46D6-B9E1-845C711E3B55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D58277B2-4C1F-46D6-B9E1-845C711E3B55}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D58277B2-4C1F-46D6-B9E1-845C711E3B55}.Debug|x64.ActiveCfg = Debug|Any CPU - {D58277B2-4C1F-46D6-B9E1-845C711E3B55}.Debug|x64.Build.0 = Debug|Any CPU - {D58277B2-4C1F-46D6-B9E1-845C711E3B55}.Debug|x86.ActiveCfg = Debug|Any CPU - {D58277B2-4C1F-46D6-B9E1-845C711E3B55}.Debug|x86.Build.0 = Debug|Any CPU - {D58277B2-4C1F-46D6-B9E1-845C711E3B55}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D58277B2-4C1F-46D6-B9E1-845C711E3B55}.Release|Any CPU.Build.0 = Release|Any CPU - {D58277B2-4C1F-46D6-B9E1-845C711E3B55}.Release|x64.ActiveCfg = Release|Any CPU - {D58277B2-4C1F-46D6-B9E1-845C711E3B55}.Release|x64.Build.0 = Release|Any CPU - {D58277B2-4C1F-46D6-B9E1-845C711E3B55}.Release|x86.ActiveCfg = Release|Any CPU - {D58277B2-4C1F-46D6-B9E1-845C711E3B55}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/Installers/Windows/WindowsHostingBundle/Product.targets b/src/Installers/Windows/WindowsHostingBundle/Product.targets index c91339b2c9..36f4cb8cd9 100644 --- a/src/Installers/Windows/WindowsHostingBundle/Product.targets +++ b/src/Installers/Windows/WindowsHostingBundle/Product.targets @@ -19,7 +19,7 @@ - + https://dotnetcli.azureedge.net/dotnet/ $(DotNetAssetRootUrl)/ @@ -40,9 +40,7 @@ SourceUrl="%(RemoteAsset.Identity)" DestinationFolder="$(DepsPath)" DestinationFileName="%(RemoteAsset.TargetFileName)" /> - - - + diff --git a/src/Installers/Windows/WindowsInstallers.proj b/src/Installers/Windows/WindowsInstallers.proj deleted file mode 100644 index 5337f23dba..0000000000 --- a/src/Installers/Windows/WindowsInstallers.proj +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Installers/Windows/Wix.targets b/src/Installers/Windows/Wix.targets index d4504f10c3..1ceda1d5a5 100644 --- a/src/Installers/Windows/Wix.targets +++ b/src/Installers/Windows/Wix.targets @@ -10,8 +10,6 @@ $(GuidInputs);$(BuildNumberSuffix) - - diff --git a/src/Installers/Windows/build.ps1 b/src/Installers/Windows/build.ps1 index 5b64363f40..252e850d37 100644 --- a/src/Installers/Windows/build.ps1 +++ b/src/Installers/Windows/build.ps1 @@ -1,7 +1,3 @@ -# -# This script requires internal-only access to the code which generates ANCM installers. -# - #requires -version 5 [cmdletbinding()] param( @@ -14,20 +10,20 @@ param( [string]$Runtime64Zip, [string]$BuildNumber = 't000', [switch]$IsFinalBuild, - [string]$SignType = '', - [switch]$clean + [string]$SignType = '' ) $ErrorActionPreference = 'Stop' $repoRoot = Resolve-Path "$PSScriptRoot/../../../" Import-Module -Scope Local "$repoRoot/eng/scripts/common.psm1" -Force -$msbuild = Get-MSBuildPath -Prerelease -requires 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64' $harvestRoot = "$repoRoot/obj/sfx/" if ($clean) { Remove-Item -Recurse -Force $harvestRoot -ErrorAction Ignore | Out-Null } +# TODO: harvest shared frameworks from a project reference + New-Item "$harvestRoot/x86", "$harvestRoot/x64" -ItemType Directory -ErrorAction Ignore | Out-Null if (-not (Test-Path "$harvestRoot/x86/shared/")) { @@ -40,40 +36,14 @@ if (-not (Test-Path "$harvestRoot/x64/shared/")) { Push-Location $PSScriptRoot try { - Invoke-Block { & $msbuild ` - InstallerTasks/InstallerTasks.csproj ` - -nologo ` - -m ` - -v:m ` - -nodeReuse:false ` - -restore ` - -t:Build ` - "-p:Configuration=$Configuration" - } - - [string[]] $msbuildArgs = @() - - if ($clean) { - $msbuildArgs += '-t:Clean' - } - - Invoke-Block { & $msbuild ` - WindowsInstallers.proj ` - -restore ` - -nologo ` - -m ` - -v:m ` - -nodeReuse:false ` - -clp:Summary ` + & $repoRoot/build.ps1 ` + -Installers ` "-p:SharedFrameworkHarvestRootPath=$repoRoot/obj/sfx/" ` "-p:Configuration=$Configuration" ` "-p:BuildNumberSuffix=$BuildNumber" ` "-p:SignType=$SignType" ` "-p:IsFinalBuild=$IsFinalBuild" ` - "-bl:$repoRoot/artifacts/logs/installers.msbuild.binlog" ` - '-t:Build' ` - @msbuildArgs - } + "-bl:$repoRoot/artifacts/logs/installers.msbuild.binlog" } finally { Pop-Location diff --git a/src/JavaScriptServices/.gitignore b/src/JavaScriptServices/.gitignore deleted file mode 100644 index 79812ddba3..0000000000 --- a/src/JavaScriptServices/.gitignore +++ /dev/null @@ -1,31 +0,0 @@ -[Oo]bj/ -[Bb]in/ -TestResults/ -.nuget/ -*.sln.ide/ -_ReSharper.*/ -packages/ -artifacts/ -PublishProfiles/ -*.user -*.suo -*.cache -*.docstates -_ReSharper.* -nuget.exe -*net45.csproj -*net451.csproj -*k10.csproj -*.psess -*.vsp -*.pidb -*.userprefs -*DS_Store -*.ncrunchsolution -*.*sdf -*.ipch -.vs/ -npm-debug.log -/.build/ -.vscode/ -global.json diff --git a/src/JavaScriptServices/Directory.Build.props b/src/JavaScriptServices/Directory.Build.props deleted file mode 100644 index aa926e10c0..0000000000 --- a/src/JavaScriptServices/Directory.Build.props +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - Microsoft ASP.NET Core - https://github.com/aspnet/AspNetCore - git - $(MSBuildThisFileDirectory) - $(MSBuildThisFileDirectory)..\..\eng\AspNetCore.snk - true - true - - - - - $(MSBuildThisFileDirectory)..\..\artifacts\ - $(ArtifactsDir)$(Configuration)\ - $(ArtifactsConfigurationDir)packages\ - $(BasePackageOutputPath)product\ - $(BasePackageOutputPath)internal\ - - - diff --git a/src/JavaScriptServices/Directory.Build.targets b/src/JavaScriptServices/Directory.Build.targets deleted file mode 100644 index f5a3f65909..0000000000 --- a/src/JavaScriptServices/Directory.Build.targets +++ /dev/null @@ -1,17 +0,0 @@ - - - $(MicrosoftNETCoreAppPackageVersion) - - - - - false - - $(ProductPackageOutputPath) - $(InternalPackageOutputPath) - - - diff --git a/src/JavaScriptServices/JavaScriptServices.sln b/src/JavaScriptServices/JavaScriptServices.sln deleted file mode 100644 index f01aa1a956..0000000000 --- a/src/JavaScriptServices/JavaScriptServices.sln +++ /dev/null @@ -1,93 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26730.16 -MinimumVisualStudioVersion = 15.0.26730.03 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{27304DDE-AFB2-4F8B-B765-E3E2F11E886C}" - ProjectSection(SolutionItems) = preProject - src\Directory.Build.props = src\Directory.Build.props - EndProjectSection -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.NodeServices", "src\Microsoft.AspNetCore.NodeServices\Microsoft.AspNetCore.NodeServices.csproj", "{66B77203-1469-41DF-92F2-2BE6900BD36F}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.NodeServices.Sockets", "src\Microsoft.AspNetCore.NodeServices.Sockets\Microsoft.AspNetCore.NodeServices.Sockets.csproj", "{F46DEF99-6FAA-4406-B5D8-6FF34EF669E3}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.SpaServices", "src\Microsoft.AspNetCore.SpaServices\Microsoft.AspNetCore.SpaServices.csproj", "{66B071A8-EFC8-4A06-BEF6-06B99AE27EEC}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "misc", "misc", "{99EAF1FE-22C8-4526-BE78-74B24125D37F}" - ProjectSection(SolutionItems) = preProject - .gitignore = .gitignore - global.json = global.json - README.md = README.md - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{23836492-E7F4-4376-85BF-A635C304AC46}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "misc", "misc", "{E6A161EA-646C-4033-9090-95BE809AB8D9}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LatencyTest", "samples\misc\LatencyTest\LatencyTest.csproj", "{1931B19A-EC42-4D56-B2D0-FB06D17244DA}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Webpack", "samples\misc\Webpack\Webpack.csproj", "{DE479DC3-1461-4EAD-A188-4AF7AA4AE344}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NodeServicesExamples", "samples\misc\NodeServicesExamples\NodeServicesExamples.csproj", "{93EFCC5F-C6EE-4623-894F-A42B22C0B6FE}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{645F7363-1240-4FB6-9422-B32A327C979F}" - ProjectSection(SolutionItems) = preProject - Directory.Build.props = Directory.Build.props - Directory.Build.targets = Directory.Build.targets - EndProjectSection -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.SpaServices.Extensions", "src\Microsoft.AspNetCore.SpaServices.Extensions\Microsoft.AspNetCore.SpaServices.Extensions.csproj", "{D40BD1C4-6A6F-4213-8535-1057F3EB3400}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66B77203-1469-41DF-92F2-2BE6900BD36F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {66B77203-1469-41DF-92F2-2BE6900BD36F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {66B77203-1469-41DF-92F2-2BE6900BD36F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {66B77203-1469-41DF-92F2-2BE6900BD36F}.Release|Any CPU.Build.0 = Release|Any CPU - {F46DEF99-6FAA-4406-B5D8-6FF34EF669E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F46DEF99-6FAA-4406-B5D8-6FF34EF669E3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F46DEF99-6FAA-4406-B5D8-6FF34EF669E3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F46DEF99-6FAA-4406-B5D8-6FF34EF669E3}.Release|Any CPU.Build.0 = Release|Any CPU - {66B071A8-EFC8-4A06-BEF6-06B99AE27EEC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {66B071A8-EFC8-4A06-BEF6-06B99AE27EEC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {66B071A8-EFC8-4A06-BEF6-06B99AE27EEC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {66B071A8-EFC8-4A06-BEF6-06B99AE27EEC}.Release|Any CPU.Build.0 = Release|Any CPU - {1931B19A-EC42-4D56-B2D0-FB06D17244DA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1931B19A-EC42-4D56-B2D0-FB06D17244DA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1931B19A-EC42-4D56-B2D0-FB06D17244DA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1931B19A-EC42-4D56-B2D0-FB06D17244DA}.Release|Any CPU.Build.0 = Release|Any CPU - {DE479DC3-1461-4EAD-A188-4AF7AA4AE344}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DE479DC3-1461-4EAD-A188-4AF7AA4AE344}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DE479DC3-1461-4EAD-A188-4AF7AA4AE344}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DE479DC3-1461-4EAD-A188-4AF7AA4AE344}.Release|Any CPU.Build.0 = Release|Any CPU - {93EFCC5F-C6EE-4623-894F-A42B22C0B6FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {93EFCC5F-C6EE-4623-894F-A42B22C0B6FE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {93EFCC5F-C6EE-4623-894F-A42B22C0B6FE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {93EFCC5F-C6EE-4623-894F-A42B22C0B6FE}.Release|Any CPU.Build.0 = Release|Any CPU - {D40BD1C4-6A6F-4213-8535-1057F3EB3400}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D40BD1C4-6A6F-4213-8535-1057F3EB3400}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D40BD1C4-6A6F-4213-8535-1057F3EB3400}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D40BD1C4-6A6F-4213-8535-1057F3EB3400}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {66B77203-1469-41DF-92F2-2BE6900BD36F} = {27304DDE-AFB2-4F8B-B765-E3E2F11E886C} - {F46DEF99-6FAA-4406-B5D8-6FF34EF669E3} = {27304DDE-AFB2-4F8B-B765-E3E2F11E886C} - {66B071A8-EFC8-4A06-BEF6-06B99AE27EEC} = {27304DDE-AFB2-4F8B-B765-E3E2F11E886C} - {E6A161EA-646C-4033-9090-95BE809AB8D9} = {23836492-E7F4-4376-85BF-A635C304AC46} - {1931B19A-EC42-4D56-B2D0-FB06D17244DA} = {E6A161EA-646C-4033-9090-95BE809AB8D9} - {DE479DC3-1461-4EAD-A188-4AF7AA4AE344} = {E6A161EA-646C-4033-9090-95BE809AB8D9} - {93EFCC5F-C6EE-4623-894F-A42B22C0B6FE} = {E6A161EA-646C-4033-9090-95BE809AB8D9} - {D40BD1C4-6A6F-4213-8535-1057F3EB3400} = {27304DDE-AFB2-4F8B-B765-E3E2F11E886C} - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {DDF59B0D-2DEC-45D6-8667-DCB767487101} - EndGlobalSection -EndGlobal diff --git a/src/JavaScriptServices/NuGetPackageVerifier.json b/src/JavaScriptServices/NuGetPackageVerifier.json deleted file mode 100644 index 22ef3c09c0..0000000000 --- a/src/JavaScriptServices/NuGetPackageVerifier.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Default": { - "rules": [ - "DefaultCompositeRule" - ] - } -} diff --git a/src/JavaScriptServices/README.md b/src/JavaScriptServices/README.md deleted file mode 100644 index cc43e91d15..0000000000 --- a/src/JavaScriptServices/README.md +++ /dev/null @@ -1,92 +0,0 @@ -# JavaScriptServices - -## What is this? - -`JavaScriptServices` is a set of client-side technologies for ASP.NET Core. It provides infrastructure that you'll find useful if you: - -- Use Angular / React / Vue / Aurelia / Knockout / etc. -- Build your client-side resources using Webpack. -- Execute JavaScript on the server at runtime. - -Read [Building Single Page Applications on ASP.NET Core with JavaScriptServices](https://blogs.msdn.microsoft.com/webdev/2017/02/14/building-single-page-applications-on-asp-net-core-with-javascriptservices/) for more details. - -This repo contains: - - * A set of NuGet/NPM packages that implement functionality for: - * Invoking arbitrary NPM packages at runtime from .NET code ([docs](/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices#simple-usage-example)) - * Server-side prerendering of SPA components ([docs](/src/JavaScriptServices/src/Microsoft.AspNetCore.SpaServices#server-side-prerendering)) - * Webpack dev middleware ([docs](/src/JavaScriptServices/src/Microsoft.AspNetCore.SpaServices#webpack-dev-middleware)) - * Hot module replacement (HMR) ([docs](/src/JavaScriptServices/src/Microsoft.AspNetCore.SpaServices#webpack-hot-module-replacement)) - * Server-side and client-side routing integration ([docs](/src/JavaScriptServices/src/Microsoft.AspNetCore.SpaServices#routing-helper-mapspafallbackroute)) - * Server-side and client-side validation integration - * "Lazy loading" for Knockout apps - * Samples and docs - -It's cross-platform (Windows, Linux, or macOS) and works with .NET Core 2.0 or later. - -## Creating new applications - -Prerequisites: - -* [.NET Core 2.0](https://www.microsoft.com/net/core) (or later) SDK -* [Node.js](https://nodejs.org/) version 6 (or later) - -With these prerequisites, you can immediately create new ASP.NET Core applications that use Angular, React, or React+Redux without having to install anything extra. - -### Option 1: Creating Angular/React/Redux applications from the command line (cross-platform) - -In an empty directory, run (for example) `dotnet new angular`. Other supported SPA frameworks include React and React+Redux. You can see the list of available SPA templates by running `dotnet new spa`. - -Once the generator has run and restored all the dependencies, you can start up your new ASP.NET Core SPA: - - npm install - dotnet run - -### Option 2: Creating Angular/React/Redux applications using Visual Studio 2017 Update 3 or later (Windows only) - -Using the `File`->`New Project` dialog, select *ASP.NET Core Web Application*. You will then be offered the option to create an application with Angular, React, or React+Redux. When the application is created, you can build and run it in the normal way. - -### More info and other SPA frameworks - -For a more detailed (albeit somewhat outdated) walkthrough, see [getting started with the `aspnetcore-spa` generator](http://blog.stevensanderson.com/2016/05/02/angular2-react-knockout-apps-on-aspnet-core/). - -If you want to build an ASP.NET Core application with Aurelia, Knockout, or Vue, you can use the `Microsoft.AspNetCore.SpaTemplates` package. On the command line, run `dotnet new --install Microsoft.AspNetCore.SpaTemplates`. Then you will be able to run `dotnet new aurelia` (or `dotnet new vue`, etc.) to create your new application. - -## Adding to existing applications - -If you have an existing ASP.NET Core application, or if you just want to use the underlying JavaScriptServices packages directly, you can install these packages using NuGet and NPM: - - * `Microsoft.AspNetCore.NodeServices` - * This provides a fast and robust way for .NET code to run JavaScript on the server inside a Node.js environment. You can use this to consume arbitrary functionality from NPM packages at runtime in your ASP.NET Core app. - * Most applications developers don't need to use this directly, but you can do so if you want to implement your own functionality that involves calling Node.js code from .NET at runtime. - * Find [documentation and usage examples here](/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices#microsoftaspnetcorenodeservices). - * `Microsoft.AspNetCore.SpaServices` - * This provides infrastructure that's generally useful when building Single Page Applications (SPAs) with technologies such as Angular or React (for example, server-side prerendering and webpack middleware). Internally, it uses the `NodeServices` package to implement its features. - * Find [documentation and usage examples here](/src/JavaScriptServices/src/Microsoft.AspNetCore.SpaServices#microsoftaspnetcorespaservices) - -There were previously other packages called `Microsoft.AspNetCore.AngularServices` and `Microsoft.AspNetCore.ReactServices` but these are not currently needed - all applicable functionality is in `Microsoft.AspNetCore.SpaServices`, because it's sufficiently general. - -If you want to build a helper library for some other SPA framework, you can do so by taking a dependency on `Microsoft.AspNetCore.SpaServices` and wrapping its functionality in whatever way is most useful for your SPA framework. - -## Samples - -The [`samples` directory](/src/JavaScriptServices/samples) contains examples of: - -- Using the JavaScript services family of packages with Angular and React. -- A standalone `NodeServices` usage for runtime code transpilation and image processing. - -**To run the samples:** - - * Clone this repo - * At the repo's root directory (the one containing `src`, `samples`, etc.), run `dotnet restore` - * Change directory to the sample you want to run (for example, `cd samples/angular/MusicStore`) - * Restore Node dependencies by running `npm install` - * If you're trying to run the Angular "Music Store" sample, then also run `gulp` (which you need to have installed globally). None of the other samples require this. - * Run the application (`dotnet run`) - * Browse to [http://localhost:5000](http://localhost:5000) - -## Contributing - -If you're interested in contributing to the various packages, samples, and project templates in this repo, that's great! - -Before working on a pull request, especially if it's more than a trivial fix (for example, for a typo), it's usually a good idea first to file an issue describing what you're proposing to do and how it will work. Then you can find out if it's likely that such a pull request will be accepted, and how it fits into wider ongoing plans. diff --git a/src/JavaScriptServices/build/Key.snk b/src/JavaScriptServices/build/Key.snk deleted file mode 100644 index e10e4889c1..0000000000 Binary files a/src/JavaScriptServices/build/Key.snk and /dev/null differ diff --git a/src/JavaScriptServices/build/dependencies.props b/src/JavaScriptServices/build/dependencies.props deleted file mode 100644 index af29ae2834..0000000000 --- a/src/JavaScriptServices/build/dependencies.props +++ /dev/null @@ -1,30 +0,0 @@ - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - - 3.0.0-build-20181114.5 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-alpha1-10742 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview-181113-11 - 3.0.0-preview1-26907-05 - 3.0.0-preview-18579-0056 - 2.0.3 - 12.0.1 - 4.10.0-preview1-26907-04 - - - - diff --git a/src/JavaScriptServices/build/repo.props b/src/JavaScriptServices/build/repo.props deleted file mode 100644 index 744ce282f7..0000000000 --- a/src/JavaScriptServices/build/repo.props +++ /dev/null @@ -1,11 +0,0 @@ - - - - - false - - - - - - diff --git a/src/JavaScriptServices/build/sources.props b/src/JavaScriptServices/build/sources.props deleted file mode 100644 index 9215df9751..0000000000 --- a/src/JavaScriptServices/build/sources.props +++ /dev/null @@ -1,17 +0,0 @@ - - - - - $(DotNetRestoreSources) - - $(RestoreSources); - https://dotnet.myget.org/F/dotnet-core/api/v3/index.json; - https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json; - https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json; - - - $(RestoreSources); - https://api.nuget.org/v3/index.json; - - - diff --git a/src/JavaScriptServices/samples/misc/LatencyTest/LatencyTest.csproj b/src/JavaScriptServices/samples/misc/LatencyTest/LatencyTest.csproj deleted file mode 100644 index c146eb6a08..0000000000 --- a/src/JavaScriptServices/samples/misc/LatencyTest/LatencyTest.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - netcoreapp3.0 - false - exe - - - - - - - - - - - - - diff --git a/src/JavaScriptServices/samples/misc/LatencyTest/Program.cs b/src/JavaScriptServices/samples/misc/LatencyTest/Program.cs deleted file mode 100644 index bafe4b9fbc..0000000000 --- a/src/JavaScriptServices/samples/misc/LatencyTest/Program.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using System.Diagnostics; -using System.IO; -using System.Threading.Tasks; -using Microsoft.AspNetCore.NodeServices; -using Microsoft.AspNetCore.NodeServices.Sockets; -using Microsoft.Extensions.DependencyInjection; - -namespace ConsoleApplication -{ - // This project is a micro-benchmark for .NET->Node RPC via NodeServices. It doesn't reflect - // real-world usage patterns (you're not likely to make hundreds of sequential calls like this), - // but is a starting point for comparing the overhead of different hosting models and transports. - public class Program - { - public static void Main(string[] args) { - // Set up the DI system - var services = new ServiceCollection(); - services.AddNodeServices(options => { - // To compare with Socket hosting, uncomment the following line - // Since .NET Core 1.1, the HTTP hosting model has become basically as fast as the Socket hosting model - //options.UseSocketHosting(); - - options.WatchFileExtensions = new string[] {}; // Don't watch anything - }); - var serviceProvider = services.BuildServiceProvider(); - - // Now instantiate an INodeServices and use it - using (var nodeServices = serviceProvider.GetRequiredService()) { - MeasureLatency(nodeServices).Wait(); - } - } - - private static async Task MeasureLatency(INodeServices nodeServices) { - // Ensure the connection is open, so we can measure per-request timings below - var response = await nodeServices.InvokeAsync("latencyTest", "C#"); - Console.WriteLine(response); - - // Now perform a series of requests, capturing the time taken - const int requestCount = 100; - var watch = Stopwatch.StartNew(); - for (var i = 0; i < requestCount; i++) { - await nodeServices.InvokeAsync("latencyTest", "C#"); - } - - // Display results - var elapsedSeconds = (float)watch.ElapsedTicks / Stopwatch.Frequency; - Console.WriteLine("\nTotal time: {0:F2} milliseconds", 1000 * elapsedSeconds); - Console.WriteLine("\nTime per invocation: {0:F2} milliseconds", 1000 * elapsedSeconds / requestCount); - } - } -} diff --git a/src/JavaScriptServices/samples/misc/LatencyTest/latencyTest.js b/src/JavaScriptServices/samples/misc/LatencyTest/latencyTest.js deleted file mode 100644 index 9feb344a32..0000000000 --- a/src/JavaScriptServices/samples/misc/LatencyTest/latencyTest.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = function(callback, incomingParam1) { - var result = 'Hello, ' + incomingParam1 + '!'; - callback(/* error */ null, result); -} diff --git a/src/JavaScriptServices/samples/misc/NodeServicesExamples/NodeServicesExamples.csproj b/src/JavaScriptServices/samples/misc/NodeServicesExamples/NodeServicesExamples.csproj deleted file mode 100644 index 874807b97b..0000000000 --- a/src/JavaScriptServices/samples/misc/NodeServicesExamples/NodeServicesExamples.csproj +++ /dev/null @@ -1,29 +0,0 @@ - - - - netcoreapp3.0 - true - false - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/JavaScriptServices/samples/misc/Webpack/Webpack.csproj b/src/JavaScriptServices/samples/misc/Webpack/Webpack.csproj deleted file mode 100644 index 874807b97b..0000000000 --- a/src/JavaScriptServices/samples/misc/Webpack/Webpack.csproj +++ /dev/null @@ -1,29 +0,0 @@ - - - - netcoreapp3.0 - true - false - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/JavaScriptServices/scripts/Regenerate-JSFiles.ps1 b/src/JavaScriptServices/scripts/Regenerate-JSFiles.ps1 deleted file mode 100644 index ef3336c8f0..0000000000 --- a/src/JavaScriptServices/scripts/Regenerate-JSFiles.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -[cmdletbinding(SupportsShouldProcess = $true)] -param( -) - -$ErrorActionPreference = 'Stop' -Set-StrictMode -Version 2 - -Push-Location "src" -try { - $dirs = Get-ChildItem -Directory - foreach($dir in $dirs) - { - Push-Location $dir - try{ - if(Test-Path -Path "package.json") - { - npm install - npm run build - } - } - finally{ - Pop-Location - } - } -} -finally { - Pop-Location -} diff --git a/src/JavaScriptServices/src/Directory.Build.props b/src/JavaScriptServices/src/Directory.Build.props deleted file mode 100644 index 272b8171cc..0000000000 --- a/src/JavaScriptServices/src/Directory.Build.props +++ /dev/null @@ -1,13 +0,0 @@ - - - - - true - true - aspnetcore;aspnetcoremvc;nodeservices - - - - - - diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/Content/Node/entrypoint-socket.js b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/Content/Node/entrypoint-socket.js deleted file mode 100644 index b9550ff850..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/Content/Node/entrypoint-socket.js +++ /dev/null @@ -1,626 +0,0 @@ -(function (e, a) { for (var i in a) e[i] = a[i]; }(exports, /******/(function (modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if (installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; - /******/ - } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} - /******/ - }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; - /******/ - } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function (exports, name, getter) { -/******/ if (!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); - /******/ - } - /******/ - }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function (exports) { -/******/ if (typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); - /******/ - } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); - /******/ - }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function (value, mode) { -/******/ if (mode & 1) value = __webpack_require__(value); -/******/ if (mode & 8) return value; -/******/ if ((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if (mode & 2 && typeof value != 'string') for (var key in value) __webpack_require__.d(ns, key, function (key) { return value[key]; }.bind(null, key)); -/******/ return ns; - /******/ - }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function (module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; - /******/ - }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function (object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 0); - /******/ -}) -/************************************************************************/ -/******/([ -/* 0 */ -/***/ (function (module, exports, __webpack_require__) { - - module.exports = __webpack_require__(1); - - - /***/ - }), -/* 1 */ -/***/ (function (module, exports, __webpack_require__) { - - "use strict"; - - exports.__esModule = true; - // Limit dependencies to core Node modules. This means the code in this file has to be very low-level and unattractive, - // but simplifies things for the consumer of this module. - __webpack_require__(2); - var net = __webpack_require__(3); - var path = __webpack_require__(4); - var readline = __webpack_require__(5); - var ArgsUtil_1 = __webpack_require__(6); - var ExitWhenParentExits_1 = __webpack_require__(7); - var virtualConnectionServer = __webpack_require__(8); - // Webpack doesn't support dynamic requires for files not present at compile time, so grab a direct - // reference to Node's runtime 'require' function. - var dynamicRequire = eval('require'); - // Signal to the .NET side when we're ready to accept invocations - var server = net.createServer().on('listening', function () { - console.log('[Microsoft.AspNetCore.NodeServices:Listening]'); - }); - // Each virtual connection represents a separate invocation - virtualConnectionServer.createInterface(server).on('connection', function (connection) { - readline.createInterface(connection, null).on('line', function (line) { - try { - // Get a reference to the function to invoke - var invocation = JSON.parse(line); - var invokedModule = dynamicRequire(path.resolve(process.cwd(), invocation.moduleName)); - var invokedFunction = invocation.exportedFunctionName ? invokedModule[invocation.exportedFunctionName] : invokedModule; - // Prepare a callback for accepting non-streamed JSON responses - var hasInvokedCallback_1 = false; - var invocationCallback = function (errorValue, successValue) { - if (hasInvokedCallback_1) { - throw new Error('Cannot supply more than one result. The callback has already been invoked,' - + ' or the result stream has already been accessed'); - } - hasInvokedCallback_1 = true; - connection.end(JSON.stringify({ - result: successValue, - errorMessage: errorValue && (errorValue.message || errorValue), - errorDetails: errorValue && (errorValue.stack || null) - })); - }; - // Also support streamed binary responses - Object.defineProperty(invocationCallback, 'stream', { - enumerable: true, - get: function () { - hasInvokedCallback_1 = true; - return connection; - } - }); - // Actually invoke it, passing through any supplied args - invokedFunction.apply(null, [invocationCallback].concat(invocation.args)); - } - catch (ex) { - connection.end(JSON.stringify({ - errorMessage: ex.message, - errorDetails: ex.stack - })); - } - }); - }); - // Begin listening now. The underlying transport varies according to the runtime platform. - // On Windows it's Named Pipes; on Linux/OSX it's Domain Sockets. - var useWindowsNamedPipes = /^win/.test(process.platform); - var parsedArgs = ArgsUtil_1.parseArgs(process.argv); - var listenAddress = (useWindowsNamedPipes ? '\\\\.\\pipe\\' : '/tmp/') + parsedArgs.listenAddress; - server.listen(listenAddress); - ExitWhenParentExits_1.exitWhenParentExits(parseInt(parsedArgs.parentPid), /* ignoreSigint */ true); - - - /***/ - }), -/* 2 */ -/***/ (function (module, exports) { - - // When Node writes to stdout/strerr, we capture that and convert the lines into calls on the - // active .NET ILogger. But by default, stdout/stderr don't have any way of distinguishing - // linebreaks inside log messages from the linebreaks that delimit separate log messages, - // so multiline strings will end up being written to the ILogger as multiple independent - // log messages. This makes them very hard to make sense of, especially when they represent - // something like stack traces. - // - // To fix this, we intercept stdout/stderr writes, and replace internal linebreaks with a - // marker token. When .NET receives the lines, it converts the marker tokens back to regular - // linebreaks within the logged messages. - // - // Note that it's better to do the interception at the stdout/stderr level, rather than at - // the console.log/console.error (etc.) level, because this takes place after any native - // message formatting has taken place (e.g., inserting values for % placeholders). - var findInternalNewlinesRegex = /\n(?!$)/g; - var encodedNewline = '__ns_newline__'; - encodeNewlinesWrittenToStream(process.stdout); - encodeNewlinesWrittenToStream(process.stderr); - function encodeNewlinesWrittenToStream(outputStream) { - var origWriteFunction = outputStream.write; - outputStream.write = function (value) { - // Only interfere with the write if it's definitely a string - if (typeof value === 'string') { - var argsClone = Array.prototype.slice.call(arguments, 0); - argsClone[0] = encodeNewlinesInString(value); - origWriteFunction.apply(this, argsClone); - } - else { - origWriteFunction.apply(this, arguments); - } - }; - } - function encodeNewlinesInString(str) { - return str.replace(findInternalNewlinesRegex, encodedNewline); - } - - - /***/ - }), -/* 3 */ -/***/ (function (module, exports) { - - module.exports = require("net"); - - /***/ - }), -/* 4 */ -/***/ (function (module, exports) { - - module.exports = require("path"); - - /***/ - }), -/* 5 */ -/***/ (function (module, exports) { - - module.exports = require("readline"); - - /***/ - }), -/* 6 */ -/***/ (function (module, exports, __webpack_require__) { - - "use strict"; - - exports.__esModule = true; - function parseArgs(args) { - // Very simplistic parsing which is sufficient for the cases needed. We don't want to bring in any external - // dependencies (such as an args-parsing library) to this file. - var result = {}; - var currentKey = null; - args.forEach(function (arg) { - if (arg.indexOf('--') === 0) { - var argName = arg.substring(2); - result[argName] = undefined; - currentKey = argName; - } - else if (currentKey) { - result[currentKey] = arg; - currentKey = null; - } - }); - return result; - } - exports.parseArgs = parseArgs; - - - /***/ - }), -/* 7 */ -/***/ (function (module, exports, __webpack_require__) { - - "use strict"; - - /* - In general, we want the Node child processes to be terminated as soon as the parent .NET processes exit, - because we have no further use for them. If the .NET process shuts down gracefully, it will run its - finalizers, one of which (in OutOfProcessNodeInstance.cs) will kill its associated Node process immediately. - - But if the .NET process is terminated forcefully (e.g., on Linux/OSX with 'kill -9'), then it won't have - any opportunity to shut down its child processes, and by default they will keep running. In this case, it's - up to the child process to detect this has happened and terminate itself. - - There are many possible approaches to detecting when a parent process has exited, most of which behave - differently between Windows and Linux/OS X: - - - On Windows, the parent process can mark its child as being a 'job' that should auto-terminate when - the parent does (http://stackoverflow.com/a/4657392). Not cross-platform. - - The child Node process can get a callback when the parent disconnects (process.on('disconnect', ...)). - But despite http://stackoverflow.com/a/16487966, no callback fires in any case I've tested (Windows / OS X). - - The child Node process can get a callback when its stdin/stdout are disconnected, as described at - http://stackoverflow.com/a/15693934. This works well on OS X, but calling stdout.resume() on Windows - causes the process to terminate prematurely. - - I don't know why, but on Windows, it's enough to invoke process.stdin.resume(). For some reason this causes - the child Node process to exit as soon as the parent one does, but I don't see this documented anywhere. - - You can poll to see if the parent process, or your stdin/stdout connection to it, is gone - - You can directly pass a parent process PID to the child, and then have the child poll to see if it's - still running (e.g., using process.kill(pid, 0), which doesn't kill it but just tests whether it exists, - as per https://nodejs.org/api/process.html#process_process_kill_pid_signal) - - Or, on each poll, you can try writing to process.stdout. If the parent has died, then this will throw. - However I don't see this documented anywhere. It would be nice if you could just poll for whether or not - process.stdout is still connected (without actually writing to it) but I haven't found any property whose - value changes until you actually try to write to it. - - Of these, the only cross-platform approach that is actually documented as a valid strategy is simply polling - to check whether the parent PID is still running. So that's what we do here. - */ - exports.__esModule = true; - var pollIntervalMs = 1000; - function exitWhenParentExits(parentPid, ignoreSigint) { - setInterval(function () { - if (!processExists(parentPid)) { - // Can't log anything at this point, because out stdout was connected to the parent, - // but the parent is gone. - process.exit(); - } - }, pollIntervalMs); - if (ignoreSigint) { - // Pressing ctrl+c in the terminal sends a SIGINT to all processes in the foreground process tree. - // By default, the Node process would then exit before the .NET process, because ASP.NET implements - // a delayed shutdown to allow ongoing requests to complete. - // - // This is problematic, because if Node exits first, the CopyToAsync code in ConditionalProxyMiddleware - // will experience a read fault, and logs a huge load of errors. Fortunately, since the Node process is - // already set up to shut itself down if it detects the .NET process is terminated, all we have to do is - // ignore the SIGINT. The Node process will then terminate automatically after the .NET process does. - // - // A better solution would be to have WebpackDevMiddleware listen for SIGINT and gracefully close any - // ongoing EventSource connections before letting the Node process exit, independently of the .NET - // process exiting. However, doing this well in general is very nontrivial (see all the discussion at - // https://github.com/nodejs/node/issues/2642). - process.on('SIGINT', function () { - console.log('Received SIGINT. Waiting for .NET process to exit...'); - }); - } - } - exports.exitWhenParentExits = exitWhenParentExits; - function processExists(pid) { - try { - // Sending signal 0 - on all platforms - tests whether the process exists. As long as it doesn't - // throw, that means it does exist. - process.kill(pid, 0); - return true; - } - catch (ex) { - // If the reason for the error is that we don't have permission to ask about this process, - // report that as a separate problem. - if (ex.code === 'EPERM') { - throw new Error("Attempted to check whether process " + pid + " was running, but got a permissions error."); - } - return false; - } - } - - - /***/ - }), -/* 8 */ -/***/ (function (module, exports, __webpack_require__) { - - "use strict"; - - exports.__esModule = true; - var events_1 = __webpack_require__(9); - var VirtualConnection_1 = __webpack_require__(10); - // Keep this in sync with the equivalent constant in the .NET code. Both sides split up their transmissions into frames with this max length, - // and both will reject longer frames. - var MaxFrameBodyLength = 16 * 1024; - /** - * Accepts connections to a net.Server and adapts them to behave as multiplexed connections. That is, for each physical socket connection, - * we track a list of 'virtual connections' whose API is a Duplex stream. The remote clients may open and close as many virtual connections - * as they wish, reading and writing to them independently, without the overhead of establishing new physical connections each time. - */ - function createInterface(server) { - var emitter = new events_1.EventEmitter(); - server.on('connection', function (socket) { - // For each physical socket connection, maintain a set of virtual connections. Issue a notification whenever - // a new virtual connections is opened. - var childSockets = new VirtualConnectionsCollection(socket, function (virtualConnection) { - emitter.emit('connection', virtualConnection); - }); - }); - return emitter; - } - exports.createInterface = createInterface; - /** - * Tracks the 'virtual connections' associated with a single physical socket connection. - */ - var VirtualConnectionsCollection = /** @class */ (function () { - function VirtualConnectionsCollection(_socket, _onVirtualConnectionCallback) { - var _this = this; - this._socket = _socket; - this._onVirtualConnectionCallback = _onVirtualConnectionCallback; - this._currentFrameHeader = null; - this._virtualConnections = {}; - // If the remote end closes the physical socket, treat all the virtual connections as being closed remotely too - this._socket.on('close', function () { - Object.getOwnPropertyNames(_this._virtualConnections).forEach(function (id) { - // A 'null' frame signals that the connection was closed remotely - _this._virtualConnections[id].onReceivedData(null); - }); - }); - this._socket.on('readable', this._onIncomingDataAvailable.bind(this)); - } - /** - * This is called whenever the underlying socket signals that it may have some data available to read. It will synchronously read as many - * message frames as it can from the underlying socket, opens virtual connections as needed, and dispatches data to them. - */ - VirtualConnectionsCollection.prototype._onIncomingDataAvailable = function () { - var exhaustedAllData = false; - while (!exhaustedAllData) { - // We might already have a pending frame header from the previous time this method ran, but if not, that's the next thing we need to read - if (this._currentFrameHeader === null) { - this._currentFrameHeader = this._readNextFrameHeader(); - } - if (this._currentFrameHeader === null) { - // There's not enough data to fill a frameheader, so wait until more arrives later - // The next attempt to read from the socket will start from the same place this one did (incomplete reads don't consume any data) - exhaustedAllData = true; - } - else { - var frameBodyLength = this._currentFrameHeader.bodyLength; - var frameBodyOrNull = frameBodyLength > 0 ? this._socket.read(this._currentFrameHeader.bodyLength) : null; - if (frameBodyOrNull !== null || frameBodyLength === 0) { - // We have a complete frame header+body pair, so we can now dispatch this to a virtual connection. We set _currentFrameHeader back to null - // so that the next thing we try to read is the next frame header. - var headerCopy = this._currentFrameHeader; - this._currentFrameHeader = null; - this._onReceivedCompleteFrame(headerCopy, frameBodyOrNull); - } - else { - // There's not enough data to fill the pending frame body, so wait until more arrives later - // The next attempt to read from the socket will start from the same place this one did (incomplete reads don't consume any data) - exhaustedAllData = true; - } - } - } - }; - VirtualConnectionsCollection.prototype._onReceivedCompleteFrame = function (header, bodyIfNotEmpty) { - // An incoming zero-length frame signals that there's no more data to read. - // Signal this to the Node stream APIs by pushing a 'null' chunk to it. - var virtualConnection = this._getOrOpenVirtualConnection(header); - virtualConnection.onReceivedData(header.bodyLength > 0 ? bodyIfNotEmpty : null); - }; - VirtualConnectionsCollection.prototype._getOrOpenVirtualConnection = function (header) { - if (this._virtualConnections.hasOwnProperty(header.connectionIdString)) { - // It's an existing virtual connection - return this._virtualConnections[header.connectionIdString]; - } - else { - // It's a new one - return this._openVirtualConnection(header); - } - }; - VirtualConnectionsCollection.prototype._openVirtualConnection = function (header) { - var _this = this; - var beginWriteCallback = function (data, writeCompletedCallback) { - // Only send nonempty frames, since empty ones are a signal to close the virtual connection - if (data.length > 0) { - _this._sendFrame(header.connectionIdBinary, data, writeCompletedCallback); - } - }; - var newVirtualConnection = new VirtualConnection_1.VirtualConnection(beginWriteCallback); - newVirtualConnection.on('end', function () { - // The virtual connection was closed remotely. Clean up locally. - _this._onVirtualConnectionWasClosed(header.connectionIdString); - }); - newVirtualConnection.on('finish', function () { - // The virtual connection was closed locally. Clean up locally, and notify the remote that we're done. - _this._onVirtualConnectionWasClosed(header.connectionIdString); - _this._sendFrame(header.connectionIdBinary, Buffer.alloc(0)); - }); - this._virtualConnections[header.connectionIdString] = newVirtualConnection; - this._onVirtualConnectionCallback(newVirtualConnection); - return newVirtualConnection; - }; - /** - * Attempts to read a complete frame header, synchronously, from the underlying socket. - * If not enough data is available synchronously, returns null without consuming any data from the socket. - */ - VirtualConnectionsCollection.prototype._readNextFrameHeader = function () { - var headerBuf = this._socket.read(12); - if (headerBuf !== null) { - // We have enough data synchronously - var connectionIdBinary = headerBuf.slice(0, 8); - var connectionIdString = connectionIdBinary.toString('hex'); - var bodyLength = headerBuf.readInt32LE(8); - if (bodyLength < 0 || bodyLength > MaxFrameBodyLength) { - // Throwing here is going to bring down the whole process, so this cannot be allowed to happen in real use. - // But it won't happen in real use, because this is only used with our .NET client, which doesn't violate this rule. - throw new Error('Illegal frame body length: ' + bodyLength); - } - return { connectionIdBinary: connectionIdBinary, connectionIdString: connectionIdString, bodyLength: bodyLength }; - } - else { - // Not enough bytes are available synchronously, so none were consumed - return null; - } - }; - VirtualConnectionsCollection.prototype._sendFrame = function (connectionIdBinary, data, callback) { - // For all sends other than the last one, only invoke the callback if it failed. - // Also, only invoke the callback at most once. - var hasInvokedCallback = false; - var finalCallback = callback && (function (error) { - if (!hasInvokedCallback) { - hasInvokedCallback = true; - callback(error); - } - }); - var notFinalCallback = callback && (function (error) { - if (error) { - finalCallback(error); - } - }); - // The amount of data we're writing might exceed MaxFrameBodyLength, so split into frames as needed. - // Note that we always send at least one frame, even if it's empty (because that's the close-virtual-connection signal). - // If needed, this could be changed to send frames asynchronously, so that large sends could proceed in parallel - // (though that would involve making a clone of 'data', to avoid the risk of it being mutated during the send). - var bytesSent = 0; - do { - var nextFrameBodyLength = Math.min(MaxFrameBodyLength, data.length - bytesSent); - var isFinalChunk = (bytesSent + nextFrameBodyLength) === data.length; - this._socket.write(connectionIdBinary, notFinalCallback); - this._sendInt32LE(nextFrameBodyLength, notFinalCallback); - this._socket.write(data.slice(bytesSent, bytesSent + nextFrameBodyLength), isFinalChunk ? finalCallback : notFinalCallback); - bytesSent += nextFrameBodyLength; - } while (bytesSent < data.length); - }; - /** - * Sends a number serialized in the correct format for .NET to receive as a System.Int32 - */ - VirtualConnectionsCollection.prototype._sendInt32LE = function (value, callback) { - var buf = Buffer.alloc(4); - buf.writeInt32LE(value, 0); - this._socket.write(buf, callback); - }; - VirtualConnectionsCollection.prototype._onVirtualConnectionWasClosed = function (id) { - if (this._virtualConnections.hasOwnProperty(id)) { - delete this._virtualConnections[id]; - } - }; - return VirtualConnectionsCollection; - }()); - - - /***/ - }), -/* 9 */ -/***/ (function (module, exports) { - - module.exports = require("events"); - - /***/ - }), -/* 10 */ -/***/ (function (module, exports, __webpack_require__) { - - "use strict"; - - var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return extendStatics(d, b); - } - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - })(); - exports.__esModule = true; - var stream_1 = __webpack_require__(11); - /** - * Represents a virtual connection. Multiple virtual connections may be multiplexed over a single physical socket connection. - */ - var VirtualConnection = /** @class */ (function (_super) { - __extends(VirtualConnection, _super); - function VirtualConnection(_beginWriteCallback) { - var _this = _super.call(this) || this; - _this._beginWriteCallback = _beginWriteCallback; - _this._flowing = false; - _this._receivedDataQueue = []; - return _this; - } - VirtualConnection.prototype._read = function () { - this._flowing = true; - // Keep pushing data until we run out, or the underlying framework asks us to stop. - // When we finish, the 'flowing' state is detemined by whether more data is still being requested. - while (this._flowing && this._receivedDataQueue.length > 0) { - var nextChunk = this._receivedDataQueue.shift(); - this._flowing = this.push(nextChunk); - } - }; - VirtualConnection.prototype._write = function (chunk, encodingIfString, callback) { - if (typeof chunk === 'string') { - chunk = Buffer.from(chunk, encodingIfString); - } - this._beginWriteCallback(chunk, callback); - }; - VirtualConnection.prototype.onReceivedData = function (dataOrNullToSignalEOF) { - if (this._flowing) { - this._flowing = this.push(dataOrNullToSignalEOF); - } - else { - this._receivedDataQueue.push(dataOrNullToSignalEOF); - } - }; - return VirtualConnection; - }(stream_1.Duplex)); - exports.VirtualConnection = VirtualConnection; - - - /***/ - }), -/* 11 */ -/***/ (function (module, exports) { - - module.exports = require("stream"); - - /***/ - }) -/******/]))); diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/Microsoft.AspNetCore.NodeServices.Sockets.csproj b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/Microsoft.AspNetCore.NodeServices.Sockets.csproj deleted file mode 100644 index 453eb629b2..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/Microsoft.AspNetCore.NodeServices.Sockets.csproj +++ /dev/null @@ -1,26 +0,0 @@ - - - - Socket-based RPC for Microsoft.AspNetCore.NodeServices. - netcoreapp3.0 - - - - - - - - - - - - - - - - - - - - - diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/PhysicalConnections/NamedPipeConnection.cs b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/PhysicalConnections/NamedPipeConnection.cs deleted file mode 100644 index 5fcd667907..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/PhysicalConnections/NamedPipeConnection.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System.IO; -using System.IO.Pipes; -using System.Threading.Tasks; - -namespace Microsoft.AspNetCore.NodeServices.Sockets.PhysicalConnections -{ - internal class NamedPipeConnection : StreamConnection - { - private bool _disposedValue = false; - private NamedPipeClientStream _namedPipeClientStream; - -#pragma warning disable 1998 // Because in the NET451 code path, there's nothing to await - public override async Task Open(string address) - { - _namedPipeClientStream = new NamedPipeClientStream( - ".", - address, - PipeDirection.InOut, - PipeOptions.Asynchronous); - - await _namedPipeClientStream.ConnectAsync().ConfigureAwait(false); - - return _namedPipeClientStream; - } -#pragma warning restore 1998 - - public override void Dispose() - { - if (!_disposedValue) - { - if (_namedPipeClientStream != null) - { - _namedPipeClientStream.Dispose(); - } - - _disposedValue = true; - } - } - } -} \ No newline at end of file diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/PhysicalConnections/StreamConnection.cs b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/PhysicalConnections/StreamConnection.cs deleted file mode 100644 index cbd1f9902a..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/PhysicalConnections/StreamConnection.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.IO; -using System.Threading.Tasks; - -namespace Microsoft.AspNetCore.NodeServices.Sockets.PhysicalConnections -{ - internal abstract class StreamConnection : IDisposable - { - public abstract Task Open(string address); - public abstract void Dispose(); - - public static StreamConnection Create() - { - var useNamedPipes = System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform( - System.Runtime.InteropServices.OSPlatform.Windows); - if (useNamedPipes) - { - return new NamedPipeConnection(); - } - else - { - return new UnixDomainSocketConnection(); - } - } - } -} \ No newline at end of file diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/PhysicalConnections/UnixDomainSocketConnection.cs b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/PhysicalConnections/UnixDomainSocketConnection.cs deleted file mode 100644 index 6e7ebaceb4..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/PhysicalConnections/UnixDomainSocketConnection.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System.IO; -using System.Net.Sockets; -using System.Threading.Tasks; - -namespace Microsoft.AspNetCore.NodeServices.Sockets.PhysicalConnections -{ - internal class UnixDomainSocketConnection : StreamConnection - { - private bool _disposedValue = false; - private NetworkStream _networkStream; - private Socket _socket; - - public override async Task Open(string address) - { - var endPoint = new UnixDomainSocketEndPoint("/tmp/" + address); - _socket = new Socket(endPoint.AddressFamily, SocketType.Stream, ProtocolType.Unspecified); - await _socket.ConnectAsync(endPoint).ConfigureAwait(false); - _networkStream = new NetworkStream(_socket); - return _networkStream; - } - - public override void Dispose() - { - if (!_disposedValue) - { - if (_networkStream != null) - { - _networkStream.Dispose(); - } - - if (_socket != null) - { - _socket.Dispose(); - } - - _disposedValue = true; - } - } - } -} \ No newline at end of file diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/PhysicalConnections/UnixDomainSocketEndPoint.cs b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/PhysicalConnections/UnixDomainSocketEndPoint.cs deleted file mode 100644 index b001163293..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/PhysicalConnections/UnixDomainSocketEndPoint.cs +++ /dev/null @@ -1,86 +0,0 @@ -using System; -using System.Net; -using System.Net.Sockets; -using System.Text; - -namespace Microsoft.AspNetCore.NodeServices.Sockets.PhysicalConnections -{ - // From System.IO.Pipes/src/System/Net/Sockets/UnixDomainSocketEndPoint.cs (an internal class in System.IO.Pipes) - internal sealed class UnixDomainSocketEndPoint : EndPoint - { - private const AddressFamily EndPointAddressFamily = AddressFamily.Unix; - - private static readonly Encoding s_pathEncoding = Encoding.UTF8; - private static readonly int s_nativePathOffset = 2; // = offsetof(struct sockaddr_un, sun_path). It's the same on Linux and OSX - private static readonly int s_nativePathLength = 91; // sockaddr_un.sun_path at http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_un.h.html, -1 for terminator - private static readonly int s_nativeAddressSize = s_nativePathOffset + s_nativePathLength; - - private readonly string _path; - private readonly byte[] _encodedPath; - - public UnixDomainSocketEndPoint(string path) - { - if (path == null) - { - throw new ArgumentNullException(nameof(path)); - } - - _path = path; - _encodedPath = s_pathEncoding.GetBytes(_path); - - if (path.Length == 0 || _encodedPath.Length > s_nativePathLength) - { - throw new ArgumentOutOfRangeException(nameof(path)); - } - } - - internal UnixDomainSocketEndPoint(SocketAddress socketAddress) - { - if (socketAddress == null) - { - throw new ArgumentNullException(nameof(socketAddress)); - } - - if (socketAddress.Family != EndPointAddressFamily || - socketAddress.Size > s_nativeAddressSize) - { - throw new ArgumentOutOfRangeException(nameof(socketAddress)); - } - - if (socketAddress.Size > s_nativePathOffset) - { - _encodedPath = new byte[socketAddress.Size - s_nativePathOffset]; - for (int i = 0; i < _encodedPath.Length; i++) - { - _encodedPath[i] = socketAddress[s_nativePathOffset + i]; - } - - _path = s_pathEncoding.GetString(_encodedPath, 0, _encodedPath.Length); - } - else - { - _encodedPath = Array.Empty(); - _path = string.Empty; - } - } - - public override SocketAddress Serialize() - { - var result = new SocketAddress(AddressFamily.Unix, s_nativeAddressSize); - - for (int index = 0; index < _encodedPath.Length; index++) - { - result[s_nativePathOffset + index] = _encodedPath[index]; - } - result[s_nativePathOffset + _encodedPath.Length] = 0; // path must be null-terminated - - return result; - } - - public override EndPoint Create(SocketAddress socketAddress) => new UnixDomainSocketEndPoint(socketAddress); - - public override AddressFamily AddressFamily => EndPointAddressFamily; - - public override string ToString() => _path; - } -} \ No newline at end of file diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/SocketNodeInstance.cs b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/SocketNodeInstance.cs deleted file mode 100644 index 7559ae29db..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/SocketNodeInstance.cs +++ /dev/null @@ -1,240 +0,0 @@ -using System.IO; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.AspNetCore.NodeServices.HostingModels; -using Microsoft.AspNetCore.NodeServices.Sockets.PhysicalConnections; -using Microsoft.AspNetCore.NodeServices.Sockets.VirtualConnections; -using Microsoft.Extensions.Logging; -using Newtonsoft.Json; -using Newtonsoft.Json.Serialization; - -namespace Microsoft.AspNetCore.NodeServices.Sockets -{ - /// - /// A specialisation of the OutOfProcessNodeInstance base class that uses a lightweight binary streaming protocol - /// to perform RPC invocations. The physical transport is Named Pipes on Windows, or Domain Sockets on Linux/Mac. - /// For details on the binary streaming protocol, see - /// The advantage versus using HTTP for RPC is that this is faster (not surprisingly - there's much less overhead - /// because we don't need most of the functionality of HTTP. - /// - /// The address of the pipe/socket is selected randomly here on the .NET side and sent to the child process as a - /// command-line argument (the address space is wide enough that there's no real risk of a clash, unlike when - /// selecting TCP port numbers). - /// - /// - internal class SocketNodeInstance : OutOfProcessNodeInstance - { - private readonly static JsonSerializerSettings jsonSerializerSettings = new JsonSerializerSettings - { - ContractResolver = new CamelCasePropertyNamesContractResolver(), - TypeNameHandling = TypeNameHandling.None - }; - - private readonly static int streamBufferSize = 16 * 1024; - private readonly static UTF8Encoding utf8EncodingWithoutBom = new UTF8Encoding(false); - - private readonly SemaphoreSlim _connectionCreationSemaphore = new SemaphoreSlim(1); - private bool _connectionHasFailed; - private StreamConnection _physicalConnection; - private string _socketAddress; - private VirtualConnectionClient _virtualConnectionClient; - - public SocketNodeInstance(NodeServicesOptions options, string socketAddress) - : base( - EmbeddedResourceReader.Read( - typeof(SocketNodeInstance), - "/Content/Node/entrypoint-socket.js"), - options.ProjectPath, - options.WatchFileExtensions, - MakeNewCommandLineOptions(socketAddress), - options.ApplicationStoppingToken, - options.NodeInstanceOutputLogger, - options.EnvironmentVariables, - options.InvocationTimeoutMilliseconds, - options.LaunchWithDebugging, - options.DebuggingPort) - { - _socketAddress = socketAddress; - } - - protected override async Task InvokeExportAsync(NodeInvocationInfo invocationInfo, CancellationToken cancellationToken) - { - if (_connectionHasFailed) - { - // _connectionHasFailed implies a protocol-level error. The old instance is no longer of any use. - var allowConnectionDraining = false; - - // This special exception type forces NodeServicesImpl to restart the Node instance - throw new NodeInvocationException( - "The SocketNodeInstance socket connection failed. See logs to identify the reason.", - details: null, - nodeInstanceUnavailable: true, - allowConnectionDraining: allowConnectionDraining); - } - - if (_virtualConnectionClient == null) - { - // Although we could pass the cancellationToken into EnsureVirtualConnectionClientCreated and - // have it signal cancellations upstream, that would be a bad thing to do, because all callers - // wait for the same connection task. There's no reason why the first caller should have the - // special ability to cancel the connection process in a way that would affect subsequent - // callers. So, each caller just independently stops awaiting connection if that call is cancelled. - await ThrowOnCancellation(EnsureVirtualConnectionClientCreated(), cancellationToken); - } - - // For each invocation, we open a new virtual connection. This gives an API equivalent to opening a new - // physical connection to the child process, but without the overhead of doing so, because it's really - // just multiplexed into the existing physical connection stream. - bool shouldDisposeVirtualConnection = true; - Stream virtualConnection = null; - try - { - virtualConnection = _virtualConnectionClient.OpenVirtualConnection(); - - // Send request - WriteJsonLine(virtualConnection, invocationInfo); - - // Determine what kind of response format is expected - if (typeof(T) == typeof(Stream)) - { - // Pass through streamed binary response - // It is up to the consumer to dispose this stream, so don't do so here - shouldDisposeVirtualConnection = false; - return (T)(object)virtualConnection; - } - else - { - // Parse and return non-streamed JSON response - var response = await ReadJsonAsync>(virtualConnection, cancellationToken); - if (response.ErrorMessage != null) - { - throw new NodeInvocationException(response.ErrorMessage, response.ErrorDetails); - } - - return response.Result; - } - } - finally - { - if (shouldDisposeVirtualConnection) - { - virtualConnection.Dispose(); - } - } - } - - private async Task EnsureVirtualConnectionClientCreated() - { - // Asynchronous equivalent to a 'lock(...) { ... }' - await _connectionCreationSemaphore.WaitAsync(); - try - { - if (_virtualConnectionClient == null) - { - _physicalConnection = StreamConnection.Create(); - - var connection = await _physicalConnection.Open(_socketAddress); - _virtualConnectionClient = new VirtualConnectionClient(connection); - _virtualConnectionClient.OnError += (ex) => - { - // This callback is fired only if there's a protocol-level failure (e.g., child process disconnected - // unexpectedly). It does *not* fire when RPC calls return errors. Since there's been a protocol-level - // failure, this Node instance is no longer usable and should be discarded. - _connectionHasFailed = true; - - OutputLogger.LogError(0, ex, ex.Message); - }; - } - } - finally - { - _connectionCreationSemaphore.Release(); - } - } - - protected override void Dispose(bool disposing) - { - if (disposing) - { - if (_virtualConnectionClient != null) - { - _virtualConnectionClient.Dispose(); - _virtualConnectionClient = null; - } - - if (_physicalConnection != null) - { - _physicalConnection.Dispose(); - _physicalConnection = null; - } - } - - base.Dispose(disposing); - } - - private static void WriteJsonLine(Stream stream, object serializableObject) - { - using (var streamWriter = new StreamWriter(stream, utf8EncodingWithoutBom, streamBufferSize, true)) - using (var jsonWriter = new JsonTextWriter(streamWriter)) - { - jsonWriter.CloseOutput = false; - jsonWriter.AutoCompleteOnClose = false; - - var serializer = JsonSerializer.Create(jsonSerializerSettings); - serializer.Serialize(jsonWriter, serializableObject); - jsonWriter.Flush(); - - streamWriter.WriteLine(); - streamWriter.Flush(); - } - } - - private static async Task ReadJsonAsync(Stream stream, CancellationToken cancellationToken) - { - var json = Encoding.UTF8.GetString(await ReadAllBytesAsync(stream, cancellationToken)); - return JsonConvert.DeserializeObject(json, jsonSerializerSettings); - } - - private static async Task ReadAllBytesAsync(Stream input, CancellationToken cancellationToken) - { - byte[] buffer = new byte[streamBufferSize]; - - using (var ms = new MemoryStream()) - { - int read; - while ((read = await input.ReadAsync(buffer, 0, buffer.Length, cancellationToken)) > 0) - { - ms.Write(buffer, 0, read); - } - - return ms.ToArray(); - } - } - - private static string MakeNewCommandLineOptions(string listenAddress) - { - return $"--listenAddress {listenAddress}"; - } - - private static Task ThrowOnCancellation(Task task, CancellationToken cancellationToken) - { - return task.IsCompleted - ? task // If the task is already completed, no need to wrap it in a further layer of task - : task.ContinueWith( - _ => {}, // If the task completes, allow execution to continue - cancellationToken, - TaskContinuationOptions.ExecuteSynchronously, - TaskScheduler.Default); - } - -#pragma warning disable 649 // These properties are populated via JSON deserialization - private class RpcJsonResponse - { - public TResult Result { get; set; } - public string ErrorMessage { get; set; } - public string ErrorDetails { get; set; } - } -#pragma warning restore 649 - } -} diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/SocketNodeServicesOptionsExtensions.cs b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/SocketNodeServicesOptionsExtensions.cs deleted file mode 100644 index 4535638678..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/SocketNodeServicesOptionsExtensions.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; - -namespace Microsoft.AspNetCore.NodeServices.Sockets -{ - /// - /// Extension methods that help with populating a object. - /// - public static class NodeServicesOptionsExtensions - { - /// - /// Configures the service so that it will use out-of-process - /// Node.js instances and perform RPC calls over binary sockets (on Windows, this is - /// implemented as named pipes; on other platforms it uses domain sockets). - /// - public static void UseSocketHosting(this NodeServicesOptions options) - { - var pipeName = "pni-" + Guid.NewGuid().ToString("D"); // Arbitrary non-clashing string - options.NodeInstanceFactory = () => new SocketNodeInstance(options, pipeName); - } - } -} \ No newline at end of file diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/TypeScript/SocketNodeInstanceEntryPoint.ts b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/TypeScript/SocketNodeInstanceEntryPoint.ts deleted file mode 100644 index dccc63b099..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/TypeScript/SocketNodeInstanceEntryPoint.ts +++ /dev/null @@ -1,79 +0,0 @@ -// Limit dependencies to core Node modules. This means the code in this file has to be very low-level and unattractive, -// but simplifies things for the consumer of this module. -import '../../Microsoft.AspNetCore.NodeServices/TypeScript/Util/OverrideStdOutputs'; -import * as net from 'net'; -import * as path from 'path'; -import * as readline from 'readline'; -import { Duplex } from 'stream'; -import { parseArgs } from '../../Microsoft.AspNetCore.NodeServices/TypeScript/Util/ArgsUtil'; -import { exitWhenParentExits } from '../../Microsoft.AspNetCore.NodeServices/TypeScript/Util/ExitWhenParentExits'; -import * as virtualConnectionServer from './VirtualConnections/VirtualConnectionServer'; - -// Webpack doesn't support dynamic requires for files not present at compile time, so grab a direct -// reference to Node's runtime 'require' function. -const dynamicRequire: (name: string) => any = eval('require'); - -// Signal to the .NET side when we're ready to accept invocations -const server = net.createServer().on('listening', () => { - console.log('[Microsoft.AspNetCore.NodeServices:Listening]'); -}); - -// Each virtual connection represents a separate invocation -virtualConnectionServer.createInterface(server).on('connection', (connection: Duplex) => { - readline.createInterface(connection, null).on('line', line => { - try { - // Get a reference to the function to invoke - const invocation = JSON.parse(line) as RpcInvocation; - const invokedModule = dynamicRequire(path.resolve(process.cwd(), invocation.moduleName)); - const invokedFunction = invocation.exportedFunctionName ? invokedModule[invocation.exportedFunctionName] : invokedModule; - - // Prepare a callback for accepting non-streamed JSON responses - let hasInvokedCallback = false; - const invocationCallback = (errorValue, successValue) => { - if (hasInvokedCallback) { - throw new Error('Cannot supply more than one result. The callback has already been invoked,' - + ' or the result stream has already been accessed'); - } - - hasInvokedCallback = true; - connection.end(JSON.stringify({ - result: successValue, - errorMessage: errorValue && (errorValue.message || errorValue), - errorDetails: errorValue && (errorValue.stack || null) - })); - }; - - // Also support streamed binary responses - Object.defineProperty(invocationCallback, 'stream', { - enumerable: true, - get: (): Duplex => { - hasInvokedCallback = true; - return connection; - } - }); - - // Actually invoke it, passing through any supplied args - invokedFunction.apply(null, [invocationCallback].concat(invocation.args)); - } catch (ex) { - connection.end(JSON.stringify({ - errorMessage: ex.message, - errorDetails: ex.stack - })); - } - }); -}); - -// Begin listening now. The underlying transport varies according to the runtime platform. -// On Windows it's Named Pipes; on Linux/OSX it's Domain Sockets. -const useWindowsNamedPipes = /^win/.test(process.platform); -const parsedArgs = parseArgs(process.argv); -const listenAddress = (useWindowsNamedPipes ? '\\\\.\\pipe\\' : '/tmp/') + parsedArgs.listenAddress; -server.listen(listenAddress); - -exitWhenParentExits(parseInt(parsedArgs.parentPid), /* ignoreSigint */ true); - -interface RpcInvocation { - moduleName: string; - exportedFunctionName: string; - args: any[]; -} diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/TypeScript/VirtualConnections/VirtualConnection.ts b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/TypeScript/VirtualConnections/VirtualConnection.ts deleted file mode 100644 index 763944097e..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/TypeScript/VirtualConnections/VirtualConnection.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { Duplex } from 'stream'; - -export type EndWriteCallback = (error?: any) => void; -export type BeginWriteCallback = (data: Buffer, callback: EndWriteCallback) => void; - -/** - * Represents a virtual connection. Multiple virtual connections may be multiplexed over a single physical socket connection. - */ -export class VirtualConnection extends Duplex { - private _flowing = false; - private _receivedDataQueue: Buffer[] = []; - - constructor(private _beginWriteCallback: BeginWriteCallback) { - super(); - } - - public _read() { - this._flowing = true; - - // Keep pushing data until we run out, or the underlying framework asks us to stop. - // When we finish, the 'flowing' state is detemined by whether more data is still being requested. - while (this._flowing && this._receivedDataQueue.length > 0) { - const nextChunk = this._receivedDataQueue.shift(); - this._flowing = this.push(nextChunk); - } - } - - public _write(chunk: Buffer | string, encodingIfString: string, callback: EndWriteCallback) { - if (typeof chunk === 'string') { - chunk = Buffer.from(chunk as string, encodingIfString); - } - - this._beginWriteCallback(chunk as Buffer, callback); - } - - public onReceivedData(dataOrNullToSignalEOF: Buffer) { - if (this._flowing) { - this._flowing = this.push(dataOrNullToSignalEOF); - } else { - this._receivedDataQueue.push(dataOrNullToSignalEOF); - } - } -} diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/TypeScript/VirtualConnections/VirtualConnectionServer.ts b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/TypeScript/VirtualConnections/VirtualConnectionServer.ts deleted file mode 100644 index 5dbf9698a8..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/TypeScript/VirtualConnections/VirtualConnectionServer.ts +++ /dev/null @@ -1,199 +0,0 @@ -import { Server, Socket } from 'net'; -import { EventEmitter } from 'events'; -import { Duplex } from 'stream'; -import { VirtualConnection, EndWriteCallback } from './VirtualConnection'; - -// Keep this in sync with the equivalent constant in the .NET code. Both sides split up their transmissions into frames with this max length, -// and both will reject longer frames. -const MaxFrameBodyLength = 16 * 1024; - -/** - * Accepts connections to a net.Server and adapts them to behave as multiplexed connections. That is, for each physical socket connection, - * we track a list of 'virtual connections' whose API is a Duplex stream. The remote clients may open and close as many virtual connections - * as they wish, reading and writing to them independently, without the overhead of establishing new physical connections each time. - */ -export function createInterface(server: Server): EventEmitter { - const emitter = new EventEmitter(); - - server.on('connection', (socket: Socket) => { - // For each physical socket connection, maintain a set of virtual connections. Issue a notification whenever - // a new virtual connections is opened. - const childSockets = new VirtualConnectionsCollection(socket, virtualConnection => { - emitter.emit('connection', virtualConnection); - }); - }); - - return emitter; -} - -/** - * Tracks the 'virtual connections' associated with a single physical socket connection. - */ -class VirtualConnectionsCollection { - private _currentFrameHeader: FrameHeader = null; - private _virtualConnections: { [id: string]: VirtualConnection } = {}; - - constructor(private _socket: Socket, private _onVirtualConnectionCallback: (virtualConnection: Duplex) => void) { - // If the remote end closes the physical socket, treat all the virtual connections as being closed remotely too - this._socket.on('close', () => { - Object.getOwnPropertyNames(this._virtualConnections).forEach(id => { - // A 'null' frame signals that the connection was closed remotely - this._virtualConnections[id].onReceivedData(null); - }); - }); - - this._socket.on('readable', this._onIncomingDataAvailable.bind(this)); - } - - /** - * This is called whenever the underlying socket signals that it may have some data available to read. It will synchronously read as many - * message frames as it can from the underlying socket, opens virtual connections as needed, and dispatches data to them. - */ - private _onIncomingDataAvailable() { - let exhaustedAllData = false; - - while (!exhaustedAllData) { - // We might already have a pending frame header from the previous time this method ran, but if not, that's the next thing we need to read - if (this._currentFrameHeader === null) { - this._currentFrameHeader = this._readNextFrameHeader(); - } - - if (this._currentFrameHeader === null) { - // There's not enough data to fill a frameheader, so wait until more arrives later - // The next attempt to read from the socket will start from the same place this one did (incomplete reads don't consume any data) - exhaustedAllData = true; - } else { - const frameBodyLength = this._currentFrameHeader.bodyLength; - const frameBodyOrNull: Buffer = frameBodyLength > 0 ? this._socket.read(this._currentFrameHeader.bodyLength) : null; - if (frameBodyOrNull !== null || frameBodyLength === 0) { - // We have a complete frame header+body pair, so we can now dispatch this to a virtual connection. We set _currentFrameHeader back to null - // so that the next thing we try to read is the next frame header. - const headerCopy = this._currentFrameHeader; - this._currentFrameHeader = null; - this._onReceivedCompleteFrame(headerCopy, frameBodyOrNull); - } else { - // There's not enough data to fill the pending frame body, so wait until more arrives later - // The next attempt to read from the socket will start from the same place this one did (incomplete reads don't consume any data) - exhaustedAllData = true; - } - } - } - } - - private _onReceivedCompleteFrame(header: FrameHeader, bodyIfNotEmpty: Buffer) { - // An incoming zero-length frame signals that there's no more data to read. - // Signal this to the Node stream APIs by pushing a 'null' chunk to it. - const virtualConnection = this._getOrOpenVirtualConnection(header); - virtualConnection.onReceivedData(header.bodyLength > 0 ? bodyIfNotEmpty : null); - } - - private _getOrOpenVirtualConnection(header: FrameHeader) { - if (this._virtualConnections.hasOwnProperty(header.connectionIdString)) { - // It's an existing virtual connection - return this._virtualConnections[header.connectionIdString]; - } else { - // It's a new one - return this._openVirtualConnection(header); - } - } - - private _openVirtualConnection(header: FrameHeader) { - const beginWriteCallback = (data, writeCompletedCallback) => { - // Only send nonempty frames, since empty ones are a signal to close the virtual connection - if (data.length > 0) { - this._sendFrame(header.connectionIdBinary, data, writeCompletedCallback); - } - }; - - const newVirtualConnection = new VirtualConnection(beginWriteCallback); - newVirtualConnection.on('end', () => { - // The virtual connection was closed remotely. Clean up locally. - this._onVirtualConnectionWasClosed(header.connectionIdString); - }); - newVirtualConnection.on('finish', () => { - // The virtual connection was closed locally. Clean up locally, and notify the remote that we're done. - this._onVirtualConnectionWasClosed(header.connectionIdString); - this._sendFrame(header.connectionIdBinary, Buffer.alloc(0)); - }); - - this._virtualConnections[header.connectionIdString] = newVirtualConnection; - this._onVirtualConnectionCallback(newVirtualConnection); - return newVirtualConnection; - } - - /** - * Attempts to read a complete frame header, synchronously, from the underlying socket. - * If not enough data is available synchronously, returns null without consuming any data from the socket. - */ - private _readNextFrameHeader(): FrameHeader { - const headerBuf: Buffer = this._socket.read(12); - if (headerBuf !== null) { - // We have enough data synchronously - const connectionIdBinary = headerBuf.slice(0, 8); - const connectionIdString = connectionIdBinary.toString('hex'); - const bodyLength = headerBuf.readInt32LE(8); - if (bodyLength < 0 || bodyLength > MaxFrameBodyLength) { - // Throwing here is going to bring down the whole process, so this cannot be allowed to happen in real use. - // But it won't happen in real use, because this is only used with our .NET client, which doesn't violate this rule. - throw new Error('Illegal frame body length: ' + bodyLength); - } - - return { connectionIdBinary, connectionIdString, bodyLength }; - } else { - // Not enough bytes are available synchronously, so none were consumed - return null; - } - } - - private _sendFrame(connectionIdBinary: Buffer, data: Buffer, callback?: EndWriteCallback) { - // For all sends other than the last one, only invoke the callback if it failed. - // Also, only invoke the callback at most once. - let hasInvokedCallback = false; - const finalCallback: EndWriteCallback = callback && (error => { - if (!hasInvokedCallback) { - hasInvokedCallback = true; - callback(error); - } - }); - const notFinalCallback: EndWriteCallback = callback && (error => { - if (error) { - finalCallback(error); - } - }); - - // The amount of data we're writing might exceed MaxFrameBodyLength, so split into frames as needed. - // Note that we always send at least one frame, even if it's empty (because that's the close-virtual-connection signal). - // If needed, this could be changed to send frames asynchronously, so that large sends could proceed in parallel - // (though that would involve making a clone of 'data', to avoid the risk of it being mutated during the send). - let bytesSent = 0; - do { - const nextFrameBodyLength = Math.min(MaxFrameBodyLength, data.length - bytesSent); - const isFinalChunk = (bytesSent + nextFrameBodyLength) === data.length; - this._socket.write(connectionIdBinary, notFinalCallback); - this._sendInt32LE(nextFrameBodyLength, notFinalCallback); - this._socket.write(data.slice(bytesSent, bytesSent + nextFrameBodyLength), isFinalChunk ? finalCallback : notFinalCallback); - bytesSent += nextFrameBodyLength; - } while (bytesSent < data.length); - } - - /** - * Sends a number serialized in the correct format for .NET to receive as a System.Int32 - */ - private _sendInt32LE(value: number, callback?: EndWriteCallback) { - const buf = Buffer.alloc(4); - buf.writeInt32LE(value, 0); - this._socket.write(buf, callback); - } - - private _onVirtualConnectionWasClosed(id: string) { - if (this._virtualConnections.hasOwnProperty(id)) { - delete this._virtualConnections[id]; - } - } -} - -interface FrameHeader { - connectionIdBinary: Buffer; - connectionIdString: string; - bodyLength: number; -} diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/VirtualConnections/VirtualConnection.cs b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/VirtualConnections/VirtualConnection.cs deleted file mode 100644 index 391b1f760d..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/VirtualConnections/VirtualConnection.cs +++ /dev/null @@ -1,150 +0,0 @@ -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; -using System.Threading.Tasks.Dataflow; - -namespace Microsoft.AspNetCore.NodeServices.Sockets.VirtualConnections -{ - /// - /// A virtual read/write connection, typically to a remote process. Multiple virtual connections can be - /// multiplexed over a single physical connection (e.g., a named pipe, domain socket, or TCP socket). - /// - internal class VirtualConnection : Stream - { - private readonly static Task CompletedTask = Task.CompletedTask; - private VirtualConnectionClient _host; - private readonly BufferBlock _receivedDataQueue = new BufferBlock(); - private ArraySegment _receivedDataNotYetUsed; - private bool _wasClosedByRemote; - private bool _isDisposed; - - public VirtualConnection(long id, VirtualConnectionClient host) - { - Id = id; - _host = host; - } - - public long Id { get; } - - public override bool CanRead { get { return true; } } - public override bool CanSeek { get { return false; } } - public override bool CanWrite { get { return true; } } - - public override long Length - { - get { throw new NotImplementedException(); } - } - - public override long Position - { - get { throw new NotImplementedException(); } - set { throw new NotImplementedException(); } - } - - public override void Flush() - { - // We're auto-flushing, so this is a no-op. - } - - public override async Task ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) - { - if (_wasClosedByRemote) - { - return 0; - } - - var bytesRead = 0; - while (true) - { - // Pull as many applicable bytes as we can out of receivedDataNotYetUsed, then update its offset/length - int bytesToExtract = Math.Min(count - bytesRead, _receivedDataNotYetUsed.Count); - if (bytesToExtract > 0) - { - Buffer.BlockCopy(_receivedDataNotYetUsed.Array, _receivedDataNotYetUsed.Offset, buffer, bytesRead, bytesToExtract); - _receivedDataNotYetUsed = new ArraySegment(_receivedDataNotYetUsed.Array, _receivedDataNotYetUsed.Offset + bytesToExtract, _receivedDataNotYetUsed.Count - bytesToExtract); - bytesRead += bytesToExtract; - } - - // If we've completely filled the output buffer, we're done - if (bytesRead == count) - { - return bytesRead; - } - - // We haven't yet filled the output buffer, so we must have exhausted receivedDataNotYetUsed instead. - // We want to get the next block of data from the underlying queue. - byte[] nextReceivedBlock; - if (bytesRead > 0) - { - if (!_receivedDataQueue.TryReceive(null, out nextReceivedBlock)) - { - // No more data is available synchronously, and we already have some data, so we can stop now - return bytesRead; - } - } - else - { - // Since we don't yet have anything, wait for the underlying source - nextReceivedBlock = await _receivedDataQueue.ReceiveAsync(cancellationToken); - } - - if (nextReceivedBlock.Length == 0) - { - // A zero-length block signals that the remote regards this virtual connection as closed - _wasClosedByRemote = true; - return bytesRead; - } - else - { - // We got some more data, so can continue trying to fill the output buffer - _receivedDataNotYetUsed = new ArraySegment(nextReceivedBlock, 0, nextReceivedBlock.Length); - } - } - } - - public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) - { - if (_wasClosedByRemote) - { - throw new InvalidOperationException("The connection was already closed by the remote party"); - } - - return count > 0 ? _host.WriteAsync(Id, buffer, offset, count, cancellationToken) : CompletedTask; - } - - public override int Read(byte[] buffer, int offset, int count) - { - return ReadAsync(buffer, offset, count, CancellationToken.None).Result; - } - - public override long Seek(long offset, SeekOrigin origin) - { - throw new NotImplementedException(); - } - - public override void SetLength(long value) - { - throw new NotImplementedException(); - } - - public override void Write(byte[] buffer, int offset, int count) - { - WriteAsync(buffer, offset, count, CancellationToken.None).Wait(); - } - - protected override void Dispose(bool disposing) - { - if (disposing && !_isDisposed) - { - _isDisposed = true; - _host.CloseInnerStream(Id, _wasClosedByRemote); - } - } - - public async Task AddDataToQueue(byte[] data) - { - await _receivedDataQueue.SendAsync(data); - } - } -} \ No newline at end of file diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/VirtualConnections/VirtualConnectionClient.cs b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/VirtualConnections/VirtualConnectionClient.cs deleted file mode 100644 index 48ec967758..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/VirtualConnections/VirtualConnectionClient.cs +++ /dev/null @@ -1,238 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; - -namespace Microsoft.AspNetCore.NodeServices.Sockets.VirtualConnections -{ - /// - /// A callback that will be invoked if the encounters a read error. - /// - /// - public delegate void VirtualConnectionReadErrorHandler(Exception ex); - - /// - /// Wraps an underlying physical read/write stream (e.g., named pipes, domain sockets, or TCP sockets) and - /// exposes an API for making 'virtual connections', which act as independent read/write streams. - /// Traffic over these virtual connections is multiplexed over the underlying physical stream. This is useful - /// for fast stream-based inter-process communication because it avoids the overhead of opening a new physical - /// connection each time a new communication channel is needed. - /// - internal class VirtualConnectionClient : IDisposable - { - internal const int MaxFrameBodyLength = 16 * 1024; - - public event VirtualConnectionReadErrorHandler OnError; - - private Stream _underlyingTransport; - private Dictionary _activeInnerStreams; - private long _nextInnerStreamId; - private readonly SemaphoreSlim _streamWriterSemaphore = new SemaphoreSlim(1); - private readonly object _readControlLock = new object(); - private Exception _readLoopExitedWithException; - private readonly CancellationTokenSource _disposalCancellatonToken = new CancellationTokenSource(); - private bool _disposedValue = false; - - public VirtualConnectionClient(Stream underlyingTransport) - { - _underlyingTransport = underlyingTransport; - _activeInnerStreams = new Dictionary(); - - RunReadLoop(); - } - - public Stream OpenVirtualConnection() - { - // Improve discoverability of read-loop errors (in case the developer doesn't add an OnError listener) - ThrowIfReadLoopFailed(); - - var id = Interlocked.Increment(ref _nextInnerStreamId); - var newInnerStream = new VirtualConnection(id, this); - lock (_activeInnerStreams) - { - _activeInnerStreams.Add(id, newInnerStream); - } - - return newInnerStream; - } - - // It's async void because nothing waits for it to finish (it continues indefinitely). It signals any errors via - // a separate channel. - private async void RunReadLoop() - { - try - { - while (!_disposalCancellatonToken.IsCancellationRequested) - { - var remoteIsStillConnected = await ProcessNextFrameAsync(); - if (!remoteIsStillConnected) - { - CloseAllActiveStreams(); - } - } - } - catch (Exception ex) - { - // Not all underlying transports correctly honor cancellation tokens. For example, - // DomainSocketStreamTransport's ReadAsync ignores them, so we only know to stop - // the read loop when the underlying stream is disposed and then it throws ObjectDisposedException. - if (!(ex is TaskCanceledException || ex is ObjectDisposedException)) - { - _readLoopExitedWithException = ex; - - var evt = OnError; - if (evt != null) - { - evt(ex); - } - } - } - } - - private async Task ProcessNextFrameAsync() - { - // First read frame header - var frameHeaderBuffer = await ReadExactLength(12); - if (frameHeaderBuffer == null) - { - return false; // Underlying stream was closed - } - - // Parse frame header, then read the frame body - long streamId = BitConverter.ToInt64(frameHeaderBuffer, 0); - int frameBodyLength = BitConverter.ToInt32(frameHeaderBuffer, 8); - if (frameBodyLength < 0 || frameBodyLength > MaxFrameBodyLength) - { - throw new InvalidDataException("Illegal frame length: " + frameBodyLength); - } - - var frameBody = await ReadExactLength(frameBodyLength); - if (frameBody == null) - { - return false; // Underlying stream was closed - } - - // Dispatch the frame to the relevant inner stream - VirtualConnection innerStream; - lock (_activeInnerStreams) - { - _activeInnerStreams.TryGetValue(streamId, out innerStream); - } - - if (innerStream != null) - { - await innerStream.AddDataToQueue(frameBody); - } - - return true; - } - - private async Task ReadExactLength(int lengthToRead) { - byte[] buffer = new byte[lengthToRead]; - var totalBytesRead = 0; - var ct = _disposalCancellatonToken.Token; - while (totalBytesRead < lengthToRead) - { - var chunkLengthRead = await _underlyingTransport.ReadAsync(buffer, totalBytesRead, lengthToRead - totalBytesRead, ct); - if (chunkLengthRead == 0) - { - // Underlying stream was closed - return null; - } - - totalBytesRead += chunkLengthRead; - } - - return buffer; - } - - private void CloseAllActiveStreams() - { - IList innerStreamsCopy; - - // Only hold the lock while cloning the list of inner streams. Release the lock before - // actually disposing them, because each 'dispose' call will try to take another lock - // so it can remove that inner stream from activeInnerStreams. - lock (_activeInnerStreams) - { - innerStreamsCopy = _activeInnerStreams.Values.ToList(); - } - - foreach (var stream in innerStreamsCopy) - { - stream.Dispose(); - } - } - - public void Dispose() - { - if (!_disposedValue) - { - _disposedValue = true; - - _disposalCancellatonToken.Cancel(); // Stops the read loop - CloseAllActiveStreams(); - } - } - - public async Task WriteAsync(long innerStreamId, byte[] data, int offset, int count, CancellationToken cancellationToken) - { - // In case the amount of data to be sent exceeds the max frame length, split it into separate frames - // Note that we always send at least one frame, even if it's empty, because the zero-length frame is the signal to close a virtual connection - // (hence 'do..while' instead of just 'while'). - int bytesWritten = 0; - do { - // Improve discoverability of read-loop errors (in case the developer doesn't add an OnError listener) - ThrowIfReadLoopFailed(); - - // Hold the write lock only for the time taken to send a single frame, not all frames, to allow large sends to be proceed in parallel - await _streamWriterSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false); - try - { - // Write stream ID, then length prefix, then chunk payload, then flush - var nextChunkBodyLength = Math.Min(MaxFrameBodyLength, count - bytesWritten); - await _underlyingTransport.WriteAsync(BitConverter.GetBytes(innerStreamId), 0, 8, cancellationToken).ConfigureAwait(false); - await _underlyingTransport.WriteAsync(BitConverter.GetBytes(nextChunkBodyLength), 0, 4, cancellationToken).ConfigureAwait(false); - - if (nextChunkBodyLength > 0) - { - await _underlyingTransport.WriteAsync(data, offset + bytesWritten, nextChunkBodyLength, cancellationToken).ConfigureAwait(false); - bytesWritten += nextChunkBodyLength; - } - - await _underlyingTransport.FlushAsync(cancellationToken).ConfigureAwait(false); - } - finally - { - _streamWriterSemaphore.Release(); - } - } while (bytesWritten < count); - } - - public void CloseInnerStream(long innerStreamId, bool isAlreadyClosedRemotely) - { - lock (_activeInnerStreams) - { - if (_activeInnerStreams.ContainsKey(innerStreamId)) - { - _activeInnerStreams.Remove(innerStreamId); - } - } - - if (!isAlreadyClosedRemotely) { - // Also notify the remote that this innerstream is closed - WriteAsync(innerStreamId, new byte[0], 0, 0, new CancellationToken()).Wait(); - } - } - - private void ThrowIfReadLoopFailed() - { - if (_readLoopExitedWithException != null) - { - throw new AggregateException("The connection failed - see InnerException for details.", _readLoopExitedWithException); - } - } - } -} \ No newline at end of file diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/baseline.netcore.json b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/baseline.netcore.json deleted file mode 100644 index ad4020174e..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/baseline.netcore.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "AssemblyIdentity": "Microsoft.AspNetCore.NodeServices.Sockets, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", - "Types": [ - { - "Name": "Microsoft.AspNetCore.NodeServices.Sockets.NodeServicesOptionsExtensions", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "UseSocketHosting", - "Parameters": [ - { - "Name": "options", - "Type": "Microsoft.AspNetCore.NodeServices.NodeServicesOptions" - } - ], - "ReturnType": "System.Void", - "Static": true, - "Extension": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.NodeServices.Sockets.VirtualConnections.VirtualConnectionReadErrorHandler", - "Visibility": "Public", - "Kind": "Class", - "Sealed": true, - "BaseType": "System.MulticastDelegate", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Invoke", - "Parameters": [ - { - "Name": "ex", - "Type": "System.Exception" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "BeginInvoke", - "Parameters": [ - { - "Name": "ex", - "Type": "System.Exception" - }, - { - "Name": "callback", - "Type": "System.AsyncCallback" - }, - { - "Name": "object", - "Type": "System.Object" - } - ], - "ReturnType": "System.IAsyncResult", - "Virtual": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "EndInvoke", - "Parameters": [ - { - "Name": "result", - "Type": "System.IAsyncResult" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [ - { - "Name": "object", - "Type": "System.Object" - }, - { - "Name": "method", - "Type": "System.IntPtr" - } - ], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - } - ] -} \ No newline at end of file diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/package-lock.json b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/package-lock.json deleted file mode 100644 index a09fa6b065..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/package-lock.json +++ /dev/null @@ -1,4230 +0,0 @@ -{ - "name": "nodeservices.sockets", - "version": "1.0.0", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "@types/node": { - "version": "10.9.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.9.2.tgz", - "integrity": "sha512-pwZnkVyCGJ3LsQ0/3flQK5lCFao4esIzwUVzzk5NvL9vnkEyDhNf4fhHzUMHvyr56gNZywWTS2MR0euabMSz4A==", - "dev": true - }, - "@webassemblyjs/ast": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.5.13.tgz", - "integrity": "sha512-49nwvW/Hx9i+OYHg+mRhKZfAlqThr11Dqz8TsrvqGKMhdI2ijy3KBJOun2Z4770TPjrIJhR6KxChQIDaz8clDA==", - "dev": true, - "requires": { - "@webassemblyjs/helper-module-context": "1.5.13", - "@webassemblyjs/helper-wasm-bytecode": "1.5.13", - "@webassemblyjs/wast-parser": "1.5.13", - "debug": "3.1.0", - "mamacro": "0.0.3" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } - } - }, - "@webassemblyjs/floating-point-hex-parser": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.5.13.tgz", - "integrity": "sha512-vrvvB18Kh4uyghSKb0NTv+2WZx871WL2NzwMj61jcq2bXkyhRC+8Q0oD7JGVf0+5i/fKQYQSBCNMMsDMRVAMqA==", - "dev": true - }, - "@webassemblyjs/helper-api-error": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.5.13.tgz", - "integrity": "sha512-dBh2CWYqjaDlvMmRP/kudxpdh30uXjIbpkLj9HQe+qtYlwvYjPRjdQXrq1cTAAOUSMTtzqbXIxEdEZmyKfcwsg==", - "dev": true - }, - "@webassemblyjs/helper-buffer": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.5.13.tgz", - "integrity": "sha512-v7igWf1mHcpJNbn4m7e77XOAWXCDT76Xe7Is1VQFXc4K5jRcFrl9D0NrqM4XifQ0bXiuTSkTKMYqDxu5MhNljA==", - "dev": true, - "requires": { - "debug": "3.1.0" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } - } - }, - "@webassemblyjs/helper-code-frame": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.5.13.tgz", - "integrity": "sha512-yN6ScQQDFCiAXnVctdVO/J5NQRbwyTbQzsGzEgXsAnrxhjp0xihh+nNHQTMrq5UhOqTb5LykpJAvEv9AT0jnAQ==", - "dev": true, - "requires": { - "@webassemblyjs/wast-printer": "1.5.13" - } - }, - "@webassemblyjs/helper-fsm": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.5.13.tgz", - "integrity": "sha512-hSIKzbXjVMRvy3Jzhgu+vDd/aswJ+UMEnLRCkZDdknZO3Z9e6rp1DAs0tdLItjCFqkz9+0BeOPK/mk3eYvVzZg==", - "dev": true - }, - "@webassemblyjs/helper-module-context": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.5.13.tgz", - "integrity": "sha512-zxJXULGPLB7r+k+wIlvGlXpT4CYppRz8fLUM/xobGHc9Z3T6qlmJD9ySJ2jknuktuuiR9AjnNpKYDECyaiX+QQ==", - "dev": true, - "requires": { - "debug": "3.1.0", - "mamacro": "0.0.3" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } - } - }, - "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.5.13.tgz", - "integrity": "sha512-0n3SoNGLvbJIZPhtMFq0XmmnA/YmQBXaZKQZcW8maGKwLpVcgjNrxpFZHEOLKjXJYVN5Il8vSfG7nRX50Zn+aw==", - "dev": true - }, - "@webassemblyjs/helper-wasm-section": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.5.13.tgz", - "integrity": "sha512-IJ/goicOZ5TT1axZFSnlAtz4m8KEjYr12BNOANAwGFPKXM4byEDaMNXYowHMG0yKV9a397eU/NlibFaLwr1fbw==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.5.13", - "@webassemblyjs/helper-buffer": "1.5.13", - "@webassemblyjs/helper-wasm-bytecode": "1.5.13", - "@webassemblyjs/wasm-gen": "1.5.13", - "debug": "3.1.0" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } - } - }, - "@webassemblyjs/ieee754": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.5.13.tgz", - "integrity": "sha512-TseswvXEPpG5TCBKoLx9tT7+/GMACjC1ruo09j46ULRZWYm8XHpDWaosOjTnI7kr4SRJFzA6MWoUkAB+YCGKKg==", - "dev": true, - "requires": { - "ieee754": "1.1.12" - } - }, - "@webassemblyjs/leb128": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.5.13.tgz", - "integrity": "sha512-0NRMxrL+GG3eISGZBmLBLAVjphbN8Si15s7jzThaw1UE9e5BY1oH49/+MA1xBzxpf1OW5sf9OrPDOclk9wj2yg==", - "dev": true, - "requires": { - "long": "4.0.0" - }, - "dependencies": { - "long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==", - "dev": true - } - } - }, - "@webassemblyjs/utf8": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.5.13.tgz", - "integrity": "sha512-Ve1ilU2N48Ew0lVGB8FqY7V7hXjaC4+PeZM+vDYxEd+R2iQ0q+Wb3Rw8v0Ri0+rxhoz6gVGsnQNb4FjRiEH/Ng==", - "dev": true - }, - "@webassemblyjs/wasm-edit": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.5.13.tgz", - "integrity": "sha512-X7ZNW4+Hga4f2NmqENnHke2V/mGYK/xnybJSIXImt1ulxbCOEs/A+ZK/Km2jgihjyVxp/0z0hwIcxC6PrkWtgw==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.5.13", - "@webassemblyjs/helper-buffer": "1.5.13", - "@webassemblyjs/helper-wasm-bytecode": "1.5.13", - "@webassemblyjs/helper-wasm-section": "1.5.13", - "@webassemblyjs/wasm-gen": "1.5.13", - "@webassemblyjs/wasm-opt": "1.5.13", - "@webassemblyjs/wasm-parser": "1.5.13", - "@webassemblyjs/wast-printer": "1.5.13", - "debug": "3.1.0" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } - } - }, - "@webassemblyjs/wasm-gen": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.5.13.tgz", - "integrity": "sha512-yfv94Se8R73zmr8GAYzezFHc3lDwE/lBXQddSiIZEKZFuqy7yWtm3KMwA1uGbv5G1WphimJxboXHR80IgX1hQA==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.5.13", - "@webassemblyjs/helper-wasm-bytecode": "1.5.13", - "@webassemblyjs/ieee754": "1.5.13", - "@webassemblyjs/leb128": "1.5.13", - "@webassemblyjs/utf8": "1.5.13" - } - }, - "@webassemblyjs/wasm-opt": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.5.13.tgz", - "integrity": "sha512-IkXSkgzVhQ0QYAdIayuCWMmXSYx0dHGU8Ah/AxJf1gBvstMWVnzJnBwLsXLyD87VSBIcsqkmZ28dVb0mOC3oBg==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.5.13", - "@webassemblyjs/helper-buffer": "1.5.13", - "@webassemblyjs/wasm-gen": "1.5.13", - "@webassemblyjs/wasm-parser": "1.5.13", - "debug": "3.1.0" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } - } - }, - "@webassemblyjs/wasm-parser": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.5.13.tgz", - "integrity": "sha512-XnYoIcu2iqq8/LrtmdnN3T+bRjqYFjRHqWbqK3osD/0r/Fcv4d9ecRzjVtC29ENEuNTK4mQ9yyxCBCbK8S/cpg==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.5.13", - "@webassemblyjs/helper-api-error": "1.5.13", - "@webassemblyjs/helper-wasm-bytecode": "1.5.13", - "@webassemblyjs/ieee754": "1.5.13", - "@webassemblyjs/leb128": "1.5.13", - "@webassemblyjs/utf8": "1.5.13" - } - }, - "@webassemblyjs/wast-parser": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.5.13.tgz", - "integrity": "sha512-Lbz65T0LQ1LgzKiUytl34CwuhMNhaCLgrh0JW4rJBN6INnBB8NMwUfQM+FxTnLY9qJ+lHJL/gCM5xYhB9oWi4A==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.5.13", - "@webassemblyjs/floating-point-hex-parser": "1.5.13", - "@webassemblyjs/helper-api-error": "1.5.13", - "@webassemblyjs/helper-code-frame": "1.5.13", - "@webassemblyjs/helper-fsm": "1.5.13", - "long": "3.2.0", - "mamacro": "0.0.3" - } - }, - "@webassemblyjs/wast-printer": { - "version": "1.5.13", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.5.13.tgz", - "integrity": "sha512-QcwogrdqcBh8Z+eUF8SG+ag5iwQSXxQJELBEHmLkk790wgQgnIMmntT2sMAMw53GiFNckArf5X0bsCA44j3lWQ==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.5.13", - "@webassemblyjs/wast-parser": "1.5.13", - "long": "3.2.0" - } - }, - "acorn": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.2.tgz", - "integrity": "sha512-cJrKCNcr2kv8dlDnbw+JPUGjHZzo4myaxOLmpOX8a+rgX94YeTcTMv/LFJUSByRpc+i4GgVnnhLxvMu/2Y+rqw==", - "dev": true - }, - "acorn-dynamic-import": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-3.0.0.tgz", - "integrity": "sha512-zVWV8Z8lislJoOKKqdNMOB+s6+XV5WERty8MnKBeFgwA+19XJjJHs2RP5dzM57FftIs+jQnRToLiWazKr6sSWg==", - "dev": true, - "requires": { - "acorn": "5.7.2" - } - }, - "ajv": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.3.tgz", - "integrity": "sha512-LqZ9wY+fx3UMiiPd741yB2pj3hhil+hQc8taf4o2QGRFpWgZ2V5C8HA165DY9sS3fJwsk7uT7ZlFEyC3Ig3lLg==", - "dev": true, - "requires": { - "fast-deep-equal": "2.0.1", - "fast-json-stable-stringify": "2.0.0", - "json-schema-traverse": "0.4.1", - "uri-js": "4.2.2" - } - }, - "ajv-keywords": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.2.0.tgz", - "integrity": "sha1-6GuBnGAs+IIa1jdBNpjx3sAhhHo=", - "dev": true - }, - "ansi-escapes": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.1.0.tgz", - "integrity": "sha512-UgAb8H9D41AQnu/PbWlCofQVcnV4Gs2bBJi9eZPxfU/hgglFh3SMDMENRIqdr7H6XFnXdoknctFByVsCOotTVw==", - "dev": true - }, - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "1.9.3" - } - }, - "anymatch": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", - "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", - "dev": true, - "requires": { - "micromatch": "3.1.10", - "normalize-path": "2.1.1" - } - }, - "aproba": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "dev": true - }, - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true - }, - "arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true - }, - "arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", - "dev": true - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true - }, - "asn1.js": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", - "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", - "dev": true, - "requires": { - "bn.js": "4.11.8", - "inherits": "2.0.3", - "minimalistic-assert": "1.0.1" - } - }, - "assert": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz", - "integrity": "sha1-mZEtWRg2tab1s0XA8H7vwI/GXZE=", - "dev": true, - "requires": { - "util": "0.10.3" - }, - "dependencies": { - "inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", - "dev": true - }, - "util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", - "dev": true, - "requires": { - "inherits": "2.0.1" - } - } - } - }, - "assign-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", - "dev": true - }, - "async-each": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz", - "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", - "dev": true - }, - "atob": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", - "dev": true - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true - }, - "base": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", - "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", - "dev": true, - "requires": { - "cache-base": "1.0.1", - "class-utils": "0.3.6", - "component-emitter": "1.2.1", - "define-property": "1.0.0", - "isobject": "3.0.1", - "mixin-deep": "1.3.1", - "pascalcase": "0.1.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "1.0.2" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "6.0.2" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "6.0.2" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" - } - } - } - }, - "base64-js": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz", - "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==", - "dev": true - }, - "big.js": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz", - "integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==", - "dev": true - }, - "binary-extensions": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz", - "integrity": "sha1-RqoXUftqL5PuXmibsQh9SxTGwgU=", - "dev": true - }, - "bluebird": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", - "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==", - "dev": true - }, - "bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", - "dev": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "requires": { - "arr-flatten": "1.1.0", - "array-unique": "0.3.2", - "extend-shallow": "2.0.1", - "fill-range": "4.0.0", - "isobject": "3.0.1", - "repeat-element": "1.1.3", - "snapdragon": "0.8.2", - "snapdragon-node": "2.1.1", - "split-string": "3.1.0", - "to-regex": "3.0.2" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "0.1.1" - } - } - } - }, - "brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", - "dev": true - }, - "browserify-aes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", - "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "dev": true, - "requires": { - "buffer-xor": "1.0.3", - "cipher-base": "1.0.4", - "create-hash": "1.2.0", - "evp_bytestokey": "1.0.3", - "inherits": "2.0.3", - "safe-buffer": "5.1.2" - } - }, - "browserify-cipher": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", - "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", - "dev": true, - "requires": { - "browserify-aes": "1.2.0", - "browserify-des": "1.0.2", - "evp_bytestokey": "1.0.3" - } - }, - "browserify-des": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", - "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", - "dev": true, - "requires": { - "cipher-base": "1.0.4", - "des.js": "1.0.0", - "inherits": "2.0.3", - "safe-buffer": "5.1.2" - } - }, - "browserify-rsa": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", - "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", - "dev": true, - "requires": { - "bn.js": "4.11.8", - "randombytes": "2.0.6" - } - }, - "browserify-sign": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz", - "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", - "dev": true, - "requires": { - "bn.js": "4.11.8", - "browserify-rsa": "4.0.1", - "create-hash": "1.2.0", - "create-hmac": "1.1.7", - "elliptic": "6.4.1", - "inherits": "2.0.3", - "parse-asn1": "5.1.1" - } - }, - "browserify-zlib": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", - "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", - "dev": true, - "requires": { - "pako": "1.0.6" - } - }, - "buffer": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", - "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", - "dev": true, - "requires": { - "base64-js": "1.3.0", - "ieee754": "1.1.12", - "isarray": "1.0.0" - } - }, - "buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", - "dev": true - }, - "buffer-xor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", - "dev": true - }, - "builtin-status-codes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", - "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", - "dev": true - }, - "cacache": { - "version": "10.0.4", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-10.0.4.tgz", - "integrity": "sha512-Dph0MzuH+rTQzGPNT9fAnrPmMmjKfST6trxJeK7NQuHRaVw24VzPRWTmg9MpcwOVQZO0E1FBICUlFeNaKPIfHA==", - "dev": true, - "requires": { - "bluebird": "3.5.1", - "chownr": "1.0.1", - "glob": "7.1.3", - "graceful-fs": "4.1.11", - "lru-cache": "4.1.3", - "mississippi": "2.0.0", - "mkdirp": "0.5.1", - "move-concurrently": "1.0.1", - "promise-inflight": "1.0.1", - "rimraf": "2.6.2", - "ssri": "5.3.0", - "unique-filename": "1.1.0", - "y18n": "4.0.0" - } - }, - "cache-base": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", - "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", - "dev": true, - "requires": { - "collection-visit": "1.0.0", - "component-emitter": "1.2.1", - "get-value": "2.0.6", - "has-value": "1.0.0", - "isobject": "3.0.1", - "set-value": "2.0.0", - "to-object-path": "0.3.0", - "union-value": "1.0.0", - "unset-value": "1.0.0" - } - }, - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.5.0" - } - }, - "chardet": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.5.0.tgz", - "integrity": "sha512-9ZTaoBaePSCFvNlNGrsyI8ZVACP2svUtq0DkM7t4K2ClAa96sqOIRjAzDTc8zXzFt1cZR46rRzLTiHFSJ+Qw0g==", - "dev": true - }, - "chokidar": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.0.4.tgz", - "integrity": "sha512-z9n7yt9rOvIJrMhvDtDictKrkFHeihkNl6uWMmZlmL6tJtX9Cs+87oK+teBx+JIgzvbX3yZHT3eF8vpbDxHJXQ==", - "dev": true, - "requires": { - "anymatch": "2.0.0", - "async-each": "1.0.1", - "braces": "2.3.2", - "fsevents": "1.2.4", - "glob-parent": "3.1.0", - "inherits": "2.0.3", - "is-binary-path": "1.0.1", - "is-glob": "4.0.0", - "lodash.debounce": "4.0.8", - "normalize-path": "2.1.1", - "path-is-absolute": "1.0.1", - "readdirp": "2.1.0", - "upath": "1.1.0" - } - }, - "chownr": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.0.1.tgz", - "integrity": "sha1-4qdQQqlVGQi+vSW4Uj1fl2nXkYE=", - "dev": true - }, - "chrome-trace-event": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.0.tgz", - "integrity": "sha512-xDbVgyfDTT2piup/h8dK/y4QZfJRSa73bw1WZ8b4XM1o7fsFubUVGYcE+1ANtOzJJELGpYoG2961z0Z6OAld9A==", - "dev": true, - "requires": { - "tslib": "1.9.3" - } - }, - "cipher-base": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", - "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", - "dev": true, - "requires": { - "inherits": "2.0.3", - "safe-buffer": "5.1.2" - } - }, - "class-utils": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", - "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", - "dev": true, - "requires": { - "arr-union": "3.1.0", - "define-property": "0.2.5", - "isobject": "3.0.1", - "static-extend": "0.1.2" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "0.1.6" - } - } - } - }, - "cli-cursor": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", - "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", - "dev": true, - "requires": { - "restore-cursor": "2.0.0" - } - }, - "cli-width": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", - "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", - "dev": true - }, - "cliui": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", - "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", - "dev": true, - "requires": { - "string-width": "2.1.1", - "strip-ansi": "4.0.0", - "wrap-ansi": "2.1.0" - } - }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true - }, - "collection-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", - "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", - "dev": true, - "requires": { - "map-visit": "1.0.0", - "object-visit": "1.0.1" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "commander": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.13.0.tgz", - "integrity": "sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA==", - "dev": true - }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", - "dev": true - }, - "component-emitter": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true - }, - "concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "dev": true, - "requires": { - "buffer-from": "1.1.1", - "inherits": "2.0.3", - "readable-stream": "2.3.6", - "typedarray": "0.0.6" - } - }, - "console-browserify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", - "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", - "dev": true, - "requires": { - "date-now": "0.1.4" - } - }, - "constants-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", - "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", - "dev": true - }, - "copy-concurrently": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz", - "integrity": "sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==", - "dev": true, - "requires": { - "aproba": "1.2.0", - "fs-write-stream-atomic": "1.0.10", - "iferr": "0.1.5", - "mkdirp": "0.5.1", - "rimraf": "2.6.2", - "run-queue": "1.0.3" - } - }, - "copy-descriptor": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", - "dev": true - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true - }, - "create-ecdh": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz", - "integrity": "sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw==", - "dev": true, - "requires": { - "bn.js": "4.11.8", - "elliptic": "6.4.1" - } - }, - "create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "dev": true, - "requires": { - "cipher-base": "1.0.4", - "inherits": "2.0.3", - "md5.js": "1.3.4", - "ripemd160": "2.0.2", - "sha.js": "2.4.11" - } - }, - "create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "dev": true, - "requires": { - "cipher-base": "1.0.4", - "create-hash": "1.2.0", - "inherits": "2.0.3", - "ripemd160": "2.0.2", - "safe-buffer": "5.1.2", - "sha.js": "2.4.11" - } - }, - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, - "requires": { - "nice-try": "1.0.5", - "path-key": "2.0.1", - "semver": "5.5.1", - "shebang-command": "1.2.0", - "which": "1.3.1" - } - }, - "crypto-browserify": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", - "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", - "dev": true, - "requires": { - "browserify-cipher": "1.0.1", - "browserify-sign": "4.0.4", - "create-ecdh": "4.0.3", - "create-hash": "1.2.0", - "create-hmac": "1.1.7", - "diffie-hellman": "5.0.3", - "inherits": "2.0.3", - "pbkdf2": "3.0.16", - "public-encrypt": "4.0.2", - "randombytes": "2.0.6", - "randomfill": "1.0.4" - } - }, - "cyclist": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-0.2.2.tgz", - "integrity": "sha1-GzN5LhHpFKL9bW7WRHRkRE5fpkA=", - "dev": true - }, - "date-now": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", - "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", - "dev": true - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "decamelize": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-2.0.0.tgz", - "integrity": "sha512-Ikpp5scV3MSYxY39ymh45ZLEecsTdv/Xj2CaQfI8RLMuwi7XvjX9H/fhraiSuU+C5w5NTDu4ZU72xNiZnurBPg==", - "dev": true, - "requires": { - "xregexp": "4.0.0" - } - }, - "decode-uri-component": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", - "dev": true - }, - "define-property": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", - "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", - "dev": true, - "requires": { - "is-descriptor": "1.0.2", - "isobject": "3.0.1" - }, - "dependencies": { - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "6.0.2" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "6.0.2" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" - } - } - } - }, - "des.js": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", - "integrity": "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=", - "dev": true, - "requires": { - "inherits": "2.0.3", - "minimalistic-assert": "1.0.1" - } - }, - "diffie-hellman": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", - "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", - "dev": true, - "requires": { - "bn.js": "4.11.8", - "miller-rabin": "4.0.1", - "randombytes": "2.0.6" - } - }, - "domain-browser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", - "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", - "dev": true - }, - "duplexify": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.6.0.tgz", - "integrity": "sha512-fO3Di4tBKJpYTFHAxTU00BcfWMY9w24r/x21a6rZRbsD/ToUgGxsMbiGRmB7uVAXeGKXD9MwiLZa5E97EVgIRQ==", - "dev": true, - "requires": { - "end-of-stream": "1.4.1", - "inherits": "2.0.3", - "readable-stream": "2.3.6", - "stream-shift": "1.0.0" - } - }, - "elliptic": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz", - "integrity": "sha512-BsXLz5sqX8OHcsh7CqBMztyXARmGQ3LWPtGjJi6DiJHq5C/qvi9P3OqgswKSDftbu8+IoI/QDTAm2fFnQ9SZSQ==", - "dev": true, - "requires": { - "bn.js": "4.11.8", - "brorand": "1.1.0", - "hash.js": "1.1.5", - "hmac-drbg": "1.0.1", - "inherits": "2.0.3", - "minimalistic-assert": "1.0.1", - "minimalistic-crypto-utils": "1.0.1" - } - }, - "emojis-list": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", - "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=", - "dev": true - }, - "end-of-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", - "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", - "dev": true, - "requires": { - "once": "1.4.0" - } - }, - "enhanced-resolve": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.1.0.tgz", - "integrity": "sha512-F/7vkyTtyc/llOIn8oWclcB25KdRaiPBpZYDgJHgh/UHtpgT2p2eldQgtQnLtUvfMKPKxbRaQM/hHkvLHt1Vng==", - "dev": true, - "requires": { - "graceful-fs": "4.1.11", - "memory-fs": "0.4.1", - "tapable": "1.0.0" - } - }, - "errno": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz", - "integrity": "sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg==", - "dev": true, - "requires": { - "prr": "1.0.1" - } - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "eslint-scope": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.0.tgz", - "integrity": "sha512-1G6UTDi7Jc1ELFwnR58HV4fK9OQK4S6N985f166xqXxpjU6plxFISJa2Ba9KCQuFa8RCnj/lSFJbHo7UFDBnUA==", - "dev": true, - "requires": { - "esrecurse": "4.2.1", - "estraverse": "4.2.0" - } - }, - "esrecurse": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", - "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", - "dev": true, - "requires": { - "estraverse": "4.2.0" - } - }, - "estraverse": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", - "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", - "dev": true - }, - "events": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", - "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=", - "dev": true - }, - "evp_bytestokey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "dev": true, - "requires": { - "md5.js": "1.3.4", - "safe-buffer": "5.1.2" - } - }, - "execa": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", - "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", - "dev": true, - "requires": { - "cross-spawn": "5.1.0", - "get-stream": "3.0.0", - "is-stream": "1.1.0", - "npm-run-path": "2.0.2", - "p-finally": "1.0.0", - "signal-exit": "3.0.2", - "strip-eof": "1.0.0" - }, - "dependencies": { - "cross-spawn": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", - "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", - "dev": true, - "requires": { - "lru-cache": "4.1.3", - "shebang-command": "1.2.0", - "which": "1.3.1" - } - } - } - }, - "expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", - "dev": true, - "requires": { - "debug": "2.6.9", - "define-property": "0.2.5", - "extend-shallow": "2.0.1", - "posix-character-classes": "0.1.1", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "0.1.6" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "0.1.1" - } - } - } - }, - "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", - "dev": true, - "requires": { - "assign-symbols": "1.0.0", - "is-extendable": "1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "2.0.4" - } - } - } - }, - "external-editor": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.0.1.tgz", - "integrity": "sha512-e1neqvSt5pSwQcFnYc6yfGuJD2Q4336cdbHs5VeUO0zTkqPbrHMyw2q1r47fpfLWbvIG8H8A6YO3sck7upTV6Q==", - "dev": true, - "requires": { - "chardet": "0.5.0", - "iconv-lite": "0.4.24", - "tmp": "0.0.33" - } - }, - "extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "dev": true, - "requires": { - "array-unique": "0.3.2", - "define-property": "1.0.0", - "expand-brackets": "2.1.4", - "extend-shallow": "2.0.1", - "fragment-cache": "0.2.1", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "1.0.2" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "0.1.1" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "6.0.2" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "6.0.2" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" - } - } - } - }, - "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", - "dev": true - }, - "fast-json-stable-stringify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", - "dev": true - }, - "figures": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", - "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", - "dev": true, - "requires": { - "escape-string-regexp": "1.0.5" - } - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "requires": { - "extend-shallow": "2.0.1", - "is-number": "3.0.0", - "repeat-string": "1.6.1", - "to-regex-range": "2.1.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "0.1.1" - } - } - } - }, - "find-cache-dir": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-1.0.0.tgz", - "integrity": "sha1-kojj6ePMN0hxfTnq3hfPcfww7m8=", - "dev": true, - "requires": { - "commondir": "1.0.1", - "make-dir": "1.3.0", - "pkg-dir": "2.0.0" - } - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "2.0.0" - } - }, - "flush-write-stream": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.0.3.tgz", - "integrity": "sha512-calZMC10u0FMUqoiunI2AiGIIUtUIvifNwkHhNupZH4cbNnW1Itkoh/Nf5HFYmDrwWPjrUxpkZT0KhuCq0jmGw==", - "dev": true, - "requires": { - "inherits": "2.0.3", - "readable-stream": "2.3.6" - } - }, - "for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", - "dev": true - }, - "fragment-cache": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", - "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", - "dev": true, - "requires": { - "map-cache": "0.2.2" - } - }, - "from2": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", - "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", - "dev": true, - "requires": { - "inherits": "2.0.3", - "readable-stream": "2.3.6" - } - }, - "fs-write-stream-atomic": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz", - "integrity": "sha1-tH31NJPvkR33VzHnCp3tAYnbQMk=", - "dev": true, - "requires": { - "graceful-fs": "4.1.11", - "iferr": "0.1.5", - "imurmurhash": "0.1.4", - "readable-stream": "2.3.6" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "fsevents": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.4.tgz", - "integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==", - "dev": true, - "optional": true, - "requires": { - "nan": "2.11.0", - "node-pre-gyp": "0.10.0" - }, - "dependencies": { - "abbrev": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "ansi-regex": { - "version": "2.1.1", - "bundled": true, - "dev": true - }, - "aproba": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "optional": true - }, - "are-we-there-yet": { - "version": "1.1.4", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "delegates": "1.0.0", - "readable-stream": "2.3.6" - } - }, - "balanced-match": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "brace-expansion": { - "version": "1.1.11", - "bundled": true, - "dev": true, - "requires": { - "balanced-match": "1.0.0", - "concat-map": "0.0.1" - } - }, - "chownr": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "code-point-at": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "bundled": true, - "dev": true - }, - "console-control-strings": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "core-util-is": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "debug": { - "version": "2.6.9", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ms": "2.0.0" - } - }, - "deep-extend": { - "version": "0.5.1", - "bundled": true, - "dev": true, - "optional": true - }, - "delegates": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "detect-libc": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "optional": true - }, - "fs-minipass": { - "version": "1.2.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minipass": "2.2.4" - } - }, - "fs.realpath": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "gauge": { - "version": "2.7.4", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "aproba": "1.2.0", - "console-control-strings": "1.1.0", - "has-unicode": "2.0.1", - "object-assign": "4.1.1", - "signal-exit": "3.0.2", - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wide-align": "1.1.2" - } - }, - "glob": { - "version": "7.1.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" - } - }, - "has-unicode": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "iconv-lite": { - "version": "0.4.21", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safer-buffer": "2.1.2" - } - }, - "ignore-walk": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minimatch": "3.0.4" - } - }, - "inflight": { - "version": "1.0.6", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "once": "1.4.0", - "wrappy": "1.0.2" - } - }, - "inherits": { - "version": "2.0.3", - "bundled": true, - "dev": true - }, - "ini": { - "version": "1.3.5", - "bundled": true, - "dev": true, - "optional": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "number-is-nan": "1.0.1" - } - }, - "isarray": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, - "dev": true, - "requires": { - "brace-expansion": "1.1.11" - } - }, - "minimist": { - "version": "0.0.8", - "bundled": true, - "dev": true - }, - "minipass": { - "version": "2.2.4", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "5.1.1", - "yallist": "3.0.2" - } - }, - "minizlib": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minipass": "2.2.4" - } - }, - "mkdirp": { - "version": "0.5.1", - "bundled": true, - "dev": true, - "requires": { - "minimist": "0.0.8" - } - }, - "ms": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "needle": { - "version": "2.2.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "debug": "2.6.9", - "iconv-lite": "0.4.21", - "sax": "1.2.4" - } - }, - "node-pre-gyp": { - "version": "0.10.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "detect-libc": "1.0.3", - "mkdirp": "0.5.1", - "needle": "2.2.0", - "nopt": "4.0.1", - "npm-packlist": "1.1.10", - "npmlog": "4.1.2", - "rc": "1.2.7", - "rimraf": "2.6.2", - "semver": "5.5.0", - "tar": "4.4.1" - } - }, - "nopt": { - "version": "4.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "abbrev": "1.1.1", - "osenv": "0.1.5" - } - }, - "npm-bundled": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "optional": true - }, - "npm-packlist": { - "version": "1.1.10", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ignore-walk": "3.0.1", - "npm-bundled": "1.0.3" - } - }, - "npmlog": { - "version": "4.1.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "are-we-there-yet": "1.1.4", - "console-control-strings": "1.1.0", - "gauge": "2.7.4", - "set-blocking": "2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "once": { - "version": "1.4.0", - "bundled": true, - "dev": true, - "requires": { - "wrappy": "1.0.2" - } - }, - "os-homedir": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "os-tmpdir": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "osenv": { - "version": "0.1.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "process-nextick-args": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "rc": { - "version": "1.2.7", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "deep-extend": "0.5.1", - "ini": "1.3.5", - "minimist": "1.2.0", - "strip-json-comments": "2.0.1" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.1.1", - "util-deprecate": "1.0.2" - } - }, - "rimraf": { - "version": "2.6.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "glob": "7.1.2" - } - }, - "safe-buffer": { - "version": "5.1.1", - "bundled": true, - "dev": true - }, - "safer-buffer": { - "version": "2.1.2", - "bundled": true, - "dev": true, - "optional": true - }, - "sax": { - "version": "1.2.4", - "bundled": true, - "dev": true, - "optional": true - }, - "semver": { - "version": "5.5.0", - "bundled": true, - "dev": true, - "optional": true - }, - "set-blocking": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "signal-exit": { - "version": "3.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "string-width": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "5.1.1" - } - }, - "strip-ansi": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "tar": { - "version": "4.4.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "chownr": "1.0.1", - "fs-minipass": "1.2.5", - "minipass": "2.2.4", - "minizlib": "1.1.0", - "mkdirp": "0.5.1", - "safe-buffer": "5.1.1", - "yallist": "3.0.2" - } - }, - "util-deprecate": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "wide-align": { - "version": "1.1.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "string-width": "1.0.2" - } - }, - "wrappy": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "yallist": { - "version": "3.0.2", - "bundled": true, - "dev": true - } - } - }, - "get-caller-file": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", - "dev": true - }, - "get-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", - "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", - "dev": true - }, - "get-value": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", - "dev": true - }, - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" - } - }, - "glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "dev": true, - "requires": { - "is-glob": "3.1.0", - "path-dirname": "1.0.2" - }, - "dependencies": { - "is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", - "dev": true, - "requires": { - "is-extglob": "2.1.1" - } - } - } - }, - "global-modules-path": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/global-modules-path/-/global-modules-path-2.3.0.tgz", - "integrity": "sha512-HchvMJNYh9dGSCy8pOQ2O8u/hoXaL+0XhnrwH0RyLiSXMMTl9W3N6KUU73+JFOg5PGjtzl6VZzUQsnrpm7Szag==", - "dev": true - }, - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "has-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", - "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", - "dev": true, - "requires": { - "get-value": "2.0.6", - "has-values": "1.0.0", - "isobject": "3.0.1" - } - }, - "has-values": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", - "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", - "dev": true, - "requires": { - "is-number": "3.0.0", - "kind-of": "4.0.0" - }, - "dependencies": { - "kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "hash-base": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", - "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", - "dev": true, - "requires": { - "inherits": "2.0.3", - "safe-buffer": "5.1.2" - } - }, - "hash.js": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.5.tgz", - "integrity": "sha512-eWI5HG9Np+eHV1KQhisXWwM+4EPPYe5dFX1UZZH7k/E3JzDEazVH+VGlZi6R94ZqImq+A3D1mCEtrFIfg/E7sA==", - "dev": true, - "requires": { - "inherits": "2.0.3", - "minimalistic-assert": "1.0.1" - } - }, - "hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", - "dev": true, - "requires": { - "hash.js": "1.1.5", - "minimalistic-assert": "1.0.1", - "minimalistic-crypto-utils": "1.0.1" - } - }, - "https-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", - "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", - "dev": true - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "requires": { - "safer-buffer": "2.1.2" - } - }, - "ieee754": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.12.tgz", - "integrity": "sha512-GguP+DRY+pJ3soyIiGPTvdiVXjZ+DbXOxGpXn3eMvNW4x4irjqXm4wHKscC+TfxSJ0yw/S1F24tqdMNsMZTiLA==", - "dev": true - }, - "iferr": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz", - "integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=", - "dev": true - }, - "import-local": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-1.0.0.tgz", - "integrity": "sha512-vAaZHieK9qjGo58agRBg+bhHX3hoTZU/Oa3GESWLz7t1U62fk63aHuDJJEteXoDeTCcPmUT+z38gkHPZkkmpmQ==", - "dev": true, - "requires": { - "pkg-dir": "2.0.0", - "resolve-cwd": "2.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true - }, - "indexof": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", - "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "requires": { - "once": "1.4.0", - "wrappy": "1.0.2" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - }, - "inquirer": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.2.0.tgz", - "integrity": "sha512-QIEQG4YyQ2UYZGDC4srMZ7BjHOmNk1lR2JQj5UknBapklm6WHA+VVH7N+sUdX3A7NeCfGF8o4X1S3Ao7nAcIeg==", - "dev": true, - "requires": { - "ansi-escapes": "3.1.0", - "chalk": "2.4.1", - "cli-cursor": "2.1.0", - "cli-width": "2.2.0", - "external-editor": "3.0.1", - "figures": "2.0.0", - "lodash": "4.17.10", - "mute-stream": "0.0.7", - "run-async": "2.3.0", - "rxjs": "6.2.2", - "string-width": "2.1.1", - "strip-ansi": "4.0.0", - "through": "2.3.8" - } - }, - "interpret": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", - "integrity": "sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ=", - "dev": true - }, - "invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", - "dev": true - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-binary-path": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", - "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", - "dev": true, - "requires": { - "binary-extensions": "1.11.0" - } - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "0.1.6", - "is-data-descriptor": "0.1.4", - "kind-of": "5.1.0" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } - } - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "is-glob": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", - "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", - "dev": true, - "requires": { - "is-extglob": "2.1.1" - } - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "requires": { - "isobject": "3.0.1" - } - }, - "is-promise": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", - "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", - "dev": true - }, - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "dev": true - }, - "is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "json5": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", - "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", - "dev": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - }, - "lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", - "dev": true, - "requires": { - "invert-kv": "1.0.0" - } - }, - "loader-runner": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.3.0.tgz", - "integrity": "sha1-9IKuqC1UPgeSFwDVpG7yb9rGuKI=", - "dev": true - }, - "loader-utils": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", - "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", - "dev": true, - "requires": { - "big.js": "3.2.0", - "emojis-list": "2.1.0", - "json5": "0.5.1" - } - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "requires": { - "p-locate": "2.0.0", - "path-exists": "3.0.0" - } - }, - "lodash": { - "version": "4.17.10", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", - "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==", - "dev": true - }, - "lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=", - "dev": true - }, - "long": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/long/-/long-3.2.0.tgz", - "integrity": "sha1-2CG3E4yhy1gcFymQ7xTbIAtcR0s=", - "dev": true - }, - "lru-cache": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.3.tgz", - "integrity": "sha512-fFEhvcgzuIoJVUF8fYr5KR0YqxD238zgObTps31YdADwPPAp82a4M8TrckkWyx7ekNlf9aBcVn81cFwwXngrJA==", - "dev": true, - "requires": { - "pseudomap": "1.0.2", - "yallist": "2.1.2" - } - }, - "make-dir": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", - "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", - "dev": true, - "requires": { - "pify": "3.0.0" - } - }, - "mamacro": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/mamacro/-/mamacro-0.0.3.tgz", - "integrity": "sha512-qMEwh+UujcQ+kbz3T6V+wAmO2U8veoq2w+3wY8MquqwVA3jChfwY+Tk52GZKDfACEPjuZ7r2oJLejwpt8jtwTA==", - "dev": true - }, - "map-cache": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", - "dev": true - }, - "map-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", - "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", - "dev": true, - "requires": { - "object-visit": "1.0.1" - } - }, - "md5.js": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz", - "integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=", - "dev": true, - "requires": { - "hash-base": "3.0.4", - "inherits": "2.0.3" - } - }, - "mem": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", - "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", - "dev": true, - "requires": { - "mimic-fn": "1.2.0" - } - }, - "memory-fs": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", - "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", - "dev": true, - "requires": { - "errno": "0.1.7", - "readable-stream": "2.3.6" - } - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "requires": { - "arr-diff": "4.0.0", - "array-unique": "0.3.2", - "braces": "2.3.2", - "define-property": "2.0.2", - "extend-shallow": "3.0.2", - "extglob": "2.0.4", - "fragment-cache": "0.2.1", - "kind-of": "6.0.2", - "nanomatch": "1.2.13", - "object.pick": "1.3.0", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" - } - }, - "miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", - "dev": true, - "requires": { - "bn.js": "4.11.8", - "brorand": "1.1.0" - } - }, - "mimic-fn": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", - "dev": true - }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", - "dev": true - }, - "minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", - "dev": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "requires": { - "brace-expansion": "1.1.11" - } - }, - "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true - }, - "mississippi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mississippi/-/mississippi-2.0.0.tgz", - "integrity": "sha512-zHo8v+otD1J10j/tC+VNoGK9keCuByhKovAvdn74dmxJl9+mWHnx6EMsDN4lgRoMI/eYo2nchAxniIbUPb5onw==", - "dev": true, - "requires": { - "concat-stream": "1.6.2", - "duplexify": "3.6.0", - "end-of-stream": "1.4.1", - "flush-write-stream": "1.0.3", - "from2": "2.3.0", - "parallel-transform": "1.1.0", - "pump": "2.0.1", - "pumpify": "1.5.1", - "stream-each": "1.2.3", - "through2": "2.0.3" - } - }, - "mixin-deep": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", - "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", - "dev": true, - "requires": { - "for-in": "1.0.2", - "is-extendable": "1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "2.0.4" - } - } - } - }, - "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, - "requires": { - "minimist": "0.0.8" - } - }, - "move-concurrently": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", - "integrity": "sha1-viwAX9oy4LKa8fBdfEszIUxwH5I=", - "dev": true, - "requires": { - "aproba": "1.2.0", - "copy-concurrently": "1.0.5", - "fs-write-stream-atomic": "1.0.10", - "mkdirp": "0.5.1", - "rimraf": "2.6.2", - "run-queue": "1.0.3" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "mute-stream": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", - "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=", - "dev": true - }, - "nan": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.11.0.tgz", - "integrity": "sha512-F4miItu2rGnV2ySkXOQoA8FKz/SR2Q2sWP0sbTxNxz/tuokeC8WxOhPMcwi0qIyGtVn/rrSeLbvVkznqCdwYnw==", - "dev": true, - "optional": true - }, - "nanomatch": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", - "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", - "dev": true, - "requires": { - "arr-diff": "4.0.0", - "array-unique": "0.3.2", - "define-property": "2.0.2", - "extend-shallow": "3.0.2", - "fragment-cache": "0.2.1", - "is-windows": "1.0.2", - "kind-of": "6.0.2", - "object.pick": "1.3.0", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" - } - }, - "neo-async": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.5.2.tgz", - "integrity": "sha512-vdqTKI9GBIYcAEbFAcpKPErKINfPF5zIuz3/niBfq8WUZjpT2tytLlFVrBgWdOtqI4uaA/Rb6No0hux39XXDuw==", - "dev": true - }, - "nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "dev": true - }, - "node-libs-browser": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.1.0.tgz", - "integrity": "sha512-5AzFzdoIMb89hBGMZglEegffzgRg+ZFoUmisQ8HI4j1KDdpx13J0taNp2y9xPbur6W61gepGDDotGBVQ7mfUCg==", - "dev": true, - "requires": { - "assert": "1.4.1", - "browserify-zlib": "0.2.0", - "buffer": "4.9.1", - "console-browserify": "1.1.0", - "constants-browserify": "1.0.0", - "crypto-browserify": "3.12.0", - "domain-browser": "1.2.0", - "events": "1.1.1", - "https-browserify": "1.0.0", - "os-browserify": "0.3.0", - "path-browserify": "0.0.0", - "process": "0.11.10", - "punycode": "1.4.1", - "querystring-es3": "0.2.1", - "readable-stream": "2.3.6", - "stream-browserify": "2.0.1", - "stream-http": "2.8.3", - "string_decoder": "1.1.1", - "timers-browserify": "2.0.10", - "tty-browserify": "0.0.0", - "url": "0.11.0", - "util": "0.10.4", - "vm-browserify": "0.0.4" - }, - "dependencies": { - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - } - } - }, - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "dev": true, - "requires": { - "remove-trailing-separator": "1.1.0" - } - }, - "npm-run-path": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", - "dev": true, - "requires": { - "path-key": "2.0.1" - } - }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true - }, - "object-copy": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", - "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", - "dev": true, - "requires": { - "copy-descriptor": "0.1.1", - "define-property": "0.2.5", - "kind-of": "3.2.2" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "0.1.6" - } - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "object-visit": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", - "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", - "dev": true, - "requires": { - "isobject": "3.0.1" - } - }, - "object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", - "dev": true, - "requires": { - "isobject": "3.0.1" - } - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "requires": { - "wrappy": "1.0.2" - } - }, - "onetime": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", - "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", - "dev": true, - "requires": { - "mimic-fn": "1.2.0" - } - }, - "os-browserify": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", - "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", - "dev": true - }, - "os-locale": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", - "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", - "dev": true, - "requires": { - "execa": "0.7.0", - "lcid": "1.0.0", - "mem": "1.1.0" - } - }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true - }, - "p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true - }, - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "requires": { - "p-try": "1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "requires": { - "p-limit": "1.3.0" - } - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true - }, - "pako": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.6.tgz", - "integrity": "sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg==", - "dev": true - }, - "parallel-transform": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.1.0.tgz", - "integrity": "sha1-1BDwZbBdojCB/NEPKIVMKb2jOwY=", - "dev": true, - "requires": { - "cyclist": "0.2.2", - "inherits": "2.0.3", - "readable-stream": "2.3.6" - } - }, - "parse-asn1": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.1.tgz", - "integrity": "sha512-KPx7flKXg775zZpnp9SxJlz00gTd4BmJ2yJufSc44gMCRrRQ7NSzAcSJQfifuOLgW6bEi+ftrALtsgALeB2Adw==", - "dev": true, - "requires": { - "asn1.js": "4.10.1", - "browserify-aes": "1.2.0", - "create-hash": "1.2.0", - "evp_bytestokey": "1.0.3", - "pbkdf2": "3.0.16" - } - }, - "pascalcase": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", - "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", - "dev": true - }, - "path-browserify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.0.tgz", - "integrity": "sha1-oLhwcpquIUAFt9UDLsLLuw+0RRo=", - "dev": true - }, - "path-dirname": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", - "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", - "dev": true - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true - }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "dev": true - }, - "pbkdf2": { - "version": "3.0.16", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.16.tgz", - "integrity": "sha512-y4CXP3thSxqf7c0qmOF+9UeOTrifiVTIM+u7NWlq+PRsHbr7r7dpCmvzrZxa96JJUNi0Y5w9VqG5ZNeCVMoDcA==", - "dev": true, - "requires": { - "create-hash": "1.2.0", - "create-hmac": "1.1.7", - "ripemd160": "2.0.2", - "safe-buffer": "5.1.2", - "sha.js": "2.4.11" - } - }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true - }, - "pkg-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", - "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", - "dev": true, - "requires": { - "find-up": "2.1.0" - } - }, - "posix-character-classes": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", - "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", - "dev": true - }, - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true - }, - "promise-inflight": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", - "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=", - "dev": true - }, - "prr": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", - "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", - "dev": true - }, - "pseudomap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", - "dev": true - }, - "public-encrypt": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.2.tgz", - "integrity": "sha512-4kJ5Esocg8X3h8YgJsKAuoesBgB7mqH3eowiDzMUPKiRDDE7E/BqqZD1hnTByIaAFiwAw246YEltSq7tdrOH0Q==", - "dev": true, - "requires": { - "bn.js": "4.11.8", - "browserify-rsa": "4.0.1", - "create-hash": "1.2.0", - "parse-asn1": "5.1.1", - "randombytes": "2.0.6" - } - }, - "pump": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", - "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", - "dev": true, - "requires": { - "end-of-stream": "1.4.1", - "once": "1.4.0" - } - }, - "pumpify": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", - "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", - "dev": true, - "requires": { - "duplexify": "3.6.0", - "inherits": "2.0.3", - "pump": "2.0.1" - } - }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true - }, - "querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", - "dev": true - }, - "querystring-es3": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", - "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", - "dev": true - }, - "randombytes": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.6.tgz", - "integrity": "sha512-CIQ5OFxf4Jou6uOKe9t1AOgqpeU5fd70A8NPdHSGeYXqXsPe6peOwI0cUl88RWZ6sP1vPMV3avd/R6cZ5/sP1A==", - "dev": true, - "requires": { - "safe-buffer": "5.1.2" - } - }, - "randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", - "dev": true, - "requires": { - "randombytes": "2.0.6", - "safe-buffer": "5.1.2" - } - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.2", - "string_decoder": "1.1.1", - "util-deprecate": "1.0.2" - } - }, - "readdirp": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", - "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", - "dev": true, - "requires": { - "graceful-fs": "4.1.11", - "minimatch": "3.0.4", - "readable-stream": "2.3.6", - "set-immediate-shim": "1.0.1" - } - }, - "regex-not": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", - "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", - "dev": true, - "requires": { - "extend-shallow": "3.0.2", - "safe-regex": "1.1.0" - } - }, - "remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", - "dev": true - }, - "repeat-element": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", - "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", - "dev": true - }, - "repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", - "dev": true - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true - }, - "require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", - "dev": true - }, - "resolve-cwd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", - "integrity": "sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=", - "dev": true, - "requires": { - "resolve-from": "3.0.0" - } - }, - "resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", - "dev": true - }, - "resolve-url": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", - "dev": true - }, - "restore-cursor": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", - "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", - "dev": true, - "requires": { - "onetime": "2.0.1", - "signal-exit": "3.0.2" - } - }, - "ret": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", - "dev": true - }, - "rimraf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", - "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", - "dev": true, - "requires": { - "glob": "7.1.3" - } - }, - "ripemd160": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", - "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", - "dev": true, - "requires": { - "hash-base": "3.0.4", - "inherits": "2.0.3" - } - }, - "run-async": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", - "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", - "dev": true, - "requires": { - "is-promise": "2.1.0" - } - }, - "run-queue": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz", - "integrity": "sha1-6Eg5bwV9Ij8kOGkkYY4laUFh7Ec=", - "dev": true, - "requires": { - "aproba": "1.2.0" - } - }, - "rxjs": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.2.2.tgz", - "integrity": "sha512-0MI8+mkKAXZUF9vMrEoPnaoHkfzBPP4IGwUYRJhIRJF6/w3uByO1e91bEHn8zd43RdkTMKiooYKmwz7RH6zfOQ==", - "dev": true, - "requires": { - "tslib": "1.9.3" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "safe-regex": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", - "dev": true, - "requires": { - "ret": "0.1.15" - } - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "schema-utils": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.4.7.tgz", - "integrity": "sha512-v/iwU6wvwGK8HbU9yi3/nhGzP0yGSuhQMzL6ySiec1FSrZZDkhm4noOSWzrNFo/jEc+SJY6jRTwuwbSXJPDUnQ==", - "dev": true, - "requires": { - "ajv": "6.5.3", - "ajv-keywords": "3.2.0" - } - }, - "semver": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.1.tgz", - "integrity": "sha512-PqpAxfrEhlSUWge8dwIp4tZnQ25DIOthpiaHNIthsjEFQD6EvqUKUDM7L8O2rShkFccYo1VjJR0coWfNkCubRw==", - "dev": true - }, - "serialize-javascript": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-1.5.0.tgz", - "integrity": "sha512-Ga8c8NjAAp46Br4+0oZ2WxJCwIzwP60Gq1YPgU+39PiTVxyed/iKE/zyZI6+UlVYH5Q4PaQdHhcegIFPZTUfoQ==", - "dev": true - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, - "set-immediate-shim": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", - "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", - "dev": true - }, - "set-value": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", - "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", - "dev": true, - "requires": { - "extend-shallow": "2.0.1", - "is-extendable": "0.1.1", - "is-plain-object": "2.0.4", - "split-string": "3.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "0.1.1" - } - } - } - }, - "setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", - "dev": true - }, - "sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "dev": true, - "requires": { - "inherits": "2.0.3", - "safe-buffer": "5.1.2" - } - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "dev": true, - "requires": { - "shebang-regex": "1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "dev": true - }, - "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "dev": true - }, - "snapdragon": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", - "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", - "dev": true, - "requires": { - "base": "0.11.2", - "debug": "2.6.9", - "define-property": "0.2.5", - "extend-shallow": "2.0.1", - "map-cache": "0.2.2", - "source-map": "0.5.7", - "source-map-resolve": "0.5.2", - "use": "3.1.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "0.1.6" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "0.1.1" - } - } - } - }, - "snapdragon-node": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", - "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", - "dev": true, - "requires": { - "define-property": "1.0.0", - "isobject": "3.0.1", - "snapdragon-util": "3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "1.0.2" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "6.0.2" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "6.0.2" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" - } - } - } - }, - "snapdragon-util": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", - "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "source-list-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.0.tgz", - "integrity": "sha512-I2UmuJSRr/T8jisiROLU3A3ltr+swpniSmNPI4Ml3ZCX6tVnDsuZzK7F2hl5jTqbZBWCEKlj5HRQiPExXLgE8A==", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "source-map-resolve": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", - "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", - "dev": true, - "requires": { - "atob": "2.1.2", - "decode-uri-component": "0.2.0", - "resolve-url": "0.2.1", - "source-map-url": "0.4.0", - "urix": "0.1.0" - } - }, - "source-map-url": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", - "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", - "dev": true - }, - "split-string": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", - "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", - "dev": true, - "requires": { - "extend-shallow": "3.0.2" - } - }, - "ssri": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-5.3.0.tgz", - "integrity": "sha512-XRSIPqLij52MtgoQavH/x/dU1qVKtWUAAZeOHsR9c2Ddi4XerFy3mc1alf+dLJKl9EUIm/Ht+EowFkTUOA6GAQ==", - "dev": true, - "requires": { - "safe-buffer": "5.1.2" - } - }, - "static-extend": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", - "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", - "dev": true, - "requires": { - "define-property": "0.2.5", - "object-copy": "0.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "0.1.6" - } - } - } - }, - "stream-browserify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz", - "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", - "dev": true, - "requires": { - "inherits": "2.0.3", - "readable-stream": "2.3.6" - } - }, - "stream-each": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.3.tgz", - "integrity": "sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw==", - "dev": true, - "requires": { - "end-of-stream": "1.4.1", - "stream-shift": "1.0.0" - } - }, - "stream-http": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz", - "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", - "dev": true, - "requires": { - "builtin-status-codes": "3.0.0", - "inherits": "2.0.3", - "readable-stream": "2.3.6", - "to-arraybuffer": "1.0.1", - "xtend": "4.0.1" - } - }, - "stream-shift": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", - "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", - "dev": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "5.1.2" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "3.0.0" - } - }, - "strip-eof": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "3.0.0" - } - }, - "tapable": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.0.0.tgz", - "integrity": "sha512-dQRhbNQkRnaqauC7WqSJ21EEksgT0fYZX2lqXzGkpo8JNig9zGZTYoMGvyI2nWmXlE2VSVXVDu7wLVGu/mQEsg==", - "dev": true - }, - "through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", - "dev": true - }, - "through2": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", - "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", - "dev": true, - "requires": { - "readable-stream": "2.3.6", - "xtend": "4.0.1" - } - }, - "timers-browserify": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.10.tgz", - "integrity": "sha512-YvC1SV1XdOUaL6gx5CoGroT3Gu49pK9+TZ38ErPldOWW4j49GI1HKs9DV+KGq/w6y+LZ72W1c8cKz2vzY+qpzg==", - "dev": true, - "requires": { - "setimmediate": "1.0.5" - } - }, - "tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "dev": true, - "requires": { - "os-tmpdir": "1.0.2" - } - }, - "to-arraybuffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", - "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", - "dev": true - }, - "to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "to-regex": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", - "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", - "dev": true, - "requires": { - "define-property": "2.0.2", - "extend-shallow": "3.0.2", - "regex-not": "1.0.2", - "safe-regex": "1.1.0" - } - }, - "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "dev": true, - "requires": { - "is-number": "3.0.0", - "repeat-string": "1.6.1" - } - }, - "ts-loader": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-4.5.0.tgz", - "integrity": "sha512-ihgVaSmgrX4crGV4n7yuoHPoCHbDzj9aepCZR9TgIx4SgJ9gdnB6xLHgUBb7bsFM/f0K6x9iXa65KY/Fu1Klkw==", - "dev": true, - "requires": { - "chalk": "2.4.1", - "enhanced-resolve": "4.1.0", - "loader-utils": "1.1.0", - "micromatch": "3.1.10", - "semver": "5.5.1" - } - }, - "tslib": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz", - "integrity": "sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==", - "dev": true - }, - "tty-browserify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", - "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", - "dev": true - }, - "typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", - "dev": true - }, - "typescript": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.0.1.tgz", - "integrity": "sha512-zQIMOmC+372pC/CCVLqnQ0zSBiY7HHodU7mpQdjiZddek4GMj31I3dUJ7gAs9o65X7mnRma6OokOkc6f9jjfBg==", - "dev": true - }, - "uglify-es": { - "version": "3.3.9", - "resolved": "https://registry.npmjs.org/uglify-es/-/uglify-es-3.3.9.tgz", - "integrity": "sha512-r+MU0rfv4L/0eeW3xZrd16t4NZfK8Ld4SWVglYBb7ez5uXFWHuVRs6xCTrf1yirs9a4j4Y27nn7SRfO6v67XsQ==", - "dev": true, - "requires": { - "commander": "2.13.0", - "source-map": "0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "uglifyjs-webpack-plugin": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-1.3.0.tgz", - "integrity": "sha512-ovHIch0AMlxjD/97j9AYovZxG5wnHOPkL7T1GKochBADp/Zwc44pEWNqpKl1Loupp1WhFg7SlYmHZRUfdAacgw==", - "dev": true, - "requires": { - "cacache": "10.0.4", - "find-cache-dir": "1.0.0", - "schema-utils": "0.4.7", - "serialize-javascript": "1.5.0", - "source-map": "0.6.1", - "uglify-es": "3.3.9", - "webpack-sources": "1.1.0", - "worker-farm": "1.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "union-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", - "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", - "dev": true, - "requires": { - "arr-union": "3.1.0", - "get-value": "2.0.6", - "is-extendable": "0.1.1", - "set-value": "0.4.3" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "0.1.1" - } - }, - "set-value": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", - "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", - "dev": true, - "requires": { - "extend-shallow": "2.0.1", - "is-extendable": "0.1.1", - "is-plain-object": "2.0.4", - "to-object-path": "0.3.0" - } - } - } - }, - "unique-filename": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.0.tgz", - "integrity": "sha1-0F8v5AMlYIcfMOk8vnNe6iAVFPM=", - "dev": true, - "requires": { - "unique-slug": "2.0.0" - } - }, - "unique-slug": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.0.tgz", - "integrity": "sha1-22Z258fMBimHj/GWCXx4hVrp9Ks=", - "dev": true, - "requires": { - "imurmurhash": "0.1.4" - } - }, - "unset-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", - "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", - "dev": true, - "requires": { - "has-value": "0.3.1", - "isobject": "3.0.1" - }, - "dependencies": { - "has-value": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", - "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", - "dev": true, - "requires": { - "get-value": "2.0.6", - "has-values": "0.1.4", - "isobject": "2.1.0" - }, - "dependencies": { - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "dev": true, - "requires": { - "isarray": "1.0.0" - } - } - } - }, - "has-values": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", - "dev": true - } - } - }, - "upath": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/upath/-/upath-1.1.0.tgz", - "integrity": "sha512-bzpH/oBhoS/QI/YtbkqCg6VEiPYjSZtrHQM6/QnJS6OL9pKUFLqb3aFh4Scvwm45+7iAgiMkLhSbaZxUqmrprw==", - "dev": true - }, - "uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "dev": true, - "requires": { - "punycode": "2.1.1" - } - }, - "urix": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", - "dev": true - }, - "url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", - "dev": true, - "requires": { - "punycode": "1.3.2", - "querystring": "0.2.0" - }, - "dependencies": { - "punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", - "dev": true - } - } - }, - "use": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", - "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", - "dev": true - }, - "util": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", - "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", - "dev": true, - "requires": { - "inherits": "2.0.3" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "v8-compile-cache": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.0.2.tgz", - "integrity": "sha512-1wFuMUIM16MDJRCrpbpuEPTUGmM5QMUg0cr3KFwra2XgOgFcPGDQHDh3CszSCD2Zewc/dh/pamNEW8CbfDebUw==", - "dev": true - }, - "vm-browserify": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz", - "integrity": "sha1-XX6kW7755Kb/ZflUOOCofDV9WnM=", - "dev": true, - "requires": { - "indexof": "0.0.1" - } - }, - "watchpack": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz", - "integrity": "sha512-i6dHe3EyLjMmDlU1/bGQpEw25XSjkJULPuAVKCbNRefQVq48yXKUpwg538F7AZTf9kyr57zj++pQFltUa5H7yA==", - "dev": true, - "requires": { - "chokidar": "2.0.4", - "graceful-fs": "4.1.11", - "neo-async": "2.5.2" - } - }, - "webpack": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.17.1.tgz", - "integrity": "sha512-vdPYogljzWPhFKDj3Gcp01Vqgu7K3IQlybc3XIdKSQHelK1C3eIQuysEUR7MxKJmdandZlQB/9BG2Jb1leJHaw==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.5.13", - "@webassemblyjs/helper-module-context": "1.5.13", - "@webassemblyjs/wasm-edit": "1.5.13", - "@webassemblyjs/wasm-opt": "1.5.13", - "@webassemblyjs/wasm-parser": "1.5.13", - "acorn": "5.7.2", - "acorn-dynamic-import": "3.0.0", - "ajv": "6.5.3", - "ajv-keywords": "3.2.0", - "chrome-trace-event": "1.0.0", - "enhanced-resolve": "4.1.0", - "eslint-scope": "4.0.0", - "json-parse-better-errors": "1.0.2", - "loader-runner": "2.3.0", - "loader-utils": "1.1.0", - "memory-fs": "0.4.1", - "micromatch": "3.1.10", - "mkdirp": "0.5.1", - "neo-async": "2.5.2", - "node-libs-browser": "2.1.0", - "schema-utils": "0.4.7", - "tapable": "1.0.0", - "uglifyjs-webpack-plugin": "1.3.0", - "watchpack": "1.6.0", - "webpack-sources": "1.1.0" - } - }, - "webpack-cli": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-3.1.0.tgz", - "integrity": "sha512-p5NeKDtYwjZozUWq6kGNs9w+Gtw/CPvyuXjXn2HMdz8Tie+krjEg8oAtonvIyITZdvpF7XG9xDHwscLr2c+ugQ==", - "dev": true, - "requires": { - "chalk": "2.4.1", - "cross-spawn": "6.0.5", - "enhanced-resolve": "4.1.0", - "global-modules-path": "2.3.0", - "import-local": "1.0.0", - "inquirer": "6.2.0", - "interpret": "1.1.0", - "loader-utils": "1.1.0", - "supports-color": "5.5.0", - "v8-compile-cache": "2.0.2", - "yargs": "12.0.1" - } - }, - "webpack-sources": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.1.0.tgz", - "integrity": "sha512-aqYp18kPphgoO5c/+NaUvEeACtZjMESmDChuD3NBciVpah3XpMEU9VAAtIaB1BsfJWWTSdv8Vv1m3T0aRk2dUw==", - "dev": true, - "requires": { - "source-list-map": "2.0.0", - "source-map": "0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "requires": { - "isexe": "2.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "worker-farm": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.6.0.tgz", - "integrity": "sha512-6w+3tHbM87WnSWnENBUvA2pxJPLhQUg5LKwUQHq3r+XPhIM+Gh2R5ycbwPCyuGbNg+lPgdcnQUhuC02kJCvffQ==", - "dev": true, - "requires": { - "errno": "0.1.7" - } - }, - "wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", - "dev": true, - "requires": { - "string-width": "1.0.2", - "strip-ansi": "3.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "requires": { - "number-is-nan": "1.0.1" - } - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, - "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } - } - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true - }, - "xregexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xregexp/-/xregexp-4.0.0.tgz", - "integrity": "sha512-PHyM+sQouu7xspQQwELlGwwd05mXUFqwFYfqPO0cC7x4fxyHnnuetmQr6CjJiafIDoH4MogHb9dOoJzR/Y4rFg==", - "dev": true - }, - "xtend": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", - "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", - "dev": true - }, - "y18n": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", - "dev": true - }, - "yallist": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", - "dev": true - }, - "yargs": { - "version": "12.0.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.1.tgz", - "integrity": "sha512-B0vRAp1hRX4jgIOWFtjfNjd9OA9RWYZ6tqGA9/I/IrTMsxmKvtWy+ersM+jzpQqbC3YfLzeABPdeTgcJ9eu1qQ==", - "dev": true, - "requires": { - "cliui": "4.1.0", - "decamelize": "2.0.0", - "find-up": "3.0.0", - "get-caller-file": "1.0.3", - "os-locale": "2.1.0", - "require-directory": "2.1.1", - "require-main-filename": "1.0.1", - "set-blocking": "2.0.0", - "string-width": "2.1.1", - "which-module": "2.0.0", - "y18n": "4.0.0", - "yargs-parser": "10.1.0" - }, - "dependencies": { - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "3.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "requires": { - "p-locate": "3.0.0", - "path-exists": "3.0.0" - } - }, - "p-limit": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.0.0.tgz", - "integrity": "sha512-fl5s52lI5ahKCernzzIyAP0QAZbGIovtVHGwpcu1Jr/EpzLVDI2myISHwGqK7m8uQFugVWSrbxH7XnhGtvEc+A==", - "dev": true, - "requires": { - "p-try": "2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "requires": { - "p-limit": "2.0.0" - } - }, - "p-try": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.0.0.tgz", - "integrity": "sha512-hMp0onDKIajHfIkdRk3P4CdCmErkYAxxDtP3Wx/4nZ3aGlau2VKh3mZpcuFkH27WQkL/3WBCPOktzA9ZOAnMQQ==", - "dev": true - } - } - }, - "yargs-parser": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", - "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", - "dev": true, - "requires": { - "camelcase": "4.1.0" - } - } - } -} diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/package.json b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/package.json deleted file mode 100644 index 9ef90e3e89..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/package.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "nodeservices.sockets", - "version": "1.0.0", - "description": "This is not really an NPM package and will not be published. This file exists only to reference compilation tools.", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "build": "webpack --mode production" - }, - "author": "Microsoft", - "license": "Apache-2.0", - "devDependencies": { - "@types/node": "^10.9.2", - "ts-loader": "^4.5.0", - "typescript": "^3.0.1", - "webpack": "^4.17.1", - "webpack-cli": "^3.1.0" - } -} diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/webpack.config.js b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/webpack.config.js deleted file mode 100644 index 353e1b058a..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices.Sockets/webpack.config.js +++ /dev/null @@ -1,24 +0,0 @@ -const path = require('path'); - -module.exports = { - target: 'node', - resolve: { - extensions: [ '.ts' ] - }, - module: { - rules: [ - { test: /\.ts$/, use: 'ts-loader' }, - ] - }, - entry: { - 'entrypoint-socket': ['./TypeScript/SocketNodeInstanceEntryPoint'], - }, - output: { - libraryTarget: 'commonjs', - path: path.join(__dirname, 'Content', 'Node'), - filename: '[name].js' - }, - optimization: { - minimize: false - } -}; diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices/.gitignore b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices/.gitignore deleted file mode 100644 index 98edee716e..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/bin/ -/node_modules/ -yarn.lock diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices/TypeScript/tsconfig.json b/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices/TypeScript/tsconfig.json deleted file mode 100644 index 896fc88253..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.NodeServices/TypeScript/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "compilerOptions": { - "target": "es3", - "module": "commonjs", - "moduleResolution": "node", - "types": ["node"] - }, - "exclude": [ - "node_modules" - ] -} diff --git a/src/JavaScriptServices/src/Microsoft.AspNetCore.SpaServices.Extensions/Microsoft.AspNetCore.SpaServices.Extensions.csproj b/src/JavaScriptServices/src/Microsoft.AspNetCore.SpaServices.Extensions/Microsoft.AspNetCore.SpaServices.Extensions.csproj deleted file mode 100644 index e0abc18d6c..0000000000 --- a/src/JavaScriptServices/src/Microsoft.AspNetCore.SpaServices.Extensions/Microsoft.AspNetCore.SpaServices.Extensions.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - Helpers for building single-page applications on ASP.NET MVC Core. - netcoreapp3.0 - true - - - - - - - - - - - - - diff --git a/src/JavaScriptServices/templates/WhereHaveTheTemplatesGone.md b/src/JavaScriptServices/templates/WhereHaveTheTemplatesGone.md deleted file mode 100644 index 939f5cfe0b..0000000000 --- a/src/JavaScriptServices/templates/WhereHaveTheTemplatesGone.md +++ /dev/null @@ -1,11 +0,0 @@ -# Where have all the SPA templates gone? - -They are now in the [ASP.NET templating](https://github.com/aspnet/templating) repo. - -This is so that all the ASP.NET templates (both SPA and non-SPA) can be built, tested, and packaged from a single location and always included automatically in future SDK builds. - -### What about issues and pull requests? - -If you have issues or comments about the SPA templates, please continue to post them [here in this repo](https://github.com/aspnet/JavaScriptServices/issues), because then you will reach a more relevant group of contributors than if you posted to `aspnet/templating`. - -If you want to submit a pull request on the SPA templates, then of course you will neeed to submit that to the `aspnet/templating` repo, because that's where the code is now. But before doing so it's always a good idea to [post an issue on this repo](https://github.com/aspnet/JavaScriptServices/issues) describing what you want to do, so we can discuss whether or not such a PR would be accepted. diff --git a/src/JavaScriptServices/version.props b/src/JavaScriptServices/version.props deleted file mode 100644 index 71a78cddd8..0000000000 --- a/src/JavaScriptServices/version.props +++ /dev/null @@ -1,12 +0,0 @@ - - - 3.0.0 - alpha1 - $(VersionPrefix) - $(VersionPrefix)-$(VersionSuffix)-final - t000 - a- - $(FeatureBranchVersionPrefix)$(VersionSuffix)-$([System.Text.RegularExpressions.Regex]::Replace('$(FeatureBranchVersionSuffix)', '[^\w-]', '-')) - $(VersionSuffix)-$(BuildNumber) - - diff --git a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageMiddleware.cs b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageMiddleware.cs index c58c53ce8b..d1d40b2e07 100644 --- a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageMiddleware.cs +++ b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageMiddleware.cs @@ -4,12 +4,15 @@ using System; using System.Collections.Generic; using System.Diagnostics; +using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Diagnostics.Internal; using Microsoft.AspNetCore.Diagnostics.RazorViews; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Http.Features; +using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.FileProviders; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; @@ -192,6 +195,27 @@ namespace Microsoft.AspNetCore.Diagnostics private Task DisplayRuntimeException(HttpContext context, Exception ex) { + var endpoint = context.Features.Get()?.Endpoint; + + EndpointModel endpointModel = null; + if (endpoint != null) + { + endpointModel = new EndpointModel(); + endpointModel.DisplayName = endpoint.DisplayName; + + if (endpoint is RouteEndpoint routeEndpoint) + { + endpointModel.RoutePattern = routeEndpoint.RoutePattern.RawText; + endpointModel.Order = routeEndpoint.Order; + + var httpMethods = endpoint.Metadata.GetMetadata()?.HttpMethods; + if (httpMethods != null) + { + endpointModel.HttpMethods = string.Join(", ", httpMethods); + } + } + } + var request = context.Request; var model = new ErrorPageModel @@ -200,7 +224,9 @@ namespace Microsoft.AspNetCore.Diagnostics ErrorDetails = _exceptionDetailsProvider.GetDetails(ex), Query = request.Query, Cookies = request.Cookies, - Headers = request.Headers + Headers = request.Headers, + RouteValues = request.RouteValues, + Endpoint = endpointModel }; var errorPage = new ErrorPage(model); diff --git a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorPage.Designer.cs b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorPage.Designer.cs index d5342bf79a..718cd466b5 100644 --- a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorPage.Designer.cs +++ b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorPage.Designer.cs @@ -3,12 +3,12 @@ namespace Microsoft.AspNetCore.Diagnostics.RazorViews { #line hidden + using System.Threading.Tasks; #line 1 "CompilationErrorPage.cshtml" using System; #line default #line hidden - using System.Threading.Tasks; #line 2 "CompilationErrorPage.cshtml" using System.Globalization; @@ -62,11 +62,6 @@ using Microsoft.AspNetCore.Diagnostics.RazorViews; background-color: #fff; } -h1, h2, h3, h4, h5 { - /*font-family: 'Segoe UI',Tahoma,Arial,Helvetica,sans-serif;*/ - font-weight: 100; -} - h1 { color: #44525e; margin: 15px 0 15px 0; @@ -79,10 +74,12 @@ h2 { h3 { color: #363636; margin: 5px 5px 0 0; + font-weight: normal; } code { font-family: Consolas, ""Courier New"", courier, monospace; + font-weight: bold; } body .titleerror { @@ -112,10 +109,10 @@ body .location { cursor: pointer; } - #h"); - WriteLiteral(@"eader .selected { + #header .selected { background: #44c5f2; - color: #fff; + color: #fff"); + WriteLiteral(@"; } #stackpage ul { @@ -169,10 +166,15 @@ body .location { color: #606060; } +#routingpage .subheader { + padding: 5px; + border-bottom: 1px #ddd solid; +} + .page table { - border-collapse: separate; - bo"); - WriteLiteral(@"rder-spacing: 0; + border-collapse"); + WriteLiteral(@": separate; + border-spacing: 0; margin: 0 0 20px; } @@ -227,9 +229,9 @@ a { } .rawExceptionStackTrace { - font-size: 1.2em; -"); - WriteLiteral(@"} + "); + WriteLiteral(@"font-size: 1.2em; +} .rawExceptionBlock { border-top: 1px #ddd solid; @@ -259,21 +261,20 @@ a {

"); -#line 222 "CompilationErrorPage.cshtml" +#line 224 "CompilationErrorPage.cshtml" Write(Resources.ErrorPageHtml_CompilationException); #line default #line hidden WriteLiteral("

\r\n"); -#line 223 "CompilationErrorPage.cshtml" +#line 225 "CompilationErrorPage.cshtml" var exceptionDetailId = ""; #line default #line hidden - WriteLiteral(" "); -#line 226 "CompilationErrorPage.cshtml" +#line 228 "CompilationErrorPage.cshtml" for (var i = 0; i < Model.ErrorDetails.Count; i++) { var errorDetail = Model.ErrorDetails[i]; @@ -283,7 +284,7 @@ a { #line default #line hidden WriteLiteral("
\r\n"); -#line 232 "CompilationErrorPage.cshtml" +#line 234 "CompilationErrorPage.cshtml" var stackFrameCount = 0; var frameId = ""; @@ -294,39 +295,38 @@ a { #line default #line hidden WriteLiteral("
"); -#line 238 "CompilationErrorPage.cshtml" +#line 240 "CompilationErrorPage.cshtml" Write(fileName); #line default #line hidden WriteLiteral("
\r\n"); -#line 239 "CompilationErrorPage.cshtml" +#line 241 "CompilationErrorPage.cshtml" } #line default #line hidden - WriteLiteral(" "); -#line 241 "CompilationErrorPage.cshtml" +#line 243 "CompilationErrorPage.cshtml" if (!string.IsNullOrEmpty(errorDetail.ErrorMessage)) { #line default #line hidden WriteLiteral("
"); -#line 243 "CompilationErrorPage.cshtml" +#line 245 "CompilationErrorPage.cshtml" Write(errorDetail.ErrorMessage); #line default #line hidden WriteLiteral("
\r\n"); -#line 244 "CompilationErrorPage.cshtml" +#line 246 "CompilationErrorPage.cshtml" } #line default #line hidden WriteLiteral("
\r\n
    \r\n"); -#line 247 "CompilationErrorPage.cshtml" +#line 249 "CompilationErrorPage.cshtml" foreach (var frame in errorDetail.StackFrames) { stackFrameCount++; @@ -336,198 +336,198 @@ a { #line default #line hidden WriteLiteral("
  • "); -#line 267 "CompilationErrorPage.cshtml" +#line 269 "CompilationErrorPage.cshtml" Write(line); #line default #line hidden WriteLiteral("
  • \r\n"); -#line 268 "CompilationErrorPage.cshtml" +#line 270 "CompilationErrorPage.cshtml" } #line default #line hidden WriteLiteral(" \r\n"); -#line 270 "CompilationErrorPage.cshtml" +#line 272 "CompilationErrorPage.cshtml" } #line default #line hidden WriteLiteral("
\r\n"); -#line 287 "CompilationErrorPage.cshtml" +#line 289 "CompilationErrorPage.cshtml" } #line default #line hidden WriteLiteral(" \r\n"); -#line 289 "CompilationErrorPage.cshtml" +#line 291 "CompilationErrorPage.cshtml" } #line default #line hidden WriteLiteral(" \r\n
\r\n
\r\n"); -#line 293 "CompilationErrorPage.cshtml" +#line 295 "CompilationErrorPage.cshtml" if (!string.IsNullOrEmpty(Model.CompiledContent[i])) { #line default #line hidden WriteLiteral("
\r\n
\r\n \r\n
\r\n
\r\n
\r\n"); -#line 303 "CompilationErrorPage.cshtml" +#line 305 "CompilationErrorPage.cshtml" } #line default #line hidden -#line 303 "CompilationErrorPage.cshtml" +#line 305 "CompilationErrorPage.cshtml" } diff --git a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/EndpointModel.cs b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/EndpointModel.cs new file mode 100644 index 0000000000..b4b88187c5 --- /dev/null +++ b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/EndpointModel.cs @@ -0,0 +1,13 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.AspNetCore.Diagnostics.RazorViews +{ + internal class EndpointModel + { + public string DisplayName { get; set; } + public string RoutePattern { get; set; } + public int? Order { get; set; } + public string HttpMethods { get; set; } + } +} diff --git a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPage.Designer.cs b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPage.Designer.cs index ea4969b0ed..93e6126a1a 100644 --- a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPage.Designer.cs +++ b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPage.Designer.cs @@ -3,12 +3,12 @@ namespace Microsoft.AspNetCore.Diagnostics.RazorViews { #line hidden + using System.Threading.Tasks; #line 1 "ErrorPage.cshtml" using System; #line default #line hidden - using System.Threading.Tasks; #line 2 "ErrorPage.cshtml" using System.Globalization; @@ -75,11 +75,6 @@ WriteAttributeValue("", 543, CultureInfo.CurrentUICulture.TwoLetterISOLanguageNa background-color: #fff; } -h1, h2, h3, h4, h5 { - /*font-family: 'Segoe UI',Tahoma,Arial,Helvetica,sans-serif;*/ - font-weight: 100; -} - h1 { color: #44525e; margin: 15px 0 15px 0; @@ -92,10 +87,12 @@ h2 { h3 { color: #363636; margin: 5px 5px 0 0; + font-weight: normal; } code { font-family: Consolas, ""Courier New"", courier, monospace; + font-weight: bold; } body .titleerror { @@ -125,10 +122,10 @@ body .location { cursor: pointer; } - #h"); - WriteLiteral(@"eader .selected { + #header .selected { background: #44c5f2; - color: #fff; + color: #fff"); + WriteLiteral(@"; } #stackpage ul { @@ -182,10 +179,15 @@ body .location { color: #606060; } +#routingpage .subheader { + padding: 5px; + border-bottom: 1px #ddd solid; +} + .page table { - border-collapse: separate; - bo"); - WriteLiteral(@"rder-spacing: 0; + border-collapse"); + WriteLiteral(@": separate; + border-spacing: 0; margin: 0 0 20px; } @@ -240,9 +242,9 @@ a { } .rawExceptionStackTrace { - font-size: 1.2em; -"); - WriteLiteral(@"} + "); + WriteLiteral(@"font-size: 1.2em; +} .rawExceptionBlock { border-top: 1px #ddd solid; @@ -272,33 +274,33 @@ a {

"); -#line 228 "ErrorPage.cshtml" +#line 230 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_UnhandledException); #line default #line hidden WriteLiteral("

\r\n"); -#line 229 "ErrorPage.cshtml" +#line 231 "ErrorPage.cshtml" foreach (var errorDetail in Model.ErrorDetails) { #line default #line hidden WriteLiteral("
"); -#line 231 "ErrorPage.cshtml" +#line 233 "ErrorPage.cshtml" Write(errorDetail.Error.GetType().Name); #line default #line hidden WriteLiteral(": "); -#line 231 "ErrorPage.cshtml" +#line 233 "ErrorPage.cshtml" Output.Write(HtmlEncodeAndReplaceLineBreaks(errorDetail.Error.Message)); #line default #line hidden WriteLiteral("
\r\n"); -#line 232 "ErrorPage.cshtml" - +#line 234 "ErrorPage.cshtml" + var firstFrame = errorDetail.StackFrames.FirstOrDefault(); if (firstFrame != null) { @@ -310,33 +312,33 @@ a { #line default #line hidden WriteLiteral("

"); -#line 240 "ErrorPage.cshtml" +#line 242 "ErrorPage.cshtml" Write(location); #line default #line hidden WriteLiteral(" in

\r\n"); -#line 241 "ErrorPage.cshtml" +#line 243 "ErrorPage.cshtml" } else if (!string.IsNullOrEmpty(location)) { @@ -344,13 +346,13 @@ WriteAttributeValue("", 4958, firstFrame.File, 4958, 16, false); #line default #line hidden WriteLiteral("

"); -#line 244 "ErrorPage.cshtml" +#line 246 "ErrorPage.cshtml" Write(location); #line default #line hidden WriteLiteral("

\r\n"); -#line 245 "ErrorPage.cshtml" +#line 247 "ErrorPage.cshtml" } else { @@ -358,13 +360,13 @@ WriteAttributeValue("", 4958, firstFrame.File, 4958, 16, false); #line default #line hidden WriteLiteral("

"); -#line 248 "ErrorPage.cshtml" +#line 250 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_UnknownLocation); #line default #line hidden WriteLiteral("

\r\n"); -#line 249 "ErrorPage.cshtml" +#line 251 "ErrorPage.cshtml" } var reflectionTypeLoadException = errorDetail.Error as ReflectionTypeLoadException; @@ -376,26 +378,26 @@ WriteAttributeValue("", 4958, firstFrame.File, 4958, 16, false); #line default #line hidden WriteLiteral("

Loader Exceptions:

\r\n
    \r\n"); -#line 258 "ErrorPage.cshtml" +#line 260 "ErrorPage.cshtml" foreach (var ex in reflectionTypeLoadException.LoaderExceptions) { #line default #line hidden WriteLiteral("
  • "); -#line 260 "ErrorPage.cshtml" +#line 262 "ErrorPage.cshtml" Write(ex.Message); #line default #line hidden WriteLiteral("
  • \r\n"); -#line 261 "ErrorPage.cshtml" +#line 263 "ErrorPage.cshtml" } #line default #line hidden WriteLiteral("
\r\n"); -#line 263 "ErrorPage.cshtml" +#line 265 "ErrorPage.cshtml" } } } @@ -403,31 +405,37 @@ WriteAttributeValue("", 4958, firstFrame.File, 4958, 16, false); #line default #line hidden WriteLiteral("
    \r\n
  • \r\n "); -#line 268 "ErrorPage.cshtml" +#line 270 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_StackButton); #line default #line hidden WriteLiteral("\r\n
  • \r\n
  • \r\n "); -#line 271 "ErrorPage.cshtml" +#line 273 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_QueryButton); #line default #line hidden WriteLiteral("\r\n
  • \r\n
  • \r\n "); -#line 274 "ErrorPage.cshtml" +#line 276 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_CookiesButton); #line default #line hidden WriteLiteral("\r\n
  • \r\n
  • \r\n "); -#line 277 "ErrorPage.cshtml" +#line 279 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_HeadersButton); +#line default +#line hidden + WriteLiteral("\r\n
  • \r\n
  • \r\n "); +#line 282 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_RoutingButton); + #line default #line hidden WriteLiteral("\r\n
  • \r\n
\r\n\r\n
\r\n
    \r\n"); -#line 283 "ErrorPage.cshtml" +#line 288 "ErrorPage.cshtml" var exceptionCount = 0; var stackFrameCount = 0; @@ -437,8 +445,7 @@ WriteAttributeValue("", 4958, firstFrame.File, 4958, 16, false); #line default #line hidden - WriteLiteral(" "); -#line 289 "ErrorPage.cshtml" +#line 294 "ErrorPage.cshtml" foreach (var errorDetail in Model.ErrorDetails) { exceptionCount++; @@ -448,267 +455,267 @@ WriteAttributeValue("", 4958, firstFrame.File, 4958, 16, false); #line default #line hidden WriteLiteral("
  • \r\n

    "); -#line 295 "ErrorPage.cshtml" +#line 300 "ErrorPage.cshtml" Write(errorDetail.Error.GetType().Name); #line default #line hidden WriteLiteral(": "); -#line 295 "ErrorPage.cshtml" +#line 300 "ErrorPage.cshtml" Write(errorDetail.Error.Message); #line default #line hidden WriteLiteral("

    \r\n
      \r\n"); -#line 297 "ErrorPage.cshtml" - foreach (var frame in errorDetail.StackFrames) - { - stackFrameCount++; - frameId = "frame" + stackFrameCount; +#line 302 "ErrorPage.cshtml" + foreach (var frame in errorDetail.StackFrames) + { + stackFrameCount++; + frameId = "frame" + stackFrameCount; #line default #line hidden - WriteLiteral("
    • "); -#line 321 "ErrorPage.cshtml" - Write(line); + WriteLiteral("
    • "); +#line 326 "ErrorPage.cshtml" + Write(line); #line default #line hidden WriteLiteral("
    • \r\n"); -#line 322 "ErrorPage.cshtml" - } +#line 327 "ErrorPage.cshtml" + } #line default #line hidden - WriteLiteral(" \r\n"); -#line 324 "ErrorPage.cshtml" - } + WriteLiteral(" \r\n"); +#line 329 "ErrorPage.cshtml" + } #line default #line hidden - WriteLiteral("\r\n
\r\n"); + WriteLiteral("
  • "); #line 343 "ErrorPage.cshtml" - } + Write(line); #line default #line hidden - WriteLiteral("
  • \r\n"); -#line 345 "ErrorPage.cshtml" - } + WriteLiteral("\r\n"); +#line 344 "ErrorPage.cshtml" + } + +#line default +#line hidden + WriteLiteral(" \r\n"); +#line 346 "ErrorPage.cshtml" + } + +#line default +#line hidden + WriteLiteral("
    \r\n"); +#line 348 "ErrorPage.cshtml" + } + +#line default +#line hidden + WriteLiteral(" \r\n"); +#line 350 "ErrorPage.cshtml" + } #line default #line hidden WriteLiteral(@"
  • -
    +
    \r\n
    \r\n
    \r\n \r\n
  • \r\n"); -#line 359 "ErrorPage.cshtml" +#line 364 "ErrorPage.cshtml" } #line default #line hidden WriteLiteral(" \r\n \r\n\r\n
    \r\n"); -#line 364 "ErrorPage.cshtml" +#line 369 "ErrorPage.cshtml" if (Model.Query.Any()) { #line default #line hidden WriteLiteral(" \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n"); -#line 374 "ErrorPage.cshtml" +#line 379 "ErrorPage.cshtml" foreach (var kv in Model.Query.OrderBy(kv => kv.Key)) { foreach (var v in kv.Value) @@ -717,26 +724,26 @@ WriteAttributeValue("", 10304, exceptionDetailId, 10304, 18, false); #line default #line hidden WriteLiteral(" \r\n \r\n \r\n \r\n"); -#line 382 "ErrorPage.cshtml" +#line 387 "ErrorPage.cshtml" } } #line default #line hidden WriteLiteral(" \r\n
    "); -#line 369 "ErrorPage.cshtml" +#line 374 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_VariableColumn); #line default #line hidden WriteLiteral(""); -#line 370 "ErrorPage.cshtml" +#line 375 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_ValueColumn); #line default #line hidden WriteLiteral("
    "); -#line 379 "ErrorPage.cshtml" +#line 384 "ErrorPage.cshtml" Write(kv.Key); #line default #line hidden WriteLiteral(""); -#line 380 "ErrorPage.cshtml" +#line 385 "ErrorPage.cshtml" Write(v); #line default #line hidden WriteLiteral("
    \r\n"); -#line 386 "ErrorPage.cshtml" +#line 391 "ErrorPage.cshtml" } else { @@ -744,63 +751,63 @@ WriteAttributeValue("", 10304, exceptionDetailId, 10304, 18, false); #line default #line hidden WriteLiteral("

    "); -#line 389 "ErrorPage.cshtml" +#line 394 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_NoQueryStringData); #line default #line hidden WriteLiteral("

    \r\n"); -#line 390 "ErrorPage.cshtml" +#line 395 "ErrorPage.cshtml" } #line default #line hidden WriteLiteral("
    \r\n\r\n
    \r\n"); -#line 394 "ErrorPage.cshtml" +#line 399 "ErrorPage.cshtml" if (Model.Cookies.Any()) { #line default #line hidden WriteLiteral(" \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n"); -#line 404 "ErrorPage.cshtml" +#line 409 "ErrorPage.cshtml" foreach (var kv in Model.Cookies.OrderBy(kv => kv.Key)) { #line default #line hidden WriteLiteral(" \r\n \r\n \r\n \r\n"); -#line 410 "ErrorPage.cshtml" +#line 415 "ErrorPage.cshtml" } #line default #line hidden WriteLiteral(" \r\n
    "); -#line 399 "ErrorPage.cshtml" +#line 404 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_VariableColumn); #line default #line hidden WriteLiteral(""); -#line 400 "ErrorPage.cshtml" +#line 405 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_ValueColumn); #line default #line hidden WriteLiteral("
    "); -#line 407 "ErrorPage.cshtml" +#line 412 "ErrorPage.cshtml" Write(kv.Key); #line default #line hidden WriteLiteral(""); -#line 408 "ErrorPage.cshtml" +#line 413 "ErrorPage.cshtml" Write(kv.Value); #line default #line hidden WriteLiteral("
    \r\n"); -#line 413 "ErrorPage.cshtml" +#line 418 "ErrorPage.cshtml" } else { @@ -808,38 +815,38 @@ WriteAttributeValue("", 10304, exceptionDetailId, 10304, 18, false); #line default #line hidden WriteLiteral("

    "); -#line 416 "ErrorPage.cshtml" +#line 421 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_NoCookieData); #line default #line hidden WriteLiteral("

    \r\n"); -#line 417 "ErrorPage.cshtml" +#line 422 "ErrorPage.cshtml" } #line default #line hidden - WriteLiteral("
    \r\n
    \r\n"); -#line 420 "ErrorPage.cshtml" + WriteLiteral("
    \r\n\r\n
    \r\n"); +#line 426 "ErrorPage.cshtml" if (Model.Headers.Any()) { #line default #line hidden WriteLiteral(" \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n"); -#line 430 "ErrorPage.cshtml" +#line 436 "ErrorPage.cshtml" foreach (var kv in Model.Headers.OrderBy(kv => kv.Key)) { foreach (var v in kv.Value) @@ -848,26 +855,26 @@ WriteAttributeValue("", 10304, exceptionDetailId, 10304, 18, false); #line default #line hidden WriteLiteral(" \r\n \r\n \r\n \r\n"); -#line 438 "ErrorPage.cshtml" +#line 444 "ErrorPage.cshtml" } } #line default #line hidden WriteLiteral(" \r\n
    "); -#line 425 "ErrorPage.cshtml" +#line 431 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_VariableColumn); #line default #line hidden WriteLiteral(""); -#line 426 "ErrorPage.cshtml" +#line 432 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_ValueColumn); #line default #line hidden WriteLiteral("
    "); -#line 435 "ErrorPage.cshtml" +#line 441 "ErrorPage.cshtml" Write(kv.Key); #line default #line hidden WriteLiteral(""); -#line 436 "ErrorPage.cshtml" +#line 442 "ErrorPage.cshtml" Write(v); #line default #line hidden WriteLiteral("
    \r\n"); -#line 442 "ErrorPage.cshtml" +#line 448 "ErrorPage.cshtml" } else { @@ -875,18 +882,219 @@ WriteAttributeValue("", 10304, exceptionDetailId, 10304, 18, false); #line default #line hidden WriteLiteral("

    "); -#line 445 "ErrorPage.cshtml" +#line 451 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_NoHeaderData); #line default #line hidden WriteLiteral("

    \r\n"); -#line 446 "ErrorPage.cshtml" +#line 452 "ErrorPage.cshtml" + } + +#line default +#line hidden + WriteLiteral("
    \r\n\r\n
    \r\n

    "); +#line 456 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_Endpoint); + +#line default +#line hidden + WriteLiteral("

    \r\n"); +#line 457 "ErrorPage.cshtml" + if (Model.Endpoint != null) + { + +#line default +#line hidden + WriteLiteral(" \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n"); +#line 471 "ErrorPage.cshtml" + if (!string.IsNullOrEmpty(Model.Endpoint.RoutePattern)) + { + +#line default +#line hidden + WriteLiteral(" \r\n \r\n \r\n \r\n"); +#line 477 "ErrorPage.cshtml" + } + +#line default +#line hidden +#line 478 "ErrorPage.cshtml" + if (Model.Endpoint.Order != null) + { + +#line default +#line hidden + WriteLiteral(" \r\n \r\n \r\n \r\n"); +#line 484 "ErrorPage.cshtml" + } + +#line default +#line hidden +#line 485 "ErrorPage.cshtml" + if (!string.IsNullOrEmpty(Model.Endpoint.HttpMethods)) + { + +#line default +#line hidden + WriteLiteral(" \r\n \r\n \r\n \r\n"); +#line 491 "ErrorPage.cshtml" + } + +#line default +#line hidden + WriteLiteral(" \r\n
    "); +#line 462 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_NameColumn); + +#line default +#line hidden + WriteLiteral(""); +#line 463 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_ValueColumn); + +#line default +#line hidden + WriteLiteral("
    "); +#line 468 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_EndpointDisplayName); + +#line default +#line hidden + WriteLiteral(""); +#line 469 "ErrorPage.cshtml" + Write(Model.Endpoint.DisplayName); + +#line default +#line hidden + WriteLiteral("
    "); +#line 474 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_EndpointRoutePattern); + +#line default +#line hidden + WriteLiteral(""); +#line 475 "ErrorPage.cshtml" + Write(Model.Endpoint.RoutePattern); + +#line default +#line hidden + WriteLiteral("
    "); +#line 481 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_EndpointRouteOrder); + +#line default +#line hidden + WriteLiteral(""); +#line 482 "ErrorPage.cshtml" + Write(Model.Endpoint.Order); + +#line default +#line hidden + WriteLiteral("
    "); +#line 488 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_EndpointRouteHttpMethod); + +#line default +#line hidden + WriteLiteral(""); +#line 489 "ErrorPage.cshtml" + Write(Model.Endpoint.HttpMethods); + +#line default +#line hidden + WriteLiteral("
    \r\n"); +#line 494 "ErrorPage.cshtml" + } + else + { + +#line default +#line hidden + WriteLiteral("

    "); +#line 497 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_NoEndpoint); + +#line default +#line hidden + WriteLiteral("

    \r\n"); +#line 498 "ErrorPage.cshtml" + } + +#line default +#line hidden + WriteLiteral("

    "); +#line 499 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_RouteValues); + +#line default +#line hidden + WriteLiteral("

    \r\n"); +#line 500 "ErrorPage.cshtml" + if (Model.RouteValues != null && Model.RouteValues.Any()) + { + +#line default +#line hidden + WriteLiteral(" \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n"); +#line 510 "ErrorPage.cshtml" + foreach (var kv in Model.RouteValues.OrderBy(kv => kv.Key)) + { + +#line default +#line hidden + WriteLiteral(" \r\n \r\n \r\n \r\n"); +#line 516 "ErrorPage.cshtml" + } + +#line default +#line hidden + WriteLiteral(" \r\n
    "); +#line 505 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_VariableColumn); + +#line default +#line hidden + WriteLiteral(""); +#line 506 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_ValueColumn); + +#line default +#line hidden + WriteLiteral("
    "); +#line 513 "ErrorPage.cshtml" + Write(kv.Key); + +#line default +#line hidden + WriteLiteral(""); +#line 514 "ErrorPage.cshtml" + Write(kv.Value); + +#line default +#line hidden + WriteLiteral("
    \r\n"); +#line 519 "ErrorPage.cshtml" + } + else + { + +#line default +#line hidden + WriteLiteral("

    "); +#line 522 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_NoRouteValues); + +#line default +#line hidden + WriteLiteral("

    \r\n"); +#line 523 "ErrorPage.cshtml" } #line default #line hidden WriteLiteral(@"
    +