Give "builder" a less discoverable name

Fixes https://github.com/aspnet/AspNetCore/issues/12991
\n\nCommit migrated from 7e974693b6
This commit is contained in:
Pranav K 2019-08-12 17:44:31 -07:00
parent 32196f8023
commit 80d6dfea89
642 changed files with 2217 additions and 2214 deletions

View File

@ -311,12 +311,12 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
{
// Writes something like:
//
// builder.OpenComponent<MyComponent>(0);
// builder.AddAttribute(1, "Foo", ...);
// builder.AddAttribute(2, "ChildContent", ...);
// builder.SetKey(someValue);
// builder.AddElementCapture(3, (__value) => _field = __value);
// builder.CloseComponent();
// __builder.OpenComponent<MyComponent>(0);
// __builder.AddAttribute(1, "Foo", ...);
// __builder.AddAttribute(2, "ChildContent", ...);
// __builder.SetKey(someValue);
// __builder.AddElementCapture(3, (__value) => _field = __value);
// __builder.CloseComponent();
foreach (var typeArgument in node.TypeArguments)
{
@ -375,7 +375,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
// the component on the builder. We generate a method elsewhere, and then pass all of the information
// to that method. We pass in all of the attribute values + the sequence numbers.
//
// __Blazor.MyComponent.TypeInference.CreateMyComponent_0(builder, 0, 1, ..., 2, ..., 3, ....);
// __Blazor.MyComponent.TypeInference.CreateMyComponent_0(__builder, 0, 1, ..., 2, ..., 3, ....);
// Preserve order of attributes + splats
var attributes = node.Children.Where(s =>
@ -676,9 +676,9 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
// Writes something like:
//
// builder.AddAttribute(1, "ChildContent", (RenderFragment)((__builder73) => { ... }));
// __builder.AddAttribute(1, "ChildContent", (RenderFragment)((__builder73) => { ... }));
// OR
// builder.AddAttribute(1, "ChildContent", (RenderFragment<Person>)((person) => (__builder73) => { ... }));
// __builder.AddAttribute(1, "ChildContent", (RenderFragment<Person>)((person) => (__builder73) => { ... }));
BeginWriteAttribute(context.CodeWriter, node.AttributeName);
context.CodeWriter.Write($"({node.TypeName})(");
@ -775,7 +775,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
// Looks like:
//
// builder.SetKey(_keyValue);
// __builder.SetKey(_keyValue);
var codeWriter = context.CodeWriter;
@ -811,7 +811,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
// Looks like:
//
// builder.AddMultipleAttributes(2, ...);
// __builder.AddMultipleAttributes(2, ...);
context.CodeWriter.WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{ComponentsApi.RenderTreeBuilder.AddMultipleAttributes}");
context.CodeWriter.Write("-1");
context.CodeWriter.WriteParameterSeparator();

View File

@ -120,7 +120,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
method.Parameters.Clear();
method.Parameters.Add(new MethodParameter()
{
ParameterName = "builder",
ParameterName = ComponentsApi.RenderTreeBuilder.BuilderParameter,
TypeName = ComponentsApi.RenderTreeBuilder.FullTypeName,
});
}

View File

@ -62,7 +62,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
//
// Looks like:
//
// public static void CreateFoo_0<T1, T2>(RenderTreeBuilder builder, int seq, int __seq0, T1 __arg0, int __seq1, global::System.Collections.Generic.List<T2> __arg1, int __seq2, string __arg2)
// public static void CreateFoo_0<T1, T2>(RenderTreeBuilder __builder, int seq, int __seq0, T1 __arg0, int __seq1, global::System.Collections.Generic.List<T2> __arg1, int __seq2, string __arg2)
// {
// builder.OpenComponent<Foo<T1, T2>>();
// builder.AddAttribute(__seq0, "Attr0", __arg0);
@ -88,7 +88,8 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
writer.Write("(");
writer.Write("global::");
writer.Write(ComponentsApi.RenderTreeBuilder.FullTypeName);
writer.Write(" builder");
writer.Write(" ");
writer.Write(ComponentsApi.RenderTreeBuilder.BuilderParameter);
writer.Write(", ");
writer.Write("int seq");
@ -118,8 +119,8 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
writer.WriteLine("{");
// builder.OpenComponent<TComponent>(42);
context.CodeWriter.Write("builder");
// _builder.OpenComponent<TComponent>(42);
context.CodeWriter.Write(ComponentsApi.RenderTreeBuilder.BuilderParameter);
context.CodeWriter.Write(".");
context.CodeWriter.Write(ComponentsApi.RenderTreeBuilder.OpenComponent);
context.CodeWriter.Write("<");
@ -136,7 +137,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
{
if (child is ComponentAttributeIntermediateNode attribute)
{
context.CodeWriter.WriteStartInstanceMethodInvocation("builder", ComponentsApi.RenderTreeBuilder.AddAttribute);
context.CodeWriter.WriteStartInstanceMethodInvocation(ComponentsApi.RenderTreeBuilder.BuilderParameter, ComponentsApi.RenderTreeBuilder.AddAttribute);
context.CodeWriter.Write(parameters[index].seqName);
context.CodeWriter.Write(", ");
@ -149,7 +150,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
}
else if (child is SplatIntermediateNode)
{
context.CodeWriter.WriteStartInstanceMethodInvocation("builder", ComponentsApi.RenderTreeBuilder.AddMultipleAttributes);
context.CodeWriter.WriteStartInstanceMethodInvocation(ComponentsApi.RenderTreeBuilder.BuilderParameter, ComponentsApi.RenderTreeBuilder.AddMultipleAttributes);
context.CodeWriter.Write(parameters[index].seqName);
context.CodeWriter.Write(", ");
@ -161,7 +162,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
foreach (var childContent in node.Component.ChildContents)
{
context.CodeWriter.WriteStartInstanceMethodInvocation("builder", ComponentsApi.RenderTreeBuilder.AddAttribute);
context.CodeWriter.WriteStartInstanceMethodInvocation(ComponentsApi.RenderTreeBuilder.BuilderParameter, ComponentsApi.RenderTreeBuilder.AddAttribute);
context.CodeWriter.Write(parameters[index].seqName);
context.CodeWriter.Write(", ");
@ -176,7 +177,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
foreach (var setKey in node.Component.SetKeys)
{
context.CodeWriter.WriteStartInstanceMethodInvocation("builder", ComponentsApi.RenderTreeBuilder.SetKey);
context.CodeWriter.WriteStartInstanceMethodInvocation(ComponentsApi.RenderTreeBuilder.BuilderParameter, ComponentsApi.RenderTreeBuilder.SetKey);
context.CodeWriter.Write(parameters[index].parameterName);
context.CodeWriter.WriteEndMethodInvocation();
@ -185,7 +186,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
foreach (var capture in node.Component.Captures)
{
context.CodeWriter.WriteStartInstanceMethodInvocation("builder", capture.IsComponentCapture ? ComponentsApi.RenderTreeBuilder.AddComponentReferenceCapture : ComponentsApi.RenderTreeBuilder.AddElementReferenceCapture);
context.CodeWriter.WriteStartInstanceMethodInvocation(ComponentsApi.RenderTreeBuilder.BuilderParameter, capture.IsComponentCapture ? ComponentsApi.RenderTreeBuilder.AddComponentReferenceCapture : ComponentsApi.RenderTreeBuilder.AddElementReferenceCapture);
context.CodeWriter.Write(parameters[index].seqName);
context.CodeWriter.Write(", ");
@ -196,7 +197,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
index++;
}
context.CodeWriter.WriteInstanceMethodInvocation("builder", ComponentsApi.RenderTreeBuilder.CloseComponent);
context.CodeWriter.WriteInstanceMethodInvocation(ComponentsApi.RenderTreeBuilder.BuilderParameter, ComponentsApi.RenderTreeBuilder.CloseComponent);
writer.WriteLine("}");

View File

@ -334,14 +334,14 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
//
// Writes something like:
//
// builder.OpenComponent<MyComponent>(0);
// builder.AddAttribute(1, "Foo", ...);
// builder.AddAttribute(2, "ChildContent", ...);
// builder.SetKey(someValue);
// builder.AddElementCapture(3, (__value) => _field = __value);
// builder.CloseComponent();
// _builder.OpenComponent<MyComponent>(0);
// _builder.AddAttribute(1, "Foo", ...);
// _builder.AddAttribute(2, "ChildContent", ...);
// _builder.SetKey(someValue);
// _builder.AddElementCapture(3, (__value) => _field = __value);
// _builder.CloseComponent();
// builder.OpenComponent<TComponent>(42);
// _builder.OpenComponent<TComponent>(42);
context.CodeWriter.Write(_scopeStack.BuilderVarName);
context.CodeWriter.Write(".");
context.CodeWriter.Write(ComponentsApi.RenderTreeBuilder.OpenComponent);
@ -383,7 +383,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
context.RenderNode(capture);
}
// builder.CloseComponent();
// _builder.CloseComponent();
context.CodeWriter.Write(_scopeStack.BuilderVarName);
context.CodeWriter.Write(".");
context.CodeWriter.Write(ComponentsApi.RenderTreeBuilder.CloseComponent);
@ -502,7 +502,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
throw new ArgumentNullException(nameof(node));
}
// builder.AddAttribute(1, "Foo", 42);
// _builder.AddAttribute(1, "Foo", 42);
context.CodeWriter.Write(_scopeStack.BuilderVarName);
context.CodeWriter.Write(".");
context.CodeWriter.Write(ComponentsApi.RenderTreeBuilder.AddAttribute);
@ -656,9 +656,9 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
// Writes something like:
//
// builder.AddAttribute(1, "ChildContent", (RenderFragment)((__builder73) => { ... }));
// _builder.AddAttribute(1, "ChildContent", (RenderFragment)((__builder73) => { ... }));
// OR
// builder.AddAttribute(1, "ChildContent", (RenderFragment<Person>)((person) => (__builder73) => { ... }));
// _builder.AddAttribute(1, "ChildContent", (RenderFragment<Person>)((person) => (__builder73) => { ... }));
BeginWriteAttribute(context.CodeWriter, node.AttributeName);
context.CodeWriter.Write($"({node.TypeName})(");
@ -716,7 +716,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
{
// Looks like:
//
// builder.SetKey(_keyValue);
// _builder.SetKey(_keyValue);
var codeWriter = context.CodeWriter;
@ -752,7 +752,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
// Looks like:
//
// builder.AddMultipleAttributes(2, ...);
// _builder.AddMultipleAttributes(2, ...);
context.CodeWriter.WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{ComponentsApi.RenderTreeBuilder.AddMultipleAttributes}");
context.CodeWriter.Write((_sourceSequence++).ToString());
context.CodeWriter.WriteParameterSeparator();
@ -790,9 +790,9 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
{
// Looks like:
//
// builder.AddComponentReferenceCapture(2, (__value) = { _field = (MyComponent)__value; });
// _builder.AddComponentReferenceCapture(2, (__value) = { _field = (MyComponent)__value; });
// OR
// builder.AddElementReferenceCapture(2, (__value) = { _field = (ElementReference)__value; });
// _builder.AddElementReferenceCapture(2, (__value) = { _field = (ElementReference)__value; });
var codeWriter = context.CodeWriter;
var methodName = node.IsComponentCapture

View File

@ -66,6 +66,8 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
{
public static readonly string FullTypeName = "Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder";
public static readonly string BuilderParameter = "__builder";
public static readonly string OpenElement = nameof(OpenElement);
public static readonly string CloseElement = nameof(CloseElement);

View File

@ -17,7 +17,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
private readonly Stack<ScopeEntry> _stack = new Stack<ScopeEntry>();
private int _builderVarNumber = 1;
public string BuilderVarName { get; private set; } = "builder";
public string BuilderVarName { get; private set; } = ComponentsApi.RenderTreeBuilder.BuilderParameter;
public void OpenComponentScope(CodeRenderingContext context, string name, string parameterName)
{
@ -61,8 +61,8 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
{
_builderVarNumber += delta;
BuilderVarName = _builderVarNumber == 1
? "builder"
: $"builder{_builderVarNumber}";
? ComponentsApi.RenderTreeBuilder.BuilderParameter
: $"{ComponentsApi.RenderTreeBuilder.BuilderParameter}{_builderVarNumber}";
}
private class ScopeEntry

View File

@ -30,10 +30,10 @@ namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests
@using Microsoft.AspNetCore.Components.Rendering;
@code {
void RenderChildComponent(RenderTreeBuilder builder)
void RenderChildComponent(RenderTreeBuilder __builder)
{
var output = string.Empty;
if (builder == null) output = ""Builder is null!"";
if (__builder == null) output = ""Builder is null!"";
else output = ""Builder is not null!"";
<p>Output: @output</p>
}
@ -56,7 +56,7 @@ namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests
@{
var output = string.Empty;
if (builder == null) output = ""Builder is null!"";
if (__builder == null) output = ""Builder is null!"";
else output = ""Builder is not null!"";
<p>Output: @output</p>
}");
@ -85,10 +85,10 @@ namespace Test
var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Rendering;
@{ RenderChildComponent(builder); }
@{ RenderChildComponent(__builder); }
@code {
void RenderChildComponent(RenderTreeBuilder builder)
void RenderChildComponent(RenderTreeBuilder __builder)
{
<MyComponent />
}

View File

@ -139,7 +139,7 @@ namespace Test
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
}
#pragma warning restore 1998

View File

@ -24,7 +24,7 @@ using System.Threading.Tasks;
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
#nullable restore

View File

@ -5,6 +5,6 @@ Generated Location: (285:11,0 [28] )
Source Location: (50:1,19 [33] x:\dir\subdir\Test\TestComponent.cshtml)
|async (e) => await Task.Delay(10)|
Generated Location: (1114:31,19 [33] )
Generated Location: (1116:31,19 [33] )
|async (e) => await Task.Delay(10)|

View File

@ -24,7 +24,7 @@ using System.Threading.Tasks;
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
#nullable restore

View File

@ -5,7 +5,7 @@ Generated Location: (285:11,0 [28] )
Source Location: (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|OnClick|
Generated Location: (1112:31,17 [7] )
Generated Location: (1114:31,17 [7] )
|OnClick|
Source Location: (68:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml)
@ -15,7 +15,7 @@ Source Location: (68:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml)
return Task.CompletedTask;
}
|
Generated Location: (1313:41,7 [91] )
Generated Location: (1315:41,7 [91] )
|
Task OnClick(UIMouseEventArgs e)
{

View File

@ -24,7 +24,7 @@ using System.Threading.Tasks;
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
#nullable restore

View File

@ -5,6 +5,6 @@ Generated Location: (285:11,0 [28] )
Source Location: (50:1,19 [32] x:\dir\subdir\Test\TestComponent.cshtml)
|async () => await Task.Delay(10)|
Generated Location: (1114:31,19 [32] )
Generated Location: (1116:31,19 [32] )
|async () => await Task.Delay(10)|

View File

@ -24,7 +24,7 @@ using System.Threading.Tasks;
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
#nullable restore

View File

@ -5,7 +5,7 @@ Generated Location: (285:11,0 [28] )
Source Location: (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|OnClick|
Generated Location: (1112:31,17 [7] )
Generated Location: (1114:31,17 [7] )
|OnClick|
Source Location: (68:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml)
@ -15,7 +15,7 @@ Source Location: (68:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml)
return Task.CompletedTask;
}
|
Generated Location: (1313:41,7 [73] )
Generated Location: (1315:41,7 [73] )
|
Task OnClick()
{

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Int32>(
#nullable restore
@ -32,7 +32,7 @@ namespace Test
__o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<System.Int32>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<System.Int32>(this,
Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue)));
__o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Linq.Expressions.Expression<System.Func<System.Int32>>>(() => ParentValue);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (976:25,26 [11] )
Generated Location: (978:25,26 [11] )
|ParentValue|
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (2053:48,7 [50] )
Generated Location: (2059:48,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -18,9 +18,9 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, -1, -1,
__Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(__builder, -1, -1,
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
ParentValue
@ -54,13 +54,13 @@ namespace __Blazor.Test.TestComponent
#line hidden
internal static class TypeInference
{
public static void CreateMyComponent_0<T>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder, int seq, int __seq0, T __arg0, int __seq1, global::Microsoft.AspNetCore.Components.EventCallback<T> __arg1, int __seq2, global::System.Linq.Expressions.Expression<global::System.Func<T>> __arg2)
public static void CreateMyComponent_0<T>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, T __arg0, int __seq1, global::Microsoft.AspNetCore.Components.EventCallback<T> __arg1, int __seq2, global::System.Linq.Expressions.Expression<global::System.Func<T>> __arg2)
{
builder.OpenComponent<global::Test.MyComponent<T>>(seq);
builder.AddAttribute(__seq0, "SomeParam", __arg0);
builder.AddAttribute(__seq1, "SomeParamChanged", __arg1);
builder.AddAttribute(__seq2, "SomeParamExpression", __arg2);
builder.CloseComponent();
__builder.OpenComponent<global::Test.MyComponent<T>>(seq);
__builder.AddAttribute(__seq0, "SomeParam", __arg0);
__builder.AddAttribute(__seq1, "SomeParamChanged", __arg1);
__builder.AddAttribute(__seq2, "SomeParamExpression", __arg2);
__builder.CloseComponent();
}
}
}

View File

@ -1,13 +1,13 @@
Source Location: (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (965:25,30 [11] )
Generated Location: (969:25,30 [11] )
|ParentValue|
Source Location: (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime ParentValue { get; set; } = DateTime.Now;
|
Generated Location: (1575:43,7 [65] )
Generated Location: (1579:43,7 [65] )
|
public DateTime ParentValue { get; set; } = DateTime.Now;
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Int32>(
#nullable restore
@ -31,7 +31,7 @@ namespace Test
);
__o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<System.Int32>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<System.Int32>(this,
Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue)));
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (976:25,26 [11] )
Generated Location: (978:25,26 [11] )
|ParentValue|
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1877:47,7 [50] )
Generated Location: (1883:47,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Int32>(
#nullable restore
@ -31,7 +31,7 @@ namespace Test
);
__o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<System.Int32>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<System.Int32>(this,
Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue)));
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (976:25,26 [11] )
Generated Location: (978:25,26 [11] )
|ParentValue|
Source Location: (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "42";
|
Generated Location: (1877:47,7 [55] )
Generated Location: (1883:47,7 [55] )
|
public string ParentValue { get; set; } = "42";
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Int32>(
#nullable restore
@ -31,7 +31,7 @@ namespace Test
);
__o = new System.Action<System.Int32>(
__value => ParentValue = __value);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (976:25,26 [11] )
Generated Location: (978:25,26 [11] )
|ParentValue|
Source Location: (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1580:47,7 [50] )
Generated Location: (1586:47,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o =
#nullable restore
@ -30,7 +30,7 @@ namespace Test
#nullable disable
;
__o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (888:25,26 [11] )
Generated Location: (890:25,26 [11] )
|ParentValue|
Source Location: (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1556:46,7 [50] )
Generated Location: (1562:46,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Int32>(
#nullable restore
@ -32,7 +32,7 @@ namespace Test
__o = new System.Action<System.Int32>(
__value => ParentValue = __value);
__o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Linq.Expressions.Expression<System.Func<System.Int32>>>(() => ParentValue);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (976:25,26 [11] )
Generated Location: (978:25,26 [11] )
|ParentValue|
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1756:48,7 [50] )
Generated Location: (1762:48,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -18,9 +18,9 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, -1, -1,
__Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(__builder, -1, -1,
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
ParentValue
@ -54,13 +54,13 @@ namespace __Blazor.Test.TestComponent
#line hidden
internal static class TypeInference
{
public static void CreateMyComponent_0<T>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder, int seq, int __seq0, T __arg0, int __seq1, global::System.Action<T> __arg1, int __seq2, global::System.Linq.Expressions.Expression<global::System.Func<T>> __arg2)
public static void CreateMyComponent_0<T>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, T __arg0, int __seq1, global::System.Action<T> __arg1, int __seq2, global::System.Linq.Expressions.Expression<global::System.Func<T>> __arg2)
{
builder.OpenComponent<global::Test.MyComponent<T>>(seq);
builder.AddAttribute(__seq0, "SomeParam", __arg0);
builder.AddAttribute(__seq1, "SomeParamChanged", __arg1);
builder.AddAttribute(__seq2, "SomeParamExpression", __arg2);
builder.CloseComponent();
__builder.OpenComponent<global::Test.MyComponent<T>>(seq);
__builder.AddAttribute(__seq0, "SomeParam", __arg0);
__builder.AddAttribute(__seq1, "SomeParamChanged", __arg1);
__builder.AddAttribute(__seq2, "SomeParamExpression", __arg2);
__builder.CloseComponent();
}
}
}

View File

@ -1,13 +1,13 @@
Source Location: (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (965:25,30 [11] )
Generated Location: (969:25,30 [11] )
|ParentValue|
Source Location: (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime ParentValue { get; set; } = DateTime.Now;
|
Generated Location: (1395:43,7 [65] )
Generated Location: (1399:43,7 [65] )
|
public DateTime ParentValue { get; set; } = DateTime.Now;
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Int32>(
#nullable restore
@ -31,7 +31,7 @@ namespace Test
);
__o = new System.Action<System.Int32>(
__value => ParentValue = __value);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (976:25,26 [11] )
Generated Location: (978:25,26 [11] )
|ParentValue|
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1580:47,7 [50] )
Generated Location: (1586:47,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o =
#nullable restore
@ -30,7 +30,7 @@ namespace Test
#nullable disable
;
__o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (888:25,26 [11] )
Generated Location: (890:25,26 [11] )
|ParentValue|
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1556:46,7 [50] )
Generated Location: (1562:46,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Int32>(
#nullable restore
@ -31,7 +31,7 @@ namespace Test
);
__o = new System.Action<System.Int32>(
__value => ParentValue = __value);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (976:25,26 [11] )
Generated Location: (978:25,26 [11] )
|ParentValue|
Source Location: (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "42";
|
Generated Location: (1580:47,7 [55] )
Generated Location: (1586:47,7 [55] )
|
public string ParentValue { get; set; } = "42";
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.String>(
#nullable restore
@ -31,7 +31,7 @@ namespace Test
);
__o = new System.Action<System.String>(
__value => person.Name = __value);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (24:0,24 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|person.Name|
Generated Location: (975:25,24 [11] )
Generated Location: (977:25,24 [11] )
|person.Name|
Source Location: (57:3,1 [37] x:\dir\subdir\Test\TestComponent.cshtml)
|
Person person = new Person();
|
Generated Location: (1572:47,1 [37] )
Generated Location: (1578:47,1 [37] )
|
Person person = new Person();
|

View File

@ -25,7 +25,7 @@ using System.Globalization;
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -5,19 +5,19 @@ Generated Location: (320:12,0 [26] )
Source Location: (48:1,19 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (1088:32,19 [11] )
Generated Location: (1090:32,19 [11] )
|ParentValue|
Source Location: (111:1,82 [28] x:\dir\subdir\Test\TestComponent.cshtml)
|CultureInfo.InvariantCulture|
Generated Location: (1328:40,82 [28] )
Generated Location: (1330:40,82 [28] )
|CultureInfo.InvariantCulture|
Source Location: (152:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "hi";
|
Generated Location: (1729:51,7 [55] )
Generated Location: (1731:51,7 [55] )
|
public string ParentValue { get; set; } = "hi";
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (33:0,33 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|CurrentDate|
Generated Location: (953:25,33 [11] )
Generated Location: (955:25,33 [11] )
|CurrentDate|
Source Location: (113:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|
Generated Location: (1332:36,7 [77] )
Generated Location: (1334:36,7 [77] )
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (33:0,33 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (953:25,33 [11] )
Generated Location: (955:25,33 [11] )
|ParentValue|
Source Location: (86:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1298:36,7 [50] )
Generated Location: (1300:36,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -25,7 +25,7 @@ using System.Globalization;
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -5,19 +5,19 @@ Generated Location: (320:12,0 [26] )
Source Location: (48:1,19 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (1088:32,19 [11] )
Generated Location: (1090:32,19 [11] )
|ParentValue|
Source Location: (115:1,86 [28] x:\dir\subdir\Test\TestComponent.cshtml)
|CultureInfo.InvariantCulture|
Generated Location: (1332:40,86 [28] )
Generated Location: (1334:40,86 [28] )
|CultureInfo.InvariantCulture|
Source Location: (156:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "hi";
|
Generated Location: (1733:51,7 [55] )
Generated Location: (1735:51,7 [55] )
|
public string ParentValue { get; set; } = "hi";
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (19:0,19 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (939:25,19 [11] )
Generated Location: (941:25,19 [11] )
|ParentValue|
Source Location: (76:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "hi";
|
Generated Location: (1284:36,7 [55] )
Generated Location: (1286:36,7 [55] )
|
public string ParentValue { get; set; } = "hi";
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (19:0,19 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (939:25,19 [11] )
Generated Location: (941:25,19 [11] )
|ParentValue|
Source Location: (43:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "hi";
|
Generated Location: (1284:36,7 [55] )
Generated Location: (1286:36,7 [55] )
|
public string ParentValue { get; set; } = "hi";
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (18:0,18 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (938:25,18 [11] )
Generated Location: (940:25,18 [11] )
|ParentValue|
Source Location: (42:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "hi";
|
Generated Location: (1283:36,7 [55] )
Generated Location: (1285:36,7 [55] )
|
public string ParentValue { get; set; } = "hi";
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (933:25,13 [11] )
Generated Location: (935:25,13 [11] )
|ParentValue|
Source Location: (37:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "hi";
|
Generated Location: (1278:36,7 [55] )
Generated Location: (1280:36,7 [55] )
|
public string ParentValue { get; set; } = "hi";
|

View File

@ -25,7 +25,7 @@ using System.Globalization;
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -5,14 +5,14 @@ Generated Location: (320:12,0 [26] )
Source Location: (64:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (1104:32,35 [11] )
Generated Location: (1106:32,35 [11] )
|ParentValue|
Source Location: (121:2,7 [44] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; }
|
Generated Location: (1449:43,7 [44] )
Generated Location: (1451:43,7 [44] )
|
public int ParentValue { get; set; }
|

View File

@ -25,7 +25,7 @@ using System.Globalization;
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -5,19 +5,19 @@ Generated Location: (320:12,0 [26] )
Source Location: (64:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (1104:32,35 [11] )
Generated Location: (1106:32,35 [11] )
|ParentValue|
Source Location: (131:1,102 [26] x:\dir\subdir\Test\TestComponent.cshtml)
|CultureInfo.CurrentCulture|
Generated Location: (1364:40,102 [26] )
Generated Location: (1366:40,102 [26] )
|CultureInfo.CurrentCulture|
Source Location: (170:2,7 [44] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; }
|
Generated Location: (1761:51,7 [44] )
Generated Location: (1763:51,7 [44] )
|
public int ParentValue { get; set; }
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
@ -27,7 +27,7 @@ namespace Test
#line default
#line hidden
#nullable disable
(builder2) => {
(__builder2) => {
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = context.ToLowerInvariant();
@ -52,7 +52,7 @@ namespace Test
#line hidden
#nullable disable
);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
#nullable restore

View File

@ -1,20 +1,20 @@
Source Location: (2:0,2 [46] x:\dir\subdir\Test\TestComponent.cshtml)
| RenderFragment<string> header = (context) => |
Generated Location: (844:24,2 [46] )
Generated Location: (846:24,2 [46] )
| RenderFragment<string> header = (context) => |
Source Location: (55:0,55 [26] x:\dir\subdir\Test\TestComponent.cshtml)
|context.ToLowerInvariant()|
Generated Location: (1096:32,55 [26] )
Generated Location: (1100:32,55 [26] )
|context.ToLowerInvariant()|
Source Location: (87:0,87 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|; |
Generated Location: (1347:40,87 [2] )
Generated Location: (1351:40,87 [2] )
|; |
Source Location: (113:1,21 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|header|
Generated Location: (1578:48,21 [6] )
Generated Location: (1582:48,21 [6] )
|header|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
@ -27,7 +27,7 @@ namespace Test
#line default
#line hidden
#nullable disable
(builder2) => {
(__builder2) => {
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = context.ToLowerInvariant();
@ -52,10 +52,10 @@ namespace Test
#line hidden
#nullable disable
);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
builder.AddAttribute(-1, "Footer", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
__builder.AddAttribute(-1, "Footer", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
#nullable restore

View File

@ -1,20 +1,20 @@
Source Location: (2:0,2 [46] x:\dir\subdir\Test\TestComponent.cshtml)
| RenderFragment<string> header = (context) => |
Generated Location: (844:24,2 [46] )
Generated Location: (846:24,2 [46] )
| RenderFragment<string> header = (context) => |
Source Location: (55:0,55 [26] x:\dir\subdir\Test\TestComponent.cshtml)
|context.ToLowerInvariant()|
Generated Location: (1096:32,55 [26] )
Generated Location: (1100:32,55 [26] )
|context.ToLowerInvariant()|
Source Location: (87:0,87 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|; |
Generated Location: (1347:40,87 [2] )
Generated Location: (1351:40,87 [2] )
|; |
Source Location: (113:1,21 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|header|
Generated Location: (1578:48,21 [6] )
Generated Location: (1582:48,21 [6] )
|header|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (31:0,31 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|Enabled|
Generated Location: (951:25,31 [7] )
Generated Location: (953:25,31 [7] )
|Enabled|
Source Location: (51:1,7 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|
public bool Enabled { get; set; }
|
Generated Location: (1284:36,7 [41] )
Generated Location: (1286:36,7 [41] )
|
public bool Enabled { get; set; }
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (15:0,15 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|CurrentDate|
Generated Location: (935:25,15 [11] )
Generated Location: (937:25,15 [11] )
|CurrentDate|
Source Location: (82:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|
Generated Location: (1314:36,7 [77] )
Generated Location: (1316:36,7 [77] )
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,11 +1,11 @@
Source Location: (27:0,27 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|CurrentDate|
Generated Location: (947:25,27 [11] )
Generated Location: (949:25,27 [11] )
|CurrentDate|
Source Location: (55:0,55 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|Format|
Generated Location: (1159:33,55 [6] )
Generated Location: (1161:33,55 [6] )
|Format|
Source Location: (73:1,7 [135] x:\dir\subdir\Test\TestComponent.cshtml)
@ -14,7 +14,7 @@ Source Location: (73:1,7 [135] x:\dir\subdir\Test\TestComponent.cshtml)
public string Format { get; set; } = "MM/dd/yyyy";
|
Generated Location: (1515:44,7 [135] )
Generated Location: (1517:44,7 [135] )
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (27:0,27 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|CurrentDate|
Generated Location: (947:25,27 [11] )
Generated Location: (949:25,27 [11] )
|CurrentDate|
Source Location: (76:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|
Generated Location: (1336:36,7 [77] )
Generated Location: (1338:36,7 [77] )
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (27:0,27 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (947:25,27 [11] )
Generated Location: (949:25,27 [11] )
|ParentValue|
Source Location: (51:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1292:36,7 [50] )
Generated Location: (1294:36,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (29:0,29 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|CurrentDate|
Generated Location: (949:25,29 [11] )
Generated Location: (951:25,29 [11] )
|CurrentDate|
Source Location: (78:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|
Generated Location: (1474:36,7 [77] )
Generated Location: (1476:36,7 [77] )
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (29:0,29 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|CurrentDate|
Generated Location: (949:25,29 [11] )
Generated Location: (951:25,29 [11] )
|CurrentDate|
Source Location: (53:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|
Generated Location: (1328:36,7 [77] )
Generated Location: (1330:36,7 [77] )
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (29:0,29 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|CurrentDate|
Generated Location: (949:25,29 [11] )
Generated Location: (951:25,29 [11] )
|CurrentDate|
Source Location: (78:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|
Generated Location: (1338:36,7 [77] )
Generated Location: (1340:36,7 [77] )
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (21:0,21 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|CurrentDate|
Generated Location: (941:25,21 [11] )
Generated Location: (943:25,21 [11] )
|CurrentDate|
Source Location: (72:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|
Generated Location: (1320:36,7 [77] )
Generated Location: (1322:36,7 [77] )
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (21:0,21 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|CurrentDate|
Generated Location: (941:25,21 [11] )
Generated Location: (943:25,21 [11] )
|CurrentDate|
Source Location: (100:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|
Generated Location: (1320:36,7 [77] )
Generated Location: (1322:36,7 [77] )
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o =
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (15:0,15 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (877:25,15 [11] )
Generated Location: (879:25,15 [11] )
|ParentValue|
Source Location: (39:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1081:35,7 [50] )
Generated Location: (1083:35,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore

View File

@ -1,13 +1,13 @@
Source Location: (15:0,15 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
Generated Location: (935:25,15 [11] )
Generated Location: (937:25,15 [11] )
|ParentValue|
Source Location: (39:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1280:36,7 [50] )
Generated Location: (1282:36,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = typeof(
#nullable restore
@ -38,7 +38,7 @@ namespace Test
#line hidden
#nullable disable
);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
#nullable restore

View File

@ -1,10 +1,10 @@
Source Location: (19:0,19 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|string|
Generated Location: (888:25,19 [6] )
Generated Location: (890:25,19 [6] )
|string|
Source Location: (34:0,34 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|"hi"|
Generated Location: (1168:34,34 [4] )
Generated Location: (1170:34,34 [4] )
|"hi"|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = typeof(
#nullable restore
@ -40,7 +40,7 @@ namespace Test
);
__o = new System.Action<string>(
__value => Value = __value);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
#nullable restore

View File

@ -1,18 +1,18 @@
Source Location: (19:0,19 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|string|
Generated Location: (888:25,19 [6] )
Generated Location: (890:25,19 [6] )
|string|
Source Location: (37:0,37 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1171:34,37 [5] )
Generated Location: (1173:34,37 [5] )
|Value|
Source Location: (53:1,7 [21] x:\dir\subdir\Test\TestComponent.cshtml)
|
string Value;
|
Generated Location: (1759:56,7 [21] )
Generated Location: (1765:56,7 [21] )
|
string Value;
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = typeof(
#nullable restore
@ -39,7 +39,7 @@ namespace Test
#nullable disable
;
__o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => Value = __value, Value);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
#nullable restore

View File

@ -1,18 +1,18 @@
Source Location: (19:0,19 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|string|
Generated Location: (888:25,19 [6] )
Generated Location: (890:25,19 [6] )
|string|
Source Location: (37:0,37 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1089:34,37 [5] )
Generated Location: (1091:34,37 [5] )
|Value|
Source Location: (53:1,7 [21] x:\dir\subdir\Test\TestComponent.cshtml)
|
string Value;
|
Generated Location: (1741:55,7 [21] )
Generated Location: (1747:55,7 [21] )
|
string Value;
|

View File

@ -18,9 +18,9 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, -1, -1,
__Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(__builder, -1, -1,
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
18
@ -61,13 +61,13 @@ namespace __Blazor.Test.TestComponent
#line hidden
internal static class TypeInference
{
public static void CreateMyComponent_0<TItem>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0, int __seq1, System.Object __arg1, int __seq2, System.Object __arg2)
public static void CreateMyComponent_0<TItem>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, TItem __arg0, int __seq1, System.Object __arg1, int __seq2, System.Object __arg2)
{
builder.OpenComponent<global::Test.MyComponent<TItem>>(seq);
builder.AddAttribute(__seq0, "Value", __arg0);
builder.AddAttribute(__seq1, "Item", __arg1);
builder.AddAttribute(__seq2, "ItemChanged", __arg2);
builder.CloseComponent();
__builder.OpenComponent<global::Test.MyComponent<TItem>>(seq);
__builder.AddAttribute(__seq0, "Value", __arg0);
__builder.AddAttribute(__seq1, "Item", __arg1);
__builder.AddAttribute(__seq2, "ItemChanged", __arg2);
__builder.CloseComponent();
}
}
}

View File

@ -1,18 +1,18 @@
Source Location: (38:0,38 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|18|
Generated Location: (973:25,38 [2] )
Generated Location: (977:25,38 [2] )
|18|
Source Location: (24:0,24 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1141:33,24 [5] )
Generated Location: (1145:33,24 [5] )
|Value|
Source Location: (52:1,7 [21] x:\dir\subdir\Test\TestComponent.cshtml)
|
string Value;
|
Generated Location: (1628:50,7 [21] )
Generated Location: (1632:50,7 [21] )
|
string Value;
|

View File

@ -18,9 +18,9 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, -1, -1,
__Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(__builder, -1, -1,
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
Value
@ -37,7 +37,7 @@ __o = typeof(MyComponent<>);
#line default
#line hidden
#nullable disable
__Blazor.Test.TestComponent.TypeInference.CreateMyComponent_1(builder, -1, -1,
__Blazor.Test.TestComponent.TypeInference.CreateMyComponent_1(__builder, -1, -1,
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
Value
@ -71,19 +71,19 @@ namespace __Blazor.Test.TestComponent
#line hidden
internal static class TypeInference
{
public static void CreateMyComponent_0<TItem>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0, int __seq1, global::System.Action<TItem> __arg1)
public static void CreateMyComponent_0<TItem>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, TItem __arg0, int __seq1, global::System.Action<TItem> __arg1)
{
builder.OpenComponent<global::Test.MyComponent<TItem>>(seq);
builder.AddAttribute(__seq0, "Item", __arg0);
builder.AddAttribute(__seq1, "ItemChanged", __arg1);
builder.CloseComponent();
__builder.OpenComponent<global::Test.MyComponent<TItem>>(seq);
__builder.AddAttribute(__seq0, "Item", __arg0);
__builder.AddAttribute(__seq1, "ItemChanged", __arg1);
__builder.CloseComponent();
}
public static void CreateMyComponent_1<TItem>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0, int __seq1, global::System.Action<TItem> __arg1)
public static void CreateMyComponent_1<TItem>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, TItem __arg0, int __seq1, global::System.Action<TItem> __arg1)
{
builder.OpenComponent<global::Test.MyComponent<TItem>>(seq);
builder.AddAttribute(__seq0, "Item", __arg0);
builder.AddAttribute(__seq1, "ItemChanged", __arg1);
builder.CloseComponent();
__builder.OpenComponent<global::Test.MyComponent<TItem>>(seq);
__builder.AddAttribute(__seq0, "Item", __arg0);
__builder.AddAttribute(__seq1, "ItemChanged", __arg1);
__builder.CloseComponent();
}
}
}

View File

@ -1,18 +1,18 @@
Source Location: (24:0,24 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (959:25,24 [5] )
Generated Location: (963:25,24 [5] )
|Value|
Source Location: (57:1,24 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1415:42,24 [5] )
Generated Location: (1421:42,24 [5] )
|Value|
Source Location: (73:2,7 [21] x:\dir\subdir\Test\TestComponent.cshtml)
|
string Value;
|
Generated Location: (1810:60,7 [21] )
Generated Location: (1816:60,7 [21] )
|
string Value;
|

View File

@ -18,7 +18,7 @@ namespace Test
private static System.Object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = typeof(
#nullable restore
@ -38,7 +38,7 @@ namespace Test
#line hidden
#nullable disable
);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment<string>)((context) => (builder2) => {
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment<string>)((context) => (__builder2) => {
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = context.ToLower();

View File

@ -1,15 +1,15 @@
Source Location: (19:0,19 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|string|
Generated Location: (888:25,19 [6] )
Generated Location: (890:25,19 [6] )
|string|
Source Location: (34:0,34 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|"hi"|
Generated Location: (1168:34,34 [4] )
Generated Location: (1170:34,34 [4] )
|"hi"|
Source Location: (51:1,8 [17] x:\dir\subdir\Test\TestComponent.cshtml)
|context.ToLower()|
Generated Location: (1458:43,8 [17] )
Generated Location: (1464:43,8 [17] )
|context.ToLower()|

Some files were not shown because too many files have changed in this diff Show More