зеркало из https://github.com/dotnet/razor.git
Use Basic.Reference.Assemblies (#10416)
* Use Basic.Reference.Assemblies * Update baselines * Centralize references
This commit is contained in:
Родитель
8071442667
Коммит
ce7a0bf3fc
|
@ -10,6 +10,7 @@
|
|||
<_MicrosoftVisualStudioPackagesVersion>17.10.151</_MicrosoftVisualStudioPackagesVersion>
|
||||
<_VisualStudioLanguageServerProtocolVersion>17.11.1-preview</_VisualStudioLanguageServerProtocolVersion>
|
||||
<_MicrosoftExtensionsPackageVersion>8.0.0</_MicrosoftExtensionsPackageVersion>
|
||||
<_BasicReferenceAssembliesVersion>1.7.2</_BasicReferenceAssembliesVersion>
|
||||
<_BenchmarkDotNetPackageVersion>0.13.5.2136</_BenchmarkDotNetPackageVersion>
|
||||
<_MicrosoftVisualStudioExtensibilityTestingVersion>0.1.187-beta</_MicrosoftVisualStudioExtensibilityTestingVersion>
|
||||
<_MicrosoftCodeAnalysisAnalyzersPackageVersion>3.11.0-beta1.24170.2</_MicrosoftCodeAnalysisAnalyzersPackageVersion>
|
||||
|
@ -19,6 +20,8 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageVersion Include="Basic.Reference.Assemblies.AspNet80" Version="$(_BasicReferenceAssembliesVersion)" />
|
||||
<PackageVersion Include="Basic.Reference.Assemblies.Net80" Version="$(_BasicReferenceAssembliesVersion)" />
|
||||
<PackageVersion Include="BenchmarkDotNet" Version="$(_BenchmarkDotNetPackageVersion)" />
|
||||
<PackageVersion Include="BenchmarkDotNet.Diagnostics.Windows" Version="$(_BenchmarkDotNetPackageVersion)" />
|
||||
<PackageVersion Include="DiffPlex" Version="1.7.2" />
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Microsoft.CodeAnalysis.Razor.Compiler\src\Microsoft.CodeAnalysis.Razor.Compiler.csproj" />
|
||||
<ProjectReference Include="..\..\..\Shared\Microsoft.AspNetCore.Razor.Test.Common\Microsoft.AspNetCore.Razor.Test.Common.csproj" />
|
||||
<ProjectReference Include="..\..\..\Shared\Microsoft.AspNetCore.Razor.Test.ComponentShim\Microsoft.AspNetCore.Razor.Test.ComponentShim.csproj" />
|
||||
|
||||
<PackageReference Include="Newtonsoft.Json" />
|
||||
<PackageReference Include="Moq" />
|
||||
|
|
|
@ -2501,10 +2501,7 @@ namespace Test
|
|||
// Assert
|
||||
AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
|
||||
AssertCSharpDocumentMatchesBaseline(generated.CodeDocument);
|
||||
CompileToAssembly(generated,
|
||||
// x:\dir\subdir\Test\TestComponent.cshtml(1,61): error CS1503: Argument 2: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback<int>' to 'System.Action<int>'
|
||||
// UpdateValue
|
||||
Diagnostic(ErrorCode.ERR_BadArgType, "UpdateValue").WithArguments("2", "Microsoft.AspNetCore.Components.EventCallback<int>", "System.Action<int>").WithLocation(1, 61));
|
||||
CompileToAssembly(generated);
|
||||
}
|
||||
|
||||
[IntegrationTestFact]
|
||||
|
@ -2539,10 +2536,7 @@ namespace Test
|
|||
// Assert
|
||||
AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
|
||||
AssertCSharpDocumentMatchesBaseline(generated.CodeDocument);
|
||||
CompileToAssembly(generated,
|
||||
// x:\dir\subdir\Test\TestComponent.cshtml(1,61): error CS1503: Argument 2: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback<Test.CustomValue>' to 'System.Action<Test.CustomValue>'
|
||||
// UpdateValue
|
||||
Diagnostic(ErrorCode.ERR_BadArgType, "UpdateValue").WithArguments("2", "Microsoft.AspNetCore.Components.EventCallback<Test.CustomValue>", "System.Action<Test.CustomValue>").WithLocation(1, 61));
|
||||
CompileToAssembly(generated);
|
||||
}
|
||||
|
||||
[IntegrationTestFact]
|
||||
|
@ -2577,10 +2571,7 @@ namespace Test
|
|||
// Assert
|
||||
AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
|
||||
AssertCSharpDocumentMatchesBaseline(generated.CodeDocument);
|
||||
CompileToAssembly(generated,
|
||||
// x:\dir\subdir\Test\TestComponent.cshtml(1,82): error CS1503: Argument 2: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback<Test.CustomValue>' to 'System.Action<Test.CustomValue>'
|
||||
// UpdateValue
|
||||
Diagnostic(ErrorCode.ERR_BadArgType, "UpdateValue").WithArguments("2", "Microsoft.AspNetCore.Components.EventCallback<Test.CustomValue>", "System.Action<Test.CustomValue>").WithLocation(1, 82));
|
||||
CompileToAssembly(generated);
|
||||
}
|
||||
|
||||
[IntegrationTestFact]
|
||||
|
@ -2613,10 +2604,7 @@ namespace Test
|
|||
// Assert
|
||||
AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
|
||||
AssertCSharpDocumentMatchesBaseline(generated.CodeDocument);
|
||||
CompileToAssembly(generated,
|
||||
// x:\dir\subdir\Test\TestComponent.cshtml(2,61): error CS1503: Argument 2: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback<TParam>' to 'System.Action<TParam>'
|
||||
// UpdateValue
|
||||
Diagnostic(ErrorCode.ERR_BadArgType, "UpdateValue").WithArguments("2", "Microsoft.AspNetCore.Components.EventCallback<TParam>", "System.Action<TParam>").WithLocation(2, 61));
|
||||
CompileToAssembly(generated);
|
||||
}
|
||||
|
||||
[IntegrationTestFact]
|
||||
|
@ -2649,10 +2637,7 @@ namespace Test
|
|||
// Assert
|
||||
AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
|
||||
AssertCSharpDocumentMatchesBaseline(generated.CodeDocument);
|
||||
CompileToAssembly(generated,
|
||||
// x:\dir\subdir\Test\TestComponent.cshtml(2,77): error CS1503: Argument 2: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback<TParam>' to 'System.Action<TParam>'
|
||||
// UpdateValue
|
||||
Diagnostic(ErrorCode.ERR_BadArgType, "UpdateValue").WithArguments("2", "Microsoft.AspNetCore.Components.EventCallback<TParam>", "System.Action<TParam>").WithLocation(2, 77));
|
||||
CompileToAssembly(generated);
|
||||
}
|
||||
|
||||
[IntegrationTestFact]
|
||||
|
@ -10706,7 +10691,7 @@ Time: @DateTime.Now
|
|||
public void RenderMode_Directive_FullyQualified()
|
||||
{
|
||||
var generated = CompileToCSharp("""
|
||||
@rendermode Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
@rendermode Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
""");
|
||||
|
||||
// Assert
|
||||
|
@ -10719,7 +10704,7 @@ Time: @DateTime.Now
|
|||
public void RenderMode_Directive_SimpleExpression()
|
||||
{
|
||||
var generated = CompileToCSharp("""
|
||||
@rendermode @(Microsoft.AspNetCore.Components.Web.RenderMode.Server)
|
||||
@rendermode @(Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer)
|
||||
""");
|
||||
|
||||
// Assert
|
||||
|
@ -10732,7 +10717,7 @@ Time: @DateTime.Now
|
|||
public void RenderMode_Directive_SimpleExpression_With_Code()
|
||||
{
|
||||
var generated = CompileToCSharp("""
|
||||
@rendermode @(Microsoft.AspNetCore.Components.Web.RenderMode.Server)
|
||||
@rendermode @(Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer)
|
||||
|
||||
@code
|
||||
{
|
||||
|
@ -10756,7 +10741,7 @@ Time: @DateTime.Now
|
|||
[Parameter]
|
||||
public int Count { get; set; }
|
||||
}
|
||||
@rendermode @(Microsoft.AspNetCore.Components.Web.RenderMode.Server)
|
||||
@rendermode @(Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer)
|
||||
""");
|
||||
|
||||
// Assert
|
||||
|
@ -10790,7 +10775,7 @@ Time: @DateTime.Now
|
|||
var generated = CompileToCSharp("""
|
||||
@namespace Custom.Namespace
|
||||
|
||||
@rendermode Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
@rendermode Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
""");
|
||||
|
||||
// Assert
|
||||
|
@ -10803,7 +10788,7 @@ Time: @DateTime.Now
|
|||
public void RenderMode_Attribute_With_SimpleIdentifier()
|
||||
{
|
||||
var generated = CompileToCSharp($"""
|
||||
<{ComponentName} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.Server" />
|
||||
<{ComponentName} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer" />
|
||||
""");
|
||||
|
||||
// Assert
|
||||
|
@ -10836,7 +10821,7 @@ Time: @DateTime.Now
|
|||
public void RenderMode_Attribute_With_Existing_Attributes()
|
||||
{
|
||||
var generated = CompileToCSharp($$"""
|
||||
<{{ComponentName}} P2="abc" @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.Server" P1="def" />
|
||||
<{{ComponentName}} P2="abc" @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer" P1="def" />
|
||||
|
||||
@code
|
||||
{
|
||||
|
@ -10856,7 +10841,7 @@ Time: @DateTime.Now
|
|||
public void Duplicate_RenderMode()
|
||||
{
|
||||
var generated = CompileToCSharp($$"""
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.Server"
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer"
|
||||
@rendermode="Value2" />
|
||||
""");
|
||||
|
||||
|
@ -10870,8 +10855,8 @@ Time: @DateTime.Now
|
|||
public void RenderMode_Multiple_Components()
|
||||
{
|
||||
var generated = CompileToCSharp($$"""
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.Server" />
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.Server" />
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer" />
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer" />
|
||||
""");
|
||||
|
||||
// Assert
|
||||
|
@ -10884,13 +10869,13 @@ Time: @DateTime.Now
|
|||
public void RenderMode_Child_Components()
|
||||
{
|
||||
var generated = CompileToCSharp($$"""
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.Server">
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.Server">
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.Server" />
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer">
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer">
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer" />
|
||||
</{{ComponentName}}>
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.Server">
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.Server" />
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.Server" />
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer">
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer" />
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer" />
|
||||
</{{ComponentName}}>
|
||||
</{{ComponentName}}>
|
||||
|
||||
|
@ -10913,7 +10898,7 @@ Time: @DateTime.Now
|
|||
var generated = CompileToCSharp($$"""
|
||||
@typeparam TRenderMode where TRenderMode : Microsoft.AspNetCore.Components.IComponentRenderMode
|
||||
|
||||
<{{ComponentName}} @rendermode="RenderModeParam" RenderModeParam="Microsoft.AspNetCore.Components.Web.RenderMode.Server" />
|
||||
<{{ComponentName}} @rendermode="RenderModeParam" RenderModeParam="Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer" />
|
||||
|
||||
@code
|
||||
{
|
||||
|
@ -10931,7 +10916,7 @@ Time: @DateTime.Now
|
|||
public void RenderMode_With_Ternary()
|
||||
{
|
||||
var generated = CompileToCSharp($$"""
|
||||
<{{ComponentName}} @rendermode="@(true ? Microsoft.AspNetCore.Components.Web.RenderMode.Server : null)" />
|
||||
<{{ComponentName}} @rendermode="@(true ? Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer : null)" />
|
||||
""");
|
||||
|
||||
// Assert
|
||||
|
@ -10974,7 +10959,7 @@ Time: @DateTime.Now
|
|||
{
|
||||
public class RenderModeContainer
|
||||
{
|
||||
public Microsoft.AspNetCore.Components.IComponentRenderMode RenderMode => Microsoft.AspNetCore.Components.Web.RenderMode.Server;
|
||||
public Microsoft.AspNetCore.Components.IComponentRenderMode RenderMode => Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer;
|
||||
}
|
||||
|
||||
RenderModeContainer? Container => null;
|
||||
|
@ -11406,7 +11391,7 @@ Time: @DateTime.Now
|
|||
public void FormName_NoAddNamedEventMethod()
|
||||
{
|
||||
// Arrange
|
||||
var componentShim = BaseCompilation.References.Single(r => r.Display.EndsWith("Microsoft.AspNetCore.Razor.Test.ComponentShim.dll", StringComparison.Ordinal));
|
||||
var componentsDll = BaseCompilation.References.Single(r => r.Display == "Microsoft.AspNetCore.Components (aspnet80)");
|
||||
var minimalShim = """
|
||||
namespace Microsoft.AspNetCore.Components
|
||||
{
|
||||
|
@ -11459,9 +11444,9 @@ Time: @DateTime.Now
|
|||
assemblyName: "Microsoft.AspNetCore.Components",
|
||||
options: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary))
|
||||
.AddSyntaxTrees(Parse(minimalShim))
|
||||
.AddReferences(MetadataReference.CreateFromFile(typeof(object).Assembly.Location))
|
||||
.AddReferences(ReferenceUtil.NetLatestAll)
|
||||
.EmitToImageReference();
|
||||
var baseCompilation = BaseCompilation.ReplaceReference(componentShim, minimalShimRef);
|
||||
var baseCompilation = BaseCompilation.ReplaceReference(componentsDll, minimalShimRef);
|
||||
|
||||
// Act
|
||||
var generated = CompileToCSharp("""
|
||||
|
|
|
@ -3,13 +3,8 @@
|
|||
|
||||
#nullable disable
|
||||
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Microsoft.AspNetCore.Components.Rendering;
|
||||
using System.Linq;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.CSharp;
|
||||
using Roslyn.Test.Utilities;
|
||||
using Xunit;
|
||||
|
||||
|
@ -19,12 +14,9 @@ public class ComponentDeclarationRazorIntegrationTest : RazorIntegrationTestBase
|
|||
{
|
||||
public ComponentDeclarationRazorIntegrationTest()
|
||||
{
|
||||
// Include this assembly to use types defined in tests.
|
||||
BaseCompilation = DefaultBaseCompilation.AddReferences(MetadataReference.CreateFromFile(GetType().Assembly.Location));
|
||||
AdditionalSyntaxTrees.Add(Parse(AdditionalCode));
|
||||
}
|
||||
|
||||
internal override CSharpCompilation BaseCompilation { get; }
|
||||
|
||||
internal override string FileKind => FileKinds.Component;
|
||||
|
||||
internal override bool DeclarationOnly => true;
|
||||
|
@ -39,9 +31,8 @@ public class ComponentDeclarationRazorIntegrationTest : RazorIntegrationTestBase
|
|||
}");
|
||||
|
||||
// Assert
|
||||
var property = component.GetType().GetProperty("Value");
|
||||
Assert.NotNull(property);
|
||||
Assert.Same(typeof(string), property.PropertyType);
|
||||
var property = component.GetMembers("Value").Single();
|
||||
AssertEx.Equal("public System.String Test.TestComponent.Value { get; set; }", property.ToTestDisplayString());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
@ -53,9 +44,8 @@ public class ComponentDeclarationRazorIntegrationTest : RazorIntegrationTestBase
|
|||
");
|
||||
|
||||
// Assert
|
||||
var property = component.GetType().GetProperty("Value", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||
Assert.NotNull(property);
|
||||
Assert.Same(typeof(string), property.PropertyType);
|
||||
var property = component.GetMembers("Value").Single();
|
||||
AssertEx.Equal("private System.String Test.TestComponent.Value { get; set; }", property.ToTestDisplayString());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
@ -68,33 +58,34 @@ public class ComponentDeclarationRazorIntegrationTest : RazorIntegrationTestBase
|
|||
");
|
||||
|
||||
// Assert
|
||||
var property = component.GetType().GetProperty("Value", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||
Assert.NotNull(property);
|
||||
Assert.Same(typeof(StringBuilder), property.PropertyType);
|
||||
var property = component.GetMembers("Value").Single();
|
||||
AssertEx.Equal("private System.Text.StringBuilder Test.TestComponent.Value { get; set; }", property.ToTestDisplayString());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void DeclarationConfiguration_IncludesInherits()
|
||||
{
|
||||
// Arrange & Act
|
||||
var component = CompileToComponent($@"
|
||||
@inherits {FullTypeName<BaseClass>()}
|
||||
var component = CompileToComponent(@"
|
||||
@inherits TestNamespace.BaseClass
|
||||
");
|
||||
|
||||
// Assert
|
||||
Assert.Same(typeof(BaseClass), component.GetType().BaseType);
|
||||
AssertEx.Equal("Test.TestComponent", component.ToTestDisplayString());
|
||||
AssertEx.Equal("TestNamespace.BaseClass", component.BaseType.ToTestDisplayString());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void DeclarationConfiguration_IncludesImplements()
|
||||
{
|
||||
// Arrange & Act
|
||||
var component = CompileToComponent($@"
|
||||
@implements {FullTypeName<IDoCoolThings>()}
|
||||
var component = CompileToComponent(@"
|
||||
@implements TestNamespace.IDoCoolThings
|
||||
");
|
||||
|
||||
// Assert
|
||||
Assert.Contains(typeof(IDoCoolThings), component.GetType().GetInterfaces());
|
||||
AssertEx.Equal("Test.TestComponent", component.ToTestDisplayString());
|
||||
AssertEx.Equal("TestNamespace.IDoCoolThings", component.Interfaces.Single().ToTestDisplayString());
|
||||
}
|
||||
|
||||
[Fact, WorkItem("https://github.com/dotnet/blazor/issues/453")]
|
||||
|
@ -155,6 +146,14 @@ namespace Test
|
|||
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "StringBuilder").WithArguments("StringBuilder").WithLocation(2, 12));
|
||||
}
|
||||
|
||||
private const string AdditionalCode =
|
||||
"""
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Microsoft.AspNetCore.Components.Rendering;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TestNamespace;
|
||||
|
||||
public class BaseClass : IComponent
|
||||
{
|
||||
public void Attach(RenderHandle renderHandle)
|
||||
|
@ -174,4 +173,5 @@ namespace Test
|
|||
public interface IDoCoolThings
|
||||
{
|
||||
}
|
||||
""";
|
||||
}
|
||||
|
|
|
@ -5,11 +5,8 @@
|
|||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.CSharp;
|
||||
using Roslyn.Test.Utilities;
|
||||
using Xunit;
|
||||
|
||||
namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests;
|
||||
|
@ -19,12 +16,9 @@ public class ComponentDirectiveIntegrationTest : RazorIntegrationTestBase
|
|||
{
|
||||
public ComponentDirectiveIntegrationTest()
|
||||
{
|
||||
// Include this assembly to use types defined in tests.
|
||||
BaseCompilation = DefaultBaseCompilation.AddReferences(MetadataReference.CreateFromFile(GetType().Assembly.Location));
|
||||
AdditionalSyntaxTrees.Add(Parse(AdditionalCode));
|
||||
}
|
||||
|
||||
internal override CSharpCompilation BaseCompilation { get; }
|
||||
|
||||
internal override string FileKind => FileKinds.Component;
|
||||
|
||||
[Fact]
|
||||
|
@ -34,20 +28,19 @@ public class ComponentDirectiveIntegrationTest : RazorIntegrationTestBase
|
|||
var component = CompileToComponent("Hello");
|
||||
|
||||
// Assert
|
||||
Assert.Null(component.GetType().GetCustomAttribute<LayoutAttribute>());
|
||||
Assert.Null(component.GetAttributes().FirstOrDefault(a => a.AttributeClass.Name == "LayoutAttribute"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SupportsLayoutDeclarations()
|
||||
{
|
||||
// Arrange/Act
|
||||
var testComponentTypeName = FullTypeName<TestLayout>();
|
||||
var component = CompileToComponent(
|
||||
$"@layout {testComponentTypeName}\n" +
|
||||
"@layout TestNamespace.TestLayout\n" +
|
||||
"Hello");
|
||||
|
||||
// Assert
|
||||
var layoutAttribute = component.GetType().GetCustomAttribute<LayoutAttribute>();
|
||||
var layoutAttribute = component.GetAttributes().Single(a => a.AttributeClass.Name == "LayoutAttribute");
|
||||
Assert.NotNull(layoutAttribute);
|
||||
}
|
||||
|
||||
|
@ -55,74 +48,67 @@ public class ComponentDirectiveIntegrationTest : RazorIntegrationTestBase
|
|||
public void SupportsImplementsDeclarations()
|
||||
{
|
||||
// Arrange/Act
|
||||
var testInterfaceTypeName = FullTypeName<ITestInterface>();
|
||||
var component = CompileToComponent(
|
||||
$"@implements {testInterfaceTypeName}\n" +
|
||||
"@implements TestNamespace.ITestInterface\n" +
|
||||
"Hello");
|
||||
|
||||
// Assert
|
||||
Assert.IsAssignableFrom<ITestInterface>(component);
|
||||
AssertEx.Equal("TestNamespace.ITestInterface", component.Interfaces.Single().ToTestDisplayString());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SupportsMultipleImplementsDeclarations()
|
||||
{
|
||||
// Arrange/Act
|
||||
var testInterfaceTypeName = FullTypeName<ITestInterface>();
|
||||
var testInterfaceTypeName2 = FullTypeName<ITestInterface2>();
|
||||
var component = CompileToComponent(
|
||||
$"@implements {testInterfaceTypeName}\n" +
|
||||
$"@implements {testInterfaceTypeName2}\n" +
|
||||
"@implements TestNamespace.ITestInterface\n" +
|
||||
"@implements TestNamespace.ITestInterface2\n" +
|
||||
"Hello");
|
||||
|
||||
// Assert
|
||||
Assert.IsAssignableFrom<ITestInterface>(component);
|
||||
Assert.IsAssignableFrom<ITestInterface2>(component);
|
||||
Assert.Collection(component.Interfaces.OrderBy(p => p.Name),
|
||||
s => AssertEx.Equal("TestNamespace.ITestInterface", s.ToTestDisplayString()),
|
||||
s => AssertEx.Equal("TestNamespace.ITestInterface2", s.ToTestDisplayString()));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SupportsInheritsDirective()
|
||||
{
|
||||
// Arrange/Act
|
||||
var testBaseClassTypeName = FullTypeName<TestBaseClass>();
|
||||
var component = CompileToComponent(
|
||||
$"@inherits {testBaseClassTypeName}" + Environment.NewLine +
|
||||
"@inherits TestNamespace.TestBaseClass" + Environment.NewLine +
|
||||
"Hello");
|
||||
|
||||
// Assert
|
||||
Assert.IsAssignableFrom<TestBaseClass>(component);
|
||||
AssertEx.Equal("TestNamespace.TestBaseClass", component.BaseType.ToTestDisplayString());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SupportsInjectDirective()
|
||||
{
|
||||
// Arrange/Act 1: Compilation
|
||||
var componentType = CompileToComponent(
|
||||
$"@inject {FullTypeName<IMyService1>()} MyService1\n" +
|
||||
$"@inject {FullTypeName<IMyService2>()} MyService2\n" +
|
||||
$"Hello from @MyService1 and @MyService2").GetType();
|
||||
var component = CompileToComponent(
|
||||
"@inject TestNamespace.IMyService1 MyService1\n" +
|
||||
"@inject TestNamespace.IMyService2 MyService2\n" +
|
||||
"Hello from @MyService1 and @MyService2");
|
||||
|
||||
// Assert 1: Compiled type has correct properties
|
||||
var propertyFlags = BindingFlags.Instance | BindingFlags.NonPublic;
|
||||
var injectableProperties = componentType.GetProperties(propertyFlags)
|
||||
.Where(p => p.GetCustomAttribute<InjectAttribute>() != null);
|
||||
var injectableProperties = component.GetMembers().OfType<IPropertySymbol>()
|
||||
.Where(p => p.GetAttributes().Any(a => a.AttributeClass.Name == "InjectAttribute"));
|
||||
Assert.Collection(injectableProperties.OrderBy(p => p.Name),
|
||||
property =>
|
||||
{
|
||||
Assert.Equal("MyService1", property.Name);
|
||||
Assert.Equal(typeof(IMyService1), property.PropertyType);
|
||||
Assert.False(property.GetMethod.IsPublic);
|
||||
Assert.False(property.SetMethod.IsPublic);
|
||||
},
|
||||
property =>
|
||||
{
|
||||
Assert.Equal("MyService2", property.Name);
|
||||
Assert.Equal(typeof(IMyService2), property.PropertyType);
|
||||
Assert.False(property.GetMethod.IsPublic);
|
||||
Assert.False(property.SetMethod.IsPublic);
|
||||
});
|
||||
s => AssertEx.Equal("private TestNamespace.IMyService1 Test.TestComponent.MyService1 { get; set; }", s.ToTestDisplayString()),
|
||||
s => AssertEx.Equal("private TestNamespace.IMyService2 Test.TestComponent.MyService2 { get; set; }", s.ToTestDisplayString()));
|
||||
}
|
||||
|
||||
private const string AdditionalCode =
|
||||
"""
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Microsoft.AspNetCore.Components.Rendering;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TestNamespace;
|
||||
|
||||
public class TestLayout : IComponent
|
||||
{
|
||||
[Parameter]
|
||||
|
@ -149,4 +135,5 @@ public class ComponentDirectiveIntegrationTest : RazorIntegrationTestBase
|
|||
public interface IMyService2 { }
|
||||
public class MyService1Impl : IMyService1 { }
|
||||
public class MyService2Impl : IMyService2 { }
|
||||
""";
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#nullable disable
|
||||
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Xunit;
|
||||
|
||||
namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests;
|
||||
|
@ -25,9 +24,8 @@ public class ComponentFilePathIntegrationTest : RazorIntegrationTestBase
|
|||
// Assert
|
||||
Assert.Empty(result.CSharpDiagnostics);
|
||||
|
||||
var type = Assert.Single(result.Assembly.GetTypes().Where(t => t.GetCustomAttributes(inherit: false).All(a => a.GetType().Name != "CompilerGeneratedAttribute")));
|
||||
Assert.Equal(DefaultRootNamespace, type.Namespace);
|
||||
Assert.Equal("Filename_with_spaces", type.Name);
|
||||
var type = result.Compilation.GetTypeByMetadataName($"{DefaultRootNamespace}.Filename_with_spaces");
|
||||
Assert.NotNull(type);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
|
@ -45,8 +43,7 @@ public class ComponentFilePathIntegrationTest : RazorIntegrationTestBase
|
|||
// Assert
|
||||
Assert.Empty(result.CSharpDiagnostics);
|
||||
|
||||
var type = Assert.Single(result.Assembly.GetTypes().Where(t => t.GetCustomAttributes(inherit: false).All(a => a.GetType().Name != "CompilerGeneratedAttribute")));
|
||||
Assert.Equal(expectedNamespace, type.Namespace);
|
||||
Assert.Equal(expectedClassName, type.Name);
|
||||
var type = result.Compilation.GetTypeByMetadataName($"{expectedNamespace}.{expectedClassName}");
|
||||
Assert.NotNull(type);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,12 +19,12 @@ public class ComponentRenderModeAttributeIntegrationTests : RazorIntegrationTest
|
|||
public void RenderMode_Attribute_With_Diagnostics()
|
||||
{
|
||||
var generated = CompileToCSharp($$"""
|
||||
<{{ComponentName}} @rendermode="@Microsoft.AspNetCore.Components.Web.RenderMode.Server)" />
|
||||
<{{ComponentName}} @rendermode="@Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer)" />
|
||||
""");
|
||||
|
||||
// Assert
|
||||
|
||||
//x:\dir\subdir\Test\TestComponent.cshtml(1, 29): Error RZ9986: Component attributes do not support complex content(mixed C# and markup). Attribute: '@rendermode', text: 'Microsoft.AspNetCore.Components.Web.RenderMode.Server)'
|
||||
//x:\dir\subdir\Test\TestComponent.cshtml(1, 29): Error RZ9986: Component attributes do not support complex content(mixed C# and markup). Attribute: '@rendermode', text: 'Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer)'
|
||||
var diagnostic = Assert.Single(generated.RazorDiagnostics);
|
||||
Assert.Equal("RZ9986", diagnostic.Id);
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ public class ComponentRenderModeAttributeIntegrationTests : RazorIntegrationTest
|
|||
public void RenderMode_Attribute_On_Html_Element()
|
||||
{
|
||||
var generated = CompileToCSharp("""
|
||||
<input @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.Server" />
|
||||
<input @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer" />
|
||||
""");
|
||||
|
||||
// Assert
|
||||
|
@ -46,9 +46,9 @@ public class ComponentRenderModeAttributeIntegrationTests : RazorIntegrationTest
|
|||
public void RenderMode_Attribute_On_Component_With_Directive()
|
||||
{
|
||||
var generated = CompileToCSharp($$"""
|
||||
@rendermode Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
@rendermode Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.Server" />
|
||||
<{{ComponentName}} @rendermode="Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer" />
|
||||
""");
|
||||
|
||||
// Assert
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Roslyn.Test.Utilities;
|
||||
using Xunit;
|
||||
|
||||
namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests;
|
||||
|
@ -17,27 +17,18 @@ public class ComponentRenderModeDirectiveIntegrationTests : RazorIntegrationTest
|
|||
{
|
||||
// Arrange & Act
|
||||
var component = CompileToComponent("""
|
||||
@rendermode Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
@rendermode Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
""");
|
||||
|
||||
// Assert
|
||||
var attribute = Assert.Single(component.GetType().CustomAttributes);
|
||||
Assert.EndsWith("PrivateComponentRenderModeAttribute", attribute.AttributeType.Name);
|
||||
|
||||
var attributeType = component.GetType().Assembly.GetTypes().Single(t => t.Name.EndsWith("PrivateComponentRenderModeAttribute", StringComparison.Ordinal));
|
||||
Assert.NotNull(attributeType);
|
||||
|
||||
var modeProperty = attributeType.GetProperty("Mode");
|
||||
Assert.NotNull(modeProperty);
|
||||
|
||||
var instance = Activator.CreateInstance(attributeType);
|
||||
Assert.NotNull(instance);
|
||||
|
||||
var modeValue = modeProperty.GetValue(instance);
|
||||
Assert.NotNull(modeValue);
|
||||
|
||||
var valueType = modeValue.GetType();
|
||||
Assert.Equal("Microsoft.AspNetCore.Components.Web.ServerRenderMode", valueType.FullName);
|
||||
VerifyRenderModeAttribute(component, """
|
||||
private sealed class __PrivateComponentRenderModeAttribute : global::Microsoft.AspNetCore.Components.RenderModeAttribute
|
||||
{
|
||||
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl => Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
;
|
||||
public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
|
||||
}
|
||||
""");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
@ -46,27 +37,18 @@ public class ComponentRenderModeDirectiveIntegrationTests : RazorIntegrationTest
|
|||
// Arrange & Act
|
||||
var component = CompileToComponent("""
|
||||
@using static Microsoft.AspNetCore.Components.Web.RenderMode
|
||||
@rendermode Server
|
||||
@rendermode InteractiveServer
|
||||
""");
|
||||
|
||||
// Assert
|
||||
var attribute = Assert.Single(component.GetType().CustomAttributes);
|
||||
Assert.EndsWith("PrivateComponentRenderModeAttribute", attribute.AttributeType.Name);
|
||||
|
||||
var attributeType = component.GetType().Assembly.GetTypes().Single(t => t.Name.EndsWith("PrivateComponentRenderModeAttribute", StringComparison.Ordinal));
|
||||
Assert.NotNull(attributeType);
|
||||
|
||||
var modeProperty = attributeType.GetProperty("Mode");
|
||||
Assert.NotNull(modeProperty);
|
||||
|
||||
var instance = Activator.CreateInstance(attributeType);
|
||||
Assert.NotNull(instance);
|
||||
|
||||
var modeValue = modeProperty.GetValue(instance);
|
||||
Assert.NotNull(modeValue);
|
||||
|
||||
var valueType = modeValue.GetType();
|
||||
Assert.Equal("Microsoft.AspNetCore.Components.Web.ServerRenderMode", valueType.FullName);
|
||||
VerifyRenderModeAttribute(component, """
|
||||
private sealed class __PrivateComponentRenderModeAttribute : global::Microsoft.AspNetCore.Components.RenderModeAttribute
|
||||
{
|
||||
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl => InteractiveServer
|
||||
;
|
||||
public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
|
||||
}
|
||||
""");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
@ -89,8 +71,8 @@ public class ComponentRenderModeDirectiveIntegrationTests : RazorIntegrationTest
|
|||
{
|
||||
// Arrange & Act
|
||||
var compilationResult = CompileToCSharp("""
|
||||
@rendermode Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
@rendermode Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
@rendermode Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
@rendermode Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
""");
|
||||
|
||||
// Assert
|
||||
|
@ -119,7 +101,7 @@ public class ComponentRenderModeDirectiveIntegrationTests : RazorIntegrationTest
|
|||
public void LanguageVersion()
|
||||
{
|
||||
var compilationResult = CompileToCSharp("""
|
||||
@rendermode Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
@rendermode Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
""", configuration: Configuration with { LanguageVersion = RazorLanguageVersion.Version_7_0 });
|
||||
|
||||
Assert.Empty(compilationResult.RazorDiagnostics);
|
||||
|
@ -180,7 +162,7 @@ public class ComponentRenderModeDirectiveIntegrationTests : RazorIntegrationTest
|
|||
@rendermode myRenderMode
|
||||
@code
|
||||
{
|
||||
Microsoft.AspNetCore.Components.IComponentRenderMode myRenderMode = new Microsoft.AspNetCore.Components.Web.ServerRenderMode();
|
||||
Microsoft.AspNetCore.Components.IComponentRenderMode myRenderMode = new Microsoft.AspNetCore.Components.Web.InteractiveServerRenderMode();
|
||||
}
|
||||
""");
|
||||
|
||||
|
@ -200,7 +182,7 @@ public class ComponentRenderModeDirectiveIntegrationTests : RazorIntegrationTest
|
|||
@rendermode myRenderMode
|
||||
@code
|
||||
{
|
||||
static Microsoft.AspNetCore.Components.IComponentRenderMode myRenderMode = new Microsoft.AspNetCore.Components.Web.ServerRenderMode();
|
||||
static Microsoft.AspNetCore.Components.IComponentRenderMode myRenderMode = new Microsoft.AspNetCore.Components.Web.InteractiveServerRenderMode();
|
||||
}
|
||||
""");
|
||||
|
||||
|
@ -216,7 +198,7 @@ public class ComponentRenderModeDirectiveIntegrationTests : RazorIntegrationTest
|
|||
@rendermode TestComponent.myRenderMode
|
||||
@code
|
||||
{
|
||||
internal static Microsoft.AspNetCore.Components.IComponentRenderMode myRenderMode = new Microsoft.AspNetCore.Components.Web.ServerRenderMode();
|
||||
internal static Microsoft.AspNetCore.Components.IComponentRenderMode myRenderMode = new Microsoft.AspNetCore.Components.Web.InteractiveServerRenderMode();
|
||||
}
|
||||
""");
|
||||
|
||||
|
@ -230,27 +212,26 @@ public class ComponentRenderModeDirectiveIntegrationTests : RazorIntegrationTest
|
|||
{
|
||||
// Arrange & Act
|
||||
var component = CompileToComponent("""
|
||||
@rendermode @(Microsoft.AspNetCore.Components.Web.RenderMode.Server)
|
||||
@rendermode @(Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer)
|
||||
""");
|
||||
|
||||
// Assert
|
||||
var attribute = Assert.Single(component.GetType().CustomAttributes);
|
||||
Assert.EndsWith("PrivateComponentRenderModeAttribute", attribute.AttributeType.Name);
|
||||
VerifyRenderModeAttribute(component, $$"""
|
||||
private sealed class __PrivateComponentRenderModeAttribute : global::Microsoft.AspNetCore.Components.RenderModeAttribute
|
||||
{
|
||||
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
#nullable restore
|
||||
#line (1,15)-(1,79) "{{DefaultDocumentPath}}"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
var attributeType = component.GetType().Assembly.GetTypes().Single(t => t.Name.EndsWith("PrivateComponentRenderModeAttribute", StringComparison.Ordinal));
|
||||
Assert.NotNull(attributeType);
|
||||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
|
||||
var modeProperty = attributeType.GetProperty("Mode");
|
||||
Assert.NotNull(modeProperty);
|
||||
|
||||
var instance = Activator.CreateInstance(attributeType);
|
||||
Assert.NotNull(instance);
|
||||
|
||||
var modeValue = modeProperty.GetValue(instance);
|
||||
Assert.NotNull(modeValue);
|
||||
|
||||
var valueType = modeValue.GetType();
|
||||
Assert.Equal("Microsoft.AspNetCore.Components.Web.ServerRenderMode", valueType.FullName);
|
||||
;
|
||||
public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
|
||||
}
|
||||
""");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
@ -268,23 +249,22 @@ public class ComponentRenderModeDirectiveIntegrationTests : RazorIntegrationTest
|
|||
""");
|
||||
|
||||
// Assert
|
||||
var attribute = Assert.Single(component.GetType().CustomAttributes);
|
||||
Assert.EndsWith("PrivateComponentRenderModeAttribute", attribute.AttributeType.Name);
|
||||
VerifyRenderModeAttribute(component, $$"""
|
||||
private sealed class __PrivateComponentRenderModeAttribute : global::Microsoft.AspNetCore.Components.RenderModeAttribute
|
||||
{
|
||||
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
#nullable restore
|
||||
#line (1,15)-(1,66) "{{DefaultDocumentPath}}"
|
||||
new TestComponent.MyRenderMode("This is some text")
|
||||
|
||||
var attributeType = component.GetType().Assembly.GetTypes().Single(t => t.Name.EndsWith("PrivateComponentRenderModeAttribute", StringComparison.Ordinal));
|
||||
Assert.NotNull(attributeType);
|
||||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
|
||||
var modeProperty = attributeType.GetProperty("Mode");
|
||||
Assert.NotNull(modeProperty);
|
||||
|
||||
var instance = Activator.CreateInstance(attributeType);
|
||||
Assert.NotNull(instance);
|
||||
|
||||
var modeValue = modeProperty.GetValue(instance);
|
||||
Assert.NotNull(modeValue);
|
||||
|
||||
var valueType = modeValue.GetType();
|
||||
Assert.Equal("Test.TestComponent+MyRenderMode", valueType.FullName);
|
||||
;
|
||||
public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
|
||||
}
|
||||
""");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
@ -302,23 +282,22 @@ public class ComponentRenderModeDirectiveIntegrationTests : RazorIntegrationTest
|
|||
""");
|
||||
|
||||
// Assert
|
||||
var attribute = Assert.Single(component.GetType().CustomAttributes);
|
||||
Assert.EndsWith("PrivateComponentRenderModeAttribute", attribute.AttributeType.Name);
|
||||
VerifyRenderModeAttribute(component, $$"""
|
||||
private sealed class __PrivateComponentRenderModeAttribute : global::Microsoft.AspNetCore.Components.RenderModeAttribute
|
||||
{
|
||||
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
#nullable restore
|
||||
#line (1,15)-(1,52) "{{DefaultDocumentPath}}"
|
||||
new MyRenderMode("This is some text")
|
||||
|
||||
var attributeType = component.GetType().Assembly.GetTypes().Single(t => t.Name.EndsWith("PrivateComponentRenderModeAttribute", StringComparison.Ordinal));
|
||||
Assert.NotNull(attributeType);
|
||||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
|
||||
var modeProperty = attributeType.GetProperty("Mode");
|
||||
Assert.NotNull(modeProperty);
|
||||
|
||||
var instance = Activator.CreateInstance(attributeType);
|
||||
Assert.NotNull(instance);
|
||||
|
||||
var modeValue = modeProperty.GetValue(instance);
|
||||
Assert.NotNull(modeValue);
|
||||
|
||||
var valueType = modeValue.GetType();
|
||||
Assert.Equal("Test.TestComponent+MyRenderMode", valueType.FullName);
|
||||
;
|
||||
public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
|
||||
}
|
||||
""");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
@ -338,23 +317,24 @@ public class ComponentRenderModeDirectiveIntegrationTests : RazorIntegrationTest
|
|||
""");
|
||||
|
||||
// Assert
|
||||
var attribute = Assert.Single(component.GetType().CustomAttributes);
|
||||
Assert.EndsWith("PrivateComponentRenderModeAttribute", attribute.AttributeType.Name);
|
||||
VerifyRenderModeAttribute(component, $$"""
|
||||
private sealed class __PrivateComponentRenderModeAttribute : global::Microsoft.AspNetCore.Components.RenderModeAttribute
|
||||
{
|
||||
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
#nullable restore
|
||||
#line (1,15)-(3,7) "{{DefaultDocumentPath}}"
|
||||
new TestComponent.MyRenderMode(@"This is
|
||||
some
|
||||
text")
|
||||
|
||||
var attributeType = component.GetType().Assembly.GetTypes().Single(t => t.Name.EndsWith("PrivateComponentRenderModeAttribute", StringComparison.Ordinal));
|
||||
Assert.NotNull(attributeType);
|
||||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
|
||||
var modeProperty = attributeType.GetProperty("Mode");
|
||||
Assert.NotNull(modeProperty);
|
||||
|
||||
var instance = Activator.CreateInstance(attributeType);
|
||||
Assert.NotNull(instance);
|
||||
|
||||
var modeValue = modeProperty.GetValue(instance);
|
||||
Assert.NotNull(modeValue);
|
||||
|
||||
var valueType = modeValue.GetType();
|
||||
Assert.Equal("Test.TestComponent+MyRenderMode", valueType.FullName);
|
||||
;
|
||||
public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
|
||||
}
|
||||
""");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
@ -366,27 +346,39 @@ public class ComponentRenderModeDirectiveIntegrationTests : RazorIntegrationTest
|
|||
|
||||
@code
|
||||
{
|
||||
public static Microsoft.AspNetCore.Components.IComponentRenderMode GetRenderMode() => Microsoft.AspNetCore.Components.Web.RenderMode.Server;
|
||||
public static Microsoft.AspNetCore.Components.IComponentRenderMode GetRenderMode() => Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer;
|
||||
}
|
||||
""");
|
||||
|
||||
// Assert
|
||||
var attribute = Assert.Single(component.GetType().CustomAttributes);
|
||||
Assert.EndsWith("PrivateComponentRenderModeAttribute", attribute.AttributeType.Name);
|
||||
VerifyRenderModeAttribute(component, $$"""
|
||||
private sealed class __PrivateComponentRenderModeAttribute : global::Microsoft.AspNetCore.Components.RenderModeAttribute
|
||||
{
|
||||
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
#nullable restore
|
||||
#line (1,15)-(1,44) "{{DefaultDocumentPath}}"
|
||||
TestComponent.GetRenderMode()
|
||||
|
||||
var attributeType = component.GetType().Assembly.GetTypes().Single(t => t.Name.EndsWith("PrivateComponentRenderModeAttribute", StringComparison.Ordinal));
|
||||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
|
||||
;
|
||||
public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
|
||||
}
|
||||
""");
|
||||
}
|
||||
|
||||
private static void VerifyRenderModeAttribute(INamedTypeSymbol component, string expected)
|
||||
{
|
||||
var attribute = Assert.Single(component.GetAttributes());
|
||||
AssertEx.Equal("__PrivateComponentRenderModeAttribute", attribute.AttributeClass?.Name);
|
||||
|
||||
var attributeType = component.ContainingAssembly.GetTypeByMetadataName("Test.TestComponent+__PrivateComponentRenderModeAttribute");
|
||||
Assert.NotNull(attributeType);
|
||||
|
||||
var modeProperty = attributeType.GetProperty("Mode");
|
||||
Assert.NotNull(modeProperty);
|
||||
|
||||
var instance = Activator.CreateInstance(attributeType);
|
||||
Assert.NotNull(instance);
|
||||
|
||||
var modeValue = modeProperty.GetValue(instance);
|
||||
Assert.NotNull(modeValue);
|
||||
|
||||
var valueType = modeValue.GetType();
|
||||
Assert.Equal("Microsoft.AspNetCore.Components.Web.ServerRenderMode", valueType.FullName);
|
||||
expected = expected.NormalizeLineEndings();
|
||||
var actual = attributeType.DeclaringSyntaxReferences.Single().GetSyntax().ToString().NormalizeLineEndings();
|
||||
AssertEx.AssertEqualToleratingWhitespaceDifferences(expected, actual);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Microsoft.CodeAnalysis.Razor.Compiler\src\Microsoft.CodeAnalysis.Razor.Compiler.csproj" />
|
||||
<ProjectReference Include="..\..\..\Shared\Microsoft.AspNetCore.Razor.Test.Common\Microsoft.AspNetCore.Razor.Test.Common.csproj" />
|
||||
<ProjectReference Include="..\..\..\Shared\Microsoft.AspNetCore.Razor.Test.ComponentShim\Microsoft.AspNetCore.Razor.Test.ComponentShim.csproj" />
|
||||
|
||||
<PackageReference Include="Newtonsoft.Json" />
|
||||
<PackageReference Include="Moq" />
|
||||
|
|
|
@ -19,6 +19,12 @@ namespace AspNetCore
|
|||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp7 : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
|
||||
#nullable disable
|
||||
{
|
||||
#line hidden
|
||||
#pragma warning disable 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
|
||||
#pragma warning restore 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
|
||||
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper;
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
}
|
||||
|
@ -100,6 +106,8 @@ namespace AspNetCore
|
|||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>();
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
#nullable restore
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
RazorCompiledItemMetadataAttribute -
|
||||
CreateNewOnMetadataUpdateAttribute -
|
||||
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp7 - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> -
|
||||
DefaultTagHelperRuntime -
|
||||
FieldDeclaration - - private - global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper - __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper
|
||||
DesignTimeDirective -
|
||||
DirectiveToken - (287:7,8 [62] ) - global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel>
|
||||
DirectiveToken - (350:7,71 [4] ) - Html
|
||||
|
@ -32,45 +34,46 @@
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync
|
||||
HtmlContent - (0:0,0 [12] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (0:0,0 [5] CSharp7.cshtml) - Html - <body
|
||||
LazyIntermediateToken - (5:0,5 [1] CSharp7.cshtml) - Html - >
|
||||
LazyIntermediateToken - (6:0,6 [6] CSharp7.cshtml) - Html - \n
|
||||
CSharpCode - (14:1,6 [187] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (14:1,6 [187] CSharp7.cshtml) - CSharp - \n var nameLookup = new Dictionary<string, (string FirstName, string LastName, object Extra)>()\n {\n ["John Doe"] = ("John", "Doe", true)\n };\n\n
|
||||
CSharpCode - (246:7,53 [253] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (246:7,53 [253] CSharp7.cshtml) - CSharp - \n\n int Sixteen = 0b0001_0000;\n long BillionsAndBillions = 100_000_000_000;\n double AvogadroConstant = 6.022_140_857_747_474e23;\n decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M;\n
|
||||
HtmlContent - (502:14,0 [6] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (502:14,0 [6] CSharp7.cshtml) - Html - \n
|
||||
CSharpCode - (509:15,5 [159] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (509:15,5 [159] CSharp7.cshtml) - CSharp - if (nameLookup.TryGetValue("John Doe", out var entry))\n {\n if (entry.Extra is bool alive)\n {\n // Do Something\n }\n }
|
||||
HtmlContent - (668:21,5 [48] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (668:21,5 [6] CSharp7.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (674:22,4 [2] CSharp7.cshtml) - Html - <p
|
||||
LazyIntermediateToken - (676:22,6 [1] CSharp7.cshtml) - Html - >
|
||||
LazyIntermediateToken - (677:22,7 [39] CSharp7.cshtml) - Html - \n Here's a very unique number:
|
||||
CSharpExpression - (718:23,39 [62] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (718:23,39 [62] CSharp7.cshtml) - CSharp - 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M
|
||||
HtmlContent - (781:23,102 [33] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (781:23,102 [6] CSharp7.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (787:24,4 [4] CSharp7.cshtml) - Html - </p>
|
||||
LazyIntermediateToken - (791:24,8 [8] CSharp7.cshtml) - Html - \n\n
|
||||
LazyIntermediateToken - (799:26,4 [4] CSharp7.cshtml) - Html - <div
|
||||
LazyIntermediateToken - (803:26,8 [1] CSharp7.cshtml) - Html - >
|
||||
LazyIntermediateToken - (804:26,9 [10] CSharp7.cshtml) - Html - \n
|
||||
CSharpExpression - (816:27,10 [34] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (816:27,10 [34] CSharp7.cshtml) - CSharp - (First: "John", Last: "Doe").First
|
||||
HtmlContent - (851:27,45 [1] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (851:27,45 [1] CSharp7.cshtml) - Html -
|
||||
HtmlContent - (870:27,64 [20] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (870:27,64 [6] CSharp7.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (876:28,4 [6] CSharp7.cshtml) - Html - </div>
|
||||
LazyIntermediateToken - (882:28,10 [8] CSharp7.cshtml) - Html - \n\n
|
||||
CSharpCode - (891:30,5 [291] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (891:30,5 [291] CSharp7.cshtml) - CSharp - switch (entry.Extra)\n {\n case int age:\n // Do something\n break;\n case IEnumerable<string> childrenNames:\n // Do more something\n break;\n case null:\n // Do even more of something\n break;\n }
|
||||
HtmlContent - (1182:41,5 [9] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (1182:41,5 [2] CSharp7.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (1184:42,0 [7] CSharp7.cshtml) - Html - </body>
|
||||
TagHelper - (0:0,0 [1191] CSharp7.cshtml) - body - TagMode.StartTagAndEndTag
|
||||
DefaultTagHelperBody -
|
||||
HtmlContent - (6:0,6 [6] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (6:0,6 [6] CSharp7.cshtml) - Html - \n
|
||||
CSharpCode - (14:1,6 [187] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (14:1,6 [187] CSharp7.cshtml) - CSharp - \n var nameLookup = new Dictionary<string, (string FirstName, string LastName, object Extra)>()\n {\n ["John Doe"] = ("John", "Doe", true)\n };\n\n
|
||||
CSharpCode - (246:7,53 [253] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (246:7,53 [253] CSharp7.cshtml) - CSharp - \n\n int Sixteen = 0b0001_0000;\n long BillionsAndBillions = 100_000_000_000;\n double AvogadroConstant = 6.022_140_857_747_474e23;\n decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M;\n
|
||||
HtmlContent - (502:14,0 [6] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (502:14,0 [6] CSharp7.cshtml) - Html - \n
|
||||
CSharpCode - (509:15,5 [159] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (509:15,5 [159] CSharp7.cshtml) - CSharp - if (nameLookup.TryGetValue("John Doe", out var entry))\n {\n if (entry.Extra is bool alive)\n {\n // Do Something\n }\n }
|
||||
HtmlContent - (668:21,5 [48] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (668:21,5 [6] CSharp7.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (674:22,4 [2] CSharp7.cshtml) - Html - <p
|
||||
LazyIntermediateToken - (676:22,6 [1] CSharp7.cshtml) - Html - >
|
||||
LazyIntermediateToken - (677:22,7 [39] CSharp7.cshtml) - Html - \n Here's a very unique number:
|
||||
CSharpExpression - (718:23,39 [62] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (718:23,39 [62] CSharp7.cshtml) - CSharp - 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M
|
||||
HtmlContent - (781:23,102 [33] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (781:23,102 [6] CSharp7.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (787:24,4 [4] CSharp7.cshtml) - Html - </p>
|
||||
LazyIntermediateToken - (791:24,8 [8] CSharp7.cshtml) - Html - \n\n
|
||||
LazyIntermediateToken - (799:26,4 [4] CSharp7.cshtml) - Html - <div
|
||||
LazyIntermediateToken - (803:26,8 [1] CSharp7.cshtml) - Html - >
|
||||
LazyIntermediateToken - (804:26,9 [10] CSharp7.cshtml) - Html - \n
|
||||
CSharpExpression - (816:27,10 [34] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (816:27,10 [34] CSharp7.cshtml) - CSharp - (First: "John", Last: "Doe").First
|
||||
HtmlContent - (851:27,45 [1] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (851:27,45 [1] CSharp7.cshtml) - Html -
|
||||
HtmlContent - (870:27,64 [20] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (870:27,64 [6] CSharp7.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (876:28,4 [6] CSharp7.cshtml) - Html - </div>
|
||||
LazyIntermediateToken - (882:28,10 [8] CSharp7.cshtml) - Html - \n\n
|
||||
CSharpCode - (891:30,5 [291] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (891:30,5 [291] CSharp7.cshtml) - CSharp - switch (entry.Extra)\n {\n case int age:\n // Do something\n break;\n case IEnumerable<string> childrenNames:\n // Do more something\n break;\n case null:\n // Do even more of something\n break;\n }
|
||||
HtmlContent - (1182:41,5 [2] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (1182:41,5 [2] CSharp7.cshtml) - Html - \n
|
||||
DefaultTagHelperCreate - - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper
|
||||
DefaultTagHelperExecute -
|
||||
Inject -
|
||||
Inject -
|
||||
Inject -
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
};
|
||||
|
||||
|
|
||||
Generated Location: (1436:33,6 [187] )
|
||||
Generated Location: (1984:39,6 [187] )
|
||||
|
|
||||
var nameLookup = new Dictionary<string, (string FirstName, string LastName, object Extra)>()
|
||||
{
|
||||
|
@ -23,7 +23,7 @@ Source Location: (246:7,53 [253] TestFiles/IntegrationTests/CodeGenerationIntegr
|
|||
double AvogadroConstant = 6.022_140_857_747_474e23;
|
||||
decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M;
|
||||
|
|
||||
Generated Location: (1830:46,53 [253] )
|
||||
Generated Location: (2378:52,53 [253] )
|
||||
|
|
||||
|
||||
int Sixteen = 0b0001_0000;
|
||||
|
@ -40,7 +40,7 @@ Source Location: (509:15,5 [159] TestFiles/IntegrationTests/CodeGenerationIntegr
|
|||
// Do Something
|
||||
}
|
||||
}|
|
||||
Generated Location: (2243:59,5 [159] )
|
||||
Generated Location: (2791:65,5 [159] )
|
||||
|if (nameLookup.TryGetValue("John Doe", out var entry))
|
||||
{
|
||||
if (entry.Extra is bool alive)
|
||||
|
@ -51,12 +51,12 @@ Generated Location: (2243:59,5 [159] )
|
|||
|
||||
Source Location: (718:23,39 [62] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml)
|
||||
|1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M|
|
||||
Generated Location: (2596:72,39 [62] )
|
||||
Generated Location: (3144:78,39 [62] )
|
||||
|1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M|
|
||||
|
||||
Source Location: (816:27,10 [34] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml)
|
||||
|(First: "John", Last: "Doe").First|
|
||||
Generated Location: (2824:79,10 [34] )
|
||||
Generated Location: (3372:85,10 [34] )
|
||||
|(First: "John", Last: "Doe").First|
|
||||
|
||||
Source Location: (891:30,5 [291] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml)
|
||||
|
@ -72,7 +72,7 @@ Source Location: (891:30,5 [291] TestFiles/IntegrationTests/CodeGenerationIntegr
|
|||
// Do even more of something
|
||||
break;
|
||||
}|
|
||||
Generated Location: (3019:86,5 [291] )
|
||||
Generated Location: (3567:92,5 [291] )
|
||||
|switch (entry.Extra)
|
||||
{
|
||||
case int age:
|
||||
|
|
|
@ -21,10 +21,32 @@ namespace AspNetCore
|
|||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp7 : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
|
||||
#nullable disable
|
||||
{
|
||||
#line hidden
|
||||
#pragma warning disable 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
|
||||
#pragma warning restore 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
|
||||
#pragma warning disable 0169
|
||||
private string __tagHelperStringValueBuffer;
|
||||
#pragma warning restore 0169
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null;
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (__backed__tagHelperScopeManager == null)
|
||||
{
|
||||
__backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
|
||||
}
|
||||
return __backed__tagHelperScopeManager;
|
||||
}
|
||||
}
|
||||
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper;
|
||||
#pragma warning disable 1998
|
||||
public async override global::System.Threading.Tasks.Task ExecuteAsync()
|
||||
{
|
||||
WriteLiteral("<body>\r\n");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
|
||||
WriteLiteral("\r\n");
|
||||
#nullable restore
|
||||
#line (2,7)-(8,9) "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
|
||||
|
||||
|
@ -53,7 +75,7 @@ namespace AspNetCore
|
|||
#line hidden
|
||||
#nullable disable
|
||||
|
||||
WriteLiteral("\r\n");
|
||||
WriteLiteral("\r\n");
|
||||
#nullable restore
|
||||
#line (16,6)-(23,1) "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
|
||||
if (nameLookup.TryGetValue("John Doe", out var entry))
|
||||
|
@ -68,8 +90,8 @@ if (nameLookup.TryGetValue("John Doe", out var entry))
|
|||
#line hidden
|
||||
#nullable disable
|
||||
|
||||
WriteLiteral(" <p>\r\n Here\'s a very unique number: ");
|
||||
Write(
|
||||
WriteLiteral(" <p>\r\n Here\'s a very unique number: ");
|
||||
Write(
|
||||
#nullable restore
|
||||
#line (24,40)-(24,102) "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
|
||||
1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M
|
||||
|
@ -77,9 +99,9 @@ if (nameLookup.TryGetValue("John Doe", out var entry))
|
|||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
);
|
||||
WriteLiteral("\r\n </p>\r\n\r\n <div>\r\n ");
|
||||
Write(
|
||||
);
|
||||
WriteLiteral("\r\n </p>\r\n\r\n <div>\r\n ");
|
||||
Write(
|
||||
#nullable restore
|
||||
#line (28,11)-(28,45) "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
|
||||
(First: "John", Last: "Doe").First
|
||||
|
@ -87,9 +109,9 @@ if (nameLookup.TryGetValue("John Doe", out var entry))
|
|||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
);
|
||||
WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </div>\r\n\r\n");
|
||||
);
|
||||
WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </div>\r\n\r\n");
|
||||
#nullable restore
|
||||
#line (31,6)-(43,1) "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
|
||||
switch (entry.Extra)
|
||||
|
@ -109,7 +131,17 @@ switch (entry.Extra)
|
|||
#line hidden
|
||||
#nullable disable
|
||||
|
||||
WriteLiteral("</body>");
|
||||
}
|
||||
);
|
||||
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
#nullable restore
|
||||
|
|
|
@ -12,52 +12,54 @@
|
|||
RazorCompiledItemMetadataAttribute -
|
||||
CreateNewOnMetadataUpdateAttribute -
|
||||
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp7 - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> -
|
||||
DefaultTagHelperRuntime -
|
||||
FieldDeclaration - - private - global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper - __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper
|
||||
MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync
|
||||
HtmlContent - (0:0,0 [8] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (0:0,0 [5] CSharp7.cshtml) - Html - <body
|
||||
LazyIntermediateToken - (5:0,5 [1] CSharp7.cshtml) - Html - >
|
||||
LazyIntermediateToken - (6:0,6 [2] CSharp7.cshtml) - Html - \n
|
||||
CSharpCode - (8:1,0 [4] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (8:1,0 [4] CSharp7.cshtml) - CSharp -
|
||||
CSharpCode - (14:1,6 [187] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (14:1,6 [187] CSharp7.cshtml) - CSharp - \n var nameLookup = new Dictionary<string, (string FirstName, string LastName, object Extra)>()\n {\n ["John Doe"] = ("John", "Doe", true)\n };\n\n
|
||||
CSharpCode - (246:7,53 [253] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (246:7,53 [253] CSharp7.cshtml) - CSharp - \n\n int Sixteen = 0b0001_0000;\n long BillionsAndBillions = 100_000_000_000;\n double AvogadroConstant = 6.022_140_857_747_474e23;\n decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M;\n
|
||||
HtmlContent - (502:14,0 [2] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (502:14,0 [2] CSharp7.cshtml) - Html - \n
|
||||
CSharpCode - (504:15,0 [4] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (504:15,0 [4] CSharp7.cshtml) - CSharp -
|
||||
CSharpCode - (509:15,5 [161] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (509:15,5 [161] CSharp7.cshtml) - CSharp - if (nameLookup.TryGetValue("John Doe", out var entry))\n {\n if (entry.Extra is bool alive)\n {\n // Do Something\n }\n }\n
|
||||
HtmlContent - (670:22,0 [46] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (670:22,0 [4] CSharp7.cshtml) - Html -
|
||||
LazyIntermediateToken - (674:22,4 [2] CSharp7.cshtml) - Html - <p
|
||||
LazyIntermediateToken - (676:22,6 [1] CSharp7.cshtml) - Html - >
|
||||
LazyIntermediateToken - (677:22,7 [39] CSharp7.cshtml) - Html - \n Here's a very unique number:
|
||||
CSharpExpression - (718:23,39 [62] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (718:23,39 [62] CSharp7.cshtml) - CSharp - 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M
|
||||
HtmlContent - (781:23,102 [33] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (781:23,102 [6] CSharp7.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (787:24,4 [4] CSharp7.cshtml) - Html - </p>
|
||||
LazyIntermediateToken - (791:24,8 [8] CSharp7.cshtml) - Html - \n\n
|
||||
LazyIntermediateToken - (799:26,4 [4] CSharp7.cshtml) - Html - <div
|
||||
LazyIntermediateToken - (803:26,8 [1] CSharp7.cshtml) - Html - >
|
||||
LazyIntermediateToken - (804:26,9 [2] CSharp7.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (806:27,0 [8] CSharp7.cshtml) - Html -
|
||||
CSharpExpression - (816:27,10 [34] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (816:27,10 [34] CSharp7.cshtml) - CSharp - (First: "John", Last: "Doe").First
|
||||
HtmlContent - (851:27,45 [1] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (851:27,45 [1] CSharp7.cshtml) - Html -
|
||||
HtmlContent - (870:27,64 [16] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (870:27,64 [6] CSharp7.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (876:28,4 [6] CSharp7.cshtml) - Html - </div>
|
||||
LazyIntermediateToken - (882:28,10 [4] CSharp7.cshtml) - Html - \n\n
|
||||
CSharpCode - (886:30,0 [4] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (886:30,0 [4] CSharp7.cshtml) - CSharp -
|
||||
CSharpCode - (891:30,5 [293] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (891:30,5 [293] CSharp7.cshtml) - CSharp - switch (entry.Extra)\n {\n case int age:\n // Do something\n break;\n case IEnumerable<string> childrenNames:\n // Do more something\n break;\n case null:\n // Do even more of something\n break;\n }\n
|
||||
HtmlContent - (1184:42,0 [7] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (1184:42,0 [7] CSharp7.cshtml) - Html - </body>
|
||||
TagHelper - (0:0,0 [1191] CSharp7.cshtml) - body - TagMode.StartTagAndEndTag
|
||||
DefaultTagHelperBody -
|
||||
HtmlContent - (6:0,6 [2] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (6:0,6 [2] CSharp7.cshtml) - Html - \n
|
||||
CSharpCode - (8:1,0 [4] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (8:1,0 [4] CSharp7.cshtml) - CSharp -
|
||||
CSharpCode - (14:1,6 [187] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (14:1,6 [187] CSharp7.cshtml) - CSharp - \n var nameLookup = new Dictionary<string, (string FirstName, string LastName, object Extra)>()\n {\n ["John Doe"] = ("John", "Doe", true)\n };\n\n
|
||||
CSharpCode - (246:7,53 [253] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (246:7,53 [253] CSharp7.cshtml) - CSharp - \n\n int Sixteen = 0b0001_0000;\n long BillionsAndBillions = 100_000_000_000;\n double AvogadroConstant = 6.022_140_857_747_474e23;\n decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M;\n
|
||||
HtmlContent - (502:14,0 [2] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (502:14,0 [2] CSharp7.cshtml) - Html - \n
|
||||
CSharpCode - (504:15,0 [4] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (504:15,0 [4] CSharp7.cshtml) - CSharp -
|
||||
CSharpCode - (509:15,5 [161] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (509:15,5 [161] CSharp7.cshtml) - CSharp - if (nameLookup.TryGetValue("John Doe", out var entry))\n {\n if (entry.Extra is bool alive)\n {\n // Do Something\n }\n }\n
|
||||
HtmlContent - (670:22,0 [46] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (670:22,0 [4] CSharp7.cshtml) - Html -
|
||||
LazyIntermediateToken - (674:22,4 [2] CSharp7.cshtml) - Html - <p
|
||||
LazyIntermediateToken - (676:22,6 [1] CSharp7.cshtml) - Html - >
|
||||
LazyIntermediateToken - (677:22,7 [39] CSharp7.cshtml) - Html - \n Here's a very unique number:
|
||||
CSharpExpression - (718:23,39 [62] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (718:23,39 [62] CSharp7.cshtml) - CSharp - 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M
|
||||
HtmlContent - (781:23,102 [33] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (781:23,102 [6] CSharp7.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (787:24,4 [4] CSharp7.cshtml) - Html - </p>
|
||||
LazyIntermediateToken - (791:24,8 [8] CSharp7.cshtml) - Html - \n\n
|
||||
LazyIntermediateToken - (799:26,4 [4] CSharp7.cshtml) - Html - <div
|
||||
LazyIntermediateToken - (803:26,8 [1] CSharp7.cshtml) - Html - >
|
||||
LazyIntermediateToken - (804:26,9 [2] CSharp7.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (806:27,0 [8] CSharp7.cshtml) - Html -
|
||||
CSharpExpression - (816:27,10 [34] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (816:27,10 [34] CSharp7.cshtml) - CSharp - (First: "John", Last: "Doe").First
|
||||
HtmlContent - (851:27,45 [1] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (851:27,45 [1] CSharp7.cshtml) - Html -
|
||||
HtmlContent - (870:27,64 [16] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (870:27,64 [6] CSharp7.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (876:28,4 [6] CSharp7.cshtml) - Html - </div>
|
||||
LazyIntermediateToken - (882:28,10 [4] CSharp7.cshtml) - Html - \n\n
|
||||
CSharpCode - (886:30,0 [4] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (886:30,0 [4] CSharp7.cshtml) - CSharp -
|
||||
CSharpCode - (891:30,5 [293] CSharp7.cshtml)
|
||||
LazyIntermediateToken - (891:30,5 [293] CSharp7.cshtml) - CSharp - switch (entry.Extra)\n {\n case int age:\n // Do something\n break;\n case IEnumerable<string> childrenNames:\n // Do more something\n break;\n case null:\n // Do even more of something\n break;\n }\n
|
||||
DefaultTagHelperCreate - - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper
|
||||
DefaultTagHelperExecute -
|
||||
Inject -
|
||||
Inject -
|
||||
Inject -
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml(6,16): warning CS8603: Possible null reference return.
|
||||
// return null;
|
||||
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 16)
|
||||
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 16),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml(53,27): warning CS8600: Converting null literal or possible null value to non-nullable type.
|
||||
// var disposables = (IDisposable[])ViewData["disposables"];
|
||||
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, @"(IDisposable[])ViewData[""disposables""]").WithLocation(53, 27),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml(54,16): warning CS8602: Dereference of a possibly null reference.
|
||||
// return disposables[range][^1];
|
||||
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "disposables").WithLocation(54, 16)
|
|
@ -1,3 +1,9 @@
|
|||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml(6,16): warning CS8603: Possible null reference return.
|
||||
// return null;
|
||||
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 16)
|
||||
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").WithLocation(6, 16),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml(53,27): warning CS8600: Converting null literal or possible null value to non-nullable type.
|
||||
// var disposables = (IDisposable[])ViewData["disposables"];
|
||||
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, @"(IDisposable[])ViewData[""disposables""]").WithLocation(53, 27),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml(54,16): warning CS8602: Dereference of a possibly null reference.
|
||||
// return disposables[range][^1];
|
||||
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "disposables").WithLocation(54, 16)
|
|
@ -19,6 +19,12 @@ namespace AspNetCore
|
|||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ConditionalAttributes : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
|
||||
#nullable disable
|
||||
{
|
||||
#line hidden
|
||||
#pragma warning disable 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
|
||||
#pragma warning restore 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
|
||||
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper;
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
}
|
||||
|
@ -151,6 +157,8 @@ namespace AspNetCore
|
|||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
#nullable restore
|
||||
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
|
||||
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
RazorCompiledItemMetadataAttribute -
|
||||
CreateNewOnMetadataUpdateAttribute -
|
||||
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ConditionalAttributes - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> -
|
||||
DefaultTagHelperRuntime -
|
||||
FieldDeclaration - - private - global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper - __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper
|
||||
DesignTimeDirective -
|
||||
DirectiveToken - (287:7,8 [62] ) - global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel>
|
||||
DirectiveToken - (350:7,71 [4] ) - Html
|
||||
|
@ -112,11 +114,13 @@
|
|||
LazyIntermediateToken - (283:9,41 [2] ConditionalAttributes.cshtml) - Html - />
|
||||
CSharpCode - (285:9,43 [6] ConditionalAttributes.cshtml)
|
||||
LazyIntermediateToken - (285:9,43 [6] ConditionalAttributes.cshtml) - CSharp - \n
|
||||
HtmlContent - (291:10,4 [18] ConditionalAttributes.cshtml)
|
||||
LazyIntermediateToken - (291:10,4 [2] ConditionalAttributes.cshtml) - Html - <a
|
||||
LazyIntermediateToken - (293:10,6 [13] ConditionalAttributes.cshtml) - Html - href="~/Foo"
|
||||
LazyIntermediateToken - (306:10,19 [1] ConditionalAttributes.cshtml) - Html -
|
||||
LazyIntermediateToken - (307:10,20 [2] ConditionalAttributes.cshtml) - Html - />
|
||||
TagHelper - (291:10,4 [18] ConditionalAttributes.cshtml) - a - TagMode.SelfClosing
|
||||
DefaultTagHelperBody -
|
||||
DefaultTagHelperCreate - - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper
|
||||
DefaultTagHelperHtmlAttribute - - href - HtmlAttributeValueStyle.DoubleQuotes
|
||||
HtmlContent - (300:10,13 [5] ConditionalAttributes.cshtml)
|
||||
LazyIntermediateToken - (300:10,13 [5] ConditionalAttributes.cshtml) - Html - ~/Foo
|
||||
DefaultTagHelperExecute -
|
||||
CSharpCode - (309:10,22 [6] ConditionalAttributes.cshtml)
|
||||
LazyIntermediateToken - (309:10,22 [6] ConditionalAttributes.cshtml) - CSharp - \n
|
||||
HtmlContent - (315:11,4 [7] ConditionalAttributes.cshtml)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
var ch = true;
|
||||
var cls = "bar";
|
||||
|
|
||||
Generated Location: (1474:33,2 [48] )
|
||||
Generated Location: (2040:39,2 [48] )
|
||||
|
|
||||
var ch = true;
|
||||
var cls = "bar";
|
||||
|
@ -12,127 +12,127 @@ Generated Location: (1474:33,2 [48] )
|
|||
Source Location: (66:3,20 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|
|
||||
|
|
||||
Generated Location: (1710:43,20 [6] )
|
||||
Generated Location: (2276:49,20 [6] )
|
||||
|
|
||||
|
|
||||
|
||||
Source Location: (83:4,15 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|cls|
|
||||
Generated Location: (1899:51,15 [3] )
|
||||
Generated Location: (2465:57,15 [3] )
|
||||
|cls|
|
||||
|
||||
Source Location: (90:4,22 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|
|
||||
|
|
||||
Generated Location: (2093:58,22 [6] )
|
||||
Generated Location: (2659:64,22 [6] )
|
||||
|
|
||||
|
|
||||
|
||||
Source Location: (111:5,19 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|cls|
|
||||
Generated Location: (2286:66,19 [3] )
|
||||
Generated Location: (2852:72,19 [3] )
|
||||
|cls|
|
||||
|
||||
Source Location: (118:5,26 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|
|
||||
|
|
||||
Generated Location: (2484:73,26 [6] )
|
||||
Generated Location: (3050:79,26 [6] )
|
||||
|
|
||||
|
|
||||
|
||||
Source Location: (135:6,15 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|cls|
|
||||
Generated Location: (2673:81,15 [3] )
|
||||
Generated Location: (3239:87,15 [3] )
|
||||
|cls|
|
||||
|
||||
Source Location: (146:6,26 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|
|
||||
|
|
||||
Generated Location: (2871:88,26 [6] )
|
||||
Generated Location: (3437:94,26 [6] )
|
||||
|
|
||||
|
|
||||
|
||||
Source Location: (185:7,37 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|ch|
|
||||
Generated Location: (3082:96,37 [2] )
|
||||
Generated Location: (3648:102,37 [2] )
|
||||
|ch|
|
||||
|
||||
Source Location: (191:7,43 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|
|
||||
|
|
||||
Generated Location: (3296:103,43 [6] )
|
||||
Generated Location: (3862:109,43 [6] )
|
||||
|
|
||||
|
|
||||
|
||||
Source Location: (234:8,41 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|ch|
|
||||
Generated Location: (3511:111,41 [2] )
|
||||
Generated Location: (4077:117,41 [2] )
|
||||
|ch|
|
||||
|
||||
Source Location: (240:8,47 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|
|
||||
|
|
||||
Generated Location: (3729:118,47 [6] )
|
||||
Generated Location: (4295:124,47 [6] )
|
||||
|
|
||||
|
|
||||
|
||||
Source Location: (257:9,15 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|if(cls != null) { |
|
||||
Generated Location: (3919:126,15 [18] )
|
||||
Generated Location: (4485:132,15 [18] )
|
||||
|if(cls != null) { |
|
||||
|
||||
Source Location: (276:9,34 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|cls|
|
||||
Generated Location: (4140:133,34 [3] )
|
||||
Generated Location: (4706:139,34 [3] )
|
||||
|cls|
|
||||
|
||||
Source Location: (279:9,37 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
| }|
|
||||
Generated Location: (4350:140,37 [2] )
|
||||
Generated Location: (4916:146,37 [2] )
|
||||
| }|
|
||||
|
||||
Source Location: (285:9,43 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|
|
||||
|
|
||||
Generated Location: (4564:147,43 [6] )
|
||||
Generated Location: (5130:153,43 [6] )
|
||||
|
|
||||
|
|
||||
|
||||
Source Location: (309:10,22 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|
|
||||
|
|
||||
Generated Location: (4761:155,22 [6] )
|
||||
Generated Location: (5578:163,22 [6] )
|
||||
|
|
||||
|
|
||||
|
||||
Source Location: (329:11,18 [44] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|Url.Content("~/Scripts/jquery-1.6.2.min.js")|
|
||||
Generated Location: (4954:163,18 [44] )
|
||||
Generated Location: (5771:171,18 [44] )
|
||||
|Url.Content("~/Scripts/jquery-1.6.2.min.js")|
|
||||
|
||||
Source Location: (407:11,96 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|
|
||||
|
|
||||
Generated Location: (5264:170,96 [6] )
|
||||
Generated Location: (6081:178,96 [6] )
|
||||
|
|
||||
|
|
||||
|
||||
Source Location: (427:12,18 [60] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|Url.Content("~/Scripts/modernizr-2.0.6-development-only.js")|
|
||||
Generated Location: (5457:178,18 [60] )
|
||||
Generated Location: (6274:186,18 [60] )
|
||||
|Url.Content("~/Scripts/modernizr-2.0.6-development-only.js")|
|
||||
|
||||
Source Location: (521:12,112 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|
|
||||
|
|
||||
Generated Location: (5799:185,112 [6] )
|
||||
Generated Location: (6616:193,112 [6] )
|
||||
|
|
||||
|
|
||||
|
||||
Source Location: (638:13,115 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
||||
|
|
||||
|
|
||||
Generated Location: (6089:193,115 [2] )
|
||||
Generated Location: (6906:201,115 [2] )
|
||||
|
|
||||
|
|
||||
|
||||
|
|
|
@ -21,6 +21,28 @@ namespace AspNetCore
|
|||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ConditionalAttributes : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
|
||||
#nullable disable
|
||||
{
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("href", new global::Microsoft.AspNetCore.Html.HtmlString("~/Foo"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
#line hidden
|
||||
#pragma warning disable 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
|
||||
#pragma warning restore 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
|
||||
#pragma warning disable 0169
|
||||
private string __tagHelperStringValueBuffer;
|
||||
#pragma warning restore 0169
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null;
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (__backed__tagHelperScopeManager == null)
|
||||
{
|
||||
__backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
|
||||
}
|
||||
return __backed__tagHelperScopeManager;
|
||||
}
|
||||
}
|
||||
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper;
|
||||
#pragma warning disable 1998
|
||||
public async override global::System.Threading.Tasks.Task ExecuteAsync()
|
||||
{
|
||||
|
@ -128,7 +150,21 @@ cls
|
|||
}
|
||||
), 256, 25, false);
|
||||
EndWriteAttribute();
|
||||
WriteLiteral(" />\r\n <a href=\"~/Foo\" />\r\n <script");
|
||||
WriteLiteral(" />\r\n ");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
|
||||
}
|
||||
);
|
||||
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n <script");
|
||||
BeginWriteAttribute("src", " src=\"", 322, "\"", 373, 1);
|
||||
WriteAttributeValue("", 328,
|
||||
#nullable restore
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
RazorCompiledItemMetadataAttribute -
|
||||
CreateNewOnMetadataUpdateAttribute -
|
||||
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ConditionalAttributes - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> -
|
||||
PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_0 - href - ~/Foo - HtmlAttributeValueStyle.DoubleQuotes
|
||||
DefaultTagHelperRuntime -
|
||||
FieldDeclaration - - private - global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper - __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper
|
||||
MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync
|
||||
CSharpCode - (2:0,2 [44] ConditionalAttributes.cshtml)
|
||||
LazyIntermediateToken - (2:0,2 [44] ConditionalAttributes.cshtml) - CSharp - \n var ch = true;\n var cls = "bar";\n
|
||||
|
@ -83,15 +86,17 @@
|
|||
CSharpExpression - (276:9,34 [3] ConditionalAttributes.cshtml)
|
||||
LazyIntermediateToken - (276:9,34 [3] ConditionalAttributes.cshtml) - CSharp - cls
|
||||
LazyIntermediateToken - (279:9,37 [2] ConditionalAttributes.cshtml) - CSharp - }
|
||||
HtmlContent - (282:9,40 [40] ConditionalAttributes.cshtml)
|
||||
HtmlContent - (282:9,40 [9] ConditionalAttributes.cshtml)
|
||||
LazyIntermediateToken - (282:9,40 [1] ConditionalAttributes.cshtml) - Html -
|
||||
LazyIntermediateToken - (283:9,41 [2] ConditionalAttributes.cshtml) - Html - />
|
||||
LazyIntermediateToken - (285:9,43 [2] ConditionalAttributes.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (287:10,0 [4] ConditionalAttributes.cshtml) - Html -
|
||||
LazyIntermediateToken - (291:10,4 [2] ConditionalAttributes.cshtml) - Html - <a
|
||||
LazyIntermediateToken - (293:10,6 [13] ConditionalAttributes.cshtml) - Html - href="~/Foo"
|
||||
LazyIntermediateToken - (306:10,19 [1] ConditionalAttributes.cshtml) - Html -
|
||||
LazyIntermediateToken - (307:10,20 [2] ConditionalAttributes.cshtml) - Html - />
|
||||
TagHelper - (291:10,4 [18] ConditionalAttributes.cshtml) - a - TagMode.SelfClosing
|
||||
DefaultTagHelperBody -
|
||||
DefaultTagHelperCreate - - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper
|
||||
PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0
|
||||
DefaultTagHelperExecute -
|
||||
HtmlContent - (309:10,22 [13] ConditionalAttributes.cshtml)
|
||||
LazyIntermediateToken - (309:10,22 [2] ConditionalAttributes.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (311:11,0 [4] ConditionalAttributes.cshtml) - Html -
|
||||
LazyIntermediateToken - (315:11,4 [7] ConditionalAttributes.cshtml) - Html - <script
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression.cshtml(28,13): error CS7036: There is no argument given that corresponds to the required parameter 'value' of 'RazorPageBase.Write(object)'
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression.cshtml(28,13): error CS1501: No overload for method 'Write' takes 0 arguments
|
||||
// Write(
|
||||
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Write").WithArguments("value", "Microsoft.AspNetCore.Mvc.Razor.RazorPageBase.Write(object)").WithLocation(28, 13)
|
||||
Diagnostic(ErrorCode.ERR_BadArgCount, "Write").WithArguments("Write", "0").WithLocation(28, 13)
|
|
@ -1,3 +1,3 @@
|
|||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml(27,13): error CS7036: There is no argument given that corresponds to the required parameter 'value' of 'RazorPageBase.Write(object)'
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml(27,13): error CS1501: No overload for method 'Write' takes 0 arguments
|
||||
// Write(
|
||||
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Write").WithArguments("value", "Microsoft.AspNetCore.Mvc.Razor.RazorPageBase.Write(object)").WithLocation(27, 13)
|
||||
Diagnostic(ErrorCode.ERR_BadArgCount, "Write").WithArguments("Write", "0").WithLocation(27, 13)
|
|
@ -1,3 +1,3 @@
|
|||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml(28,13): error CS7036: There is no argument given that corresponds to the required parameter 'value' of 'RazorPageBase.Write(object)'
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml(28,13): error CS1501: No overload for method 'Write' takes 0 arguments
|
||||
// Write(
|
||||
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Write").WithArguments("value", "Microsoft.AspNetCore.Mvc.Razor.RazorPageBase.Write(object)").WithLocation(28, 13)
|
||||
Diagnostic(ErrorCode.ERR_BadArgCount, "Write").WithArguments("Write", "0").WithLocation(28, 13)
|
|
@ -1,3 +1,3 @@
|
|||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml(28,13): error CS7036: There is no argument given that corresponds to the required parameter 'value' of 'RazorPageBase.Write(object)'
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml(28,13): error CS1501: No overload for method 'Write' takes 0 arguments
|
||||
// Write(
|
||||
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Write").WithArguments("value", "Microsoft.AspNetCore.Mvc.Razor.RazorPageBase.Write(object)").WithLocation(28, 13)
|
||||
Diagnostic(ErrorCode.ERR_BadArgCount, "Write").WithArguments("Write", "0").WithLocation(28, 13)
|
|
@ -19,6 +19,12 @@ namespace AspNetCore
|
|||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Double : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
|
||||
#nullable disable
|
||||
{
|
||||
#line hidden
|
||||
#pragma warning disable 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
|
||||
#pragma warning restore 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
|
||||
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper;
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
}
|
||||
|
@ -29,6 +35,8 @@ namespace AspNetCore
|
|||
#pragma warning disable 1998
|
||||
public async override global::System.Threading.Tasks.Task ExecuteAsync()
|
||||
{
|
||||
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
#nullable restore
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
RazorCompiledItemMetadataAttribute -
|
||||
CreateNewOnMetadataUpdateAttribute -
|
||||
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Double - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> -
|
||||
DefaultTagHelperRuntime -
|
||||
FieldDeclaration - - private - global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper - __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper
|
||||
DesignTimeDirective -
|
||||
DirectiveToken - (287:7,8 [62] ) - global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel>
|
||||
DirectiveToken - (350:7,71 [4] ) - Html
|
||||
|
@ -32,15 +34,18 @@
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync
|
||||
HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Double.cshtml)
|
||||
HtmlContent - (0:0,0 [12] HtmlCommentWithQuote_Double.cshtml)
|
||||
LazyIntermediateToken - (0:0,0 [4] HtmlCommentWithQuote_Double.cshtml) - Html - <!--
|
||||
LazyIntermediateToken - (4:0,4 [3] HtmlCommentWithQuote_Double.cshtml) - Html - "
|
||||
LazyIntermediateToken - (7:0,7 [3] HtmlCommentWithQuote_Double.cshtml) - Html - -->
|
||||
LazyIntermediateToken - (10:0,10 [2] HtmlCommentWithQuote_Double.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (12:1,0 [4] HtmlCommentWithQuote_Double.cshtml) - Html - <img
|
||||
LazyIntermediateToken - (16:1,4 [26] HtmlCommentWithQuote_Double.cshtml) - Html - src="~/images/submit.png"
|
||||
LazyIntermediateToken - (42:1,30 [1] HtmlCommentWithQuote_Double.cshtml) - Html -
|
||||
LazyIntermediateToken - (43:1,31 [2] HtmlCommentWithQuote_Double.cshtml) - Html - />
|
||||
TagHelper - (12:1,0 [33] HtmlCommentWithQuote_Double.cshtml) - img - TagMode.SelfClosing
|
||||
DefaultTagHelperBody -
|
||||
DefaultTagHelperCreate - - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper
|
||||
DefaultTagHelperHtmlAttribute - - src - HtmlAttributeValueStyle.DoubleQuotes
|
||||
HtmlContent - (22:1,10 [19] HtmlCommentWithQuote_Double.cshtml)
|
||||
LazyIntermediateToken - (22:1,10 [19] HtmlCommentWithQuote_Double.cshtml) - Html - ~/images/submit.png
|
||||
DefaultTagHelperExecute -
|
||||
Inject -
|
||||
Inject -
|
||||
Inject -
|
||||
|
|
|
@ -21,10 +21,45 @@ namespace AspNetCore
|
|||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Double : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
|
||||
#nullable disable
|
||||
{
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/images/submit.png"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
#line hidden
|
||||
#pragma warning disable 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
|
||||
#pragma warning restore 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
|
||||
#pragma warning disable 0169
|
||||
private string __tagHelperStringValueBuffer;
|
||||
#pragma warning restore 0169
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null;
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (__backed__tagHelperScopeManager == null)
|
||||
{
|
||||
__backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
|
||||
}
|
||||
return __backed__tagHelperScopeManager;
|
||||
}
|
||||
}
|
||||
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper;
|
||||
#pragma warning disable 1998
|
||||
public async override global::System.Threading.Tasks.Task ExecuteAsync()
|
||||
{
|
||||
WriteLiteral("<!-- \" -->\r\n<img src=\"~/images/submit.png\" />");
|
||||
WriteLiteral("<!-- \" -->\r\n");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
|
||||
}
|
||||
);
|
||||
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
#nullable restore
|
||||
|
|
|
@ -12,16 +12,20 @@
|
|||
RazorCompiledItemMetadataAttribute -
|
||||
CreateNewOnMetadataUpdateAttribute -
|
||||
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Double - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> -
|
||||
PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_0 - src - ~/images/submit.png - HtmlAttributeValueStyle.DoubleQuotes
|
||||
DefaultTagHelperRuntime -
|
||||
FieldDeclaration - - private - global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper - __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper
|
||||
MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync
|
||||
HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Double.cshtml)
|
||||
HtmlContent - (0:0,0 [12] HtmlCommentWithQuote_Double.cshtml)
|
||||
LazyIntermediateToken - (0:0,0 [4] HtmlCommentWithQuote_Double.cshtml) - Html - <!--
|
||||
LazyIntermediateToken - (4:0,4 [3] HtmlCommentWithQuote_Double.cshtml) - Html - "
|
||||
LazyIntermediateToken - (7:0,7 [3] HtmlCommentWithQuote_Double.cshtml) - Html - -->
|
||||
LazyIntermediateToken - (10:0,10 [2] HtmlCommentWithQuote_Double.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (12:1,0 [4] HtmlCommentWithQuote_Double.cshtml) - Html - <img
|
||||
LazyIntermediateToken - (16:1,4 [26] HtmlCommentWithQuote_Double.cshtml) - Html - src="~/images/submit.png"
|
||||
LazyIntermediateToken - (42:1,30 [1] HtmlCommentWithQuote_Double.cshtml) - Html -
|
||||
LazyIntermediateToken - (43:1,31 [2] HtmlCommentWithQuote_Double.cshtml) - Html - />
|
||||
TagHelper - (12:1,0 [33] HtmlCommentWithQuote_Double.cshtml) - img - TagMode.SelfClosing
|
||||
DefaultTagHelperBody -
|
||||
DefaultTagHelperCreate - - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper
|
||||
PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0
|
||||
DefaultTagHelperExecute -
|
||||
Inject -
|
||||
Inject -
|
||||
Inject -
|
||||
|
|
|
@ -19,6 +19,12 @@ namespace AspNetCore
|
|||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Single : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
|
||||
#nullable disable
|
||||
{
|
||||
#line hidden
|
||||
#pragma warning disable 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
|
||||
#pragma warning restore 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
|
||||
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper;
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
}
|
||||
|
@ -29,6 +35,8 @@ namespace AspNetCore
|
|||
#pragma warning disable 1998
|
||||
public async override global::System.Threading.Tasks.Task ExecuteAsync()
|
||||
{
|
||||
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
#nullable restore
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
RazorCompiledItemMetadataAttribute -
|
||||
CreateNewOnMetadataUpdateAttribute -
|
||||
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Single - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> -
|
||||
DefaultTagHelperRuntime -
|
||||
FieldDeclaration - - private - global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper - __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper
|
||||
DesignTimeDirective -
|
||||
DirectiveToken - (287:7,8 [62] ) - global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel>
|
||||
DirectiveToken - (350:7,71 [4] ) - Html
|
||||
|
@ -32,15 +34,18 @@
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync
|
||||
HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Single.cshtml)
|
||||
HtmlContent - (0:0,0 [12] HtmlCommentWithQuote_Single.cshtml)
|
||||
LazyIntermediateToken - (0:0,0 [4] HtmlCommentWithQuote_Single.cshtml) - Html - <!--
|
||||
LazyIntermediateToken - (4:0,4 [3] HtmlCommentWithQuote_Single.cshtml) - Html - '
|
||||
LazyIntermediateToken - (7:0,7 [3] HtmlCommentWithQuote_Single.cshtml) - Html - -->
|
||||
LazyIntermediateToken - (10:0,10 [2] HtmlCommentWithQuote_Single.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (12:1,0 [4] HtmlCommentWithQuote_Single.cshtml) - Html - <img
|
||||
LazyIntermediateToken - (16:1,4 [26] HtmlCommentWithQuote_Single.cshtml) - Html - src="~/images/submit.png"
|
||||
LazyIntermediateToken - (42:1,30 [1] HtmlCommentWithQuote_Single.cshtml) - Html -
|
||||
LazyIntermediateToken - (43:1,31 [2] HtmlCommentWithQuote_Single.cshtml) - Html - />
|
||||
TagHelper - (12:1,0 [33] HtmlCommentWithQuote_Single.cshtml) - img - TagMode.SelfClosing
|
||||
DefaultTagHelperBody -
|
||||
DefaultTagHelperCreate - - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper
|
||||
DefaultTagHelperHtmlAttribute - - src - HtmlAttributeValueStyle.DoubleQuotes
|
||||
HtmlContent - (22:1,10 [19] HtmlCommentWithQuote_Single.cshtml)
|
||||
LazyIntermediateToken - (22:1,10 [19] HtmlCommentWithQuote_Single.cshtml) - Html - ~/images/submit.png
|
||||
DefaultTagHelperExecute -
|
||||
Inject -
|
||||
Inject -
|
||||
Inject -
|
||||
|
|
|
@ -21,10 +21,45 @@ namespace AspNetCore
|
|||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Single : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
|
||||
#nullable disable
|
||||
{
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/images/submit.png"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
#line hidden
|
||||
#pragma warning disable 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
|
||||
#pragma warning restore 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
|
||||
#pragma warning disable 0169
|
||||
private string __tagHelperStringValueBuffer;
|
||||
#pragma warning restore 0169
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null;
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (__backed__tagHelperScopeManager == null)
|
||||
{
|
||||
__backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
|
||||
}
|
||||
return __backed__tagHelperScopeManager;
|
||||
}
|
||||
}
|
||||
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper;
|
||||
#pragma warning disable 1998
|
||||
public async override global::System.Threading.Tasks.Task ExecuteAsync()
|
||||
{
|
||||
WriteLiteral("<!-- \' -->\r\n<img src=\"~/images/submit.png\" />");
|
||||
WriteLiteral("<!-- \' -->\r\n");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
|
||||
}
|
||||
);
|
||||
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
#nullable restore
|
||||
|
|
|
@ -12,16 +12,20 @@
|
|||
RazorCompiledItemMetadataAttribute -
|
||||
CreateNewOnMetadataUpdateAttribute -
|
||||
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Single - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> -
|
||||
PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_0 - src - ~/images/submit.png - HtmlAttributeValueStyle.DoubleQuotes
|
||||
DefaultTagHelperRuntime -
|
||||
FieldDeclaration - - private - global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper - __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper
|
||||
MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync
|
||||
HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Single.cshtml)
|
||||
HtmlContent - (0:0,0 [12] HtmlCommentWithQuote_Single.cshtml)
|
||||
LazyIntermediateToken - (0:0,0 [4] HtmlCommentWithQuote_Single.cshtml) - Html - <!--
|
||||
LazyIntermediateToken - (4:0,4 [3] HtmlCommentWithQuote_Single.cshtml) - Html - '
|
||||
LazyIntermediateToken - (7:0,7 [3] HtmlCommentWithQuote_Single.cshtml) - Html - -->
|
||||
LazyIntermediateToken - (10:0,10 [2] HtmlCommentWithQuote_Single.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (12:1,0 [4] HtmlCommentWithQuote_Single.cshtml) - Html - <img
|
||||
LazyIntermediateToken - (16:1,4 [26] HtmlCommentWithQuote_Single.cshtml) - Html - src="~/images/submit.png"
|
||||
LazyIntermediateToken - (42:1,30 [1] HtmlCommentWithQuote_Single.cshtml) - Html -
|
||||
LazyIntermediateToken - (43:1,31 [2] HtmlCommentWithQuote_Single.cshtml) - Html - />
|
||||
TagHelper - (12:1,0 [33] HtmlCommentWithQuote_Single.cshtml) - img - TagMode.SelfClosing
|
||||
DefaultTagHelperBody -
|
||||
DefaultTagHelperCreate - - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper
|
||||
PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0
|
||||
DefaultTagHelperExecute -
|
||||
Inject -
|
||||
Inject -
|
||||
Inject -
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml(28,13): error CS7036: There is no argument given that corresponds to the required parameter 'value' of 'RazorPageBase.Write(object)'
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml(28,13): error CS1501: No overload for method 'Write' takes 0 arguments
|
||||
// Write(
|
||||
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Write").WithArguments("value", "Microsoft.AspNetCore.Mvc.Razor.RazorPageBase.Write(object)").WithLocation(28, 13)
|
||||
Diagnostic(ErrorCode.ERR_BadArgCount, "Write").WithArguments("Write", "0").WithLocation(28, 13)
|
|
@ -1,3 +0,0 @@
|
|||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers.cshtml(159,57): error CS0103: The name 'InvalidTagHelperIndexerAssignment' does not exist in the current context
|
||||
// throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("booldict-prefix-key", "DivTagHelper", "BoolDictProp"));
|
||||
Diagnostic(ErrorCode.ERR_NameNotInContext, "InvalidTagHelperIndexerAssignment").WithArguments("InvalidTagHelperIndexerAssignment").WithLocation(159, 57)
|
|
@ -19,6 +19,12 @@ namespace AspNetCore
|
|||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_OpenedIf : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
|
||||
#nullable disable
|
||||
{
|
||||
#line hidden
|
||||
#pragma warning disable 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
|
||||
#pragma warning restore 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
|
||||
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper;
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
}
|
||||
|
@ -50,6 +56,8 @@ namespace AspNetCore
|
|||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>();
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
#nullable restore
|
||||
|
|
|
@ -1,48 +1,48 @@
|
|||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(56,9): error CS7014: Attributes are not valid in this context.
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(64,9): error CS7014: Attributes are not valid in this context.
|
||||
// [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
|
||||
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]").WithLocation(56, 9),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(57,9): error CS0106: The modifier 'public' is not valid for this item
|
||||
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]").WithLocation(64, 9),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(65,9): error CS0106: The modifier 'public' is not valid for this item
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").WithLocation(57, 9),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(57,87): warning CS0168: The variable 'ModelExpressionProvider' is declared but never used
|
||||
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").WithLocation(65, 9),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(65,87): warning CS0168: The variable 'ModelExpressionProvider' is declared but never used
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.WRN_UnreferencedVar, "ModelExpressionProvider").WithArguments("ModelExpressionProvider").WithLocation(57, 87),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(57,111): error CS1002: ; expected
|
||||
Diagnostic(ErrorCode.WRN_UnreferencedVar, "ModelExpressionProvider").WithArguments("ModelExpressionProvider").WithLocation(65, 87),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(65,111): error CS1002: ; expected
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").WithLocation(57, 111),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(57,113): error CS0103: The name 'get' does not exist in the current context
|
||||
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").WithLocation(65, 111),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(65,113): error CS0103: The name 'get' does not exist in the current context
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_NameNotInContext, "get").WithArguments("get").WithLocation(57, 113),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(57,113): error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement
|
||||
Diagnostic(ErrorCode.ERR_NameNotInContext, "get").WithArguments("get").WithLocation(65, 113),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(65,113): error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_IllegalStatement, "get").WithLocation(57, 113),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(57,118): error CS1513: } expected
|
||||
Diagnostic(ErrorCode.ERR_IllegalStatement, "get").WithLocation(65, 113),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(65,118): error CS1513: } expected
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_RbraceExpected, "private").WithLocation(57, 118),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(57,118): error CS1513: } expected
|
||||
Diagnostic(ErrorCode.ERR_RbraceExpected, "private").WithLocation(65, 118),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(65,118): error CS1513: } expected
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_RbraceExpected, "private").WithLocation(57, 118),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(57,129): error CS1519: Invalid token ';' in class, record, struct, or interface member declaration
|
||||
Diagnostic(ErrorCode.ERR_RbraceExpected, "private").WithLocation(65, 118),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(65,129): error CS1519: Invalid token ';' in class, record, struct, or interface member declaration
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").WithLocation(57, 129),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(57,129): error CS1519: Invalid token ';' in class, record, struct, or interface member declaration
|
||||
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").WithLocation(65, 129),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(65,129): error CS1519: Invalid token ';' in class, record, struct, or interface member declaration
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").WithLocation(57, 129),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(57,133): error CS1022: Type or namespace definition, or end-of-file expected
|
||||
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").WithLocation(65, 129),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(65,133): error CS1022: Type or namespace definition, or end-of-file expected
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_EOFExpected, "=").WithLocation(57, 133),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(61,60): error CS0116: A namespace cannot directly contain members such as fields, methods or statements
|
||||
Diagnostic(ErrorCode.ERR_EOFExpected, "=").WithLocation(65, 133),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(69,60): error CS0116: A namespace cannot directly contain members such as fields, methods or statements
|
||||
// public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Url").WithLocation(61, 60),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(65,70): error CS0116: A namespace cannot directly contain members such as fields, methods or statements
|
||||
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Url").WithLocation(69, 60),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(73,70): error CS0116: A namespace cannot directly contain members such as fields, methods or statements
|
||||
// public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Component").WithLocation(65, 70),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(69,71): error CS0116: A namespace cannot directly contain members such as fields, methods or statements
|
||||
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Component").WithLocation(73, 70),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(77,71): error CS0116: A namespace cannot directly contain members such as fields, methods or statements
|
||||
// public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Json").WithLocation(69, 71),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(73,80): error CS0116: A namespace cannot directly contain members such as fields, methods or statements
|
||||
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Json").WithLocation(77, 71),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(81,80): error CS0116: A namespace cannot directly contain members such as fields, methods or statements
|
||||
// public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<dynamic> Html { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Html").WithLocation(73, 80),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(76,1): error CS1022: Type or namespace definition, or end-of-file expected
|
||||
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Html").WithLocation(81, 80),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(84,1): error CS1022: Type or namespace definition, or end-of-file expected
|
||||
// }
|
||||
Diagnostic(ErrorCode.ERR_EOFExpected, "}").WithLocation(76, 1)
|
||||
Diagnostic(ErrorCode.ERR_EOFExpected, "}").WithLocation(84, 1)
|
|
@ -1,3 +1,5 @@
|
|||
TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(3,2): Error RZ1006: The if block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup.
|
||||
TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(2,2): Error RZ1034: Found a malformed 'body' tag helper. Tag helpers must have a start and end tag or be self closing.
|
||||
TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(3,2): Error RZ1006: The if block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup.
|
||||
TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(4,3): Error RZ1026: Encountered end tag "body" with no matching start tag. Are your start/end tags properly balanced?
|
||||
TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(4,3): Error RZ1034: Found a malformed 'body' tag helper. Tag helpers must have a start and end tag or be self closing.
|
||||
TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(5,3): Error RZ1026: Encountered end tag "html" with no matching start tag. Are your start/end tags properly balanced?
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
RazorCompiledItemMetadataAttribute -
|
||||
CreateNewOnMetadataUpdateAttribute -
|
||||
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_OpenedIf - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> -
|
||||
DefaultTagHelperRuntime -
|
||||
FieldDeclaration - - private - global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper - __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper
|
||||
DesignTimeDirective -
|
||||
DirectiveToken - (287:7,8 [62] ) - global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel>
|
||||
DirectiveToken - (350:7,71 [4] ) - Html
|
||||
|
@ -32,23 +34,26 @@
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync
|
||||
HtmlContent - (0:0,0 [16] OpenedIf.cshtml)
|
||||
HtmlContent - (0:0,0 [8] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (0:0,0 [5] OpenedIf.cshtml) - Html - <html
|
||||
LazyIntermediateToken - (5:0,5 [1] OpenedIf.cshtml) - Html - >
|
||||
LazyIntermediateToken - (6:0,6 [2] OpenedIf.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (8:1,0 [5] OpenedIf.cshtml) - Html - <body
|
||||
LazyIntermediateToken - (13:1,5 [1] OpenedIf.cshtml) - Html - >
|
||||
LazyIntermediateToken - (14:1,6 [2] OpenedIf.cshtml) - Html - \n
|
||||
CSharpCode - (17:2,1 [14] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (17:2,1 [14] OpenedIf.cshtml) - CSharp - if (true) { \n
|
||||
HtmlContent - (31:3,0 [7] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (31:3,0 [7] OpenedIf.cshtml) - Html - </body>
|
||||
CSharpCode - (38:3,7 [2] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (38:3,7 [2] OpenedIf.cshtml) - CSharp - \n
|
||||
HtmlContent - (40:4,0 [7] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (40:4,0 [7] OpenedIf.cshtml) - Html - </html>
|
||||
CSharpCode - (47:4,7 [0] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (47:4,7 [0] OpenedIf.cshtml) - CSharp -
|
||||
TagHelper - (8:1,0 [39] OpenedIf.cshtml) - body - TagMode.StartTagAndEndTag
|
||||
DefaultTagHelperBody -
|
||||
HtmlContent - (14:1,6 [2] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (14:1,6 [2] OpenedIf.cshtml) - Html - \n
|
||||
CSharpCode - (17:2,1 [14] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (17:2,1 [14] OpenedIf.cshtml) - CSharp - if (true) { \n
|
||||
HtmlContent - (31:3,0 [7] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (31:3,0 [7] OpenedIf.cshtml) - Html - </body>
|
||||
CSharpCode - (38:3,7 [2] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (38:3,7 [2] OpenedIf.cshtml) - CSharp - \n
|
||||
HtmlContent - (40:4,0 [7] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (40:4,0 [7] OpenedIf.cshtml) - Html - </html>
|
||||
CSharpCode - (47:4,7 [0] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (47:4,7 [0] OpenedIf.cshtml) - CSharp -
|
||||
DefaultTagHelperCreate - - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper
|
||||
DefaultTagHelperExecute -
|
||||
Inject -
|
||||
Inject -
|
||||
Inject -
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
Source Location: (17:2,1 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml)
|
||||
|if (true) {
|
||||
|
|
||||
Generated Location: (1434:33,1 [14] )
|
||||
Generated Location: (1982:39,1 [14] )
|
||||
|if (true) {
|
||||
|
|
||||
|
||||
Source Location: (38:3,7 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml)
|
||||
|
|
||||
|
|
||||
Generated Location: (1608:40,7 [2] )
|
||||
Generated Location: (2156:46,7 [2] )
|
||||
|
|
||||
|
|
||||
|
||||
Source Location: (47:4,7 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml)
|
||||
||
|
||||
Generated Location: (1770:47,7 [0] )
|
||||
Generated Location: (2318:53,7 [0] )
|
||||
||
|
||||
|
||||
|
|
|
@ -21,10 +21,33 @@ namespace AspNetCore
|
|||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_OpenedIf : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
|
||||
#nullable disable
|
||||
{
|
||||
#line hidden
|
||||
#pragma warning disable 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
|
||||
#pragma warning restore 0649
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
|
||||
#pragma warning disable 0169
|
||||
private string __tagHelperStringValueBuffer;
|
||||
#pragma warning restore 0169
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null;
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (__backed__tagHelperScopeManager == null)
|
||||
{
|
||||
__backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
|
||||
}
|
||||
return __backed__tagHelperScopeManager;
|
||||
}
|
||||
}
|
||||
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper;
|
||||
#pragma warning disable 1998
|
||||
public async override global::System.Threading.Tasks.Task ExecuteAsync()
|
||||
{
|
||||
WriteLiteral("<html>\r\n<body>\r\n");
|
||||
WriteLiteral("<html>\r\n");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
|
||||
WriteLiteral("\r\n");
|
||||
#nullable restore
|
||||
#line (3,2)-(4,1) "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml"
|
||||
if (true) {
|
||||
|
@ -33,7 +56,18 @@ if (true) {
|
|||
#line hidden
|
||||
#nullable disable
|
||||
|
||||
WriteLiteral("</body>\r\n</html>");
|
||||
WriteLiteral("</body>\r\n</html>");
|
||||
}
|
||||
);
|
||||
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
#nullable restore
|
||||
|
|
|
@ -1,48 +1,3 @@
|
|||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(40,9): error CS7014: Attributes are not valid in this context.
|
||||
// [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
|
||||
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]").WithLocation(40, 9),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(41,9): error CS0106: The modifier 'public' is not valid for this item
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").WithLocation(41, 9),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(41,87): warning CS0168: The variable 'ModelExpressionProvider' is declared but never used
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.WRN_UnreferencedVar, "ModelExpressionProvider").WithArguments("ModelExpressionProvider").WithLocation(41, 87),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(41,111): error CS1002: ; expected
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").WithLocation(41, 111),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(41,113): error CS0103: The name 'get' does not exist in the current context
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_NameNotInContext, "get").WithArguments("get").WithLocation(41, 113),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(41,113): error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_IllegalStatement, "get").WithLocation(41, 113),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(41,118): error CS1513: } expected
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_RbraceExpected, "private").WithLocation(41, 118),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(41,118): error CS1513: } expected
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_RbraceExpected, "private").WithLocation(41, 118),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(41,129): error CS1519: Invalid token ';' in class, record, struct, or interface member declaration
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").WithLocation(41, 129),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(41,129): error CS1519: Invalid token ';' in class, record, struct, or interface member declaration
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").WithLocation(41, 129),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(41,133): error CS1022: Type or namespace definition, or end-of-file expected
|
||||
// public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_EOFExpected, "=").WithLocation(41, 133),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(45,60): error CS0116: A namespace cannot directly contain members such as fields, methods or statements
|
||||
// public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Url").WithLocation(45, 60),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(49,70): error CS0116: A namespace cannot directly contain members such as fields, methods or statements
|
||||
// public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Component").WithLocation(49, 70),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(53,71): error CS0116: A namespace cannot directly contain members such as fields, methods or statements
|
||||
// public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Json").WithLocation(53, 71),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(57,80): error CS0116: A namespace cannot directly contain members such as fields, methods or statements
|
||||
// public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<dynamic> Html { get; private set; } = default!;
|
||||
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Html").WithLocation(57, 80),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(60,1): error CS1022: Type or namespace definition, or end-of-file expected
|
||||
// }
|
||||
Diagnostic(ErrorCode.ERR_EOFExpected, "}").WithLocation(60, 1)
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(60,14): error CS1513: } expected
|
||||
// }
|
||||
Diagnostic(ErrorCode.ERR_RbraceExpected, "").WithLocation(60, 14)
|
|
@ -1,3 +1,5 @@
|
|||
TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(3,2): Error RZ1006: The if block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup.
|
||||
TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(2,2): Error RZ1034: Found a malformed 'body' tag helper. Tag helpers must have a start and end tag or be self closing.
|
||||
TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(3,2): Error RZ1006: The if block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup.
|
||||
TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(4,3): Error RZ1026: Encountered end tag "body" with no matching start tag. Are your start/end tags properly balanced?
|
||||
TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(4,3): Error RZ1034: Found a malformed 'body' tag helper. Tag helpers must have a start and end tag or be self closing.
|
||||
TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(5,3): Error RZ1026: Encountered end tag "html" with no matching start tag. Are your start/end tags properly balanced?
|
||||
|
|
|
@ -12,22 +12,27 @@
|
|||
RazorCompiledItemMetadataAttribute -
|
||||
CreateNewOnMetadataUpdateAttribute -
|
||||
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_OpenedIf - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> -
|
||||
DefaultTagHelperRuntime -
|
||||
FieldDeclaration - - private - global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper - __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper
|
||||
MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync
|
||||
HtmlContent - (0:0,0 [16] OpenedIf.cshtml)
|
||||
HtmlContent - (0:0,0 [8] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (0:0,0 [5] OpenedIf.cshtml) - Html - <html
|
||||
LazyIntermediateToken - (5:0,5 [1] OpenedIf.cshtml) - Html - >
|
||||
LazyIntermediateToken - (6:0,6 [2] OpenedIf.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (8:1,0 [5] OpenedIf.cshtml) - Html - <body
|
||||
LazyIntermediateToken - (13:1,5 [1] OpenedIf.cshtml) - Html - >
|
||||
LazyIntermediateToken - (14:1,6 [2] OpenedIf.cshtml) - Html - \n
|
||||
CSharpCode - (17:2,1 [14] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (17:2,1 [14] OpenedIf.cshtml) - CSharp - if (true) { \n
|
||||
HtmlContent - (31:3,0 [16] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (31:3,0 [7] OpenedIf.cshtml) - Html - </body>
|
||||
LazyIntermediateToken - (38:3,7 [2] OpenedIf.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (40:4,0 [7] OpenedIf.cshtml) - Html - </html>
|
||||
CSharpCode - (47:4,7 [0] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (47:4,7 [0] OpenedIf.cshtml) - CSharp -
|
||||
TagHelper - (8:1,0 [39] OpenedIf.cshtml) - body - TagMode.StartTagAndEndTag
|
||||
DefaultTagHelperBody -
|
||||
HtmlContent - (14:1,6 [2] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (14:1,6 [2] OpenedIf.cshtml) - Html - \n
|
||||
CSharpCode - (17:2,1 [14] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (17:2,1 [14] OpenedIf.cshtml) - CSharp - if (true) { \n
|
||||
HtmlContent - (31:3,0 [16] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (31:3,0 [7] OpenedIf.cshtml) - Html - </body>
|
||||
LazyIntermediateToken - (38:3,7 [2] OpenedIf.cshtml) - Html - \n
|
||||
LazyIntermediateToken - (40:4,0 [7] OpenedIf.cshtml) - Html - </html>
|
||||
CSharpCode - (47:4,7 [0] OpenedIf.cshtml)
|
||||
LazyIntermediateToken - (47:4,7 [0] OpenedIf.cshtml) - CSharp -
|
||||
DefaultTagHelperCreate - - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper
|
||||
DefaultTagHelperExecute -
|
||||
Inject -
|
||||
Inject -
|
||||
Inject -
|
||||
|
|
|
@ -10,15 +10,9 @@ Diagnostic(ErrorCode.ERR_NoImplicitConv, "__TestNamespace_InputTagHelper1.IntDic
|
|||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(131,69): error CS0029: Cannot implicitly convert type 'System.Collections.Generic.IDictionary<string, int>' to 'int'
|
||||
// __TestNamespace_InputTagHelper2.IntDictionaryProperty = __TestNamespace_InputTagHelper1.IntDictionaryProperty;
|
||||
Diagnostic(ErrorCode.ERR_NoImplicitConv, "__TestNamespace_InputTagHelper1.IntDictionaryProperty").WithArguments("System.Collections.Generic.IDictionary<string, int>", "int").WithLocation(131, 69),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(134,53): error CS0103: The name 'InvalidTagHelperIndexerAssignment' does not exist in the current context
|
||||
// throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-garlic", "TestNamespace.InputTagHelper1", "IntDictionaryProperty"));
|
||||
Diagnostic(ErrorCode.ERR_NameNotInContext, "InvalidTagHelperIndexerAssignment").WithArguments("InvalidTagHelperIndexerAssignment").WithLocation(134, 53),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(146,17): warning CS0472: The result of the expression is always 'false' since a value of type 'int' is never equal to 'null' of type 'int?'
|
||||
// if (__TestNamespace_InputTagHelper2.IntDictionaryProperty == null)
|
||||
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "__TestNamespace_InputTagHelper2.IntDictionaryProperty == null").WithArguments("false", "int", "int?").WithLocation(146, 17),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(148,53): error CS0103: The name 'InvalidTagHelperIndexerAssignment' does not exist in the current context
|
||||
// throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-garlic", "TestNamespace.InputTagHelper2", "IntDictionaryProperty"));
|
||||
Diagnostic(ErrorCode.ERR_NameNotInContext, "InvalidTagHelperIndexerAssignment").WithArguments("InvalidTagHelperIndexerAssignment").WithLocation(148, 53),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(150,13): error CS0021: Cannot apply indexing with [] to an expression of type 'int'
|
||||
// __TestNamespace_InputTagHelper2.IntDictionaryProperty["garlic"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["garlic"];
|
||||
Diagnostic(ErrorCode.ERR_BadIndexLHS, @"__TestNamespace_InputTagHelper2.IntDictionaryProperty[""garlic""]").WithArguments("int").WithLocation(150, 13),
|
||||
|
@ -28,48 +22,18 @@ Diagnostic(ErrorCode.ERR_BadIndexLHS, @"__TestNamespace_InputTagHelper2.IntDicti
|
|||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(188,17): warning CS0472: The result of the expression is always 'false' since a value of type 'int' is never equal to 'null' of type 'int?'
|
||||
// if (__TestNamespace_InputTagHelper2.IntDictionaryProperty == null)
|
||||
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "__TestNamespace_InputTagHelper2.IntDictionaryProperty == null").WithArguments("false", "int", "int?").WithLocation(188, 17),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(190,53): error CS0103: The name 'InvalidTagHelperIndexerAssignment' does not exist in the current context
|
||||
// throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-grabber", "TestNamespace.InputTagHelper2", "IntDictionaryProperty"));
|
||||
Diagnostic(ErrorCode.ERR_NameNotInContext, "InvalidTagHelperIndexerAssignment").WithArguments("InvalidTagHelperIndexerAssignment").WithLocation(190, 53),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(192,13): error CS0021: Cannot apply indexing with [] to an expression of type 'int'
|
||||
// __TestNamespace_InputTagHelper2.IntDictionaryProperty["grabber"] = __TestNamespace_InputTagHelper1.IntProperty;
|
||||
Diagnostic(ErrorCode.ERR_BadIndexLHS, @"__TestNamespace_InputTagHelper2.IntDictionaryProperty[""grabber""]").WithArguments("int").WithLocation(192, 13),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(195,53): error CS0103: The name 'InvalidTagHelperIndexerAssignment' does not exist in the current context
|
||||
// throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-salt", "TestNamespace.InputTagHelper1", "IntDictionaryProperty"));
|
||||
Diagnostic(ErrorCode.ERR_NameNotInContext, "InvalidTagHelperIndexerAssignment").WithArguments("InvalidTagHelperIndexerAssignment").WithLocation(195, 53),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(207,13): error CS0021: Cannot apply indexing with [] to an expression of type 'int'
|
||||
// __TestNamespace_InputTagHelper2.IntDictionaryProperty["salt"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["salt"];
|
||||
Diagnostic(ErrorCode.ERR_BadIndexLHS, @"__TestNamespace_InputTagHelper2.IntDictionaryProperty[""salt""]").WithArguments("int").WithLocation(207, 13),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(218,13): error CS0021: Cannot apply indexing with [] to an expression of type 'int'
|
||||
// __TestNamespace_InputTagHelper2.IntDictionaryProperty["pepper"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["pepper"];
|
||||
Diagnostic(ErrorCode.ERR_BadIndexLHS, @"__TestNamespace_InputTagHelper2.IntDictionaryProperty[""pepper""]").WithArguments("int").WithLocation(218, 13),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(224,53): error CS0103: The name 'InvalidTagHelperIndexerAssignment' does not exist in the current context
|
||||
// throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("string-prefix-grabber", "TestNamespace.InputTagHelper2", "StringDictionaryProperty"));
|
||||
Diagnostic(ErrorCode.ERR_NameNotInContext, "InvalidTagHelperIndexerAssignment").WithArguments("InvalidTagHelperIndexerAssignment").WithLocation(224, 53),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(230,53): error CS0103: The name 'InvalidTagHelperIndexerAssignment' does not exist in the current context
|
||||
// throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("string-prefix-paprika", "TestNamespace.InputTagHelper1", "StringDictionaryProperty"));
|
||||
Diagnostic(ErrorCode.ERR_NameNotInContext, "InvalidTagHelperIndexerAssignment").WithArguments("InvalidTagHelperIndexerAssignment").WithLocation(230, 53),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(238,53): error CS0103: The name 'InvalidTagHelperIndexerAssignment' does not exist in the current context
|
||||
// throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("string-prefix-cumin", "TestNamespace.InputTagHelper1", "StringDictionaryProperty"));
|
||||
Diagnostic(ErrorCode.ERR_NameNotInContext, "InvalidTagHelperIndexerAssignment").WithArguments("InvalidTagHelperIndexerAssignment").WithLocation(238, 53),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(257,53): error CS0103: The name 'InvalidTagHelperIndexerAssignment' does not exist in the current context
|
||||
// throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("string-prefix-cumin", "TestNamespace.InputTagHelper2", "StringDictionaryProperty"));
|
||||
Diagnostic(ErrorCode.ERR_NameNotInContext, "InvalidTagHelperIndexerAssignment").WithArguments("InvalidTagHelperIndexerAssignment").WithLocation(257, 53),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(277,53): error CS0103: The name 'InvalidTagHelperIndexerAssignment' does not exist in the current context
|
||||
// throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-value", "TestNamespace.InputTagHelper1", "IntDictionaryProperty"));
|
||||
Diagnostic(ErrorCode.ERR_NameNotInContext, "InvalidTagHelperIndexerAssignment").WithArguments("InvalidTagHelperIndexerAssignment").WithLocation(277, 53),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(289,17): warning CS0472: The result of the expression is always 'false' since a value of type 'int' is never equal to 'null' of type 'int?'
|
||||
// if (__TestNamespace_InputTagHelper2.IntDictionaryProperty == null)
|
||||
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "__TestNamespace_InputTagHelper2.IntDictionaryProperty == null").WithArguments("false", "int", "int?").WithLocation(289, 17),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(291,53): error CS0103: The name 'InvalidTagHelperIndexerAssignment' does not exist in the current context
|
||||
// throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-value", "TestNamespace.InputTagHelper2", "IntDictionaryProperty"));
|
||||
Diagnostic(ErrorCode.ERR_NameNotInContext, "InvalidTagHelperIndexerAssignment").WithArguments("InvalidTagHelperIndexerAssignment").WithLocation(291, 53),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(293,13): error CS0021: Cannot apply indexing with [] to an expression of type 'int'
|
||||
// __TestNamespace_InputTagHelper2.IntDictionaryProperty["value"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["value"];
|
||||
Diagnostic(ErrorCode.ERR_BadIndexLHS, @"__TestNamespace_InputTagHelper2.IntDictionaryProperty[""value""]").WithArguments("int").WithLocation(293, 13),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(296,53): error CS0103: The name 'InvalidTagHelperIndexerAssignment' does not exist in the current context
|
||||
// throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("string-prefix-thyme", "TestNamespace.InputTagHelper1", "StringDictionaryProperty"));
|
||||
Diagnostic(ErrorCode.ERR_NameNotInContext, "InvalidTagHelperIndexerAssignment").WithArguments("InvalidTagHelperIndexerAssignment").WithLocation(296, 53),
|
||||
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml(302,53): error CS0103: The name 'InvalidTagHelperIndexerAssignment' does not exist in the current context
|
||||
// throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("string-prefix-thyme", "TestNamespace.InputTagHelper2", "StringDictionaryProperty"));
|
||||
Diagnostic(ErrorCode.ERR_NameNotInContext, "InvalidTagHelperIndexerAssignment").WithArguments("InvalidTagHelperIndexerAssignment").WithLocation(302, 53)
|
||||
Diagnostic(ErrorCode.ERR_BadIndexLHS, @"__TestNamespace_InputTagHelper2.IntDictionaryProperty[""value""]").WithArguments("int").WithLocation(293, 13)
|
|
@ -27,7 +27,7 @@ namespace Test
|
|||
__o = (global::Microsoft.AspNetCore.Components.IComponentRenderMode)(
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
Component - (0:0,0 [126] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Component - (0:0,0 [137] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
ComponentAttribute - - @rendermode - - AttributeStructure.DoubleQuotes
|
||||
HtmlContent - (116:1,32 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (116:1,32 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Value2
|
||||
HtmlContent - (127:1,32 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (127:1,32 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Value2
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Source Location: (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (1096:29,28 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (1096:29,28 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace Test
|
|||
__o = (global::Microsoft.AspNetCore.Components.IComponentRenderMode)(
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
@ -51,7 +51,7 @@ namespace Test
|
|||
((global::Test.TestComponent)default).
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
P1
|
||||
P1
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -14,16 +14,16 @@
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
Component - (0:0,0 [103] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
Component - (0:0,0 [114] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
ComponentAttribute - (19:0,19 [3] x:\dir\subdir\Test\TestComponent.cshtml) - P2 - P2 - AttributeStructure.DoubleQuotes
|
||||
HtmlContent - (19:0,19 [3] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (19:0,19 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - abc
|
||||
RenderMode - (37:0,37 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (37:0,37 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
ComponentAttribute - (96:0,96 [3] x:\dir\subdir\Test\TestComponent.cshtml) - P1 - P1 - AttributeStructure.DoubleQuotes
|
||||
HtmlContent - (96:0,96 [3] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (96:0,96 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - def
|
||||
HtmlContent - (103:0,103 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (103:0,103 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
|
||||
CSharpCode - (115:3,1 [94] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (115:3,1 [94] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n [Parameter]public string P1 {get; set;}\n\n [Parameter]public string P2 {get; set;}\n
|
||||
RenderMode - (37:0,37 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (37:0,37 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
ComponentAttribute - (107:0,107 [3] x:\dir\subdir\Test\TestComponent.cshtml) - P1 - P1 - AttributeStructure.DoubleQuotes
|
||||
HtmlContent - (107:0,107 [3] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (107:0,107 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - def
|
||||
HtmlContent - (114:0,114 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (114:0,114 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
|
||||
CSharpCode - (126:3,1 [94] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (126:3,1 [94] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n [Parameter]public string P1 {get; set;}\n\n [Parameter]public string P2 {get; set;}\n
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
Source Location: (37:0,37 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (1128:30,37 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (37:0,37 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (1128:30,37 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
Source Location: (15:0,15 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|P2|
|
||||
Generated Location: (1616:44,15 [2] )
|
||||
Generated Location: (1627:44,15 [2] )
|
||||
|P2|
|
||||
|
||||
Source Location: (92:0,92 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (103:0,103 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|P1|
|
||||
Generated Location: (1909:53,92 [2] )
|
||||
Generated Location: (1931:53,103 [2] )
|
||||
|P1|
|
||||
|
||||
Source Location: (115:3,1 [94] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (126:3,1 [94] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
[Parameter]public string P1 {get; set;}
|
||||
|
||||
[Parameter]public string P2 {get; set;}
|
||||
|
|
||||
Generated Location: (2315:71,1 [94] )
|
||||
Generated Location: (2337:71,1 [94] )
|
||||
|
|
||||
[Parameter]public string P1 {get; set;}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace Test
|
|||
__o = (global::Microsoft.AspNetCore.Components.IComponentRenderMode)(
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -14,6 +14,6 @@
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
Component - (0:0,0 [85] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Component - (0:0,0 [96] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Source Location: (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (1096:29,28 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (1096:29,28 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace Test
|
|||
__o = (global::Microsoft.AspNetCore.Components.IComponentRenderMode)(
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
@ -37,7 +37,7 @@ namespace Test
|
|||
__o = (global::Microsoft.AspNetCore.Components.IComponentRenderMode)(
|
||||
#nullable restore
|
||||
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
@ -47,7 +47,7 @@ namespace Test
|
|||
__o = (global::Microsoft.AspNetCore.Components.IComponentRenderMode)(
|
||||
#nullable restore
|
||||
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
@ -75,7 +75,7 @@ __o = typeof(global::Test.TestComponent);
|
|||
__o = (global::Microsoft.AspNetCore.Components.IComponentRenderMode)(
|
||||
#nullable restore
|
||||
#line 5 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
@ -85,7 +85,7 @@ __o = typeof(global::Test.TestComponent);
|
|||
__o = (global::Microsoft.AspNetCore.Components.IComponentRenderMode)(
|
||||
#nullable restore
|
||||
#line 6 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
@ -104,7 +104,7 @@ __o = typeof(global::Test.TestComponent);
|
|||
__o = (global::Microsoft.AspNetCore.Components.IComponentRenderMode)(
|
||||
#nullable restore
|
||||
#line 7 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -14,44 +14,44 @@
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
Component - (0:0,0 [605] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
Component - (0:0,0 [671] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
ComponentChildContent - - ChildContent - context
|
||||
HtmlContent - (83:0,83 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (83:0,83 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (89:1,4 [200] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
HtmlContent - (94:0,94 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (94:0,94 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (100:1,4 [222] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
ComponentChildContent - - ChildContent - context
|
||||
HtmlContent - (172:1,87 [10] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (172:1,87 [10] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (182:2,8 [85] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (210:2,36 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (210:2,36 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
HtmlContent - (267:2,93 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (267:2,93 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
RenderMode - (117:1,32 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (117:1,32 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
HtmlContent - (289:3,20 [3] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (289:3,20 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (292:4,1 [295] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
HtmlContent - (194:1,98 [10] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (194:1,98 [10] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (204:2,8 [96] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (232:2,36 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (232:2,36 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
HtmlContent - (300:2,104 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (300:2,104 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
RenderMode - (128:1,32 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (128:1,32 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
HtmlContent - (322:3,20 [3] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (322:3,20 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (325:4,1 [328] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
ComponentChildContent - - ChildContent - context
|
||||
HtmlContent - (375:4,84 [10] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (375:4,84 [10] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (385:5,8 [85] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (413:5,36 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (413:5,36 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
HtmlContent - (470:5,93 [10] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (470:5,93 [10] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (480:6,8 [85] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (508:6,36 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (508:6,36 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
HtmlContent - (565:6,93 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (565:6,93 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
RenderMode - (320:4,29 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (320:4,29 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
HtmlContent - (587:7,20 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (587:7,20 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
RenderMode - (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
HtmlContent - (605:8,16 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (605:8,16 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
|
||||
CSharpCode - (617:11,1 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (617:11,1 [73] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n [Parameter]\n public RenderFragment ChildContent { get; set; }\n
|
||||
HtmlContent - (419:4,95 [10] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (419:4,95 [10] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (429:5,8 [96] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (457:5,36 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (457:5,36 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
HtmlContent - (525:5,104 [10] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (525:5,104 [10] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (535:6,8 [96] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (563:6,36 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (563:6,36 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
HtmlContent - (631:6,104 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (631:6,104 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
RenderMode - (353:4,29 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (353:4,29 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
HtmlContent - (653:7,20 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (653:7,20 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
RenderMode - (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
HtmlContent - (671:8,16 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (671:8,16 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
|
||||
CSharpCode - (683:11,1 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (683:11,1 [73] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n [Parameter]\n public RenderFragment ChildContent { get; set; }\n
|
||||
|
|
|
@ -1,39 +1,39 @@
|
|||
Source Location: (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (1096:29,28 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (1096:29,28 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
Source Location: (117:1,32 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (1537:39,32 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (128:1,32 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (1548:39,32 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
Source Location: (210:2,36 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (1995:49,36 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (232:2,36 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (2017:49,36 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
Source Location: (320:4,29 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (2864:77,29 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (353:4,29 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (2897:77,29 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
Source Location: (413:5,36 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (3322:87,36 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (457:5,36 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (3366:87,36 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
Source Location: (508:6,36 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (3999:106,36 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (563:6,36 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (4054:106,36 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
Source Location: (617:11,1 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (683:11,1 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
[Parameter]
|
||||
public RenderFragment ChildContent { get; set; }
|
||||
|
|
||||
Generated Location: (4998:144,1 [73] )
|
||||
Generated Location: (5064:144,1 [73] )
|
||||
|
|
||||
[Parameter]
|
||||
public RenderFragment ChildContent { get; set; }
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace Test
|
|||
((global::System.Action)(() => {
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
global::System.Object __typeHelper = nameof(Microsoft.AspNetCore.Components.Web.RenderMode.Server);
|
||||
global::System.Object __typeHelper = nameof(Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
@ -49,7 +49,7 @@ global::System.Object __typeHelper = nameof(Microsoft.AspNetCore.Components.Web.
|
|||
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
IntermediateToken - - CSharp - [global::Test.TestComponent.__PrivateComponentRenderModeAttribute]
|
||||
ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
DirectiveToken - (12:0,12 [53] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
DirectiveToken - (12:0,12 [64] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
CSharpCode -
|
||||
|
@ -27,8 +27,8 @@
|
|||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
CSharpCode - (12:0,12 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
CSharpCode - (12:0,12 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
IntermediateToken - - CSharp - ;
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Source Location: (12:0,12 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (799:22,44 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (12:0,12 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (799:22,44 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace Test
|
|||
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
CSharpCode - (14:0,14 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (14:0,14 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
CSharpCode - (14:0,14 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (14:0,14 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
IntermediateToken - - CSharp - ;
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Source Location: (14:0,14 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (1652:41,14 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (14:0,14 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (1652:41,14 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ namespace Test
|
|||
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
#nullable restore
|
||||
#line 6 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -30,8 +30,8 @@
|
|||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
CSharpCode - (80:5,14 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (80:5,14 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
CSharpCode - (80:5,14 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (80:5,14 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
IntermediateToken - - CSharp - ;
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
|
||||
|
|
|
@ -9,8 +9,8 @@ Generated Location: (1107:31,1 [55] )
|
|||
public int Count { get; set; }
|
||||
|
|
||||
|
||||
Source Location: (80:5,14 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (1828:50,14 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (80:5,14 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (1828:50,14 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ namespace Test
|
|||
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -16,10 +16,10 @@
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
HtmlContent - (70:1,0 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (70:1,0 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (80:3,1 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (80:3,1 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n [Parameter]\n public int Count { get; set; }\n
|
||||
HtmlContent - (81:1,0 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (81:1,0 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (91:3,1 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (91:3,1 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n [Parameter]\n public int Count { get; set; }\n
|
||||
ClassDeclaration - - private sealed - __PrivateComponentRenderModeAttribute - global::Microsoft.AspNetCore.Components.RenderModeAttribute -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
|
@ -30,8 +30,8 @@
|
|||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
CSharpCode - (14:0,14 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (14:0,14 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
CSharpCode - (14:0,14 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (14:0,14 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
IntermediateToken - - CSharp - ;
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Source Location: (80:3,1 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (91:3,1 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
[Parameter]
|
||||
public int Count { get; set; }
|
||||
|
@ -9,8 +9,8 @@ Generated Location: (1107:31,1 [55] )
|
|||
public int Count { get; set; }
|
||||
|
|
||||
|
||||
Source Location: (14:0,14 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (1828:50,14 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (14:0,14 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (1828:50,14 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ global::System.Object __typeHelper = nameof(Custom.Namespace);
|
|||
((global::System.Action)(() => {
|
||||
#nullable restore
|
||||
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
global::System.Object __typeHelper = nameof(Microsoft.AspNetCore.Components.Web.RenderMode.Server);
|
||||
global::System.Object __typeHelper = nameof(Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
@ -59,7 +59,7 @@ global::System.Object __typeHelper = nameof(Microsoft.AspNetCore.Components.Web.
|
|||
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
#nullable restore
|
||||
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
DirectiveToken - (11:0,11 [16] x:\dir\subdir\Test\TestComponent.cshtml) - Custom.Namespace
|
||||
DirectiveToken - (43:2,12 [53] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
DirectiveToken - (43:2,12 [64] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
CSharpCode -
|
||||
|
@ -30,8 +30,8 @@
|
|||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
CSharpCode - (43:2,12 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
CSharpCode - (43:2,12 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
IntermediateToken - - CSharp - ;
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
Generated Location: (823:22,44 [16] )
|
||||
|Custom.Namespace|
|
||||
|
||||
Source Location: (43:2,12 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (1075:32,44 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (43:2,12 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (1075:32,44 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace Test
|
|||
__o = (global::Microsoft.AspNetCore.Components.IComponentRenderMode)(
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
@ -46,7 +46,7 @@ __o = typeof(global::Test.TestComponent);
|
|||
__o = (global::Microsoft.AspNetCore.Components.IComponentRenderMode)(
|
||||
#nullable restore
|
||||
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
Component - (0:0,0 [85] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
HtmlContent - (85:0,85 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (85:0,85 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (87:1,0 [85] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (115:1,28 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (115:1,28 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Component - (0:0,0 [96] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
HtmlContent - (96:0,96 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (96:0,96 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (98:1,0 [96] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (126:1,28 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (126:1,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
Source Location: (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (1096:29,28 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (1096:29,28 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
Source Location: (115:1,28 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (1724:48,28 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (126:1,28 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (1735:48,28 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ __o = typeof(global::Test.TestComponent);
|
|||
|
||||
public class RenderModeContainer
|
||||
{
|
||||
public Microsoft.AspNetCore.Components.IComponentRenderMode RenderMode => Microsoft.AspNetCore.Components.Web.RenderMode.Server;
|
||||
public Microsoft.AspNetCore.Components.IComponentRenderMode RenderMode => Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer;
|
||||
}
|
||||
|
||||
RenderModeContainer? Container => null;
|
||||
|
|
|
@ -14,10 +14,10 @@
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
HtmlContent - (248:8,1 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (248:8,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (250:9,0 [55] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (278:9,28 [23] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (280:9,30 [20] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Container.RenderMode
|
||||
CSharpCode - (8:1,1 [239] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (8:1,1 [239] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public class RenderModeContainer\n {\n public Microsoft.AspNetCore.Components.IComponentRenderMode RenderMode => Microsoft.AspNetCore.Components.Web.RenderMode.Server;\n }\n\n RenderModeContainer? Container => null;\n
|
||||
HtmlContent - (259:8,1 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (259:8,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (261:9,0 [55] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (289:9,28 [23] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (291:9,30 [20] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Container.RenderMode
|
||||
CSharpCode - (8:1,1 [250] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (8:1,1 [250] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public class RenderModeContainer\n {\n public Microsoft.AspNetCore.Components.IComponentRenderMode RenderMode => Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer;\n }\n\n RenderModeContainer? Container => null;\n
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
Source Location: (280:9,30 [20] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (291:9,30 [20] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Container.RenderMode|
|
||||
Generated Location: (1097:29,28 [20] )
|
||||
|Container.RenderMode|
|
||||
|
||||
Source Location: (8:1,1 [239] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (8:1,1 [250] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public class RenderModeContainer
|
||||
{
|
||||
public Microsoft.AspNetCore.Components.IComponentRenderMode RenderMode => Microsoft.AspNetCore.Components.Web.RenderMode.Server;
|
||||
public Microsoft.AspNetCore.Components.IComponentRenderMode RenderMode => Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer;
|
||||
}
|
||||
|
||||
RenderModeContainer? Container => null;
|
||||
|
|
||||
Generated Location: (1632:49,1 [239] )
|
||||
Generated Location: (1632:49,1 [250] )
|
||||
|
|
||||
public class RenderModeContainer
|
||||
{
|
||||
public Microsoft.AspNetCore.Components.IComponentRenderMode RenderMode => Microsoft.AspNetCore.Components.Web.RenderMode.Server;
|
||||
public Microsoft.AspNetCore.Components.IComponentRenderMode RenderMode => Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer;
|
||||
}
|
||||
|
||||
RenderModeContainer? Container => null;
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace Test
|
|||
__o = (global::Microsoft.AspNetCore.Components.IComponentRenderMode)(
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
true ? Microsoft.AspNetCore.Components.Web.RenderMode.Server : null
|
||||
true ? Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer : null
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -14,6 +14,6 @@
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
Component - (0:0,0 [102] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (28:0,28 [70] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (30:0,30 [67] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - true ? Microsoft.AspNetCore.Components.Web.RenderMode.Server : null
|
||||
Component - (0:0,0 [113] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (28:0,28 [81] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (30:0,30 [78] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - true ? Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer : null
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Source Location: (30:0,30 [67] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|true ? Microsoft.AspNetCore.Components.Web.RenderMode.Server : null|
|
||||
Generated Location: (1096:29,28 [67] )
|
||||
|true ? Microsoft.AspNetCore.Components.Web.RenderMode.Server : null|
|
||||
Source Location: (30:0,30 [78] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|true ? Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer : null|
|
||||
Generated Location: (1096:29,28 [78] )
|
||||
|true ? Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer : null|
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ where TRenderMode : Microsoft.AspNetCore.Components.IComponentRenderMode
|
|||
, -1,
|
||||
#nullable restore
|
||||
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -18,15 +18,15 @@
|
|||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
HtmlContent - (97:1,0 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (97:1,0 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (99:2,0 [119] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
Component - (99:2,0 [130] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (127:2,28 [15] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (127:2,28 [15] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderModeParam
|
||||
ComponentAttribute - (161:2,62 [53] x:\dir\subdir\Test\TestComponent.cshtml) - RenderModeParam - RenderModeParam - AttributeStructure.DoubleQuotes
|
||||
LazyIntermediateToken - (161:2,62 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
HtmlContent - (218:2,119 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (218:2,119 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
|
||||
CSharpCode - (230:5,1 [67] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (230:5,1 [67] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n [Parameter] public TRenderMode RenderModeParam { get; set;}\n
|
||||
ComponentAttribute - (161:2,62 [64] x:\dir\subdir\Test\TestComponent.cshtml) - RenderModeParam - RenderModeParam - AttributeStructure.DoubleQuotes
|
||||
LazyIntermediateToken - (161:2,62 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
HtmlContent - (229:2,130 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (229:2,130 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
|
||||
CSharpCode - (241:5,1 [67] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (241:5,1 [67] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n [Parameter] public TRenderMode RenderModeParam { get; set;}\n
|
||||
NamespaceDeclaration - - __Blazor.Test.TestComponent
|
||||
ClassDeclaration - - internal static - TypeInference - -
|
||||
ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateTestComponent_0
|
||||
|
|
|
@ -13,21 +13,21 @@ Source Location: (127:2,28 [15] x:\dir\subdir\Test\TestComponent.cshtml)
|
|||
Generated Location: (1633:50,28 [15] )
|
||||
|RenderModeParam|
|
||||
|
||||
Source Location: (161:2,62 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (1852:58,62 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (161:2,62 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (1852:58,62 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
Source Location: (144:2,45 [15] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|RenderModeParam|
|
||||
Generated Location: (2184:68,45 [15] )
|
||||
Generated Location: (2195:68,45 [15] )
|
||||
|RenderModeParam|
|
||||
|
||||
Source Location: (230:5,1 [67] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (241:5,1 [67] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
[Parameter] public TRenderMode RenderModeParam { get; set;}
|
||||
|
|
||||
Generated Location: (2605:86,1 [67] )
|
||||
Generated Location: (2616:86,1 [67] )
|
||||
|
|
||||
[Parameter] public TRenderMode RenderModeParam { get; set;}
|
||||
|
|
||||
|
|
|
@ -20,8 +20,8 @@ namespace Test
|
|||
__builder.OpenComponent<global::Test.TestComponent>(0);
|
||||
global::Microsoft.AspNetCore.Components.IComponentRenderMode __renderMode =
|
||||
#nullable restore
|
||||
#line (1,29)-(1,82) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
#line (1,29)-(1,93) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
UsingDirective - (136:5,1 [47] ) - global::Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
Component - (0:0,0 [126] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Component - (0:0,0 [137] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
ComponentAttribute - - @rendermode - - AttributeStructure.DoubleQuotes
|
||||
HtmlContent - (116:1,32 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (116:1,32 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Value2
|
||||
HtmlContent - (127:1,32 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (127:1,32 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Value2
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Source Location: (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (895:23,0 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (895:23,0 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@ namespace Test
|
|||
__builder.AddComponentParameter(1, "P2", "abc");
|
||||
global::Microsoft.AspNetCore.Components.IComponentRenderMode __renderMode =
|
||||
#nullable restore
|
||||
#line (1,38)-(1,91) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
#line (1,38)-(1,102) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
UsingDirective - (136:5,1 [47] ) - global::Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
Component - (0:0,0 [103] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
Component - (0:0,0 [114] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
ComponentAttribute - (19:0,19 [3] x:\dir\subdir\Test\TestComponent.cshtml) - P2 - P2 - AttributeStructure.DoubleQuotes
|
||||
HtmlContent - (19:0,19 [3] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (19:0,19 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - abc
|
||||
RenderMode - (37:0,37 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (37:0,37 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
ComponentAttribute - (96:0,96 [3] x:\dir\subdir\Test\TestComponent.cshtml) - P1 - P1 - AttributeStructure.DoubleQuotes
|
||||
HtmlContent - (96:0,96 [3] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (96:0,96 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - def
|
||||
CSharpCode - (115:3,1 [94] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (115:3,1 [94] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n [Parameter]public string P1 {get; set;}\n\n [Parameter]public string P2 {get; set;}\n
|
||||
RenderMode - (37:0,37 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (37:0,37 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
ComponentAttribute - (107:0,107 [3] x:\dir\subdir\Test\TestComponent.cshtml) - P1 - P1 - AttributeStructure.DoubleQuotes
|
||||
HtmlContent - (107:0,107 [3] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (107:0,107 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - def
|
||||
CSharpCode - (126:3,1 [94] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (126:3,1 [94] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n [Parameter]public string P1 {get; set;}\n\n [Parameter]public string P2 {get; set;}\n
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
Source Location: (37:0,37 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (957:24,0 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (37:0,37 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (958:24,0 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
Source Location: (115:3,1 [94] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (126:3,1 [94] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
[Parameter]public string P1 {get; set;}
|
||||
|
||||
[Parameter]public string P2 {get; set;}
|
||||
|
|
||||
Generated Location: (1372:38,0 [94] )
|
||||
Generated Location: (1384:38,0 [94] )
|
||||
|
|
||||
[Parameter]public string P1 {get; set;}
|
||||
|
||||
|
|
|
@ -20,8 +20,8 @@ namespace Test
|
|||
__builder.OpenComponent<global::Test.TestComponent>(0);
|
||||
global::Microsoft.AspNetCore.Components.IComponentRenderMode __renderMode =
|
||||
#nullable restore
|
||||
#line (1,29)-(1,82) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
#line (1,29)-(1,93) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
UsingDirective - (136:5,1 [47] ) - global::Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
Component - (0:0,0 [85] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
Component - (0:0,0 [96] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Source Location: (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (895:23,0 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (895:23,0 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
|
|
|
@ -20,8 +20,8 @@ namespace Test
|
|||
__builder.OpenComponent<global::Test.TestComponent>(0);
|
||||
global::Microsoft.AspNetCore.Components.IComponentRenderMode __renderMode =
|
||||
#nullable restore
|
||||
#line (1,29)-(1,82) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
#line (1,29)-(1,93) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
@ -32,8 +32,8 @@ Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
|||
__builder2.OpenComponent<global::Test.TestComponent>(2);
|
||||
global::Microsoft.AspNetCore.Components.IComponentRenderMode __renderMode2_0 =
|
||||
#nullable restore
|
||||
#line (2,33)-(2,86) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
#line (2,33)-(2,97) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
@ -44,8 +44,8 @@ Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
|||
__builder3.OpenComponent<global::Test.TestComponent>(4);
|
||||
global::Microsoft.AspNetCore.Components.IComponentRenderMode __renderMode3_0 =
|
||||
#nullable restore
|
||||
#line (3,37)-(3,90) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
#line (3,37)-(3,101) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
@ -62,8 +62,8 @@ Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
|||
__builder2.OpenComponent<global::Test.TestComponent>(6);
|
||||
global::Microsoft.AspNetCore.Components.IComponentRenderMode __renderMode2_1 =
|
||||
#nullable restore
|
||||
#line (5,30)-(5,83) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
#line (5,30)-(5,94) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
@ -74,8 +74,8 @@ Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
|||
__builder3.OpenComponent<global::Test.TestComponent>(8);
|
||||
global::Microsoft.AspNetCore.Components.IComponentRenderMode __renderMode3_0 =
|
||||
#nullable restore
|
||||
#line (6,37)-(6,90) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
#line (6,37)-(6,101) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
@ -88,8 +88,8 @@ Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
|||
__builder3.OpenComponent<global::Test.TestComponent>(10);
|
||||
global::Microsoft.AspNetCore.Components.IComponentRenderMode __renderMode3_1 =
|
||||
#nullable restore
|
||||
#line (7,37)-(7,90) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
#line (7,37)-(7,101) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -7,30 +7,30 @@
|
|||
UsingDirective - (136:5,1 [47] ) - global::Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
Component - (0:0,0 [605] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
Component - (0:0,0 [671] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
ComponentChildContent - - ChildContent - context
|
||||
Component - (89:1,4 [200] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
Component - (100:1,4 [222] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
ComponentChildContent - - ChildContent - context
|
||||
Component - (182:2,8 [85] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (210:2,36 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (210:2,36 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
RenderMode - (117:1,32 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (117:1,32 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
HtmlContent - (289:3,20 [3] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (289:3,20 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (292:4,1 [295] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
Component - (204:2,8 [96] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (232:2,36 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (232:2,36 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
RenderMode - (128:1,32 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (128:1,32 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
HtmlContent - (322:3,20 [3] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (322:3,20 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (325:4,1 [328] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
ComponentChildContent - - ChildContent - context
|
||||
Component - (385:5,8 [85] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (413:5,36 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (413:5,36 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
HtmlContent - (470:5,93 [10] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (470:5,93 [10] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (480:6,8 [85] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (508:6,36 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (508:6,36 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
RenderMode - (320:4,29 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (320:4,29 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
RenderMode - (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
CSharpCode - (617:11,1 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (617:11,1 [73] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n [Parameter]\n public RenderFragment ChildContent { get; set; }\n
|
||||
Component - (429:5,8 [96] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (457:5,36 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (457:5,36 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
HtmlContent - (525:5,104 [10] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (525:5,104 [10] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
Component - (535:6,8 [96] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
|
||||
RenderMode - (563:6,36 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (563:6,36 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
RenderMode - (353:4,29 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (353:4,29 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
RenderMode - (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
CSharpCode - (683:11,1 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (683:11,1 [73] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n [Parameter]\n public RenderFragment ChildContent { get; set; }\n
|
||||
|
|
|
@ -1,39 +1,39 @@
|
|||
Source Location: (28:0,28 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (895:23,0 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (895:23,0 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
Source Location: (117:1,32 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (1400:35,0 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (128:1,32 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (1411:35,0 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
Source Location: (210:2,36 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (1922:47,0 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (232:2,36 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (1945:47,0 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
Source Location: (320:4,29 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (2641:65,0 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (353:4,29 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (2675:65,0 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
Source Location: (413:5,36 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (3163:77,0 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (457:5,36 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (3209:77,0 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
Source Location: (508:6,36 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Generated Location: (3747:91,0 [53] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.Server|
|
||||
Source Location: (563:6,36 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
Generated Location: (3805:91,0 [64] )
|
||||
|Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer|
|
||||
|
||||
Source Location: (617:11,1 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (683:11,1 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
[Parameter]
|
||||
public RenderFragment ChildContent { get; set; }
|
||||
|
|
||||
Generated Location: (4420:112,0 [73] )
|
||||
Generated Location: (4489:112,0 [73] )
|
||||
|
|
||||
[Parameter]
|
||||
public RenderFragment ChildContent { get; set; }
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace Test
|
|||
#pragma warning restore 1998
|
||||
private sealed class __PrivateComponentRenderModeAttribute : global::Microsoft.AspNetCore.Components.RenderModeAttribute
|
||||
{
|
||||
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl => Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl => Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
;
|
||||
public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
|
||||
}
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
ClassDeclaration - - private sealed - __PrivateComponentRenderModeAttribute - global::Microsoft.AspNetCore.Components.RenderModeAttribute -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
CSharpCode - (12:0,12 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
CSharpCode - (12:0,12 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
IntermediateToken - - CSharp - ;
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
|
||||
|
|
|
@ -24,8 +24,8 @@ namespace Test
|
|||
{
|
||||
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
#nullable restore
|
||||
#line (1,15)-(1,68) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
#line (1,15)-(1,79) "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
ClassDeclaration - - private sealed - __PrivateComponentRenderModeAttribute - global::Microsoft.AspNetCore.Components.RenderModeAttribute -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl =>
|
||||
CSharpCode - (14:0,14 [53] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (14:0,14 [53] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.Server
|
||||
CSharpCode - (14:0,14 [64] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
LazyIntermediateToken - (14:0,14 [64] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer
|
||||
IntermediateToken - - CSharp - ;
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче