Reaction to API review changes

This change updates the snapshot of components APIs used in compiler
tests and updates the tests to react tot hose changes.
\n\nCommit migrated from c8cc588bca
This commit is contained in:
Ryan Nowak 2019-08-20 08:20:36 -07:00
parent 2873952822
commit cb35a0aa40
220 changed files with 2195 additions and 1554 deletions

View File

@ -83,6 +83,7 @@ namespace Test
// We're looking for VS crash issues. Meaning if the parser returns // We're looking for VS crash issues. Meaning if the parser returns
// diagnostics we don't want to throw. // diagnostics we don't want to throw.
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<input type=""text"" @bind=""@page"" /> <input type=""text"" @bind=""@page"" />
@functions { @functions {
public string page { get; set; } = ""text""; public string page { get; set; } = ""text"";

View File

@ -1181,6 +1181,7 @@ namespace Test
AdditionalSyntaxTrees.Add(Parse(@" AdditionalSyntaxTrees.Add(Parse(@"
using System; using System;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
namespace Test namespace Test
{ {
@ -1210,6 +1211,7 @@ namespace Test
AdditionalSyntaxTrees.Add(Parse(@" AdditionalSyntaxTrees.Add(Parse(@"
using System; using System;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
namespace Test namespace Test
{ {
@ -1240,6 +1242,7 @@ namespace Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<input @bind=""@CurrentDate"" @bind:event=""oninput"" @bind:format=""MM/dd"" /> <input @bind=""@CurrentDate"" @bind:event=""oninput"" @bind:format=""MM/dd"" />
@code { @code {
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
@ -1258,6 +1261,7 @@ namespace Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<input @bind-value=""@CurrentDate"" @bind-value:format=""MM/dd"" /> <input @bind-value=""@CurrentDate"" @bind-value:format=""MM/dd"" />
@code { @code {
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
@ -1996,20 +2000,22 @@ namespace Test
AdditionalSyntaxTrees.Add(Parse(@" AdditionalSyntaxTrees.Add(Parse(@"
using System; using System;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
namespace Test namespace Test
{ {
public class MyComponent : ComponentBase public class MyComponent : ComponentBase
{ {
[Parameter] [Parameter]
public EventCallback<UIMouseEventArgs> OnClick { get; set; } public EventCallback<MouseEventArgs> OnClick { get; set; }
} }
} }
")); "));
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
<MyComponent OnClick=""@(EventCallback.Factory.Create<UIMouseEventArgs>(this, Increment))""/> @using Microsoft.AspNetCore.Components.Web
<MyComponent OnClick=""@(EventCallback.Factory.Create<MouseEventArgs>(this, Increment))""/>
@code { @code {
private int counter; private int counter;
@ -2173,13 +2179,14 @@ namespace Test
AdditionalSyntaxTrees.Add(Parse(@" AdditionalSyntaxTrees.Add(Parse(@"
using System; using System;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
namespace Test namespace Test
{ {
public class MyComponent : ComponentBase public class MyComponent : ComponentBase
{ {
[Parameter] [Parameter]
public EventCallback<UIMouseEventArgs> OnClick { get; set; } public EventCallback<MouseEventArgs> OnClick { get; set; }
} }
} }
")); "));
@ -2208,24 +2215,26 @@ namespace Test
AdditionalSyntaxTrees.Add(Parse(@" AdditionalSyntaxTrees.Add(Parse(@"
using System; using System;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
namespace Test namespace Test
{ {
public class MyComponent : ComponentBase public class MyComponent : ComponentBase
{ {
[Parameter] [Parameter]
public EventCallback<UIMouseEventArgs> OnClick { get; set; } public EventCallback<MouseEventArgs> OnClick { get; set; }
} }
} }
")); "));
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<MyComponent OnClick=""@Increment""/> <MyComponent OnClick=""@Increment""/>
@code { @code {
private int counter; private int counter;
private void Increment(UIMouseEventArgs e) { private void Increment(MouseEventArgs e) {
counter++; counter++;
} }
}"); }");
@ -2243,13 +2252,14 @@ namespace Test
AdditionalSyntaxTrees.Add(Parse(@" AdditionalSyntaxTrees.Add(Parse(@"
using System; using System;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
namespace Test namespace Test
{ {
public class MyComponent : ComponentBase public class MyComponent : ComponentBase
{ {
[Parameter] [Parameter]
public EventCallback<UIMouseEventArgs> OnClick { get; set; } public EventCallback<MouseEventArgs> OnClick { get; set; }
} }
} }
")); "));
@ -2279,24 +2289,26 @@ namespace Test
AdditionalSyntaxTrees.Add(Parse(@" AdditionalSyntaxTrees.Add(Parse(@"
using System; using System;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
namespace Test namespace Test
{ {
public class MyComponent : ComponentBase public class MyComponent : ComponentBase
{ {
[Parameter] [Parameter]
public EventCallback<UIMouseEventArgs> OnClick { get; set; } public EventCallback<MouseEventArgs> OnClick { get; set; }
} }
} }
")); "));
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<MyComponent OnClick=""@Increment""/> <MyComponent OnClick=""@Increment""/>
@code { @code {
private int counter; private int counter;
private Task Increment(UIMouseEventArgs e) { private Task Increment(MouseEventArgs e) {
counter++; counter++;
return Task.CompletedTask; return Task.CompletedTask;
} }
@ -2315,24 +2327,26 @@ namespace Test
AdditionalSyntaxTrees.Add(Parse(@" AdditionalSyntaxTrees.Add(Parse(@"
using System; using System;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
namespace Test namespace Test
{ {
public class MyComponent : ComponentBase public class MyComponent : ComponentBase
{ {
[Parameter] [Parameter]
public EventCallback<UIMouseEventArgs> OnClick { get; set; } public EventCallback<MouseEventArgs> OnClick { get; set; }
} }
} }
")); "));
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<MyComponent OnClick=""@Increment""/> <MyComponent OnClick=""@Increment""/>
@code { @code {
private int counter; private int counter;
private void Increment(UIChangeEventArgs e) { private void Increment(ChangeEventArgs e) {
counter++; counter++;
} }
}"); }");
@ -2398,7 +2412,7 @@ namespace Test
public class MyComponent : ComponentBase public class MyComponent : ComponentBase
{ {
[Parameter] [Parameter]
public Action<UIEventArgs> OnClick { get; set; } public Action<EventArgs> OnClick { get; set; }
} }
} }
")); "));
@ -2440,10 +2454,11 @@ namespace Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<DynamicElement @onclick=""OnClick"" /> <DynamicElement @onclick=""OnClick"" />
@code { @code {
private Action<UIMouseEventArgs> OnClick { get; set; } private Action<MouseEventArgs> OnClick { get; set; }
}"); }");
// Assert // Assert
@ -2465,7 +2480,7 @@ namespace Test
public class MyComponent : ComponentBase public class MyComponent : ComponentBase
{ {
[Parameter] [Parameter]
public Action<UIEventArgs> OnClick { get; set; } public Action<EventArgs> OnClick { get; set; }
} }
} }
")); "));
@ -2476,7 +2491,7 @@ namespace Test
@code { @code {
private int counter; private int counter;
private void Increment(UIEventArgs e) { private void Increment(EventArgs e) {
counter++; counter++;
} }
}"); }");
@ -2494,6 +2509,7 @@ namespace Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<input onclick=""foo"" />"); <input onclick=""foo"" />");
// Assert // Assert
@ -2509,6 +2525,7 @@ namespace Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<input @onclick=""() => { }"" />"); <input @onclick=""() => { }"" />");
// Assert // Assert
@ -2524,6 +2541,7 @@ namespace Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<input @onclick=""x => { }"" />"); <input @onclick=""x => { }"" />");
// Assert // Assert
@ -2539,6 +2557,7 @@ namespace Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<input @onclick=""OnClick"" /> <input @onclick=""OnClick"" />
@code { @code {
void OnClick() { void OnClick() {
@ -2558,9 +2577,10 @@ namespace Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<input @onclick=""OnClick"" /> <input @onclick=""OnClick"" />
@code { @code {
void OnClick(UIMouseEventArgs e) { void OnClick(MouseEventArgs e) {
} }
}"); }");
@ -2577,9 +2597,10 @@ namespace Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<input @onclick=""OnClick"" /> <input @onclick=""OnClick"" />
@code { @code {
void OnClick(UIEventArgs e) { void OnClick(EventArgs e) {
} }
}"); }");
@ -2597,6 +2618,7 @@ namespace Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using System.Threading.Tasks @using System.Threading.Tasks
@using Microsoft.AspNetCore.Components.Web
<input @onclick=""OnClick"" /> <input @onclick=""OnClick"" />
@code { @code {
Task OnClick() Task OnClick()
@ -2619,9 +2641,10 @@ namespace Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using System.Threading.Tasks @using System.Threading.Tasks
@using Microsoft.AspNetCore.Components.Web
<input @onclick=""OnClick"" /> <input @onclick=""OnClick"" />
@code { @code {
Task OnClick(UIMouseEventArgs e) Task OnClick(MouseEventArgs e)
{ {
return Task.CompletedTask; return Task.CompletedTask;
} }
@ -2641,6 +2664,7 @@ namespace Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using System.Threading.Tasks @using System.Threading.Tasks
@using Microsoft.AspNetCore.Components.Web
<input @onclick=""@(async () => await Task.Delay(10))"" /> <input @onclick=""@(async () => await Task.Delay(10))"" />
"); ");
@ -2658,6 +2682,7 @@ namespace Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using System.Threading.Tasks @using System.Threading.Tasks
@using Microsoft.AspNetCore.Components.Web
<input @onclick=""@(async (e) => await Task.Delay(10))"" /> <input @onclick=""@(async (e) => await Task.Delay(10))"" />
"); ");
@ -2689,9 +2714,10 @@ namespace Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<input @onclick=""OnClick"" /> <input @onclick=""OnClick"" />
@code { @code {
void OnClick(UIMouseEventArgs e) { void OnClick(MouseEventArgs e) {
} }
}"); }");
@ -2708,9 +2734,10 @@ namespace Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<input @onCLICK=""OnClick"" /> <input @onCLICK=""OnClick"" />
@code { @code {
void OnClick(UIMouseEventArgs e) { void OnClick(MouseEventArgs e) {
} }
}"); }");
@ -4551,6 +4578,7 @@ namespace New.Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<div> <div>
<a onclick=""test()"" @onclick=""() => {}"">Learn the ten cool tricks your compiler author will hate!</a> <a onclick=""test()"" @onclick=""() => {}"">Learn the ten cool tricks your compiler author will hate!</a>
</div>"); </div>");
@ -4591,6 +4619,7 @@ namespace New.Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<div> <div>
<input type=""text"" value=""17"" @bind=""@text""></input> <input type=""text"" value=""17"" @bind=""@text""></input>
</div> </div>
@ -4615,6 +4644,7 @@ namespace New.Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<div> <div>
<input type=""text"" Value=""17"" @bind=""@text""></input> <input type=""text"" Value=""17"" @bind=""@text""></input>
</div> </div>
@ -4638,6 +4668,7 @@ namespace New.Test
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<div> <div>
<input type=""text"" @bind-value=""@text"" @bind-value:event=""oninput"" @oninput=""() => {}""></input> <input type=""text"" @bind-value=""@text"" @bind-value:event=""oninput"" @oninput=""() => {}""></input>
</div> </div>
@ -5011,11 +5042,12 @@ Welcome to your new app.
// Act // Act
var generated = CompileToCSharp(@" var generated = CompileToCSharp(@"
@using Microsoft.AspNetCore.Components.Web
<p @onmouseover=""OnComponentHover"" style=""background: @ParentBgColor;"" /> <p @onmouseover=""OnComponentHover"" style=""background: @ParentBgColor;"" />
@code { @code {
public string ParentBgColor { get; set; } = ""#FFFFFF""; public string ParentBgColor { get; set; } = ""#FFFFFF"";
public void OnComponentHover(UIMouseEventArgs e) public void OnComponentHover(MouseEventArgs e)
{ {
} }
} }

View File

@ -156,7 +156,7 @@ namespace Test
public class BaseClass : IComponent public class BaseClass : IComponent
{ {
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
} }
@ -164,7 +164,7 @@ namespace Test
{ {
} }
public Task SetParametersAsync(ParameterCollection parameters) public Task SetParametersAsync(ParameterView parameters)
{ {
throw new System.NotImplementedException(); throw new System.NotImplementedException();
} }

View File

@ -126,12 +126,12 @@ namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests
[Parameter] [Parameter]
public RenderFragment Body { get; set; } public RenderFragment Body { get; set; }
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task SetParametersAsync(ParameterCollection parameters) public Task SetParametersAsync(ParameterView parameters)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }

View File

@ -11,6 +11,13 @@ namespace Test
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using System.Threading.Tasks; using System.Threading.Tasks;
#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
@ -26,9 +33,9 @@ using System.Threading.Tasks;
#pragma warning disable 1998 #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, __o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
async (e) => await Task.Delay(10) async (e) => await Task.Delay(10)
#line default #line default

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks UsingDirective - (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks
UsingDirective - (32:1,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -16,11 +17,13 @@ Document -
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (31:1,0 [57] x:\dir\subdir\Test\TestComponent.cshtml) - input HtmlContent - (73:1,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlAttribute - (48:1,17 [36] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " IntermediateToken - (73:1,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (75:2,0 [57] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - (92:2,17 [36] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
IntermediateToken - (50:1,19 [33] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - async (e) => await Task.Delay(10) IntermediateToken - (94:2,19 [33] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - async (e) => await Task.Delay(10)
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlContent - (88:1,57 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (132:2,57 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (88:1,57 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (132:2,57 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n

View File

@ -3,8 +3,13 @@ Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (285:11,0 [28] ) Generated Location: (285:11,0 [28] )
|using System.Threading.Tasks| |using System.Threading.Tasks|
Source Location: (50:1,19 [33] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (32:1,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (436:18,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (94:2,19 [33] x:\dir\subdir\Test\TestComponent.cshtml)
|async (e) => await Task.Delay(10)| |async (e) => await Task.Delay(10)|
Generated Location: (1116:31,19 [33] ) Generated Location: (1282:38,19 [33] )
|async (e) => await Task.Delay(10)| |async (e) => await Task.Delay(10)|

View File

@ -11,6 +11,13 @@ namespace Test
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using System.Threading.Tasks; using System.Threading.Tasks;
#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
@ -26,9 +33,9 @@ using System.Threading.Tasks;
#pragma warning disable 1998 #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, __o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
OnClick OnClick
#line default #line default
@ -38,9 +45,9 @@ using System.Threading.Tasks;
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" #line 4 "x:\dir\subdir\Test\TestComponent.cshtml"
Task OnClick(UIMouseEventArgs e) Task OnClick(MouseEventArgs e)
{ {
return Task.CompletedTask; return Task.CompletedTask;
} }

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks UsingDirective - (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks
UsingDirective - (32:1,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -16,13 +17,15 @@ Document -
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (31:1,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input HtmlContent - (73:1,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlAttribute - (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " IntermediateToken - (73:1,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (75:2,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - (92:2,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
IntermediateToken - (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick IntermediateToken - (92:2,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlContent - (59:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (103:2,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (59:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (103:2,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (68:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (112:3,7 [89] 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 IntermediateToken - (112:3,7 [89] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick(MouseEventArgs e) \n {\n return Task.CompletedTask;\n }\n

View File

@ -3,21 +3,26 @@ Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (285:11,0 [28] ) Generated Location: (285:11,0 [28] )
|using System.Threading.Tasks| |using System.Threading.Tasks|
Source Location: (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (32:1,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (436:18,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (92:2,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|OnClick| |OnClick|
Generated Location: (1114:31,17 [7] ) Generated Location: (1280:38,17 [7] )
|OnClick| |OnClick|
Source Location: (68:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (112:3,7 [89] x:\dir\subdir\Test\TestComponent.cshtml)
| |
Task OnClick(UIMouseEventArgs e) Task OnClick(MouseEventArgs e)
{ {
return Task.CompletedTask; return Task.CompletedTask;
} }
| |
Generated Location: (1315:41,7 [91] ) Generated Location: (1481:48,7 [89] )
| |
Task OnClick(UIMouseEventArgs e) Task OnClick(MouseEventArgs e)
{ {
return Task.CompletedTask; return Task.CompletedTask;
} }

View File

@ -11,6 +11,13 @@ namespace Test
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using System.Threading.Tasks; using System.Threading.Tasks;
#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
@ -26,9 +33,9 @@ using System.Threading.Tasks;
#pragma warning disable 1998 #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, __o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
async () => await Task.Delay(10) async () => await Task.Delay(10)
#line default #line default

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks UsingDirective - (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks
UsingDirective - (32:1,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -16,11 +17,13 @@ Document -
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (31:1,0 [56] x:\dir\subdir\Test\TestComponent.cshtml) - input HtmlContent - (73:1,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlAttribute - (48:1,17 [35] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " IntermediateToken - (73:1,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (75:2,0 [56] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - (92:2,17 [35] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
IntermediateToken - (50:1,19 [32] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - async () => await Task.Delay(10) IntermediateToken - (94:2,19 [32] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - async () => await Task.Delay(10)
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlContent - (87:1,56 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (131:2,56 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (87:1,56 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (131:2,56 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n

View File

@ -3,8 +3,13 @@ Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (285:11,0 [28] ) Generated Location: (285:11,0 [28] )
|using System.Threading.Tasks| |using System.Threading.Tasks|
Source Location: (50:1,19 [32] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (32:1,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (436:18,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (94:2,19 [32] x:\dir\subdir\Test\TestComponent.cshtml)
|async () => await Task.Delay(10)| |async () => await Task.Delay(10)|
Generated Location: (1116:31,19 [32] ) Generated Location: (1282:38,19 [32] )
|async () => await Task.Delay(10)| |async () => await Task.Delay(10)|

View File

@ -11,6 +11,13 @@ namespace Test
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using System.Threading.Tasks; using System.Threading.Tasks;
#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
@ -26,9 +33,9 @@ using System.Threading.Tasks;
#pragma warning disable 1998 #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, __o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
OnClick OnClick
#line default #line default
@ -38,7 +45,7 @@ using System.Threading.Tasks;
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" #line 4 "x:\dir\subdir\Test\TestComponent.cshtml"
Task OnClick() Task OnClick()
{ {

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks UsingDirective - (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks
UsingDirective - (32:1,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -16,13 +17,15 @@ Document -
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (31:1,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input HtmlContent - (73:1,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlAttribute - (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " IntermediateToken - (73:1,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (75:2,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - (92:2,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
IntermediateToken - (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick IntermediateToken - (92:2,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlContent - (59:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (103:2,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (59:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (103:2,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (68:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (112:3,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 IntermediateToken - (112:3,7 [73] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick() \n {\n return Task.CompletedTask;\n }\n

View File

@ -3,19 +3,24 @@ Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (285:11,0 [28] ) Generated Location: (285:11,0 [28] )
|using System.Threading.Tasks| |using System.Threading.Tasks|
Source Location: (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (32:1,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (436:18,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (92:2,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|OnClick| |OnClick|
Generated Location: (1114:31,17 [7] ) Generated Location: (1280:38,17 [7] )
|OnClick| |OnClick|
Source Location: (68:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (112:3,7 [73] x:\dir\subdir\Test\TestComponent.cshtml)
| |
Task OnClick() Task OnClick()
{ {
return Task.CompletedTask; return Task.CompletedTask;
} }
| |
Generated Location: (1315:41,7 [73] ) Generated Location: (1481:48,7 [73] )
| |
Task OnClick() Task OnClick()
{ {

View File

@ -20,7 +20,7 @@ namespace Test
#pragma warning disable 1998 #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( __o =
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
Enabled Enabled
@ -28,8 +28,7 @@ namespace Test
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
); ;
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => Enabled = __value, Enabled);
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore

View File

@ -15,19 +15,12 @@ Document -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [42] x:\dir\subdir\Test\TestComponent.cshtml) - input MarkupElement - (0:0,0 [42] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - - type=" - " HtmlAttribute - (6:0,6 [16] x:\dir\subdir\Test\TestComponent.cshtml) - type=" - "
HtmlAttributeValue - (13:0,13 [8] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlAttributeValue - (13:0,13 [8] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - (13:0,13 [8] x:\dir\subdir\Test\TestComponent.cshtml) - Html - checkbox IntermediateToken - (13:0,13 [8] x:\dir\subdir\Test\TestComponent.cshtml) - Html - checkbox
HtmlAttribute - (30:0,30 [8] x:\dir\subdir\Test\TestComponent.cshtml) - checked=" - " HtmlAttribute - (22:0,22 [17] x:\dir\subdir\Test\TestComponent.cshtml) - @bind=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - (30:0,30 [8] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindConverter.FormatValue(
IntermediateToken - (31:0,31 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Enabled IntermediateToken - (31:0,31 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Enabled
IntermediateToken - - CSharp - )
HtmlAttribute - (30:0,30 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - "
CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => Enabled = __value,
IntermediateToken - - CSharp - Enabled
IntermediateToken - - CSharp - )
HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (51:1,7 [41] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (51:1,7 [41] x:\dir\subdir\Test\TestComponent.cshtml)

View File

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

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -22,7 +29,7 @@ namespace Test
{ {
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue( __o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
CurrentDate CurrentDate
#line default #line default
@ -33,7 +40,7 @@ namespace Test
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,21 +15,23 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [73] x:\dir\subdir\Test\TestComponent.cshtml) - input HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlAttribute - (14:0,14 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (44:1,0 [73] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - (58:1,14 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindConverter.FormatValue( IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindConverter.FormatValue(
IntermediateToken - (15:0,15 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - CurrentDate IntermediateToken - (59:1,15 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - CurrentDate
IntermediateToken - - CSharp - , format: IntermediateToken - - CSharp - , format:
IntermediateToken - - CSharp - "MM/dd" IntermediateToken - - CSharp - "MM/dd"
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlAttribute - (14:0,14 [12] x:\dir\subdir\Test\TestComponent.cshtml) - oninput=" - " HtmlAttribute - (58:1,14 [12] x:\dir\subdir\Test\TestComponent.cshtml) - oninput=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => CurrentDate = __value, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => CurrentDate = __value,
IntermediateToken - - CSharp - CurrentDate IntermediateToken - - CSharp - CurrentDate
IntermediateToken - - CSharp - , format: "MM/dd" IntermediateToken - - CSharp - , format: "MM/dd"
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlContent - (73:0,73 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (117:1,73 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (73:0,73 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (117:1,73 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (82:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (126:2,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (82:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n IntermediateToken - (126:2,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n

View File

@ -1,13 +1,18 @@
Source Location: (15:0,15 [11] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (320:12,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (59:1,15 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|CurrentDate| |CurrentDate|
Generated Location: (937:25,15 [11] ) Generated Location: (1101:32,15 [11] )
|CurrentDate| |CurrentDate|
Source Location: (82:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (126:2,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
| |
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
| |
Generated Location: (1316:36,7 [77] ) Generated Location: (1480:43,7 [77] )
| |
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
| |

View File

@ -20,7 +20,7 @@ namespace Test
#pragma warning disable 1998 #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( __o =
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
CurrentDate CurrentDate
@ -28,7 +28,8 @@ namespace Test
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
, format: ;
__o =
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
Format Format
@ -36,8 +37,7 @@ namespace Test
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
); ;
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => CurrentDate = __value, CurrentDate, format: Format);
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore

View File

@ -15,22 +15,15 @@ Document -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [64] x:\dir\subdir\Test\TestComponent.cshtml) - input MarkupElement - (0:0,0 [64] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - - type=" - " HtmlAttribute - (6:0,6 [12] x:\dir\subdir\Test\TestComponent.cshtml) - type=" - "
HtmlAttributeValue - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlAttributeValue - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text IntermediateToken - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text
HtmlAttribute - (26:0,26 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " HtmlAttribute - (18:0,18 [21] x:\dir\subdir\Test\TestComponent.cshtml) - @bind=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - (26:0,26 [12] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindConverter.FormatValue(
IntermediateToken - (27:0,27 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - CurrentDate IntermediateToken - (27:0,27 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - CurrentDate
IntermediateToken - - CSharp - , format: HtmlAttribute - (39:0,39 [23] x:\dir\subdir\Test\TestComponent.cshtml) - @bind:format=" - "
CSharpExpressionAttributeValue - (54:0,54 [7] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - (55:0,55 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Format IntermediateToken - (55:0,55 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Format
IntermediateToken - - CSharp - )
HtmlAttribute - (26:0,26 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - "
CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => CurrentDate = __value,
IntermediateToken - - CSharp - CurrentDate
IntermediateToken - - CSharp - , format: Format
IntermediateToken - - CSharp - )
HtmlContent - (64:0,64 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (64:0,64 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (64:0,64 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (64:0,64 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (73:1,7 [135] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (73:1,7 [135] x:\dir\subdir\Test\TestComponent.cshtml)

View File

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

View File

@ -20,7 +20,7 @@ namespace Test
#pragma warning disable 1998 #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( __o =
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
CurrentDate CurrentDate
@ -28,8 +28,7 @@ namespace Test
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
, format: "MM/dd/yyyy"); ;
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => CurrentDate = __value, CurrentDate, format: "MM/dd/yyyy");
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore

View File

@ -15,22 +15,15 @@ Document -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [67] x:\dir\subdir\Test\TestComponent.cshtml) - input MarkupElement - (0:0,0 [67] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - - type=" - " HtmlAttribute - (6:0,6 [12] x:\dir\subdir\Test\TestComponent.cshtml) - type=" - "
HtmlAttributeValue - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlAttributeValue - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text IntermediateToken - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text
HtmlAttribute - (26:0,26 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " HtmlAttribute - (18:0,18 [21] x:\dir\subdir\Test\TestComponent.cshtml) - @bind=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - (26:0,26 [12] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindConverter.FormatValue(
IntermediateToken - (27:0,27 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - CurrentDate IntermediateToken - (27:0,27 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - CurrentDate
IntermediateToken - - CSharp - , format: HtmlAttribute - (39:0,39 [26] x:\dir\subdir\Test\TestComponent.cshtml) - @bind:format=" - "
IntermediateToken - - CSharp - "MM/dd/yyyy" HtmlAttributeValue - (54:0,54 [10] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - - CSharp - ) IntermediateToken - (54:0,54 [10] x:\dir\subdir\Test\TestComponent.cshtml) - Html - MM/dd/yyyy
HtmlAttribute - (26:0,26 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - "
CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => CurrentDate = __value,
IntermediateToken - - CSharp - CurrentDate
IntermediateToken - - CSharp - , format: "MM/dd/yyyy"
IntermediateToken - - CSharp - )
HtmlContent - (67:0,67 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (67:0,67 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (67:0,67 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (67:0,67 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (76:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (76:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)

View File

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

View File

@ -20,7 +20,7 @@ namespace Test
#pragma warning disable 1998 #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( __o =
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
ParentValue ParentValue
@ -28,8 +28,7 @@ namespace Test
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
); ;
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue);
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore

View File

@ -15,19 +15,12 @@ Document -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [42] x:\dir\subdir\Test\TestComponent.cshtml) - input MarkupElement - (0:0,0 [42] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - - type=" - " HtmlAttribute - (6:0,6 [12] x:\dir\subdir\Test\TestComponent.cshtml) - type=" - "
HtmlAttributeValue - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlAttributeValue - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text IntermediateToken - (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text
HtmlAttribute - (26:0,26 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " HtmlAttribute - (18:0,18 [21] x:\dir\subdir\Test\TestComponent.cshtml) - @bind=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - (26:0,26 [12] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindConverter.FormatValue(
IntermediateToken - (27:0,27 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue IntermediateToken - (27:0,27 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue
IntermediateToken - - CSharp - )
HtmlAttribute - (26:0,26 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - "
CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value,
IntermediateToken - - CSharp - ParentValue
IntermediateToken - - CSharp - )
HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (51:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (51:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)

View File

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

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -22,7 +29,7 @@ namespace Test
{ {
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue( __o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
CurrentDate CurrentDate
#line default #line default
@ -33,7 +40,7 @@ namespace Test
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,21 +15,23 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [63] x:\dir\subdir\Test\TestComponent.cshtml) - input HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlAttribute - (20:0,20 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (44:1,0 [63] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - (64:1,20 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindConverter.FormatValue( IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindConverter.FormatValue(
IntermediateToken - (21:0,21 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - CurrentDate IntermediateToken - (65:1,21 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - CurrentDate
IntermediateToken - - CSharp - , format: IntermediateToken - - CSharp - , format:
IntermediateToken - - CSharp - "MM/dd" IntermediateToken - - CSharp - "MM/dd"
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlAttribute - (20:0,20 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " HtmlAttribute - (64:1,20 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => CurrentDate = __value, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => CurrentDate = __value,
IntermediateToken - - CSharp - CurrentDate IntermediateToken - - CSharp - CurrentDate
IntermediateToken - - CSharp - , format: "MM/dd" IntermediateToken - - CSharp - , format: "MM/dd"
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlContent - (63:0,63 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (107:1,63 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (63:0,63 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (107:1,63 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (72:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (116:2,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (72:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n IntermediateToken - (116:2,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n

View File

@ -1,13 +1,18 @@
Source Location: (21:0,21 [11] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (320:12,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (65:1,21 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|CurrentDate| |CurrentDate|
Generated Location: (943:25,21 [11] ) Generated Location: (1107:32,21 [11] )
|CurrentDate| |CurrentDate|
Source Location: (72:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (116:2,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
| |
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
| |
Generated Location: (1322:36,7 [77] ) Generated Location: (1486:43,7 [77] )
| |
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
| |

View File

@ -20,7 +20,7 @@ namespace Test
#pragma warning disable 1998 #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( __o =
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
ParentValue ParentValue
@ -28,8 +28,7 @@ namespace Test
#line default #line default
#line hidden #line hidden
#nullable disable #nullable disable
); ;
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue);
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore

View File

@ -15,16 +15,9 @@ Document -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [30] x:\dir\subdir\Test\TestComponent.cshtml) - input MarkupElement - (0:0,0 [30] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - (14:0,14 [12] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " HtmlAttribute - (6:0,6 [21] x:\dir\subdir\Test\TestComponent.cshtml) - @bind=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - (14:0,14 [12] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindConverter.FormatValue(
IntermediateToken - (15:0,15 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue IntermediateToken - (15:0,15 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue
IntermediateToken - - CSharp - )
HtmlAttribute - (14:0,14 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - "
CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value,
IntermediateToken - - CSharp - ParentValue
IntermediateToken - - CSharp - )
HtmlContent - (30:0,30 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (30:0,30 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (30:0,30 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (30:0,30 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (39:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (39:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)

View File

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

View File

@ -20,7 +20,7 @@ namespace Test
#pragma warning disable 1998 #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 = new System.Action<Microsoft.AspNetCore.Components.UIEventArgs>( __o = new System.Action<System.EventArgs>(
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
Increment Increment
@ -45,7 +45,7 @@ __o = typeof(MyComponent);
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
private int counter; private int counter;
private void Increment(UIEventArgs e) { private void Increment(EventArgs e) {
counter++; counter++;
} }

View File

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

View File

@ -1,19 +1,19 @@
Source Location: (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml)
|Increment| |Increment|
Generated Location: (950:25,23 [9] ) Generated Location: (923:25,23 [9] )
|Increment| |Increment|
Source Location: (46:2,7 [100] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (46:2,7 [98] x:\dir\subdir\Test\TestComponent.cshtml)
| |
private int counter; private int counter;
private void Increment(UIEventArgs e) { private void Increment(EventArgs e) {
counter++; counter++;
} }
| |
Generated Location: (1456:45,7 [100] ) Generated Location: (1429:45,7 [98] )
| |
private int counter; private int counter;
private void Increment(UIEventArgs e) { private void Increment(EventArgs e) {
counter++; counter++;
} }
| |

View File

@ -20,7 +20,7 @@ namespace Test
#pragma warning disable 1998 #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 = new System.Action<Microsoft.AspNetCore.Components.UIEventArgs>( __o = new System.Action<System.EventArgs>(
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
e => { Increment(); } e => { Increment(); }

View File

@ -1,6 +1,6 @@
Source Location: (24:0,24 [21] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (24:0,24 [21] x:\dir\subdir\Test\TestComponent.cshtml)
|e => { Increment(); }| |e => { Increment(); }|
Generated Location: (951:25,24 [21] ) Generated Location: (924:25,24 [21] )
|e => { Increment(); }| |e => { Increment(); }|
Source Location: (60:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (60:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml)
@ -10,7 +10,7 @@ Source Location: (60:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml)
counter++; counter++;
} }
| |
Generated Location: (1469:45,7 [87] ) Generated Location: (1442:45,7 [87] )
| |
private int counter; private int counter;
private void Increment() { private void Increment() {

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -20,9 +27,9 @@ namespace Test
#pragma warning disable 1998 #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, __o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
OnClick OnClick
#line default #line default
@ -33,7 +40,7 @@ namespace Test
} }
)); ));
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(DynamicElement); __o = typeof(DynamicElement);
#line default #line default
@ -42,9 +49,9 @@ __o = typeof(DynamicElement);
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" #line 4 "x:\dir\subdir\Test\TestComponent.cshtml"
private Action<UIMouseEventArgs> OnClick { get; set; } private Action<MouseEventArgs> OnClick { get; set; }
#line default #line default
#line hidden #line hidden

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,13 +15,15 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
Component - (0:0,0 [37] x:\dir\subdir\Test\TestComponent.cshtml) - DynamicElement HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
ComponentAttribute - (26:0,26 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick - AttributeStructure.DoubleQuotes IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
Component - (44:1,0 [37] x:\dir\subdir\Test\TestComponent.cshtml) - DynamicElement
ComponentAttribute - (70:1,26 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick - AttributeStructure.DoubleQuotes
CSharpExpression - CSharpExpression -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
IntermediateToken - (26:0,26 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick IntermediateToken - (70:1,26 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlContent - (37:0,37 [4] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (81:1,37 [4] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (37:0,37 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n IntermediateToken - (81:1,37 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
CSharpCode - (48:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (92:3,7 [60] 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 IntermediateToken - (92:3,7 [60] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private Action<MouseEventArgs> OnClick { get; set; }\n

View File

@ -1,14 +1,19 @@
Source Location: (26:0,26 [7] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (320:12,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (70:1,26 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|OnClick| |OnClick|
Generated Location: (1007:25,26 [7] ) Generated Location: (1173:32,26 [7] )
|OnClick| |OnClick|
Source Location: (48:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (92:3,7 [60] x:\dir\subdir\Test\TestComponent.cshtml)
| |
private Action<UIMouseEventArgs> OnClick { get; set; } private Action<MouseEventArgs> OnClick { get; set; }
| |
Generated Location: (1514:45,7 [62] ) Generated Location: (1680:52,7 [60] )
| |
private Action<UIMouseEventArgs> OnClick { get; set; } private Action<MouseEventArgs> OnClick { get; set; }
| |

View File

@ -20,15 +20,7 @@ namespace Test
#pragma warning disable 1998 #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, __o = "";
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
() => Increment()
#line default
#line hidden
#nullable disable
);
__builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => { __builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
} }
)); ));

View File

@ -15,11 +15,9 @@ Document -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
Component - (0:0,0 [43] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent Component - (0:0,0 [43] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent
ComponentAttribute - (23:0,23 [17] x:\dir\subdir\Test\TestComponent.cshtml) - onclick - AttributeStructure.DoubleQuotes ComponentAttribute - - @onclick - AttributeStructure.DoubleQuotes
CSharpExpression - HtmlContent - (23:0,23 [17] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, IntermediateToken - (23:0,23 [17] x:\dir\subdir\Test\TestComponent.cshtml) - Html - () => Increment()
IntermediateToken - (23:0,23 [17] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => Increment()
IntermediateToken - - CSharp - )
HtmlContent - (43:0,43 [4] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (43:0,43 [4] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (43:0,43 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n IntermediateToken - (43:0,43 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
CSharpCode - (54:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (54:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml)

View File

@ -1,8 +1,3 @@
Source Location: (23:0,23 [17] x:\dir\subdir\Test\TestComponent.cshtml)
|() => Increment()|
Generated Location: (1004:25,23 [17] )
|() => Increment()|
Source Location: (54:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (54:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml)
| |
private int counter; private int counter;
@ -10,7 +5,7 @@ Source Location: (54:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml)
counter++; counter++;
} }
| |
Generated Location: (1518:45,7 [87] ) Generated Location: (1226:37,7 [87] )
| |
private int counter; private int counter;
private void Increment() { private void Increment() {

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -22,7 +29,7 @@ namespace Test
{ {
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue( __o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore #nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
text text
#line default #line default
@ -33,7 +40,7 @@ namespace Test
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" #line 5 "x:\dir\subdir\Test\TestComponent.cshtml"
private string text = "hi"; private string text = "hi";

View File

@ -1 +1 @@
x:\dir\subdir\Test\TestComponent.cshtml(2,3): Error RZ10008: The attribute 'Value' is used two or more times for this element. Attributes must be unique (case-insensitive). The attribute 'Value' is used by the '@bind' directive attribute. x:\dir\subdir\Test\TestComponent.cshtml(3,3): Error RZ10008: The attribute 'Value' is used two or more times for this element. Attributes must be unique (case-insensitive). The attribute 'Value' is used by the '@bind' directive attribute.

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,31 +15,33 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [69] x:\dir\subdir\Test\TestComponent.cshtml) - div HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlContent - (5:0,5 [4] x:\dir\subdir\Test\TestComponent.cshtml) IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
IntermediateToken - (5:0,5 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n MarkupElement - (44:1,0 [69] x:\dir\subdir\Test\TestComponent.cshtml) - div
MarkupElement - (9:1,2 [52] x:\dir\subdir\Test\TestComponent.cshtml) - input HtmlContent - (49:1,5 [4] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (49:1,5 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (53:2,2 [52] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - - type=" - " HtmlAttribute - - type=" - "
HtmlAttributeValue - (22:1,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlAttributeValue - (66:2,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - (22:1,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text IntermediateToken - (66:2,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text
HtmlAttribute - - Value=" - " HtmlAttribute - - Value=" - "
HtmlAttributeValue - (35:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlAttributeValue - (79:2,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - (35:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - 17 IntermediateToken - (79:2,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - 17
HtmlAttribute - (46:1,39 [5] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " HtmlAttribute - (90:2,39 [5] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindConverter.FormatValue( IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindConverter.FormatValue(
IntermediateToken - (47:1,40 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - text IntermediateToken - (91:2,40 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - text
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlAttribute - (46:1,39 [5] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " HtmlAttribute - (90:2,39 [5] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => text = __value, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => text = __value,
IntermediateToken - - CSharp - text IntermediateToken - - CSharp - text
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlContent - (61:1,54 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (105:2,54 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (61:1,54 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (105:2,54 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
HtmlContent - (69:2,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (113:3,6 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (69:2,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (113:3,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
HtmlContent - (119:5,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (163:6,1 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (119:5,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (163:6,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (83:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (127:4,12 [35] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (83:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private string text = "hi";\n IntermediateToken - (127:4,12 [35] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private string text = "hi";\n

View File

@ -1,13 +1,18 @@
Source Location: (47:1,40 [4] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (320:12,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (91:2,40 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|text| |text|
Generated Location: (962:25,40 [4] ) Generated Location: (1126:32,40 [4] )
|text| |text|
Source Location: (83:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (127:4,12 [35] x:\dir\subdir\Test\TestComponent.cshtml)
| |
private string text = "hi"; private string text = "hi";
| |
Generated Location: (1291:36,12 [35] ) Generated Location: (1455:43,12 [35] )
| |
private string text = "hi"; private string text = "hi";
| |

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -20,9 +27,9 @@ namespace Test
#pragma warning disable 1998 #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.UIChangeEventArgs>(this, __o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.ChangeEventArgs>(this,
#nullable restore #nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
() => {} () => {}
#line default #line default
@ -31,7 +38,7 @@ namespace Test
); );
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue( __o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore #nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
text text
#line default #line default
@ -42,7 +49,7 @@ namespace Test
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" #line 5 "x:\dir\subdir\Test\TestComponent.cshtml"
private string text = "hi"; private string text = "hi";

View File

@ -1 +1 @@
x:\dir\subdir\Test\TestComponent.cshtml(2,80): Error RZ10008: The attribute 'oninput' is used two or more times for this element. Attributes must be unique (case-insensitive). The attribute 'oninput' is used by the '@bind-value' directive attribute. x:\dir\subdir\Test\TestComponent.cshtml(3,80): Error RZ10008: The attribute 'oninput' is used two or more times for this element. Attributes must be unique (case-insensitive). The attribute 'oninput' is used by the '@bind-value' directive attribute.

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,33 +15,35 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [112] x:\dir\subdir\Test\TestComponent.cshtml) - div HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlContent - (5:0,5 [4] x:\dir\subdir\Test\TestComponent.cshtml) IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
IntermediateToken - (5:0,5 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n MarkupElement - (44:1,0 [112] x:\dir\subdir\Test\TestComponent.cshtml) - div
MarkupElement - (9:1,2 [95] x:\dir\subdir\Test\TestComponent.cshtml) - input HtmlContent - (49:1,5 [4] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (49:1,5 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (53:2,2 [95] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - - type=" - " HtmlAttribute - - type=" - "
HtmlAttributeValue - (22:1,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlAttributeValue - (66:2,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - (22:1,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text IntermediateToken - (66:2,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text
HtmlAttribute - (86:1,79 [8] x:\dir\subdir\Test\TestComponent.cshtml) - oninput=" - " HtmlAttribute - (130:2,79 [8] x:\dir\subdir\Test\TestComponent.cshtml) - oninput=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIChangeEventArgs>(this, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.ChangeEventArgs>(this,
IntermediateToken - (86:1,79 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => {} IntermediateToken - (130:2,79 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => {}
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlAttribute - (41:1,34 [5] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " HtmlAttribute - (85:2,34 [5] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindConverter.FormatValue( IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindConverter.FormatValue(
IntermediateToken - (42:1,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - text IntermediateToken - (86:2,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - text
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlAttribute - (41:1,34 [5] x:\dir\subdir\Test\TestComponent.cshtml) - oninput=" - " HtmlAttribute - (85:2,34 [5] x:\dir\subdir\Test\TestComponent.cshtml) - oninput=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => text = __value, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => text = __value,
IntermediateToken - - CSharp - text IntermediateToken - - CSharp - text
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlContent - (104:1,97 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (148:2,97 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (104:1,97 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (148:2,97 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
HtmlContent - (112:2,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (156:3,6 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (112:2,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (156:3,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
HtmlContent - (162:5,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (206:6,1 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (162:5,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (206:6,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (126:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (170:4,12 [35] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (126:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private string text = "hi";\n IntermediateToken - (170:4,12 [35] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private string text = "hi";\n

View File

@ -1,18 +1,23 @@
Source Location: (86:1,79 [8] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (320:12,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (130:2,79 [8] x:\dir\subdir\Test\TestComponent.cshtml)
|() => {}| |() => {}|
Generated Location: (1061:25,79 [8] ) Generated Location: (1223:32,79 [8] )
|() => {}| |() => {}|
Source Location: (42:1,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (86:2,35 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|text| |text|
Generated Location: (1320:34,35 [4] ) Generated Location: (1482:41,35 [4] )
|text| |text|
Source Location: (126:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (170:4,12 [35] x:\dir\subdir\Test\TestComponent.cshtml)
| |
private string text = "hi"; private string text = "hi";
| |
Generated Location: (1649:45,12 [35] ) Generated Location: (1811:52,12 [35] )
| |
private string text = "hi"; private string text = "hi";
| |

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -22,7 +29,7 @@ namespace Test
{ {
__o = Microsoft.AspNetCore.Components.BindConverter.FormatValue( __o = Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#nullable restore #nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
text text
#line default #line default
@ -33,7 +40,7 @@ namespace Test
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 4 "x:\dir\subdir\Test\TestComponent.cshtml" #line 5 "x:\dir\subdir\Test\TestComponent.cshtml"
private string text = "hi"; private string text = "hi";

View File

@ -1 +1 @@
x:\dir\subdir\Test\TestComponent.cshtml(2,3): Error RZ10008: The attribute 'value' is used two or more times for this element. Attributes must be unique (case-insensitive). The attribute 'value' is used by the '@bind' directive attribute. x:\dir\subdir\Test\TestComponent.cshtml(3,3): Error RZ10008: The attribute 'value' is used two or more times for this element. Attributes must be unique (case-insensitive). The attribute 'value' is used by the '@bind' directive attribute.

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,31 +15,33 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [69] x:\dir\subdir\Test\TestComponent.cshtml) - div HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlContent - (5:0,5 [4] x:\dir\subdir\Test\TestComponent.cshtml) IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
IntermediateToken - (5:0,5 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n MarkupElement - (44:1,0 [69] x:\dir\subdir\Test\TestComponent.cshtml) - div
MarkupElement - (9:1,2 [52] x:\dir\subdir\Test\TestComponent.cshtml) - input HtmlContent - (49:1,5 [4] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (49:1,5 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (53:2,2 [52] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - - type=" - " HtmlAttribute - - type=" - "
HtmlAttributeValue - (22:1,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlAttributeValue - (66:2,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - (22:1,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text IntermediateToken - (66:2,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text
HtmlAttribute - - value=" - " HtmlAttribute - - value=" - "
HtmlAttributeValue - (35:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlAttributeValue - (79:2,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - (35:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - 17 IntermediateToken - (79:2,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - 17
HtmlAttribute - (46:1,39 [5] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - " HtmlAttribute - (90:2,39 [5] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindConverter.FormatValue( IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.BindConverter.FormatValue(
IntermediateToken - (47:1,40 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - text IntermediateToken - (91:2,40 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - text
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlAttribute - (46:1,39 [5] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - " HtmlAttribute - (90:2,39 [5] x:\dir\subdir\Test\TestComponent.cshtml) - onchange=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => text = __value, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => text = __value,
IntermediateToken - - CSharp - text IntermediateToken - - CSharp - text
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlContent - (61:1,54 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (105:2,54 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (61:1,54 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (105:2,54 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
HtmlContent - (69:2,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (113:3,6 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (69:2,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (113:3,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
HtmlContent - (119:5,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (163:6,1 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (119:5,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (163:6,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (83:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (127:4,12 [35] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (83:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private string text = "hi";\n IntermediateToken - (127:4,12 [35] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private string text = "hi";\n

View File

@ -1,13 +1,18 @@
Source Location: (47:1,40 [4] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (320:12,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (91:2,40 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|text| |text|
Generated Location: (962:25,40 [4] ) Generated Location: (1126:32,40 [4] )
|text| |text|
Source Location: (83:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (127:4,12 [35] x:\dir\subdir\Test\TestComponent.cshtml)
| |
private string text = "hi"; private string text = "hi";
| |
Generated Location: (1291:36,12 [35] ) Generated Location: (1455:43,12 [35] )
| |
private string text = "hi"; private string text = "hi";
| |

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -20,9 +27,9 @@ namespace Test
#pragma warning disable 1998 #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, __o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
() => {} () => {}
#line default #line default

View File

@ -1 +1 @@
x:\dir\subdir\Test\TestComponent.cshtml(2,3): Error RZ10008: The attribute 'onclick' is used two or more times for this element. Attributes must be unique (case-insensitive). The attribute 'onclick' is used by the '@onclick' directive attribute. x:\dir\subdir\Test\TestComponent.cshtml(3,3): Error RZ10008: The attribute 'onclick' is used two or more times for this element. Attributes must be unique (case-insensitive). The attribute 'onclick' is used by the '@onclick' directive attribute.

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,19 +15,21 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [118] x:\dir\subdir\Test\TestComponent.cshtml) - div HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlContent - (5:0,5 [4] x:\dir\subdir\Test\TestComponent.cshtml) IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
IntermediateToken - (5:0,5 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n MarkupElement - (44:1,0 [118] x:\dir\subdir\Test\TestComponent.cshtml) - div
MarkupElement - (9:1,2 [101] x:\dir\subdir\Test\TestComponent.cshtml) - a HtmlContent - (49:1,5 [4] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlContent - (49:1,42 [57] x:\dir\subdir\Test\TestComponent.cshtml) IntermediateToken - (49:1,5 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
IntermediateToken - (49:1,42 [57] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Learn the ten cool tricks your compiler author will hate! MarkupElement - (53:2,2 [101] x:\dir\subdir\Test\TestComponent.cshtml) - a
HtmlContent - (93:2,42 [57] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (93:2,42 [57] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Learn the ten cool tricks your compiler author will hate!
HtmlAttribute - - onclick=" - " HtmlAttribute - - onclick=" - "
HtmlAttributeValue - (21:1,14 [6] x:\dir\subdir\Test\TestComponent.cshtml) - HtmlAttributeValue - (65:2,14 [6] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - (21:1,14 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - test() IntermediateToken - (65:2,14 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - test()
HtmlAttribute - (39:1,32 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " HtmlAttribute - (83:2,32 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
IntermediateToken - (39:1,32 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => {} IntermediateToken - (83:2,32 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => {}
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlContent - (110:1,103 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (154:2,103 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (110:1,103 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (154:2,103 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n

View File

@ -1,5 +1,10 @@
Source Location: (39:1,32 [8] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (320:12,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (83:2,32 [8] x:\dir\subdir\Test\TestComponent.cshtml)
|() => {}| |() => {}|
Generated Location: (1013:25,32 [8] ) Generated Location: (1179:32,32 [8] )
|() => {}| |() => {}|

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -20,10 +27,10 @@ namespace Test
#pragma warning disable 1998 #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<Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.UIMouseEventArgs>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, __o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.Web.MouseEventArgs>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
EventCallback.Factory.Create<UIMouseEventArgs>(this, Increment) EventCallback.Factory.Create<MouseEventArgs>(this, Increment)
#line default #line default
#line hidden #line hidden
@ -33,7 +40,7 @@ namespace Test
} }
)); ));
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(MyComponent); __o = typeof(MyComponent);
#line default #line default
@ -42,7 +49,7 @@ __o = typeof(MyComponent);
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" #line 4 "x:\dir\subdir\Test\TestComponent.cshtml"
private int counter; private int counter;
private void Increment() { private void Increment() {

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,11 +15,13 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
Component - (0:0,0 [91] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
ComponentAttribute - (22:0,22 [66] x:\dir\subdir\Test\TestComponent.cshtml) - OnClick - AttributeStructure.DoubleQuotes IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpExpression - (23:0,23 [65] x:\dir\subdir\Test\TestComponent.cshtml) Component - (44:1,0 [89] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent
IntermediateToken - (24:0,24 [63] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - EventCallback.Factory.Create<UIMouseEventArgs>(this, Increment) ComponentAttribute - (66:1,22 [64] x:\dir\subdir\Test\TestComponent.cshtml) - OnClick - AttributeStructure.DoubleQuotes
HtmlContent - (91:0,91 [4] x:\dir\subdir\Test\TestComponent.cshtml) CSharpExpression - (67:1,23 [63] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (91:0,91 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n IntermediateToken - (68:1,24 [61] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - EventCallback.Factory.Create<MouseEventArgs>(this, Increment)
CSharpCode - (102:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (133:1,89 [4] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (102:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private int counter;\n private void Increment() {\n counter++;\n }\n IntermediateToken - (133:1,89 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
CSharpCode - (144:3,7 [87] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (144:3,7 [87] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private int counter;\n private void Increment() {\n counter++;\n }\n

View File

@ -1,16 +1,21 @@
Source Location: (24:0,24 [63] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|EventCallback.Factory.Create<UIMouseEventArgs>(this, Increment)| |using Microsoft.AspNetCore.Components.Web|
Generated Location: (1176:25,24 [63] ) Generated Location: (320:12,0 [41] )
|EventCallback.Factory.Create<UIMouseEventArgs>(this, Increment)| |using Microsoft.AspNetCore.Components.Web|
Source Location: (102:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (68:1,24 [61] x:\dir\subdir\Test\TestComponent.cshtml)
|EventCallback.Factory.Create<MouseEventArgs>(this, Increment)|
Generated Location: (1344:32,24 [61] )
|EventCallback.Factory.Create<MouseEventArgs>(this, Increment)|
Source Location: (144:3,7 [87] x:\dir\subdir\Test\TestComponent.cshtml)
| |
private int counter; private int counter;
private void Increment() { private void Increment() {
counter++; counter++;
} }
| |
Generated Location: (1737:45,7 [87] ) Generated Location: (1903:52,7 [87] )
| |
private int counter; private int counter;
private void Increment() { private void Increment() {

View File

@ -20,7 +20,7 @@ namespace Test
#pragma warning disable 1998 #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<Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.UIMouseEventArgs>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, __o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.Web.MouseEventArgs>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
Increment Increment

View File

@ -1,6 +1,6 @@
Source Location: (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml)
|Increment| |Increment|
Generated Location: (1175:25,23 [9] ) Generated Location: (1179:25,23 [9] )
|Increment| |Increment|
Source Location: (46:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (46:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml)
@ -10,7 +10,7 @@ Source Location: (46:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml)
counter++; counter++;
} }
| |
Generated Location: (1682:45,7 [87] ) Generated Location: (1686:45,7 [87] )
| |
private int counter; private int counter;
private void Increment() { private void Increment() {

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -20,9 +27,9 @@ namespace Test
#pragma warning disable 1998 #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<Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.UIMouseEventArgs>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, __o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.Web.MouseEventArgs>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
Increment Increment
#line default #line default
@ -33,7 +40,7 @@ namespace Test
} }
)); ));
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(MyComponent); __o = typeof(MyComponent);
#line default #line default
@ -42,10 +49,10 @@ __o = typeof(MyComponent);
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" #line 4 "x:\dir\subdir\Test\TestComponent.cshtml"
private int counter; private int counter;
private void Increment(UIMouseEventArgs e) { private void Increment(MouseEventArgs e) {
counter++; counter++;
} }

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,11 +15,13 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
Component - (0:0,0 [35] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
ComponentAttribute - (22:0,22 [10] x:\dir\subdir\Test\TestComponent.cshtml) - OnClick - AttributeStructure.DoubleQuotes IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpExpression - (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) Component - (44:1,0 [35] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent
IntermediateToken - (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Increment ComponentAttribute - (66:1,22 [10] x:\dir\subdir\Test\TestComponent.cshtml) - OnClick - AttributeStructure.DoubleQuotes
HtmlContent - (35:0,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) CSharpExpression - (67:1,23 [9] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (35:0,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n IntermediateToken - (67:1,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Increment
CSharpCode - (46:2,7 [105] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (79:1,35 [4] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (46:2,7 [105] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private int counter;\n private void Increment(UIMouseEventArgs e) {\n counter++;\n }\n IntermediateToken - (79:1,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
CSharpCode - (90:3,7 [103] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (90:3,7 [103] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private int counter;\n private void Increment(MouseEventArgs e) {\n counter++;\n }\n

View File

@ -1,19 +1,24 @@
Source Location: (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (320:12,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (67:1,23 [9] x:\dir\subdir\Test\TestComponent.cshtml)
|Increment| |Increment|
Generated Location: (1175:25,23 [9] ) Generated Location: (1343:32,23 [9] )
|Increment| |Increment|
Source Location: (46:2,7 [105] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (90:3,7 [103] x:\dir\subdir\Test\TestComponent.cshtml)
| |
private int counter; private int counter;
private void Increment(UIMouseEventArgs e) { private void Increment(MouseEventArgs e) {
counter++; counter++;
} }
| |
Generated Location: (1682:45,7 [105] ) Generated Location: (1850:52,7 [103] )
| |
private int counter; private int counter;
private void Increment(UIMouseEventArgs e) { private void Increment(MouseEventArgs e) {
counter++; counter++;
} }
| |

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -20,9 +27,9 @@ namespace Test
#pragma warning disable 1998 #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<Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.UIMouseEventArgs>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, __o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.Web.MouseEventArgs>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
Increment Increment
#line default #line default
@ -33,7 +40,7 @@ namespace Test
} }
)); ));
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(MyComponent); __o = typeof(MyComponent);
#line default #line default
@ -42,10 +49,10 @@ __o = typeof(MyComponent);
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" #line 4 "x:\dir\subdir\Test\TestComponent.cshtml"
private int counter; private int counter;
private Task Increment(UIMouseEventArgs e) { private Task Increment(MouseEventArgs e) {
counter++; counter++;
return Task.CompletedTask; return Task.CompletedTask;
} }

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,11 +15,13 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
Component - (0:0,0 [35] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
ComponentAttribute - (22:0,22 [10] x:\dir\subdir\Test\TestComponent.cshtml) - OnClick - AttributeStructure.DoubleQuotes IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpExpression - (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) Component - (44:1,0 [35] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent
IntermediateToken - (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Increment ComponentAttribute - (66:1,22 [10] x:\dir\subdir\Test\TestComponent.cshtml) - OnClick - AttributeStructure.DoubleQuotes
HtmlContent - (35:0,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) CSharpExpression - (67:1,23 [9] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (35:0,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n IntermediateToken - (67:1,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Increment
CSharpCode - (46:2,7 [141] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (79:1,35 [4] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (46:2,7 [141] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private int counter;\n private Task Increment(UIMouseEventArgs e) {\n counter++;\n return Task.CompletedTask;\n }\n IntermediateToken - (79:1,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
CSharpCode - (90:3,7 [139] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (90:3,7 [139] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private int counter;\n private Task Increment(MouseEventArgs e) {\n counter++;\n return Task.CompletedTask;\n }\n

View File

@ -1,20 +1,25 @@
Source Location: (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (320:12,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (67:1,23 [9] x:\dir\subdir\Test\TestComponent.cshtml)
|Increment| |Increment|
Generated Location: (1175:25,23 [9] ) Generated Location: (1343:32,23 [9] )
|Increment| |Increment|
Source Location: (46:2,7 [141] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (90:3,7 [139] x:\dir\subdir\Test\TestComponent.cshtml)
| |
private int counter; private int counter;
private Task Increment(UIMouseEventArgs e) { private Task Increment(MouseEventArgs e) {
counter++; counter++;
return Task.CompletedTask; return Task.CompletedTask;
} }
| |
Generated Location: (1682:45,7 [141] ) Generated Location: (1850:52,7 [139] )
| |
private int counter; private int counter;
private Task Increment(UIMouseEventArgs e) { private Task Increment(MouseEventArgs e) {
counter++; counter++;
return Task.CompletedTask; return Task.CompletedTask;
} }

View File

@ -20,7 +20,7 @@ namespace Test
#pragma warning disable 1998 #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<Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.UIMouseEventArgs>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, __o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.Web.MouseEventArgs>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
Increment Increment

View File

@ -1,6 +1,6 @@
Source Location: (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml)
|Increment| |Increment|
Generated Location: (1175:25,23 [9] ) Generated Location: (1179:25,23 [9] )
|Increment| |Increment|
Source Location: (46:2,7 [123] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (46:2,7 [123] x:\dir\subdir\Test\TestComponent.cshtml)
@ -11,7 +11,7 @@ Source Location: (46:2,7 [123] x:\dir\subdir\Test\TestComponent.cshtml)
return Task.CompletedTask; return Task.CompletedTask;
} }
| |
Generated Location: (1682:45,7 [123] ) Generated Location: (1686:45,7 [123] )
| |
private int counter; private int counter;
private Task Increment() { private Task Increment() {

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -20,9 +27,9 @@ namespace Test
#pragma warning disable 1998 #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<Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.UIMouseEventArgs>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, __o = Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.Web.MouseEventArgs>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
Increment Increment
#line default #line default
@ -33,7 +40,7 @@ namespace Test
} }
)); ));
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(MyComponent); __o = typeof(MyComponent);
#line default #line default
@ -42,10 +49,10 @@ __o = typeof(MyComponent);
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" #line 4 "x:\dir\subdir\Test\TestComponent.cshtml"
private int counter; private int counter;
private void Increment(UIChangeEventArgs e) { private void Increment(ChangeEventArgs e) {
counter++; counter++;
} }

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,11 +15,13 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
Component - (0:0,0 [35] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
ComponentAttribute - (22:0,22 [10] x:\dir\subdir\Test\TestComponent.cshtml) - OnClick - AttributeStructure.DoubleQuotes IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpExpression - (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) Component - (44:1,0 [35] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent
IntermediateToken - (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Increment ComponentAttribute - (66:1,22 [10] x:\dir\subdir\Test\TestComponent.cshtml) - OnClick - AttributeStructure.DoubleQuotes
HtmlContent - (35:0,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) CSharpExpression - (67:1,23 [9] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (35:0,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n IntermediateToken - (67:1,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Increment
CSharpCode - (46:2,7 [106] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (79:1,35 [4] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (46:2,7 [106] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private int counter;\n private void Increment(UIChangeEventArgs e) {\n counter++;\n }\n IntermediateToken - (79:1,35 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
CSharpCode - (90:3,7 [104] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (90:3,7 [104] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private int counter;\n private void Increment(ChangeEventArgs e) {\n counter++;\n }\n

View File

@ -1,19 +1,24 @@
Source Location: (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (320:12,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (67:1,23 [9] x:\dir\subdir\Test\TestComponent.cshtml)
|Increment| |Increment|
Generated Location: (1175:25,23 [9] ) Generated Location: (1343:32,23 [9] )
|Increment| |Increment|
Source Location: (46:2,7 [106] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (90:3,7 [104] x:\dir\subdir\Test\TestComponent.cshtml)
| |
private int counter; private int counter;
private void Increment(UIChangeEventArgs e) { private void Increment(ChangeEventArgs e) {
counter++; counter++;
} }
| |
Generated Location: (1682:45,7 [106] ) Generated Location: (1850:52,7 [104] )
| |
private int counter; private int counter;
private void Increment(UIChangeEventArgs e) { private void Increment(ChangeEventArgs e) {
counter++; counter++;
} }
| |

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -23,9 +30,9 @@ namespace Test
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
void OnClick(UIMouseEventArgs e) { void OnClick(MouseEventArgs e) {
} }
#line default #line default

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,11 +15,13 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlAttribute - (6:0,6 [19] x:\dir\subdir\Test\TestComponent.cshtml) - @onCLICK=" - " IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
HtmlAttributeValue - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - MarkupElement - (44:1,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Html - OnClick HtmlAttribute - (50:1,6 [19] x:\dir\subdir\Test\TestComponent.cshtml) - @onCLICK=" - "
HtmlContent - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlAttributeValue - (61:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (61:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - Html - OnClick
CSharpCode - (37:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (72:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (37:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(UIMouseEventArgs e) {\n }\n IntermediateToken - (72:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (81:2,7 [47] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (81:2,7 [47] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(MouseEventArgs e) {\n }\n

View File

@ -1,11 +1,16 @@
Source Location: (37:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (320:12,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (81:2,7 [47] x:\dir\subdir\Test\TestComponent.cshtml)
| |
void OnClick(UIMouseEventArgs e) { void OnClick(MouseEventArgs e) {
} }
| |
Generated Location: (900:26,7 [49] ) Generated Location: (1064:33,7 [47] )
| |
void OnClick(UIMouseEventArgs e) { void OnClick(MouseEventArgs e) {
} }
| |

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -20,9 +27,9 @@ namespace Test
#pragma warning disable 1998 #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, __o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
OnClick OnClick
#line default #line default
@ -32,9 +39,9 @@ namespace Test
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
void OnClick(UIEventArgs e) { void OnClick(EventArgs e) {
} }
#line default #line default

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,13 +15,15 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlAttribute - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (44:1,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - (61:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick IntermediateToken - (61:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlContent - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (72:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (72:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (37:1,7 [44] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (81:2,7 [42] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (37:1,7 [44] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(UIEventArgs e) {\n }\n IntermediateToken - (81:2,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(EventArgs e) {\n }\n

View File

@ -1,16 +1,21 @@
Source Location: (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (320:12,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (61:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|OnClick| |OnClick|
Generated Location: (998:25,17 [7] ) Generated Location: (1164:32,17 [7] )
|OnClick| |OnClick|
Source Location: (37:1,7 [44] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (81:2,7 [42] x:\dir\subdir\Test\TestComponent.cshtml)
| |
void OnClick(UIEventArgs e) { void OnClick(EventArgs e) {
} }
| |
Generated Location: (1199:35,7 [44] ) Generated Location: (1365:42,7 [42] )
| |
void OnClick(UIEventArgs e) { void OnClick(EventArgs e) {
} }
| |

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -20,9 +27,9 @@ namespace Test
#pragma warning disable 1998 #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, __o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
OnClick OnClick
#line default #line default
@ -32,9 +39,9 @@ namespace Test
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
void OnClick(UIMouseEventArgs e) { void OnClick(MouseEventArgs e) {
} }
#line default #line default

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,13 +15,15 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlAttribute - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (44:1,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - (61:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick IntermediateToken - (61:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlContent - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (72:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (72:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (37:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (81:2,7 [47] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (37:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(UIMouseEventArgs e) {\n }\n IntermediateToken - (81:2,7 [47] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(MouseEventArgs e) {\n }\n

View File

@ -1,16 +1,21 @@
Source Location: (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (320:12,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (61:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|OnClick| |OnClick|
Generated Location: (998:25,17 [7] ) Generated Location: (1164:32,17 [7] )
|OnClick| |OnClick|
Source Location: (37:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (81:2,7 [47] x:\dir\subdir\Test\TestComponent.cshtml)
| |
void OnClick(UIMouseEventArgs e) { void OnClick(MouseEventArgs e) {
} }
| |
Generated Location: (1199:35,7 [49] ) Generated Location: (1365:42,7 [47] )
| |
void OnClick(UIMouseEventArgs e) { void OnClick(MouseEventArgs e) {
} }
| |

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -20,9 +27,9 @@ namespace Test
#pragma warning disable 1998 #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, __o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
x => { } x => { }
#line default #line default

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,9 +15,11 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlAttribute - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (44:1,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - (61:1,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
IntermediateToken - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - x => { } IntermediateToken - (61:1,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - x => { }
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )

View File

@ -1,5 +1,10 @@
Source Location: (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (320:12,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (61:1,17 [8] x:\dir\subdir\Test\TestComponent.cshtml)
|x => { }| |x => { }|
Generated Location: (998:25,17 [8] ) Generated Location: (1164:32,17 [8] )
|x => { }| |x => { }|

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -20,9 +27,9 @@ namespace Test
#pragma warning disable 1998 #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, __o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
OnClick OnClick
#line default #line default
@ -32,9 +39,9 @@ namespace Test
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
void OnClick(UIMouseEventArgs e) { void OnClick(MouseEventArgs e) {
} }
#line default #line default

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,13 +15,15 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlAttribute - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (44:1,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - (61:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick IntermediateToken - (61:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlContent - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (72:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (72:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (37:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (81:2,7 [47] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (37:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(UIMouseEventArgs e) {\n }\n IntermediateToken - (81:2,7 [47] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(MouseEventArgs e) {\n }\n

View File

@ -1,16 +1,21 @@
Source Location: (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml)
|using Microsoft.AspNetCore.Components.Web|
Generated Location: (320:12,0 [41] )
|using Microsoft.AspNetCore.Components.Web|
Source Location: (61:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|OnClick| |OnClick|
Generated Location: (998:25,17 [7] ) Generated Location: (1164:32,17 [7] )
|OnClick| |OnClick|
Source Location: (37:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml) Source Location: (81:2,7 [47] x:\dir\subdir\Test\TestComponent.cshtml)
| |
void OnClick(UIMouseEventArgs e) { void OnClick(MouseEventArgs e) {
} }
| |
Generated Location: (1199:35,7 [49] ) Generated Location: (1365:42,7 [47] )
| |
void OnClick(UIMouseEventArgs e) { void OnClick(MouseEventArgs e) {
} }
| |

View File

@ -20,15 +20,6 @@ namespace Test
#pragma warning disable 1998 #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
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
x => { }
#line default
#line hidden
#nullable disable
);
} }
#pragma warning restore 1998 #pragma warning restore 1998
} }

View File

@ -15,8 +15,12 @@ Document -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input MarkupElement - (0:0,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " HtmlAttribute - (6:0,6 [20] x:\dir\subdir\Test\TestComponent.cshtml) - @onclick=" - "
CSharpExpressionAttributeValue - - HtmlAttributeValue - (17:0,17 [1] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, IntermediateToken - (17:0,17 [1] x:\dir\subdir\Test\TestComponent.cshtml) - Html - x
IntermediateToken - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - x => { } HtmlAttributeValue - (18:0,18 [3] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - - CSharp - ) IntermediateToken - (19:0,19 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - =>
HtmlAttributeValue - (21:0,21 [2] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - (22:0,22 [1] x:\dir\subdir\Test\TestComponent.cshtml) - Html - {
HtmlAttributeValue - (23:0,23 [2] x:\dir\subdir\Test\TestComponent.cshtml) -
IntermediateToken - (24:0,24 [1] x:\dir\subdir\Test\TestComponent.cshtml) - Html - }

View File

@ -1,5 +0,0 @@
Source Location: (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml)
|x => { }|
Generated Location: (998:25,17 [8] )
|x => { }|

View File

@ -8,6 +8,13 @@ namespace Test
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using Microsoft.AspNetCore.Components.Web;
#line default
#line hidden
#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{ {
#pragma warning disable 219 #pragma warning disable 219
@ -20,9 +27,9 @@ namespace Test
#pragma warning disable 1998 #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, __o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore #nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" #line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
OnClick OnClick
#line default #line default
@ -32,7 +39,7 @@ namespace Test
} }
#pragma warning restore 1998 #pragma warning restore 1998
#nullable restore #nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" #line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
void OnClick() { void OnClick() {
} }

View File

@ -5,6 +5,7 @@ Document -
UsingDirective - (53:3,1 [17] ) - System.Linq UsingDirective - (53:3,1 [17] ) - System.Linq
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
UsingDirective - (1:0,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective - DesignTimeDirective -
CSharpCode - CSharpCode -
@ -14,13 +15,15 @@ Document -
CSharpCode - CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414 IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree MethodDeclaration - - protected override - void - BuildRenderTree
MarkupElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input HtmlContent - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml)
HtmlAttribute - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - " IntermediateToken - (42:0,42 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
MarkupElement - (44:1,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
HtmlAttribute - (61:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
CSharpExpressionAttributeValue - - CSharpExpressionAttributeValue - -
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick IntermediateToken - (61:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
IntermediateToken - - CSharp - ) IntermediateToken - - CSharp - )
HtmlContent - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) HtmlContent - (72:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n IntermediateToken - (72:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
CSharpCode - (37:1,7 [31] x:\dir\subdir\Test\TestComponent.cshtml) CSharpCode - (81:2,7 [31] x:\dir\subdir\Test\TestComponent.cshtml)
IntermediateToken - (37:1,7 [31] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick() {\n }\n IntermediateToken - (81:2,7 [31] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick() {\n }\n

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