Don't require preceding @ for event handler directive attributes (dotnet/aspnetcore-tooling#658)
* Don't require preceding @ for event handler directive attributes
* updated event handler th attribute type
\n\nCommit migrated from 6dce1532be
This commit is contained in:
parent
ab867ec5e2
commit
fa65b30dce
|
|
@ -2200,7 +2200,7 @@ namespace Test
|
|||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
<DynamicElement @onclick=""@OnClick"" />
|
||||
<DynamicElement @onclick=""OnClick"" />
|
||||
|
||||
@code {
|
||||
private Action<UIMouseEventArgs> OnClick { get; set; }
|
||||
|
|
@ -2254,7 +2254,7 @@ namespace Test
|
|||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
<input @onclick=""foo"" />");
|
||||
<input onclick=""foo"" />");
|
||||
|
||||
// Assert
|
||||
AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
|
||||
|
|
@ -2269,7 +2269,7 @@ namespace Test
|
|||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
<input @onclick=""@(() => { })"" />");
|
||||
<input @onclick=""() => { }"" />");
|
||||
|
||||
// Assert
|
||||
AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
|
||||
|
|
@ -2284,7 +2284,7 @@ namespace Test
|
|||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
<input @onclick=""@(x => { })"" />");
|
||||
<input @onclick=""x => { }"" />");
|
||||
|
||||
// Assert
|
||||
AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
|
||||
|
|
@ -2299,7 +2299,7 @@ namespace Test
|
|||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
<input @onclick=""@OnClick"" />
|
||||
<input @onclick=""OnClick"" />
|
||||
@code {
|
||||
void OnClick() {
|
||||
}
|
||||
|
|
@ -2318,7 +2318,7 @@ namespace Test
|
|||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
<input @onclick=""@OnClick"" />
|
||||
<input @onclick=""OnClick"" />
|
||||
@code {
|
||||
void OnClick(UIMouseEventArgs e) {
|
||||
}
|
||||
|
|
@ -2337,7 +2337,7 @@ namespace Test
|
|||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
<input @onclick=""@OnClick"" />
|
||||
<input @onclick=""OnClick"" />
|
||||
@code {
|
||||
void OnClick(UIEventArgs e) {
|
||||
}
|
||||
|
|
@ -2357,7 +2357,7 @@ namespace Test
|
|||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
@using System.Threading.Tasks
|
||||
<input @onclick=""@OnClick"" />
|
||||
<input @onclick=""OnClick"" />
|
||||
@code {
|
||||
Task OnClick()
|
||||
{
|
||||
|
|
@ -2379,7 +2379,7 @@ namespace Test
|
|||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
@using System.Threading.Tasks
|
||||
<input @onclick=""@OnClick"" />
|
||||
<input @onclick=""OnClick"" />
|
||||
@code {
|
||||
Task OnClick(UIMouseEventArgs e)
|
||||
{
|
||||
|
|
@ -2434,7 +2434,7 @@ namespace Test
|
|||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
<input @onclick=""@(x => { })"" />");
|
||||
<input @onclick=""x => { }"" />");
|
||||
|
||||
// Assert
|
||||
AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
|
||||
|
|
@ -2449,7 +2449,7 @@ namespace Test
|
|||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
<input @onclick=""@OnClick"" />
|
||||
<input @onclick=""OnClick"" />
|
||||
@code {
|
||||
void OnClick(UIMouseEventArgs e) {
|
||||
}
|
||||
|
|
@ -3907,7 +3907,7 @@ namespace New.Test
|
|||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
<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>");
|
||||
|
||||
// Assert
|
||||
|
|
@ -3971,7 +3971,7 @@ namespace New.Test
|
|||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
<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>
|
||||
@functions {
|
||||
private string text = ""hi"";
|
||||
|
|
@ -4343,7 +4343,7 @@ Welcome to your new app.
|
|||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
<p @onmouseover=""@OnComponentHover"" style=""background: @ParentBgColor;"" />
|
||||
<p @onmouseover=""OnComponentHover"" style=""background: @ParentBgColor;"" />
|
||||
@code {
|
||||
public string ParentBgColor { get; set; } = ""#FFFFFF"";
|
||||
|
||||
|
|
@ -4364,7 +4364,7 @@ Welcome to your new app.
|
|||
{
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
<input @onfocus='alert(""Test"");' />
|
||||
<input onfocus='alert(""Test"");' />
|
||||
");
|
||||
|
||||
// Assert
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ using System.Threading.Tasks;
|
|||
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
OnClick
|
||||
OnClick
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -16,13 +16,13 @@ Document -
|
|||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
MarkupElement - (31:1,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (48:1,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (31:1,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (49:1,18 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - - CSharp - )
|
||||
HtmlContent - (60:1,29 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (60:1,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (69:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (69:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick(UIMouseEventArgs e) \n {\n return Task.CompletedTask;\n }\n
|
||||
HtmlContent - (59:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (59:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (68:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (68:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick(UIMouseEventArgs e) \n {\n return Task.CompletedTask;\n }\n
|
||||
|
|
|
|||
|
|
@ -3,19 +3,19 @@ Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml)
|
|||
Generated Location: (285:11,0 [28] )
|
||||
|using System.Threading.Tasks|
|
||||
|
||||
Source Location: (49:1,18 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|OnClick|
|
||||
Generated Location: (1114:31,18 [7] )
|
||||
Generated Location: (1113:31,17 [7] )
|
||||
|OnClick|
|
||||
|
||||
Source Location: (69:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (68:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
Task OnClick(UIMouseEventArgs e)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
|
||||
Generated Location: (1315:41,7 [91] )
|
||||
Generated Location: (1314:41,7 [91] )
|
||||
|
|
||||
Task OnClick(UIMouseEventArgs e)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ using System.Threading.Tasks;
|
|||
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
OnClick
|
||||
OnClick
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -16,13 +16,13 @@ Document -
|
|||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
MarkupElement - (31:1,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (48:1,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (31:1,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (49:1,18 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - - CSharp - )
|
||||
HtmlContent - (60:1,29 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (60:1,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (69:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (69:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick() \n {\n return Task.CompletedTask;\n }\n
|
||||
HtmlContent - (59:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (59:1,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (68:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (68:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick() \n {\n return Task.CompletedTask;\n }\n
|
||||
|
|
|
|||
|
|
@ -3,19 +3,19 @@ Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml)
|
|||
Generated Location: (285:11,0 [28] )
|
||||
|using System.Threading.Tasks|
|
||||
|
||||
Source Location: (49:1,18 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|OnClick|
|
||||
Generated Location: (1114:31,18 [7] )
|
||||
Generated Location: (1113:31,17 [7] )
|
||||
|OnClick|
|
||||
|
||||
Source Location: (69:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (68:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
Task OnClick()
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
|
||||
Generated Location: (1315:41,7 [73] )
|
||||
Generated Location: (1314:41,7 [73] )
|
||||
|
|
||||
Task OnClick()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace Test
|
|||
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
OnClick
|
||||
OnClick
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -14,13 +14,13 @@ Document -
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
Component - (0:0,0 [38] x:\dir\subdir\Test\TestComponent.cshtml) - DynamicElement
|
||||
ComponentAttribute - (26:0,26 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick - AttributeStructure.DoubleQuotes
|
||||
Component - (0:0,0 [37] x:\dir\subdir\Test\TestComponent.cshtml) - DynamicElement
|
||||
ComponentAttribute - (26:0,26 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick - AttributeStructure.DoubleQuotes
|
||||
CSharpExpression -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (27:0,27 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - (26:0,26 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - - CSharp - )
|
||||
HtmlContent - (38:0,38 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (38:0,38 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
|
||||
CSharpCode - (49:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (49:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private Action<UIMouseEventArgs> OnClick { get; set; }\n
|
||||
HtmlContent - (37:0,37 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (37:0,37 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
|
||||
CSharpCode - (48:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (48:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private Action<UIMouseEventArgs> OnClick { get; set; }\n
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (27:0,27 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (26:0,26 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|OnClick|
|
||||
Generated Location: (1007:25,27 [7] )
|
||||
Generated Location: (1006:25,26 [7] )
|
||||
|OnClick|
|
||||
|
||||
Source Location: (49:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (48:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
private Action<UIMouseEventArgs> OnClick { get; set; }
|
||||
|
|
||||
Generated Location: (1510:45,7 [62] )
|
||||
Generated Location: (1509:45,7 [62] )
|
||||
|
|
||||
private Action<UIMouseEventArgs> OnClick { get; set; }
|
||||
|
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace Test
|
|||
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIChangeEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
() => {}
|
||||
() => {}
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -14,17 +14,17 @@ Document -
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [115] x:\dir\subdir\Test\TestComponent.cshtml) - div
|
||||
MarkupElement - (0:0,0 [112] x:\dir\subdir\Test\TestComponent.cshtml) - div
|
||||
HtmlContent - (5:0,5 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (5:0,5 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
MarkupElement - (9:1,2 [98] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
MarkupElement - (9:1,2 [95] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - - type=" - "
|
||||
HtmlAttributeValue - (22:1,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (22:1,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text
|
||||
HtmlAttribute - (86:1,79 [11] x:\dir\subdir\Test\TestComponent.cshtml) - oninput=" - "
|
||||
HtmlAttribute - (86:1,79 [8] x:\dir\subdir\Test\TestComponent.cshtml) - oninput=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIChangeEventArgs>(this,
|
||||
IntermediateToken - (88:1,81 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => {}
|
||||
IntermediateToken - (86:1,79 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => {}
|
||||
IntermediateToken - - CSharp - )
|
||||
HtmlAttribute - (41:1,34 [5] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
|
|
@ -34,11 +34,11 @@ Document -
|
|||
HtmlAttribute - (41:1,34 [5] x:\dir\subdir\Test\TestComponent.cshtml) - oninput=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => text = __value, text)
|
||||
HtmlContent - (107:1,100 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (107:1,100 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
HtmlContent - (115:2,6 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (115:2,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
HtmlContent - (165:5,1 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (165:5,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (129:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (129:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private string text = "hi";\n
|
||||
HtmlContent - (104:1,97 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (104:1,97 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
HtmlContent - (112:2,6 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (112:2,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
HtmlContent - (162:5,1 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (162:5,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (126:3,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
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
Source Location: (88:1,81 [8] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (86:1,79 [8] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|() => {}|
|
||||
Generated Location: (1062:25,81 [8] )
|
||||
Generated Location: (1060:25,79 [8] )
|
||||
|() => {}|
|
||||
|
||||
Source Location: (42:1,35 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|text|
|
||||
Generated Location: (1316:34,35 [4] )
|
||||
Generated Location: (1314:34,35 [4] )
|
||||
|text|
|
||||
|
||||
Source Location: (129:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (126:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
private string text = "hi";
|
||||
|
|
||||
Generated Location: (1645:45,12 [35] )
|
||||
Generated Location: (1643:45,12 [35] )
|
||||
|
|
||||
private string text = "hi";
|
||||
|
|
||||
|
|
|
|||
|
|
@ -20,16 +20,15 @@ namespace Test
|
|||
#pragma warning disable 1998
|
||||
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder)
|
||||
{
|
||||
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, "test()");
|
||||
__o =
|
||||
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
() => {}
|
||||
() => {}
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
;
|
||||
);
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
x:\dir\subdir\Test\TestComponent.cshtml(2,16): 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(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.
|
||||
|
|
|
|||
|
|
@ -14,19 +14,19 @@ Document -
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [121] x:\dir\subdir\Test\TestComponent.cshtml) - div
|
||||
MarkupElement - (0:0,0 [118] x:\dir\subdir\Test\TestComponent.cshtml) - div
|
||||
HtmlContent - (5:0,5 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (5:0,5 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
MarkupElement - (9:1,2 [104] x:\dir\subdir\Test\TestComponent.cshtml) - a
|
||||
HtmlContent - (52:1,45 [57] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (52:1,45 [57] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Learn the ten cool tricks your compiler author will hate!
|
||||
HtmlAttribute - (22:1,15 [6] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (9:1,2 [101] x:\dir\subdir\Test\TestComponent.cshtml) - a
|
||||
HtmlContent - (49:1,42 [57] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (49:1,42 [57] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Learn the ten cool tricks your compiler author will hate!
|
||||
HtmlAttribute - - onclick=" - "
|
||||
HtmlAttributeValue - (21:1,14 [6] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (21:1,14 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - test()
|
||||
HtmlAttribute - (39:1,32 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - - CSharp - "test()"
|
||||
IntermediateToken - (39:1,32 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => {}
|
||||
IntermediateToken - - CSharp - )
|
||||
HtmlAttribute - - onclick=" - "
|
||||
CSharpExpressionAttributeValue - (39:1,32 [11] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (41:1,34 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => {}
|
||||
HtmlContent - (113:1,106 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (113:1,106 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
HtmlContent - (110:1,103 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (110:1,103 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
Source Location: (41:1,34 [8] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (39:1,32 [8] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|() => {}|
|
||||
Generated Location: (1044:26,34 [8] )
|
||||
Generated Location: (1012:25,32 [8] )
|
||||
|() => {}|
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ namespace Test
|
|||
#pragma warning disable 1998
|
||||
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder)
|
||||
{
|
||||
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIFocusEventArgs>(this, "alert(\"Test\");");
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,11 +14,9 @@ Document -
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [35] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [14] x:\dir\subdir\Test\TestComponent.cshtml) - onfocus=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIFocusEventArgs>(this,
|
||||
IntermediateToken - - CSharp - "alert(\"Test\");"
|
||||
IntermediateToken - - CSharp - )
|
||||
HtmlContent - (35:0,35 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (35:0,35 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
MarkupElement - (0:0,0 [34] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (6:0,6 [25] x:\dir\subdir\Test\TestComponent.cshtml) - onfocus=' - '
|
||||
HtmlAttributeValue - (16:0,16 [14] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (16:0,16 [14] x:\dir\subdir\Test\TestComponent.cshtml) - Html - alert("Test");
|
||||
HtmlContent - (34:0,34 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (34:0,34 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace Test
|
|||
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
OnClick
|
||||
OnClick
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -14,13 +14,13 @@ Document -
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (18:0,18 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - - CSharp - )
|
||||
HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (38:1,7 [44] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (38:1,7 [44] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(UIEventArgs e) {\n }\n
|
||||
HtmlContent - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (37:1,7 [44] 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
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
Source Location: (18:0,18 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|OnClick|
|
||||
Generated Location: (998:25,18 [7] )
|
||||
Generated Location: (997:25,17 [7] )
|
||||
|OnClick|
|
||||
|
||||
Source Location: (38:1,7 [44] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (37:1,7 [44] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
void OnClick(UIEventArgs e) {
|
||||
}
|
||||
|
|
||||
Generated Location: (1199:35,7 [44] )
|
||||
Generated Location: (1198:35,7 [44] )
|
||||
|
|
||||
void OnClick(UIEventArgs e) {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace Test
|
|||
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
OnClick
|
||||
OnClick
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -14,13 +14,13 @@ Document -
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (18:0,18 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - - CSharp - )
|
||||
HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (38:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (38:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(UIMouseEventArgs e) {\n }\n
|
||||
HtmlContent - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (37:1,7 [49] 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
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
Source Location: (18:0,18 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|OnClick|
|
||||
Generated Location: (998:25,18 [7] )
|
||||
Generated Location: (997:25,17 [7] )
|
||||
|OnClick|
|
||||
|
||||
Source Location: (38:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (37:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
void OnClick(UIMouseEventArgs e) {
|
||||
}
|
||||
|
|
||||
Generated Location: (1199:35,7 [49] )
|
||||
Generated Location: (1198:35,7 [49] )
|
||||
|
|
||||
void OnClick(UIMouseEventArgs e) {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace Test
|
|||
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
x => { }
|
||||
x => { }
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@ Document -
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [32] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [11] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (0:0,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (19:0,19 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - x => { }
|
||||
IntermediateToken - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - x => { }
|
||||
IntermediateToken - - CSharp - )
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
Source Location: (19:0,19 [8] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|x => { }|
|
||||
Generated Location: (999:25,19 [8] )
|
||||
Generated Location: (997:25,17 [8] )
|
||||
|x => { }|
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace Test
|
|||
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
OnClick
|
||||
OnClick
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -14,13 +14,13 @@ Document -
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (18:0,18 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - - CSharp - )
|
||||
HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (38:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (38:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(UIMouseEventArgs e) {\n }\n
|
||||
HtmlContent - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (37:1,7 [49] 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
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
Source Location: (18:0,18 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|OnClick|
|
||||
Generated Location: (998:25,18 [7] )
|
||||
Generated Location: (997:25,17 [7] )
|
||||
|OnClick|
|
||||
|
||||
Source Location: (38:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (37:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
void OnClick(UIMouseEventArgs e) {
|
||||
}
|
||||
|
|
||||
Generated Location: (1199:35,7 [49] )
|
||||
Generated Location: (1198:35,7 [49] )
|
||||
|
|
||||
void OnClick(UIMouseEventArgs e) {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace Test
|
|||
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
x => { }
|
||||
x => { }
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@ Document -
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [32] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [11] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (0:0,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (19:0,19 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - x => { }
|
||||
IntermediateToken - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - x => { }
|
||||
IntermediateToken - - CSharp - )
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
Source Location: (19:0,19 [8] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|x => { }|
|
||||
Generated Location: (999:25,19 [8] )
|
||||
Generated Location: (997:25,17 [8] )
|
||||
|x => { }|
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace Test
|
|||
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
OnClick
|
||||
OnClick
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -14,13 +14,13 @@ Document -
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (18:0,18 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - - CSharp - )
|
||||
HtmlContent - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (29:0,29 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (38:1,7 [31] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (38:1,7 [31] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick() {\n }\n
|
||||
HtmlContent - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (28:0,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (37:1,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
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
Source Location: (18:0,18 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|OnClick|
|
||||
Generated Location: (998:25,18 [7] )
|
||||
Generated Location: (997:25,17 [7] )
|
||||
|OnClick|
|
||||
|
||||
Source Location: (38:1,7 [31] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (37:1,7 [31] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
void OnClick() {
|
||||
}
|
||||
|
|
||||
Generated Location: (1199:35,7 [31] )
|
||||
Generated Location: (1198:35,7 [31] )
|
||||
|
|
||||
void OnClick() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace Test
|
|||
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
() => { }
|
||||
() => { }
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@ Document -
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [33] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (0:0,0 [30] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [9] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (19:0,19 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => { }
|
||||
IntermediateToken - (17:0,17 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => { }
|
||||
IntermediateToken - - CSharp - )
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
Source Location: (19:0,19 [9] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (17:0,17 [9] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|() => { }|
|
||||
Generated Location: (999:25,19 [9] )
|
||||
Generated Location: (997:25,17 [9] )
|
||||
|() => { }|
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ namespace Test
|
|||
#pragma warning disable 1998
|
||||
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder)
|
||||
{
|
||||
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, "foo");
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,9 +14,7 @@ Document -
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [24] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [3] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - - CSharp - "foo"
|
||||
IntermediateToken - - CSharp - )
|
||||
MarkupElement - (0:0,0 [23] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (6:0,6 [14] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
HtmlAttributeValue - (16:0,16 [3] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (16:0,16 [3] x:\dir\subdir\Test\TestComponent.cshtml) - Html - foo
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace Test
|
|||
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
OnComponentHover
|
||||
OnComponentHover
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
@ -32,7 +32,7 @@ namespace Test
|
|||
__o =
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
ParentBgColor
|
||||
ParentBgColor
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -14,22 +14,22 @@ Document -
|
|||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [74] x:\dir\subdir\Test\TestComponent.cshtml) - p
|
||||
HtmlAttribute - (17:0,17 [17] x:\dir\subdir\Test\TestComponent.cshtml) - onmouseover=" - "
|
||||
MarkupElement - (0:0,0 [73] x:\dir\subdir\Test\TestComponent.cshtml) - p
|
||||
HtmlAttribute - (17:0,17 [16] x:\dir\subdir\Test\TestComponent.cshtml) - onmouseover=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (18:0,18 [16] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnComponentHover
|
||||
IntermediateToken - (17:0,17 [16] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnComponentHover
|
||||
IntermediateToken - - CSharp - )
|
||||
HtmlAttribute - - style=" - "
|
||||
HtmlAttributeValue - (43:0,43 [11] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (43:0,43 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Html - background:
|
||||
CSharpExpressionAttributeValue - (54:0,54 [15] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (56:0,56 [13] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentBgColor
|
||||
HtmlAttributeValue - (69:0,69 [1] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (69:0,69 [1] x:\dir\subdir\Test\TestComponent.cshtml) - Html - ;
|
||||
HtmlContent - (74:0,74 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (74:0,74 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
HtmlContent - (216:7,1 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (216:7,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (83:1,7 [132] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (83:1,7 [132] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentBgColor { get; set; } = "#FFFFFF";\n\n public void OnComponentHover(UIMouseEventArgs e)\n {\n }\n
|
||||
HtmlAttributeValue - (42:0,42 [11] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (42:0,42 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Html - background:
|
||||
CSharpExpressionAttributeValue - (53:0,53 [15] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (55:0,55 [13] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentBgColor
|
||||
HtmlAttributeValue - (68:0,68 [1] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (68:0,68 [1] x:\dir\subdir\Test\TestComponent.cshtml) - Html - ;
|
||||
HtmlContent - (73:0,73 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (73:0,73 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
HtmlContent - (215:7,1 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (215:7,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (82:1,7 [132] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (82:1,7 [132] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentBgColor { get; set; } = "#FFFFFF";\n\n public void OnComponentHover(UIMouseEventArgs e)\n {\n }\n
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
Source Location: (18:0,18 [16] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (17:0,17 [16] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|OnComponentHover|
|
||||
Generated Location: (998:25,18 [16] )
|
||||
Generated Location: (997:25,17 [16] )
|
||||
|OnComponentHover|
|
||||
|
||||
Source Location: (56:0,56 [13] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (55:0,55 [13] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentBgColor|
|
||||
Generated Location: (1228:34,56 [13] )
|
||||
Generated Location: (1226:34,55 [13] )
|
||||
|ParentBgColor|
|
||||
|
||||
Source Location: (83:1,7 [132] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (82:1,7 [132] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public string ParentBgColor { get; set; } = "#FFFFFF";
|
||||
|
||||
|
|
@ -16,7 +16,7 @@ Source Location: (83:1,7 [132] x:\dir\subdir\Test\TestComponent.cshtml)
|
|||
{
|
||||
}
|
||||
|
|
||||
Generated Location: (1434:44,7 [132] )
|
||||
Generated Location: (1432:44,7 [132] )
|
||||
|
|
||||
public string ParentBgColor { get; set; } = "#FFFFFF";
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ using System.Threading.Tasks;
|
|||
builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
OnClick
|
||||
OnClick
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ Document -
|
|||
UsingDirective - (1:0,1 [30] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (31:1,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (48:1,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (31:1,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (49:1,18 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - - CSharp - )
|
||||
CSharpCode - (69:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (69:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick(UIMouseEventArgs e) \n {\n return Task.CompletedTask;\n }\n
|
||||
CSharpCode - (68:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (68:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick(UIMouseEventArgs e) \n {\n return Task.CompletedTask;\n }\n
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
Source Location: (69:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (68:2,7 [91] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
Task OnClick(UIMouseEventArgs e)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
|
||||
Generated Location: (1160:36,7 [91] )
|
||||
Generated Location: (1159:36,7 [91] )
|
||||
|
|
||||
Task OnClick(UIMouseEventArgs e)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ using System.Threading.Tasks;
|
|||
builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
OnClick
|
||||
OnClick
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ Document -
|
|||
UsingDirective - (1:0,1 [30] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (31:1,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (48:1,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (31:1,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (49:1,18 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - - CSharp - )
|
||||
CSharpCode - (69:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (69:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick() \n {\n return Task.CompletedTask;\n }\n
|
||||
CSharpCode - (68:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (68:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick() \n {\n return Task.CompletedTask;\n }\n
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
Source Location: (69:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (68:2,7 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
Task OnClick()
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
|
||||
Generated Location: (1160:36,7 [73] )
|
||||
Generated Location: (1159:36,7 [73] )
|
||||
|
|
||||
Task OnClick()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace Test
|
|||
builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
OnClick
|
||||
OnClick
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ Document -
|
|||
UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
Component - (0:0,0 [38] x:\dir\subdir\Test\TestComponent.cshtml) - DynamicElement
|
||||
ComponentAttribute - (26:0,26 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick - AttributeStructure.DoubleQuotes
|
||||
Component - (0:0,0 [37] x:\dir\subdir\Test\TestComponent.cshtml) - DynamicElement
|
||||
ComponentAttribute - (26:0,26 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick - AttributeStructure.DoubleQuotes
|
||||
CSharpExpression -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (27:0,27 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - (26:0,26 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - - CSharp - )
|
||||
CSharpCode - (49:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (49:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private Action<UIMouseEventArgs> OnClick { get; set; }\n
|
||||
CSharpCode - (48:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (48:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private Action<UIMouseEventArgs> OnClick { get; set; }\n
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
Source Location: (49:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (48:2,7 [62] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
private Action<UIMouseEventArgs> OnClick { get; set; }
|
||||
|
|
||||
Generated Location: (1069:30,7 [62] )
|
||||
Generated Location: (1068:30,7 [62] )
|
||||
|
|
||||
private Action<UIMouseEventArgs> OnClick { get; set; }
|
||||
|
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ namespace Test
|
|||
builder.AddAttribute(4, "oninput", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIChangeEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
() => {}
|
||||
() => {}
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -7,17 +7,17 @@ Document -
|
|||
UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [115] x:\dir\subdir\Test\TestComponent.cshtml) - div
|
||||
MarkupElement - (0:0,0 [112] x:\dir\subdir\Test\TestComponent.cshtml) - div
|
||||
HtmlContent - (5:0,5 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (5:0,5 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
MarkupElement - (9:1,2 [98] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
MarkupElement - (9:1,2 [95] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - - type=" - "
|
||||
HtmlAttributeValue - (22:1,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (22:1,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - text
|
||||
HtmlAttribute - (86:1,79 [11] x:\dir\subdir\Test\TestComponent.cshtml) - oninput=" - "
|
||||
HtmlAttribute - (86:1,79 [8] x:\dir\subdir\Test\TestComponent.cshtml) - oninput=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIChangeEventArgs>(this,
|
||||
IntermediateToken - (88:1,81 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => {}
|
||||
IntermediateToken - (86:1,79 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => {}
|
||||
IntermediateToken - - CSharp - )
|
||||
HtmlAttribute - (41:1,34 [5] x:\dir\subdir\Test\TestComponent.cshtml) - value=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
|
|
@ -27,7 +27,7 @@ Document -
|
|||
HtmlAttribute - (41:1,34 [5] x:\dir\subdir\Test\TestComponent.cshtml) - oninput=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => text = __value, text)
|
||||
HtmlContent - (107:1,100 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (107:1,100 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (129:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (129:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private string text = "hi";\n
|
||||
HtmlContent - (104:1,97 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (104:1,97 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (126:3,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
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
Source Location: (129:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (126:3,12 [35] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
private string text = "hi";
|
||||
|
|
||||
Generated Location: (1840:46,12 [35] )
|
||||
Generated Location: (1838:46,12 [35] )
|
||||
|
|
||||
private string text = "hi";
|
||||
|
|
||||
|
|
|
|||
|
|
@ -16,16 +16,16 @@ namespace Test
|
|||
builder.OpenElement(0, "div");
|
||||
builder.AddMarkupContent(1, "\r\n ");
|
||||
builder.OpenElement(2, "a");
|
||||
builder.AddAttribute(3, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, "test()"));
|
||||
builder.AddAttribute(4, "onclick",
|
||||
builder.AddAttribute(3, "onclick", "test()");
|
||||
builder.AddAttribute(4, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
() => {}
|
||||
() => {}
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
);
|
||||
));
|
||||
builder.AddContent(5, "Learn the ten cool tricks your compiler author will hate!");
|
||||
builder.CloseElement();
|
||||
builder.AddMarkupContent(6, "\r\n");
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
x:\dir\subdir\Test\TestComponent.cshtml(2,16): 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(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.
|
||||
|
|
|
|||
|
|
@ -7,19 +7,19 @@ Document -
|
|||
UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [121] x:\dir\subdir\Test\TestComponent.cshtml) - div
|
||||
MarkupElement - (0:0,0 [118] x:\dir\subdir\Test\TestComponent.cshtml) - div
|
||||
HtmlContent - (5:0,5 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (5:0,5 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
MarkupElement - (9:1,2 [104] x:\dir\subdir\Test\TestComponent.cshtml) - a
|
||||
HtmlContent - (52:1,45 [57] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (52:1,45 [57] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Learn the ten cool tricks your compiler author will hate!
|
||||
HtmlAttribute - (22:1,15 [6] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (9:1,2 [101] x:\dir\subdir\Test\TestComponent.cshtml) - a
|
||||
HtmlContent - (49:1,42 [57] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (49:1,42 [57] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Learn the ten cool tricks your compiler author will hate!
|
||||
HtmlAttribute - - onclick=" - "
|
||||
HtmlAttributeValue - (21:1,14 [6] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (21:1,14 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - test()
|
||||
HtmlAttribute - (39:1,32 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - - CSharp - "test()"
|
||||
IntermediateToken - (39:1,32 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => {}
|
||||
IntermediateToken - - CSharp - )
|
||||
HtmlAttribute - - onclick=" - "
|
||||
CSharpExpressionAttributeValue - (39:1,32 [11] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (41:1,34 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => {}
|
||||
HtmlContent - (113:1,106 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (113:1,106 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
HtmlContent - (110:1,103 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (110:1,103 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
|
|
|
|||
|
|
@ -13,9 +13,7 @@ namespace Test
|
|||
#pragma warning disable 1998
|
||||
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder)
|
||||
{
|
||||
builder.OpenElement(0, "input");
|
||||
builder.AddAttribute(1, "onfocus", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIFocusEventArgs>(this, "alert(\"Test\");"));
|
||||
builder.CloseElement();
|
||||
builder.AddMarkupContent(0, "<input onfocus=\"alert(\"Test\");\">");
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,9 +7,4 @@ Document -
|
|||
UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [35] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [14] x:\dir\subdir\Test\TestComponent.cshtml) - onfocus=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIFocusEventArgs>(this,
|
||||
IntermediateToken - - CSharp - "alert(\"Test\");"
|
||||
IntermediateToken - - CSharp - )
|
||||
MarkupBlock - - <input onfocus="alert("Test");">
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace Test
|
|||
builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
OnClick
|
||||
OnClick
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ Document -
|
|||
UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (18:0,18 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - - CSharp - )
|
||||
CSharpCode - (38:1,7 [44] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (38:1,7 [44] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(UIEventArgs e) {\n }\n
|
||||
CSharpCode - (37:1,7 [44] 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
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
Source Location: (38:1,7 [44] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (37:1,7 [44] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
void OnClick(UIEventArgs e) {
|
||||
}
|
||||
|
|
||||
Generated Location: (1044:30,7 [44] )
|
||||
Generated Location: (1043:30,7 [44] )
|
||||
|
|
||||
void OnClick(UIEventArgs e) {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace Test
|
|||
builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
OnClick
|
||||
OnClick
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ Document -
|
|||
UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (18:0,18 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - - CSharp - )
|
||||
CSharpCode - (38:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (38:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(UIMouseEventArgs e) {\n }\n
|
||||
CSharpCode - (37:1,7 [49] 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
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
Source Location: (38:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (37:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
void OnClick(UIMouseEventArgs e) {
|
||||
}
|
||||
|
|
||||
Generated Location: (1044:30,7 [49] )
|
||||
Generated Location: (1043:30,7 [49] )
|
||||
|
|
||||
void OnClick(UIMouseEventArgs e) {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace Test
|
|||
builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
x => { }
|
||||
x => { }
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ Document -
|
|||
UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [32] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [11] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (0:0,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (19:0,19 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - x => { }
|
||||
IntermediateToken - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - x => { }
|
||||
IntermediateToken - - CSharp - )
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace Test
|
|||
builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
OnClick
|
||||
OnClick
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ Document -
|
|||
UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (18:0,18 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - - CSharp - )
|
||||
CSharpCode - (38:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (38:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick(UIMouseEventArgs e) {\n }\n
|
||||
CSharpCode - (37:1,7 [49] 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
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
Source Location: (38:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (37:1,7 [49] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
void OnClick(UIMouseEventArgs e) {
|
||||
}
|
||||
|
|
||||
Generated Location: (1044:30,7 [49] )
|
||||
Generated Location: (1043:30,7 [49] )
|
||||
|
|
||||
void OnClick(UIMouseEventArgs e) {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace Test
|
|||
builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
x => { }
|
||||
x => { }
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ Document -
|
|||
UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [32] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [11] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (0:0,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (19:0,19 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - x => { }
|
||||
IntermediateToken - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - x => { }
|
||||
IntermediateToken - - CSharp - )
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace Test
|
|||
builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
OnClick
|
||||
OnClick
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ Document -
|
|||
UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [8] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (0:0,0 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (18:0,18 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - (17:0,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick
|
||||
IntermediateToken - - CSharp - )
|
||||
CSharpCode - (38:1,7 [31] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (38:1,7 [31] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n void OnClick() {\n }\n
|
||||
CSharpCode - (37:1,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
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
Source Location: (38:1,7 [31] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (37:1,7 [31] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
void OnClick() {
|
||||
}
|
||||
|
|
||||
Generated Location: (1044:30,7 [31] )
|
||||
Generated Location: (1043:30,7 [31] )
|
||||
|
|
||||
void OnClick() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace Test
|
|||
builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
() => { }
|
||||
() => { }
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ Document -
|
|||
UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [33] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [12] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
MarkupElement - (0:0,0 [30] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [9] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (19:0,19 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => { }
|
||||
IntermediateToken - (17:0,17 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => { }
|
||||
IntermediateToken - - CSharp - )
|
||||
|
|
|
|||
|
|
@ -13,9 +13,7 @@ namespace Test
|
|||
#pragma warning disable 1998
|
||||
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder)
|
||||
{
|
||||
builder.OpenElement(0, "input");
|
||||
builder.AddAttribute(1, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this, "foo"));
|
||||
builder.CloseElement();
|
||||
builder.AddMarkupContent(0, "<input onclick=\"foo\">");
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,9 +7,4 @@ Document -
|
|||
UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [24] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (17:0,17 [3] x:\dir\subdir\Test\TestComponent.cshtml) - onclick=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - - CSharp - "foo"
|
||||
IntermediateToken - - CSharp - )
|
||||
MarkupBlock - - <input onclick="foo">
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace Test
|
|||
builder.AddAttribute(1, "onmouseover", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
OnComponentHover
|
||||
OnComponentHover
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
@ -26,7 +26,7 @@ namespace Test
|
|||
builder.AddAttribute(2, "style", "background:" + " " + (
|
||||
#nullable restore
|
||||
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
ParentBgColor
|
||||
ParentBgColor
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
|||
|
|
@ -7,18 +7,18 @@ Document -
|
|||
UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [74] x:\dir\subdir\Test\TestComponent.cshtml) - p
|
||||
HtmlAttribute - (17:0,17 [17] x:\dir\subdir\Test\TestComponent.cshtml) - onmouseover=" - "
|
||||
MarkupElement - (0:0,0 [73] x:\dir\subdir\Test\TestComponent.cshtml) - p
|
||||
HtmlAttribute - (17:0,17 [16] x:\dir\subdir\Test\TestComponent.cshtml) - onmouseover=" - "
|
||||
CSharpExpressionAttributeValue - -
|
||||
IntermediateToken - - CSharp - Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.UIMouseEventArgs>(this,
|
||||
IntermediateToken - (18:0,18 [16] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnComponentHover
|
||||
IntermediateToken - (17:0,17 [16] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnComponentHover
|
||||
IntermediateToken - - CSharp - )
|
||||
HtmlAttribute - - style=" - "
|
||||
HtmlAttributeValue - (43:0,43 [11] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (43:0,43 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Html - background:
|
||||
CSharpExpressionAttributeValue - (54:0,54 [15] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (56:0,56 [13] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentBgColor
|
||||
HtmlAttributeValue - (69:0,69 [1] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (69:0,69 [1] x:\dir\subdir\Test\TestComponent.cshtml) - Html - ;
|
||||
CSharpCode - (83:1,7 [132] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (83:1,7 [132] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentBgColor { get; set; } = "#FFFFFF";\n\n public void OnComponentHover(UIMouseEventArgs e)\n {\n }\n
|
||||
HtmlAttributeValue - (42:0,42 [11] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (42:0,42 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Html - background:
|
||||
CSharpExpressionAttributeValue - (53:0,53 [15] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (55:0,55 [13] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentBgColor
|
||||
HtmlAttributeValue - (68:0,68 [1] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (68:0,68 [1] x:\dir\subdir\Test\TestComponent.cshtml) - Html - ;
|
||||
CSharpCode - (82:1,7 [132] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (82:1,7 [132] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentBgColor { get; set; } = "#FFFFFF";\n\n public void OnComponentHover(UIMouseEventArgs e)\n {\n }\n
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
Source Location: (83:1,7 [132] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (82:1,7 [132] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public string ParentBgColor { get; set; } = "#FFFFFF";
|
||||
|
||||
|
|
@ -6,7 +6,7 @@ Source Location: (83:1,7 [132] x:\dir\subdir\Test\TestComponent.cshtml)
|
|||
{
|
||||
}
|
||||
|
|
||||
Generated Location: (1337:39,7 [132] )
|
||||
Generated Location: (1335:39,7 [132] )
|
||||
|
|
||||
public string ParentBgColor { get; set; } = "#FFFFFF";
|
||||
|
||||
|
|
|
|||
|
|
@ -103,15 +103,16 @@ namespace Microsoft.CodeAnalysis.Razor
|
|||
{
|
||||
var entry = data[i];
|
||||
var attributeName = "@" + entry.Attribute;
|
||||
var eventArgType = entry.EventArgsType.ToDisplayString();
|
||||
|
||||
var builder = TagHelperDescriptorBuilder.Create(ComponentMetadata.EventHandler.TagHelperKind, entry.Attribute, ComponentsApi.AssemblyName);
|
||||
builder.Documentation = string.Format(
|
||||
ComponentResources.EventHandlerTagHelper_Documentation,
|
||||
attributeName,
|
||||
entry.EventArgsType.ToDisplayString());
|
||||
eventArgType);
|
||||
|
||||
builder.Metadata.Add(ComponentMetadata.SpecialKindKey, ComponentMetadata.EventHandler.TagHelperKind);
|
||||
builder.Metadata.Add(ComponentMetadata.EventHandler.EventArgsType, entry.EventArgsType.ToDisplayString());
|
||||
builder.Metadata.Add(ComponentMetadata.EventHandler.EventArgsType, eventArgType);
|
||||
builder.Metadata.Add(TagHelperMetadata.Common.ClassifyAttributesOnly, bool.TrueString);
|
||||
builder.Metadata[TagHelperMetadata.Runtime.Name] = ComponentMetadata.EventHandler.RuntimeName;
|
||||
|
||||
|
|
@ -136,12 +137,12 @@ namespace Microsoft.CodeAnalysis.Razor
|
|||
a.Documentation = string.Format(
|
||||
ComponentResources.EventHandlerTagHelper_Documentation,
|
||||
attributeName,
|
||||
entry.EventArgsType.ToDisplayString());
|
||||
eventArgType);
|
||||
|
||||
a.Name = attributeName;
|
||||
|
||||
// Use a string here so that we get HTML context by default.
|
||||
a.TypeName = typeof(string).FullName;
|
||||
// We want event handler directive attributes to default to C# context.
|
||||
a.TypeName = $"Microsoft.AspNetCore.Components.EventCallback<{eventArgType}>";
|
||||
|
||||
// But make this weakly typed (don't type check) - delegates have their own type-checking
|
||||
// logic that we don't want to interfere with.
|
||||
|
|
|
|||
|
|
@ -111,11 +111,11 @@ namespace Test
|
|||
|
||||
Assert.Equal("@onclick", attribute.Name);
|
||||
Assert.Equal("onclick", attribute.GetPropertyName());
|
||||
Assert.Equal("string Test.EventHandlers.onclick", attribute.DisplayName);
|
||||
Assert.Equal("Microsoft.AspNetCore.Components.EventCallback<System.Action<Microsoft.AspNetCore.Components.UIMouseEventArgs>> Test.EventHandlers.onclick", attribute.DisplayName);
|
||||
|
||||
// Defined from the property type
|
||||
Assert.Equal("System.String", attribute.TypeName);
|
||||
Assert.True(attribute.IsStringProperty);
|
||||
Assert.Equal("Microsoft.AspNetCore.Components.EventCallback<System.Action<Microsoft.AspNetCore.Components.UIMouseEventArgs>>", attribute.TypeName);
|
||||
Assert.False(attribute.IsStringProperty);
|
||||
Assert.False(attribute.IsBooleanProperty);
|
||||
Assert.False(attribute.IsEnum);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue