Add @code directive support for Blazor

\n\nCommit migrated from 7dc5887b49
This commit is contained in:
Ajay Bhargav Baaskaran 2019-04-30 20:20:33 -07:00
parent 5f462346c6
commit 2050916767
419 changed files with 865 additions and 807 deletions

View File

@ -0,0 +1,29 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
namespace Microsoft.AspNetCore.Razor.Language.Components
{
public static class ComponentCodeDirective
{
public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective(
"code",
DirectiveKind.CodeBlock,
builder =>
{
builder.Description = Resources.FunctionsDirective_Description;
});
public static void Register(RazorProjectEngineBuilder builder)
{
if (builder == null)
{
throw new ArgumentNullException(nameof(builder));
}
builder.AddDirective(Directive, FileKinds.Component);
builder.Features.Add(new ComponentCodeDirectivePass());
}
}
}

View File

@ -0,0 +1,27 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNetCore.Razor.Language.Intermediate;
namespace Microsoft.AspNetCore.Razor.Language.Components
{
internal class ComponentCodeDirectivePass : IntermediateNodePassBase, IRazorDirectiveClassifierPass
{
protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode)
{
var @class = documentNode.FindPrimaryClass();
if (@class == null)
{
return;
}
foreach (var code in documentNode.FindDirectiveReferences(ComponentCodeDirective.Directive))
{
for (var i = 0; i < code.Node.Children.Count; i++)
{
@class.Children.Add(code.Node.Children[i]);
}
}
}
}
}

View File

@ -211,6 +211,7 @@ namespace Microsoft.AspNetCore.Razor.Language
builder.Features.Add(new ComponentImportProjectFeature());
// Directives (conditional on file kind)
ComponentCodeDirective.Register(builder);
ComponentInjectDirective.Register(builder);
ComponentLayoutDirective.Register(builder);
ComponentPageDirective.Register(builder);

View File

@ -40,7 +40,7 @@ namespace Test
@{ RenderChildComponent(builder); }
@functions {
@code {
void RenderChildComponent(RenderTreeBuilder builder)
{
<MyComponent />
@ -167,7 +167,7 @@ namespace Test
@ChildContent(item2);
</p>
}
@functions {
@code {
[Parameter] TItem1 Item1 { get; set; }
[Parameter] List<TItem2> Items2 { get; set; }
[Parameter] RenderFragment<TItem2> ChildContent { get; set; }
@ -378,7 +378,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<MyComponent bind-Value=""ParentValue"" />
@functions {
@code {
public int ParentValue { get; set; } = 42;
}");
@ -458,7 +458,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<MyComponent bind-Value=""ParentValue"" />
@functions {
@code {
public string ParentValue { get; set; } = ""42"";
}");
@ -497,7 +497,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<MyComponent bind-Value=""ParentValue"" />
@functions {
@code {
public int ParentValue { get; set; } = 42;
}");
@ -530,7 +530,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<MyComponent bind-Value=""ParentValue"" />
@functions {
@code {
public string ParentValue { get; set; } = ""42"";
}");
@ -567,7 +567,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<MyComponent bind-Value=""ParentValue"" />
@functions {
@code {
public int ParentValue { get; set; } = 42;
}");
@ -599,7 +599,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<MyComponent bind-Value-OnChanged=""ParentValue"" />
@functions {
@code {
public int ParentValue { get; set; } = 42;
}");
@ -629,7 +629,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent bind-Value-OnChanged=""ParentValue"" />
@functions {
@code {
public int ParentValue { get; set; } = 42;
}");
@ -666,7 +666,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<MyComponent bind-Value=""ParentValue"" />
@functions {
@code {
public int ParentValue { get; set; } = 42;
}");
@ -703,7 +703,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<MyComponent bind-Value=""ParentValue"" />
@functions {
@code {
public int ParentValue { get; set; } = 42;
}");
@ -740,7 +740,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<MyComponent bind-Value=""ParentValue"" />
@functions {
@code {
public int ParentValue { get; set; } = 42;
}");
@ -779,7 +779,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<MyComponent bind-SomeParam=""ParentValue"" />
@functions {
@code {
public DateTime ParentValue { get; set; } = DateTime.Now;
}");
@ -816,7 +816,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<MyComponent bind-SomeParam=""ParentValue"" />
@functions {
@code {
public DateTime ParentValue { get; set; } = DateTime.Now;
}");
@ -845,7 +845,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<div bind=""@ParentValue"" />
@functions {
@code {
public string ParentValue { get; set; } = ""hi"";
}");
@ -873,7 +873,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<div bind-value=""ParentValue"" />
@functions {
@code {
public string ParentValue { get; set; } = ""hi"";
}");
@ -901,7 +901,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<div bind-value=""@ParentValue"" />
@functions {
@code {
public string ParentValue { get; set; } = ""hi"";
}");
@ -919,7 +919,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<input bind=""@ParentValue"" />
@functions {
@code {
public int ParentValue { get; set; } = 42;
}");
@ -937,7 +937,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<input type=""text"" bind=""@CurrentDate"" format-value=""MM/dd/yyyy""/>
@functions {
@code {
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
}");
@ -955,7 +955,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<input type=""text"" bind=""@CurrentDate"" format-value=""@Format""/>
@functions {
@code {
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
public string Format { get; set; } = ""MM/dd/yyyy"";
@ -975,7 +975,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<input type=""text"" bind=""@ParentValue"" />
@functions {
@code {
public int ParentValue { get; set; } = 42;
}");
@ -993,7 +993,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<input type=""checkbox"" bind=""@Enabled"" />
@functions {
@code {
public bool Enabled { get; set; }
}");
@ -1011,7 +1011,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<input type=""text"" bind-value-onchange=""@ParentValue"" />
@functions {
@code {
public int ParentValue { get; set; } = 42;
}");
@ -1029,7 +1029,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<input type=""text"" bind-value-onchange=""@CurrentDate"" format-value=""MM/dd"" />
@functions {
@code {
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
}");
@ -1640,7 +1640,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent OnClick=""@(EventCallback.Factory.Create(this, Increment))""/>
@functions {
@code {
private int counter;
private void Increment() {
counter++;
@ -1675,7 +1675,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent OnClick=""@(EventCallback.Factory.Create<UIMouseEventArgs>(this, Increment))""/>
@functions {
@code {
private int counter;
private void Increment() {
counter++;
@ -1710,7 +1710,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent OnClick=""@Increment""/>
@functions {
@code {
private int counter;
private void Increment() {
counter++;
@ -1745,7 +1745,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent OnClick=""@Increment""/>
@functions {
@code {
private int counter;
private void Increment(object e) {
counter++;
@ -1780,7 +1780,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent OnClick=""@Increment""/>
@functions {
@code {
private int counter;
private Task Increment() {
counter++;
@ -1816,7 +1816,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent OnClick=""@Increment""/>
@functions {
@code {
private int counter;
private Task Increment(object e) {
counter++;
@ -1852,7 +1852,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent OnClick=""@Increment""/>
@functions {
@code {
private int counter;
private void Increment() {
counter++;
@ -1887,7 +1887,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent OnClick=""@Increment""/>
@functions {
@code {
private int counter;
private void Increment(UIMouseEventArgs e) {
counter++;
@ -1922,7 +1922,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent OnClick=""@Increment""/>
@functions {
@code {
private int counter;
private Task Increment() {
counter++;
@ -1958,7 +1958,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent OnClick=""@Increment""/>
@functions {
@code {
private int counter;
private Task Increment(UIMouseEventArgs e) {
counter++;
@ -1994,7 +1994,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent OnClick=""@Increment""/>
@functions {
@code {
private int counter;
private void Increment(UIChangeEventArgs e) {
counter++;
@ -2038,7 +2038,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent OnClick=""@(e => { Increment(); })""/>
@functions {
@code {
private int counter;
private void Increment() {
counter++;
@ -2073,7 +2073,7 @@ namespace Test
var generated = CompileToCSharp(@"
<DynamicElement onclick=""@OnClick"" />
@functions {
@code {
private Action<UIMouseEventArgs> OnClick { get; set; }
}");
@ -2105,7 +2105,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent OnClick=""@Increment""/>
@functions {
@code {
private int counter;
private void Increment(UIEventArgs e) {
counter++;
@ -2171,7 +2171,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<input onclick=""@OnClick"" />
@functions {
@code {
void OnClick() {
}
}");
@ -2190,7 +2190,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<input onclick=""@OnClick"" />
@functions {
@code {
void OnClick(UIMouseEventArgs e) {
}
}");
@ -2209,7 +2209,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<input onclick=""@OnClick"" />
@functions {
@code {
void OnClick(UIEventArgs e) {
}
}");
@ -2229,7 +2229,7 @@ namespace Test
var generated = CompileToCSharp(@"
@using System.Threading.Tasks
<input onclick=""@OnClick"" />
@functions {
@code {
Task OnClick()
{
return Task.CompletedTask;
@ -2251,7 +2251,7 @@ namespace Test
var generated = CompileToCSharp(@"
@using System.Threading.Tasks
<input onclick=""@OnClick"" />
@functions {
@code {
Task OnClick(UIMouseEventArgs e)
{
return Task.CompletedTask;
@ -2321,7 +2321,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<input onclick=""@OnClick"" />
@functions {
@code {
void OnClick(UIMouseEventArgs e) {
}
}");
@ -2492,7 +2492,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<MyComponent TItem=string bind-Item=Value/>
@functions {
@code {
string Value;
}");
@ -2526,7 +2526,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<MyComponent bind-Item=Value/>
@functions {
@code {
string Value;
}");
@ -2555,7 +2555,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<MyComponent TItem=string bind-Item=Value/>
@functions {
@code {
string Value;
}");
@ -2585,7 +2585,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<MyComponent bind-Item=Value Value=@(18)/>
@functions {
@code {
string Value;
}");
@ -2788,7 +2788,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent TItem=int Item=""3"" key=""_someKey"" />
@functions {
@code {
private object _someKey = new object();
}
");
@ -2819,7 +2819,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent Item=""3"" key=""_someKey"" />
@functions {
@code {
private object _someKey = new object();
}
");
@ -2850,7 +2850,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent TItem=int Item=""3"" ref=""_my"" />
@functions {
@code {
private MyComponent<int> _my;
public void Foo() { System.GC.KeepAlive(_my); }
}
@ -2882,7 +2882,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent Item=""3"" ref=""_my"" />
@functions {
@code {
private MyComponent<int> _my;
public void Foo() { System.GC.KeepAlive(_my); }
}
@ -2924,7 +2924,7 @@ namespace Test.Shared
@using Test.Shared
<MyComponent Item=""3"" Foo=""@Hello"" />
@functions {
@code {
MyClass Hello = new MyClass();
}
");
@ -2946,7 +2946,7 @@ namespace Test.Shared
var generated = CompileToCSharp(@"
<elem attributebefore=""before"" key=""someObject"" attributeafter=""after"">Hello</elem>
@functions {
@code {
private object someObject = new object();
}
");
@ -2964,7 +2964,7 @@ namespace Test.Shared
var generated = CompileToCSharp(@"
<input type=""text"" data-slider-min=""@Min"" key=""@someObject"" />
@functions {
@code {
private object someObject = new object();
[Parameter] protected int Min { get; set; }
@ -2996,7 +2996,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent ParamBefore=""before"" key=""someDate.Day"" ParamAfter=""after"" />
@functions {
@code {
private DateTime someDate = DateTime.Now;
}
");
@ -3046,7 +3046,7 @@ namespace Test
var generated = CompileToCSharp(@"
<elem attributebefore=""before"" ref=""myElem"" attributeafter=""after"">Hello</elem>
@functions {
@code {
private Microsoft.AspNetCore.Components.ElementRef myElem;
public void Foo() { System.GC.KeepAlive(myElem); }
}
@ -3065,7 +3065,7 @@ namespace Test
var generated = CompileToCSharp(@"
<input type=""text"" data-slider-min=""@Min"" ref=""@_element"" />
@functions {
@code {
private ElementRef _element;
[Parameter] protected int Min { get; set; }
@ -3098,7 +3098,7 @@ namespace Test
var generated = CompileToCSharp(@"
<MyComponent ParamBefore=""before"" ref=""myInstance"" ParamAfter=""after"" />
@functions {
@code {
private Test.MyComponent myInstance;
public void Foo() { System.GC.KeepAlive(myInstance); }
}
@ -3131,7 +3131,7 @@ namespace Test
Some <el>further</el> content
</MyComponent>
@functions {
@code {
private Test.MyComponent myInstance;
public void Foo() { System.GC.KeepAlive(myInstance); }
}
@ -3157,7 +3157,7 @@ namespace Test
@{
RenderFragment<Person> p = (person) => @<div>@person.Name</div>;
}
@functions {
@code {
class Person
{
public string Name { get; set; }
@ -3178,7 +3178,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
@(RenderPerson((person) => @<div>@person.Name</div>))
@functions {
@code {
class Person
{
public string Name { get; set; }
@ -3201,7 +3201,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
@RenderPerson(@<div>HI</div>)
@functions {
@code {
object RenderPerson(RenderFragment p) => null;
}");
@ -3219,7 +3219,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
@RenderPerson((person) => @<div>@person.Name</div>)
@functions {
@code {
class Person
{
public string Name { get; set; }
@ -3255,7 +3255,7 @@ namespace Test
@{
RenderFragment<Person> p = (person) => @<div><MyComponent Name=""@person.Name""/></div>;
}
@functions {
@code {
class Person
{
public string Name { get; set; }
@ -3294,7 +3294,7 @@ namespace Test
@(""hello, world!"")
</MyComponent>
@functions {
@code {
class Person
{
public string Name { get; set; }
@ -3536,7 +3536,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<elem attr=@Foo />
@functions {
@code {
int Foo = 18;
}
");
@ -3754,7 +3754,7 @@ namespace Test
// Act
var generated = CompileToCSharp(@"
<Counter bind-v=""y"" />
@functions {
@code {
string y = null;
}
");
@ -3789,7 +3789,7 @@ namespace Test
var generated = CompileToCSharp(@"
<User bind-Name=""@UserName"" bind-IsActive=""@UserIsActive"" />
@functions {
@code {
public string UserName { get; set; }
public bool UserIsActive { get; set; }
}
@ -3880,7 +3880,7 @@ Welcome to your new app.
// Act
var generated = CompileToCSharp(@"
<p onmouseover=""@OnComponentHover"" style=""background: @ParentBgColor;"" />
@functions {
@code {
public string ParentBgColor { get; set; } = ""#FFFFFF"";
public void OnComponentHover(UIMouseEventArgs e)

View File

@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Razor.Language.Extensions;
using Moq;
using Xunit;
namespace Microsoft.AspNetCore.Razor.Language.Test
namespace Microsoft.AspNetCore.Razor.Language
{
public class RazorProjectEngineTest
{
@ -47,6 +47,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Test
features,
feature => Assert.IsType<ComponentBindLoweringPass>(feature),
feature => Assert.IsType<ComponentChildContentDiagnosticPass>(feature),
feature => Assert.IsType<ComponentCodeDirectivePass>(feature),
feature => Assert.IsType<ComponentComplexAttributeContentPass>(feature),
feature => Assert.IsType<ComponentDocumentClassifierPass>(feature),
feature => Assert.IsType<ComponentEventHandlerLoweringPass>(feature),

View File

@ -39,7 +39,7 @@ using System.Threading.Tasks;
#pragma warning restore 1998
#nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
Task OnClick(UIMouseEventArgs e)
{
return Task.CompletedTask;

View File

@ -24,5 +24,5 @@ Document -
IntermediateToken - - CSharp - )
HtmlContent - (59:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (59:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (73:2,12 [91] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (73:2,12 [91] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick(UIMouseEventArgs e) \n {\n return Task.CompletedTask;\n }\n
CSharpCode - (68:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (68:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick(UIMouseEventArgs e) \n {\n return Task.CompletedTask;\n }\n

View File

@ -8,14 +8,14 @@ Source Location: (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1113:31,17 [7] )
|OnClick|
Source Location: (73:2,12 [91] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (68:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml)
|
Task OnClick(UIMouseEventArgs e)
{
return Task.CompletedTask;
}
|
Generated Location: (1319:41,12 [91] )
Generated Location: (1314:41,7 [91] )
|
Task OnClick(UIMouseEventArgs e)
{

View File

@ -39,7 +39,7 @@ using System.Threading.Tasks;
#pragma warning restore 1998
#nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
Task OnClick()
{
return Task.CompletedTask;

View File

@ -24,5 +24,5 @@ Document -
IntermediateToken - - CSharp - )
HtmlContent - (59:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (59:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (73:2,12 [73] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (73:2,12 [73] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick() \n {\n return Task.CompletedTask;\n }\n
CSharpCode - (68:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (68:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick() \n {\n return Task.CompletedTask;\n }\n

View File

@ -8,14 +8,14 @@ Source Location: (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1113:31,17 [7] )
|OnClick|
Source Location: (73:2,12 [73] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (68:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
Task OnClick()
{
return Task.CompletedTask;
}
|
Generated Location: (1319:41,12 [73] )
Generated Location: (1314:41,7 [73] )
|
Task OnClick()
{

View File

@ -46,7 +46,7 @@ __o = typeof(MyComponent);
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default

View File

@ -28,5 +28,5 @@ Document -
IntermediateToken - - CSharp - () => ParentValue
HtmlContent - (40:0,40 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (40:0,40 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n
CSharpCode - (49:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (49:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n

View File

@ -3,11 +3,11 @@ Source Location: (25:0,25 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1012:25,25 [11] )
|ParentValue|
Source Location: (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (49:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (2038:48,12 [50] )
Generated Location: (2033:48,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -41,7 +41,7 @@ __o = typeof(MyComponent<>);
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public DateTime ParentValue { get; set; } = DateTime.Now;
#line default

View File

@ -28,8 +28,8 @@ Document -
IntermediateToken - - CSharp - () => ParentValue
HtmlContent - (44:0,44 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (44:0,44 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (58:1,12 [65] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (58:1,12 [65] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime ParentValue { get; set; } = DateTime.Now;\n
CSharpCode - (53:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (53:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime ParentValue { get; set; } = DateTime.Now;\n
NamespaceDeclaration - - __Blazor.Test.TestComponent
ClassDeclaration - - internal static - TypeInference - -
ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0

View File

@ -3,11 +3,11 @@ Source Location: (29:0,29 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1018:25,29 [11] )
|ParentValue|
Source Location: (58:1,12 [65] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (53:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime ParentValue { get; set; } = DateTime.Now;
|
Generated Location: (1611:43,12 [65] )
Generated Location: (1606:43,7 [65] )
|
public DateTime ParentValue { get; set; } = DateTime.Now;
|

View File

@ -45,7 +45,7 @@ __o = typeof(MyComponent);
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default

View File

@ -25,5 +25,5 @@ Document -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateInferred(this, __value => ParentValue = __value, ParentValue)
HtmlContent - (40:0,40 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (40:0,40 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n
CSharpCode - (49:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (49:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n

View File

@ -3,11 +3,11 @@ Source Location: (25:0,25 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1012:25,25 [11] )
|ParentValue|
Source Location: (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (49:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1879:47,12 [50] )
Generated Location: (1874:47,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -45,7 +45,7 @@ __o = typeof(MyComponent);
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public string ParentValue { get; set; } = "42";
#line default

View File

@ -25,5 +25,5 @@ Document -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateInferred(this, __value => ParentValue = __value, ParentValue)
HtmlContent - (40:0,40 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (40:0,40 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (54:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (54:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "42";\n
CSharpCode - (49:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (49:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "42";\n

View File

@ -3,11 +3,11 @@ Source Location: (25:0,25 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1012:25,25 [11] )
|ParentValue|
Source Location: (54:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (49:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "42";
|
Generated Location: (1879:47,12 [55] )
Generated Location: (1874:47,7 [55] )
|
public string ParentValue { get; set; } = "42";
|

View File

@ -45,7 +45,7 @@ __o = typeof(MyComponent);
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default

View File

@ -25,5 +25,5 @@ Document -
IntermediateToken - - CSharp - __value => ParentValue = __value
HtmlContent - (50:0,50 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (50:0,50 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (64:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (64:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n
CSharpCode - (59:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (59:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n

View File

@ -3,11 +3,11 @@ Source Location: (35:0,35 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1022:25,35 [11] )
|ParentValue|
Source Location: (64:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (59:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1632:47,12 [50] )
Generated Location: (1627:47,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -44,7 +44,7 @@ __o = typeof(MyComponent);
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default

View File

@ -25,5 +25,5 @@ Document -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue)
HtmlContent - (50:0,50 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (50:0,50 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (64:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (64:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n
CSharpCode - (59:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (59:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n

View File

@ -3,11 +3,11 @@ Source Location: (35:0,35 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (951:25,35 [11] )
|ParentValue|
Source Location: (64:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (59:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1600:46,12 [50] )
Generated Location: (1595:46,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -46,7 +46,7 @@ __o = typeof(MyComponent);
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default

View File

@ -28,5 +28,5 @@ Document -
IntermediateToken - - CSharp - () => ParentValue
HtmlContent - (40:0,40 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (40:0,40 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n
CSharpCode - (49:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (49:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n

View File

@ -3,11 +3,11 @@ Source Location: (25:0,25 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1012:25,25 [11] )
|ParentValue|
Source Location: (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (49:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1781:48,12 [50] )
Generated Location: (1776:48,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -41,7 +41,7 @@ __o = typeof(MyComponent<>);
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public DateTime ParentValue { get; set; } = DateTime.Now;
#line default

View File

@ -28,8 +28,8 @@ Document -
IntermediateToken - - CSharp - () => ParentValue
HtmlContent - (44:0,44 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (44:0,44 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (58:1,12 [65] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (58:1,12 [65] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime ParentValue { get; set; } = DateTime.Now;\n
CSharpCode - (53:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (53:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime ParentValue { get; set; } = DateTime.Now;\n
NamespaceDeclaration - - __Blazor.Test.TestComponent
ClassDeclaration - - internal static - TypeInference - -
ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0

View File

@ -3,11 +3,11 @@ Source Location: (29:0,29 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1018:25,29 [11] )
|ParentValue|
Source Location: (58:1,12 [65] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (53:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime ParentValue { get; set; } = DateTime.Now;
|
Generated Location: (1454:43,12 [65] )
Generated Location: (1449:43,7 [65] )
|
public DateTime ParentValue { get; set; } = DateTime.Now;
|

View File

@ -45,7 +45,7 @@ __o = typeof(MyComponent);
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default

View File

@ -25,5 +25,5 @@ Document -
IntermediateToken - - CSharp - __value => ParentValue = __value
HtmlContent - (40:0,40 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (40:0,40 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n
CSharpCode - (49:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (49:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n

View File

@ -3,11 +3,11 @@ Source Location: (25:0,25 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1012:25,25 [11] )
|ParentValue|
Source Location: (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (49:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1622:47,12 [50] )
Generated Location: (1617:47,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -44,7 +44,7 @@ __o = typeof(MyComponent);
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default

View File

@ -25,5 +25,5 @@ Document -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue)
HtmlContent - (40:0,40 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (40:0,40 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n
CSharpCode - (49:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (49:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n

View File

@ -3,11 +3,11 @@ Source Location: (25:0,25 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (941:25,25 [11] )
|ParentValue|
Source Location: (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (49:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1590:46,12 [50] )
Generated Location: (1585:46,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -45,7 +45,7 @@ __o = typeof(MyComponent);
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public string ParentValue { get; set; } = "42";
#line default

View File

@ -25,5 +25,5 @@ Document -
IntermediateToken - - CSharp - __value => ParentValue = __value
HtmlContent - (40:0,40 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (40:0,40 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (54:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (54:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "42";\n
CSharpCode - (49:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (49:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "42";\n

View File

@ -3,11 +3,11 @@ Source Location: (25:0,25 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1012:25,25 [11] )
|ParentValue|
Source Location: (54:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (49:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "42";
|
Generated Location: (1622:47,12 [55] )
Generated Location: (1617:47,7 [55] )
|
public string ParentValue { get; set; } = "42";
|

View File

@ -34,7 +34,7 @@ namespace Test
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
#line default

View File

@ -30,5 +30,5 @@ Document -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => CurrentDate = __value, CurrentDate, "MM/dd")
HtmlContent - (77:0,77 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (77:0,77 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (91:1,12 [77] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (91:1,12 [77] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n
CSharpCode - (86:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (86:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n

View File

@ -3,11 +3,11 @@ Source Location: (41:0,41 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (957:25,41 [11] )
|CurrentDate|
Source Location: (91:1,12 [77] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (86:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|
Generated Location: (1325:36,12 [77] )
Generated Location: (1320:36,7 [77] )
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|

View File

@ -34,7 +34,7 @@ namespace Test
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default

View File

@ -28,5 +28,5 @@ Document -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue)
HtmlContent - (56:0,56 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (56:0,56 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (70:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (70:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n
CSharpCode - (65:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (65:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n

View File

@ -3,11 +3,11 @@ Source Location: (41:0,41 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (957:25,41 [11] )
|ParentValue|
Source Location: (70:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (65:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1307:36,12 [50] )
Generated Location: (1302:36,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -34,7 +34,7 @@ namespace Test
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public string ParentValue { get; set; } = "hi";
#line default

View File

@ -25,5 +25,5 @@ Document -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue)
HtmlContent - (33:0,33 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (33:0,33 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (47:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (47:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n
CSharpCode - (42:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (42:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n

View File

@ -3,11 +3,11 @@ Source Location: (18:0,18 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (934:25,18 [11] )
|ParentValue|
Source Location: (47:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (42:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "hi";
|
Generated Location: (1284:36,12 [55] )
Generated Location: (1279:36,7 [55] )
|
public string ParentValue { get; set; } = "hi";
|

View File

@ -34,7 +34,7 @@ namespace Test
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public string ParentValue { get; set; } = "hi";
#line default

View File

@ -25,5 +25,5 @@ Document -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue)
HtmlContent - (32:0,32 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (32:0,32 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (46:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (46:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n
CSharpCode - (41:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (41:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n

View File

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

View File

@ -34,7 +34,7 @@ namespace Test
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public string ParentValue { get; set; } = "hi";
#line default

View File

@ -25,5 +25,5 @@ Document -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue)
HtmlContent - (27:0,27 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (27:0,27 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (41:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (41:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n
CSharpCode - (36:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (36:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n

View File

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

View File

@ -34,7 +34,7 @@ namespace Test
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public bool Enabled { get; set; }
#line default

View File

@ -28,5 +28,5 @@ Document -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => Enabled = __value, Enabled)
HtmlContent - (41:0,41 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (41:0,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (55:1,12 [41] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (55:1,12 [41] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public bool Enabled { get; set; }\n
CSharpCode - (50:1,7 [41] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (50:1,7 [41] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public bool Enabled { get; set; }\n

View File

@ -3,11 +3,11 @@ Source Location: (30:0,30 [7] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (946:25,30 [7] )
|Enabled|
Source Location: (55:1,12 [41] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (50:1,7 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|
public bool Enabled { get; set; }
|
Generated Location: (1284:36,12 [41] )
Generated Location: (1279:36,7 [41] )
|
public bool Enabled { get; set; }
|

View File

@ -42,7 +42,7 @@ namespace Test
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
public string Format { get; set; } = "MM/dd/yyyy";

View File

@ -30,5 +30,5 @@ Document -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => CurrentDate = __value, CurrentDate, Format)
HtmlContent - (63:0,63 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (63:0,63 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (77:1,12 [135] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (77:1,12 [135] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n\n public string Format { get; set; } = "MM/dd/yyyy";\n
CSharpCode - (72:1,7 [135] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (72:1,7 [135] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n\n public string Format { get; set; } = "MM/dd/yyyy";\n

View File

@ -8,13 +8,13 @@ Source Location: (54:0,54 [6] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1145:33,54 [6] )
|Format|
Source Location: (77:1,12 [135] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (72:1,7 [135] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
public string Format { get; set; } = "MM/dd/yyyy";
|
Generated Location: (1498:44,12 [135] )
Generated Location: (1493:44,7 [135] )
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);

View File

@ -34,7 +34,7 @@ namespace Test
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
#line default

View File

@ -30,5 +30,5 @@ Document -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => CurrentDate = __value, CurrentDate, "MM/dd/yyyy")
HtmlContent - (66:0,66 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (66:0,66 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (80:1,12 [77] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (80:1,12 [77] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n
CSharpCode - (75:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (75:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n

View File

@ -3,11 +3,11 @@ Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (942:25,26 [11] )
|CurrentDate|
Source Location: (80:1,12 [77] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (75:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|
Generated Location: (1320:36,12 [77] )
Generated Location: (1315:36,7 [77] )
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|

View File

@ -34,7 +34,7 @@ namespace Test
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default

View File

@ -28,5 +28,5 @@ Document -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue)
HtmlContent - (41:0,41 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (41:0,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (55:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (55:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n
CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n

View File

@ -3,11 +3,11 @@ Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (942:25,26 [11] )
|ParentValue|
Source Location: (55:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1292:36,12 [50] )
Generated Location: (1287:36,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -34,7 +34,7 @@ namespace Test
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default

View File

@ -25,5 +25,5 @@ Document -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue)
HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (43:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (43:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n
CSharpCode - (38:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (38:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n

View File

@ -3,11 +3,11 @@ Source Location: (14:0,14 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (930:25,14 [11] )
|ParentValue|
Source Location: (43:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (38:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1280:36,12 [50] )
Generated Location: (1275:36,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

View File

@ -54,7 +54,7 @@ __o = typeof(MyComponent<>);
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
string Value;
#line default

View File

@ -27,5 +27,5 @@ Document -
IntermediateToken - - CSharp - __value => Value = __value
HtmlContent - (43:0,43 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (43:0,43 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (57:1,12 [21] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (57:1,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string Value;\n
CSharpCode - (52:1,7 [21] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (52:1,7 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string Value;\n

View File

@ -8,11 +8,11 @@ Source Location: (36:0,36 [5] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1207:34,36 [5] )
|Value|
Source Location: (57:1,12 [21] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (52:1,7 [21] x:\dir\subdir\Test\TestComponent.cshtml)
|
string Value;
|
Generated Location: (1801:56,12 [21] )
Generated Location: (1796:56,7 [21] )
|
string Value;
|

View File

@ -53,7 +53,7 @@ __o = typeof(MyComponent<>);
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
string Value;
#line default

View File

@ -27,5 +27,5 @@ Document -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => Value = __value, Value)
HtmlContent - (43:0,43 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (43:0,43 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (57:1,12 [21] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (57:1,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string Value;\n
CSharpCode - (52:1,7 [21] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (52:1,7 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string Value;\n

View File

@ -8,11 +8,11 @@ Source Location: (36:0,36 [5] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1142:34,36 [5] )
|Value|
Source Location: (57:1,12 [21] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (52:1,7 [21] x:\dir\subdir\Test\TestComponent.cshtml)
|
string Value;
|
Generated Location: (1775:55,12 [21] )
Generated Location: (1770:55,7 [21] )
|
string Value;
|

View File

@ -48,7 +48,7 @@ __o = typeof(MyComponent<>);
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
string Value;
#line default

View File

@ -28,8 +28,8 @@ Document -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => Value = __value, Value)
HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (56:1,12 [21] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (56:1,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string Value;\n
CSharpCode - (51:1,7 [21] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (51:1,7 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string Value;\n
NamespaceDeclaration - - __Blazor.Test.TestComponent
ClassDeclaration - - internal static - TypeInference - -
ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0

View File

@ -8,11 +8,11 @@ Source Location: (23:0,23 [5] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1193:33,23 [5] )
|Value|
Source Location: (56:1,12 [21] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (51:1,7 [21] x:\dir\subdir\Test\TestComponent.cshtml)
|
string Value;
|
Generated Location: (1661:50,12 [21] )
Generated Location: (1656:50,7 [21] )
|
string Value;
|

View File

@ -41,7 +41,7 @@ __o = typeof(MyComponent<>);
#pragma warning restore 1998
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
string Value;
#line default

View File

@ -25,8 +25,8 @@ Document -
IntermediateToken - - CSharp - __value => Value = __value
HtmlContent - (30:0,30 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (30:0,30 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (44:1,12 [21] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (44:1,12 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string Value;\n
CSharpCode - (39:1,7 [21] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (39:1,7 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n string Value;\n
NamespaceDeclaration - - __Blazor.Test.TestComponent
ClassDeclaration - - internal static - TypeInference - -
ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0

View File

@ -3,11 +3,11 @@ Source Location: (23:0,23 [5] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1012:25,23 [5] )
|Value|
Source Location: (44:1,12 [21] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (39:1,7 [21] x:\dir\subdir\Test\TestComponent.cshtml)
|
string Value;
|
Generated Location: (1413:43,12 [21] )
Generated Location: (1408:43,7 [21] )
|
string Value;
|

View File

@ -38,7 +38,7 @@ using Microsoft.AspNetCore.Components.RenderTree;
#pragma warning restore 1998
#nullable restore
#line 5 "x:\dir\subdir\Test\TestComponent.cshtml"
void RenderChildComponent(RenderTreeBuilder builder)
{

View File

@ -21,8 +21,8 @@ Document -
IntermediateToken - (56:2,2 [32] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - RenderChildComponent(builder);
HtmlContent - (91:3,0 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (91:3,0 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (105:4,12 [75] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (105:4,12 [75] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void RenderChildComponent(RenderTreeBuilder builder)\n {\n
Component - (180:7,8 [15] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent
CSharpCode - (195:7,23 [9] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (195:7,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n }\n
CSharpCode - (100:4,7 [75] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (100:4,7 [75] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void RenderChildComponent(RenderTreeBuilder builder)\n {\n
Component - (175:7,8 [15] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent
CSharpCode - (190:7,23 [9] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (190:7,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n }\n

View File

@ -8,22 +8,22 @@ Source Location: (56:2,2 [32] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1016:31,2 [32] )
| RenderChildComponent(builder); |
Source Location: (105:4,12 [75] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (100:4,7 [75] x:\dir\subdir\Test\TestComponent.cshtml)
|
void RenderChildComponent(RenderTreeBuilder builder)
{
|
Generated Location: (1231:40,12 [75] )
Generated Location: (1226:40,7 [75] )
|
void RenderChildComponent(RenderTreeBuilder builder)
{
|
Source Location: (195:7,23 [9] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (190:7,23 [9] x:\dir\subdir\Test\TestComponent.cshtml)
|
}
|
Generated Location: (1738:60,23 [9] )
Generated Location: (1733:60,23 [9] )
|
}
|

View File

@ -43,7 +43,7 @@ __o = typeof(MyComponent);
#pragma warning restore 1998
#nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
private int counter;
private void Increment(UIEventArgs e) {
counter++;

View File

@ -20,5 +20,5 @@ Document -
IntermediateToken - (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Increment
HtmlContent - (35:0,35 [4] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (35:0,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
CSharpCode - (51:2,12 [100] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (51:2,12 [100] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private int counter;\n private void Increment(UIEventArgs e) {\n counter++;\n }\n
CSharpCode - (46:2,7 [100] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (46:2,7 [100] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private int counter;\n private void Increment(UIEventArgs e) {\n counter++;\n }\n

View File

@ -3,14 +3,14 @@ Source Location: (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (949:25,23 [9] )
|Increment|
Source Location: (51:2,12 [100] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (46:2,7 [100] x:\dir\subdir\Test\TestComponent.cshtml)
|
private int counter;
private void Increment(UIEventArgs e) {
counter++;
}
|
Generated Location: (1456:45,12 [100] )
Generated Location: (1451:45,7 [100] )
|
private int counter;
private void Increment(UIEventArgs e) {

View File

@ -43,7 +43,7 @@ __o = typeof(MyComponent);
#pragma warning restore 1998
#nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
private int counter;
private void Increment() {
counter++;

View File

@ -20,5 +20,5 @@ Document -
IntermediateToken - (24:0,24 [21] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - e => { Increment(); }
HtmlContent - (49:0,49 [4] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (49:0,49 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
CSharpCode - (65:2,12 [87] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (65:2,12 [87] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private int counter;\n private void Increment() {\n counter++;\n }\n
CSharpCode - (60:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (60:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private int counter;\n private void Increment() {\n counter++;\n }\n

View File

@ -3,14 +3,14 @@ Source Location: (24:0,24 [21] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (950:25,24 [21] )
|e => { Increment(); }|
Source Location: (65:2,12 [87] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (60:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml)
|
private int counter;
private void Increment() {
counter++;
}
|
Generated Location: (1469:45,12 [87] )
Generated Location: (1464:45,7 [87] )
|
private int counter;
private void Increment() {

View File

@ -43,7 +43,7 @@ __o = typeof(DynamicElement);
#pragma warning restore 1998
#nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
private Action<UIMouseEventArgs> OnClick { get; set; }
#line default

View File

@ -22,5 +22,5 @@ Document -
IntermediateToken - - CSharp - )
HtmlContent - (37:0,37 [4] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (37:0,37 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
CSharpCode - (53:2,12 [62] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (53:2,12 [62] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private Action<UIMouseEventArgs> OnClick { get; set; }\n
CSharpCode - (48:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (48:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private Action<UIMouseEventArgs> OnClick { get; set; }\n

View File

@ -3,11 +3,11 @@ Source Location: (26:0,26 [7] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1006:25,26 [7] )
|OnClick|
Source Location: (53:2,12 [62] x:\dir\subdir\Test\TestComponent.cshtml)
Source Location: (48:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml)
|
private Action<UIMouseEventArgs> OnClick { get; set; }
|
Generated Location: (1514:45,12 [62] )
Generated Location: (1509:45,7 [62] )
|
private Action<UIMouseEventArgs> OnClick { get; set; }
|

View File

@ -74,7 +74,7 @@ __o = ChildContent(item2);
#pragma warning restore 1998
#nullable restore
#line 12 "x:\dir\subdir\Test\TestComponent.cshtml"
[Parameter] TItem1 Item1 { get; set; }
[Parameter] List<TItem2> Items2 { get; set; }
[Parameter] RenderFragment<TItem2> ChildContent { get; set; }

View File

@ -38,5 +38,5 @@ Document -
IntermediateToken - (176:9,8 [3] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n}
HtmlContent - (179:10,1 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (179:10,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (193:11,12 [164] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (193:11,12 [164] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n [Parameter] TItem1 Item1 { get; set; }\n [Parameter] List<TItem2> Items2 { get; set; }\n [Parameter] RenderFragment<TItem2> ChildContent { get; set; }\n
CSharpCode - (188:11,7 [164] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (188:11,7 [164] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n [Parameter] TItem1 Item1 { get; set; }\n [Parameter] List<TItem2> Items2 { get; set; }\n [Parameter] RenderFragment<TItem2> ChildContent { get; set; }\n

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