Merge branch 'release/3.1' into merge/release/3.0-to-release/3.1\n\nCommit migrated from f9ac723b29
This commit is contained in:
commit
dcc4084af8
|
|
@ -36,4 +36,4 @@
|
|||
|
||||
<Copy SourceFiles="@(MvcShim)" DestinationFolder="$(OutputPath)" />
|
||||
</Target>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
<TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
|
||||
<PreserveCompilationContext>true</PreserveCompilationContext>
|
||||
<DefaultItemExcludes>$(DefaultItemExcludes);TestFiles\**</DefaultItemExcludes>
|
||||
|
||||
|
||||
<!-- Work around https://github.com/microsoft/msbuild/issues/4740 -->
|
||||
<EmbeddedResourceUseDependentUponConvention>false</EmbeddedResourceUseDependentUponConvention>
|
||||
</PropertyGroup>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace __GeneratedComponent
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class AspNetCore_d3c3d6059615673cb46fc4974164d61eabadb890 : Microsoft.AspNetCore.Components.ComponentBase, IDisposable
|
||||
public partial class AspNetCore_d3c3d6059615673cb46fc4974164d61eabadb890 : Microsoft.AspNetCore.Components.ComponentBase, IDisposable
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (51:2,1 [17] ) - System.Linq
|
||||
UsingDirective - (71:3,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (102:4,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - AspNetCore_d3c3d6059615673cb46fc4974164d61eabadb890 - Microsoft.AspNetCore.Components.ComponentBase - IDisposable
|
||||
ClassDeclaration - - public partial - AspNetCore_d3c3d6059615673cb46fc4974164d61eabadb890 - Microsoft.AspNetCore.Components.ComponentBase - IDisposable
|
||||
DesignTimeDirective -
|
||||
DirectiveToken - (12:0,12 [11] BasicComponent.cshtml) - IDisposable
|
||||
CSharpCode -
|
||||
|
|
|
|||
|
|
@ -1,23 +1,23 @@
|
|||
Source Location: (12:0,12 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml)
|
||||
|IDisposable|
|
||||
Generated Location: (641:17,0 [11] )
|
||||
Generated Location: (649:17,0 [11] )
|
||||
|IDisposable|
|
||||
|
||||
Source Location: (38:1,13 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml)
|
||||
|this.ToString()|
|
||||
Generated Location: (1240:35,13 [15] )
|
||||
Generated Location: (1248:35,13 [15] )
|
||||
|this.ToString()|
|
||||
|
||||
Source Location: (79:3,5 [29] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml)
|
||||
|string.Format("{0}", "Hello")|
|
||||
Generated Location: (1437:43,6 [29] )
|
||||
Generated Location: (1445:43,6 [29] )
|
||||
|string.Format("{0}", "Hello")|
|
||||
|
||||
Source Location: (132:6,12 [37] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml)
|
||||
|
|
||||
void IDisposable.Dispose(){ }
|
||||
|
|
||||
Generated Location: (1689:52,12 [37] )
|
||||
Generated Location: (1697:52,12 [37] )
|
||||
|
|
||||
void IDisposable.Dispose(){ }
|
||||
|
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ namespace __GeneratedComponent
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class AspNetCore_d3c3d6059615673cb46fc4974164d61eabadb890 : Microsoft.AspNetCore.Components.ComponentBase, IDisposable
|
||||
public partial class AspNetCore_d3c3d6059615673cb46fc4974164d61eabadb890 : Microsoft.AspNetCore.Components.ComponentBase, IDisposable
|
||||
{
|
||||
#pragma warning disable 1998
|
||||
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (51:2,1 [19] ) - System.Linq
|
||||
UsingDirective - (71:3,1 [30] ) - System.Threading.Tasks
|
||||
UsingDirective - (102:4,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - AspNetCore_d3c3d6059615673cb46fc4974164d61eabadb890 - Microsoft.AspNetCore.Components.ComponentBase - IDisposable
|
||||
ClassDeclaration - - public partial - AspNetCore_d3c3d6059615673cb46fc4974164d61eabadb890 - Microsoft.AspNetCore.Components.ComponentBase - IDisposable
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (25:1,0 [91] BasicComponent.cshtml) - div
|
||||
HtmlAttribute - (29:1,4 [25] BasicComponent.cshtml) - class=" - "
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
|
|||
@class.ClassName = computedClass;
|
||||
@class.Modifiers.Clear();
|
||||
@class.Modifiers.Add("public");
|
||||
@class.Modifiers.Add("partial");
|
||||
|
||||
if (FileKinds.IsComponentImport(codeDocument.GetFileKind()))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -34,7 +34,13 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
|
|||
{
|
||||
var reference = references[i];
|
||||
var node = (TagHelperIntermediateNode)reference.Node;
|
||||
if (node.TagHelpers.Any(t => t.IsChildContentTagHelper()))
|
||||
{
|
||||
// This is a child content tag helper. This will be rewritten when we visit its parent.
|
||||
continue;
|
||||
}
|
||||
|
||||
// The element didn't match any child content descriptors. Look for any matching component descriptors.
|
||||
var count = 0;
|
||||
for (var j = 0; j < node.TagHelpers.Count; j++)
|
||||
{
|
||||
|
|
@ -42,7 +48,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
|
|||
{
|
||||
// Only allow a single component tag helper per element. If there are multiple, we'll just consider
|
||||
// the first one and ignore the others.
|
||||
if (count++ > 1)
|
||||
if (++count > 1)
|
||||
{
|
||||
node.Diagnostics.Add(ComponentDiagnosticFactory.Create_MultipleComponents(node.Source, node.TagName, node.TagHelpers));
|
||||
break;
|
||||
|
|
@ -54,10 +60,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
|
|||
{
|
||||
reference.Replace(RewriteAsComponent(node, node.TagHelpers.First(t => t.IsComponentTagHelper())));
|
||||
}
|
||||
else if (node.TagHelpers.Any(t => t.IsChildContentTagHelper()))
|
||||
{
|
||||
// Ignore, this will be handled when we rewrite the parent.
|
||||
}
|
||||
else
|
||||
{
|
||||
reference.Replace(RewriteAsElement(node));
|
||||
|
|
|
|||
|
|
@ -1149,8 +1149,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
|
|||
var nameContent = string.Concat(name.LiteralTokens.Nodes.Select(s => s.Content));
|
||||
if (IsConditionalAttributeName(nameContent))
|
||||
{
|
||||
SpanContext.ChunkGenerator = SpanChunkGenerator.Null; // The block chunk generator will render the prefix
|
||||
|
||||
// We now have the value prefix which is usually whitespace and/or a quote
|
||||
valuePrefix = OutputAsMarkupLiteral();
|
||||
|
||||
|
|
@ -1178,8 +1176,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
|
|||
if (quote != SyntaxKind.Marker && At(quote))
|
||||
{
|
||||
AcceptAndMoveNext();
|
||||
// Again, block chunk generator will render the suffix
|
||||
SpanContext.ChunkGenerator = SpanChunkGenerator.Null;
|
||||
valueSuffix = OutputAsMarkupLiteral();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.AspNetCore.Razor.Language.Components;
|
||||
using Microsoft.AspNetCore.Razor.Language.Syntax;
|
||||
|
||||
namespace Microsoft.AspNetCore.Razor.Language.Legacy
|
||||
|
|
@ -11,11 +12,11 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
|
|||
internal static class TagHelperBlockRewriter
|
||||
{
|
||||
public static TagMode GetTagMode(
|
||||
MarkupStartTagSyntax tagBlock,
|
||||
TagHelperBinding bindingResult,
|
||||
ErrorSink errorSink)
|
||||
MarkupStartTagSyntax startTag,
|
||||
MarkupEndTagSyntax endTag,
|
||||
TagHelperBinding bindingResult)
|
||||
{
|
||||
var childSpan = tagBlock.GetLastToken()?.Parent;
|
||||
var childSpan = startTag.GetLastToken()?.Parent;
|
||||
|
||||
// Self-closing tags are always valid despite descriptors[X].TagStructure.
|
||||
if (childSpan?.GetContent().EndsWith("/>", StringComparison.Ordinal) ?? false)
|
||||
|
|
@ -23,6 +24,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
|
|||
return TagMode.SelfClosing;
|
||||
}
|
||||
|
||||
var hasDirectiveAttribute = false;
|
||||
foreach (var descriptor in bindingResult.Descriptors)
|
||||
{
|
||||
var boundRules = bindingResult.Mappings[descriptor];
|
||||
|
|
@ -32,6 +34,21 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
|
|||
{
|
||||
return TagMode.StartTagOnly;
|
||||
}
|
||||
|
||||
// Directive attribute will tolerate forms that don't work for tag helpers. For instance:
|
||||
//
|
||||
// <input @onclick="..."> vs <input onclick="..." />
|
||||
//
|
||||
// We don't want this to become an error just because you added a directive attribute.
|
||||
if (descriptor.IsAnyComponentDocumentTagHelper() && !descriptor.IsComponentOrChildContentTagHelper())
|
||||
{
|
||||
hasDirectiveAttribute = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (hasDirectiveAttribute && startTag.IsVoidElement() && endTag == null)
|
||||
{
|
||||
return TagMode.StartTagOnly;
|
||||
}
|
||||
|
||||
return TagMode.StartTagAndEndTag;
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
|
|||
if (startTag != null)
|
||||
{
|
||||
var tagName = startTag.GetTagNameWithOptionalBang();
|
||||
if (TryRewriteTagHelperStart(startTag, out tagHelperStart, out tagHelperInfo))
|
||||
if (TryRewriteTagHelperStart(startTag, node.EndTag, out tagHelperStart, out tagHelperInfo))
|
||||
{
|
||||
// This is a tag helper.
|
||||
if (tagHelperInfo.TagMode == TagMode.SelfClosing || tagHelperInfo.TagMode == TagMode.StartTagOnly)
|
||||
|
|
@ -215,7 +215,11 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
|
|||
return base.VisitMarkupTextLiteral(node);
|
||||
}
|
||||
|
||||
private bool TryRewriteTagHelperStart(MarkupStartTagSyntax startTag, out MarkupTagHelperStartTagSyntax rewritten, out TagHelperInfo tagHelperInfo)
|
||||
private bool TryRewriteTagHelperStart(
|
||||
MarkupStartTagSyntax startTag,
|
||||
MarkupEndTagSyntax endTag,
|
||||
out MarkupTagHelperStartTagSyntax rewritten,
|
||||
out TagHelperInfo tagHelperInfo)
|
||||
{
|
||||
rewritten = null;
|
||||
tagHelperInfo = null;
|
||||
|
|
@ -278,7 +282,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
|
|||
_errorSink,
|
||||
_source);
|
||||
|
||||
var tagMode = TagHelperBlockRewriter.GetTagMode(startTag, tagHelperBinding, _errorSink);
|
||||
var tagMode = TagHelperBlockRewriter.GetTagMode(startTag, endTag, tagHelperBinding);
|
||||
tagHelperInfo = new TagHelperInfo(tagName, tagMode, tagHelperBinding);
|
||||
rewritten = rewrittenStartTag;
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
|
|||
|
||||
// Assert
|
||||
Assert.Equal($"{ComponentsApi.ComponentBase.FullTypeName}", visitor.Class.BaseType);
|
||||
Assert.Equal(new[] { "public", }, visitor.Class.Modifiers);
|
||||
Assert.Equal(new[] { "public", "partial" }, visitor.Class.Modifiers);
|
||||
Assert.Equal("Test", visitor.Class.ClassName);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ namespace Test
|
|||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
<MyComponent
|
||||
<MyComponent
|
||||
IntProperty=""123""
|
||||
BoolProperty=""true""
|
||||
StringProperty=""My string""
|
||||
|
|
@ -317,7 +317,7 @@ namespace Test
|
|||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
@{
|
||||
@{
|
||||
var myValue = ""Expression value"";
|
||||
}
|
||||
<elem data-abc=""Literal value"" data-def=""@myValue"" />");
|
||||
|
|
@ -335,7 +335,7 @@ namespace Test
|
|||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
@{
|
||||
@{
|
||||
var myValue = ""Expression value"";
|
||||
}
|
||||
<elem data-abc=""Literal value"" data-def=""@(myValue)"" />");
|
||||
|
|
@ -353,7 +353,7 @@ namespace Test
|
|||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
@{
|
||||
@{
|
||||
var myValue = ""Expression value"";
|
||||
}
|
||||
<div>@myValue <!-- @myValue --> </div>");
|
||||
|
|
@ -471,7 +471,7 @@ namespace Test
|
|||
var generated = CompileToCSharp(@"
|
||||
<InputText @bind-Value=""person.Name"" />
|
||||
|
||||
@functions
|
||||
@functions
|
||||
{
|
||||
Person person = new Person();
|
||||
}");
|
||||
|
|
@ -896,6 +896,37 @@ namespace Test
|
|||
CompileToAssembly(generated);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void BindToElement_WithoutCloseTag()
|
||||
{
|
||||
// Arrange
|
||||
AdditionalSyntaxTrees.Add(Parse(@"
|
||||
using System;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace Test
|
||||
{
|
||||
[BindElement(""div"", null, ""myvalue"", ""myevent"")]
|
||||
public static class BindAttributes
|
||||
{
|
||||
}
|
||||
}"));
|
||||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
<div>
|
||||
<input @bind=""@ParentValue"">
|
||||
</div>
|
||||
@code {
|
||||
public string ParentValue { get; set; } = ""hi"";
|
||||
}");
|
||||
|
||||
// Assert
|
||||
AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
|
||||
AssertCSharpDocumentMatchesBaseline(generated.CodeDocument);
|
||||
CompileToAssembly(generated);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void BindToElement_WithStringAttribute_WritesAttributes()
|
||||
{
|
||||
|
|
@ -1698,6 +1729,44 @@ namespace Test
|
|||
CompileToAssembly(generated);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void MultipleChildContentMatchingComponentName()
|
||||
{
|
||||
// Arrange
|
||||
AdditionalSyntaxTrees.Add(Parse(@"
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace Test
|
||||
{
|
||||
public class MyComponent : ComponentBase
|
||||
{
|
||||
[Parameter]
|
||||
public RenderFragment Header { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment Footer { get; set; }
|
||||
}
|
||||
|
||||
public class Header : ComponentBase
|
||||
{
|
||||
}
|
||||
}
|
||||
"));
|
||||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
<MyComponent>
|
||||
<Header>Hi!</Header>
|
||||
<Footer>Bye!</Footer>
|
||||
</MyComponent>
|
||||
<Header>Hello!</Header>");
|
||||
|
||||
// Assert
|
||||
AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
|
||||
AssertCSharpDocumentMatchesBaseline(generated.CodeDocument);
|
||||
CompileToAssembly(generated);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Directives
|
||||
|
|
@ -1804,7 +1873,7 @@ namespace Test3
|
|||
// Assert
|
||||
AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
|
||||
AssertCSharpDocumentMatchesBaseline(generated.CodeDocument);
|
||||
var result = CompileToAssembly(generated, throwOnFailure: !DesignTime);
|
||||
var result = CompileToAssembly(generated, throwOnFailure: false);
|
||||
|
||||
if (DesignTime)
|
||||
{
|
||||
|
|
@ -2570,6 +2639,28 @@ namespace Test
|
|||
CompileToAssembly(generated);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void EventHandler_OnElement_WithoutCloseTag()
|
||||
{
|
||||
// Arrange
|
||||
|
||||
// Act
|
||||
var generated = CompileToCSharp(@"
|
||||
@using Microsoft.AspNetCore.Components.Web
|
||||
<div>
|
||||
<input @onclick=""OnClick"">
|
||||
</div>
|
||||
@code {
|
||||
void OnClick() {
|
||||
}
|
||||
}");
|
||||
|
||||
// Assert
|
||||
AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
|
||||
AssertCSharpDocumentMatchesBaseline(generated.CodeDocument);
|
||||
CompileToAssembly(generated);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void EventHandler_OnElement_WithEventArgsMethodGroup()
|
||||
{
|
||||
|
|
@ -2621,7 +2712,7 @@ namespace Test
|
|||
@using Microsoft.AspNetCore.Components.Web
|
||||
<input @onclick=""OnClick"" />
|
||||
@code {
|
||||
Task OnClick()
|
||||
Task OnClick()
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
|
@ -2644,7 +2735,7 @@ namespace Test
|
|||
@using Microsoft.AspNetCore.Components.Web
|
||||
<input @onclick=""OnClick"" />
|
||||
@code {
|
||||
Task OnClick(MouseEventArgs e)
|
||||
Task OnClick(MouseEventArgs e)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
|
@ -4262,7 +4353,7 @@ namespace Test
|
|||
{
|
||||
// Arrange/Act
|
||||
var generated = CompileToCSharp(@"
|
||||
|
||||
|
||||
@(""My value"")
|
||||
|
||||
<h1>Hello</h1>");
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 1998
|
||||
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
|
||||
|
|
|
|||
|
|
@ -233,6 +233,57 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
|
|||
EvaluateData(descriptors, "<input></input>");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AllowsCompatibleTagStructures_DirectiveAttribute_SelfClosing()
|
||||
{
|
||||
// Arrange
|
||||
var descriptors = new TagHelperDescriptor[]
|
||||
{
|
||||
TagHelperDescriptorBuilder.Create("InputTagHelper1", "SomeAssembly")
|
||||
.TagMatchingRuleDescriptor(rule =>
|
||||
{
|
||||
rule
|
||||
.RequireTagName("*")
|
||||
.RequireAttributeDescriptor(b =>
|
||||
{
|
||||
b.Name = "@onclick";
|
||||
b.Metadata.Add(ComponentMetadata.Common.DirectiveAttribute, bool.TrueString);
|
||||
});
|
||||
})
|
||||
.AddMetadata(ComponentMetadata.SpecialKindKey, ComponentMetadata.EventHandler.TagHelperKind)
|
||||
.Build(),
|
||||
};
|
||||
|
||||
// Act & Assert
|
||||
EvaluateData(descriptors, "<input @onclick=\"@test\"/>");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AllowsCompatibleTagStructures_DirectiveAttribute_Void()
|
||||
{
|
||||
// Arrange
|
||||
var descriptors = new TagHelperDescriptor[]
|
||||
{
|
||||
TagHelperDescriptorBuilder.Create("InputTagHelper1", "SomeAssembly")
|
||||
.TagMatchingRuleDescriptor(rule =>
|
||||
{
|
||||
rule
|
||||
.RequireTagName("*")
|
||||
.RequireAttributeDescriptor(b =>
|
||||
{
|
||||
b.Name = "@onclick";
|
||||
b.Metadata.Add(ComponentMetadata.Common.DirectiveAttribute, bool.TrueString);
|
||||
});
|
||||
|
||||
})
|
||||
.AddMetadata(ComponentMetadata.SpecialKindKey, ComponentMetadata.EventHandler.TagHelperKind)
|
||||
.Build(),
|
||||
};
|
||||
|
||||
// Act & Assert
|
||||
EvaluateData(descriptors, "<input @onclick=\"@test\">");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CreatesErrorForMalformedTagHelpersWithAttributes1()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,4 +2,8 @@
|
|||
<script type="text/javascript" @{} ></script @foo >
|
||||
}
|
||||
|
||||
<script type="text/html">
|
||||
<%var x = window == null%>
|
||||
</script>
|
||||
|
||||
<script></script @
|
||||
|
|
@ -1 +1 @@
|
|||
TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml(5,11): Error RZ1024: End of file or an unexpected character was reached before the "script" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("<br />") or have matching end tags ("<p>Hello</p>"). If you intended to display a "<" character, use the "<" HTML entity.
|
||||
TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml(9,11): Error RZ1024: End of file or an unexpected character was reached before the "script" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("<br />") or have matching end tags ("<p>Hello</p>"). If you intended to display a "<" character, use the "<" HTML entity.
|
||||
|
|
|
|||
|
|
@ -23,8 +23,21 @@ Document -
|
|||
IntermediateToken - (44:1,40 [15] Tags.cshtml) - Html - </script @foo >
|
||||
CSharpCode - (59:1,55 [2] Tags.cshtml)
|
||||
IntermediateToken - (59:1,55 [2] Tags.cshtml) - CSharp - \n
|
||||
HtmlContent - (64:3,0 [20] Tags.cshtml)
|
||||
HtmlContent - (64:3,0 [38] Tags.cshtml)
|
||||
IntermediateToken - (64:3,0 [2] Tags.cshtml) - Html - \n
|
||||
IntermediateToken - (66:4,0 [7] Tags.cshtml) - Html - <script
|
||||
IntermediateToken - (73:4,7 [1] Tags.cshtml) - Html - >
|
||||
IntermediateToken - (74:4,8 [10] Tags.cshtml) - Html - </script @
|
||||
IntermediateToken - (73:4,7 [17] Tags.cshtml) - Html - type="text/html"
|
||||
IntermediateToken - (90:4,24 [1] Tags.cshtml) - Html - >
|
||||
IntermediateToken - (91:4,25 [6] Tags.cshtml) - Html - \n
|
||||
IntermediateToken - (97:5,4 [5] Tags.cshtml) - Html - <%var
|
||||
HtmlAttribute - (102:5,9 [4] Tags.cshtml) - x = -
|
||||
HtmlAttribute - (106:5,13 [9] Tags.cshtml) - window = -
|
||||
HtmlContent - (115:5,22 [41] Tags.cshtml)
|
||||
IntermediateToken - (115:5,22 [7] Tags.cshtml) - Html - = null%
|
||||
IntermediateToken - (122:5,29 [1] Tags.cshtml) - Html - >
|
||||
IntermediateToken - (123:5,30 [2] Tags.cshtml) - Html - \n
|
||||
IntermediateToken - (125:6,0 [9] Tags.cshtml) - Html - </script>
|
||||
IntermediateToken - (134:6,9 [4] Tags.cshtml) - Html - \n\n
|
||||
IntermediateToken - (138:8,0 [7] Tags.cshtml) - Html - <script
|
||||
IntermediateToken - (145:8,7 [1] Tags.cshtml) - Html - >
|
||||
IntermediateToken - (146:8,8 [10] Tags.cshtml) - Html - </script @
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "42fb758ed87c3709cfb3f3aeff7a9cf8d242b74c"
|
||||
#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "75edd5542ddb6f78ab6a4d309bb3525a99ecfa55"
|
||||
// <auto-generated/>
|
||||
#pragma warning disable 1591
|
||||
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Tags_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml")]
|
||||
namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles
|
||||
{
|
||||
#line hidden
|
||||
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"42fb758ed87c3709cfb3f3aeff7a9cf8d242b74c", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml")]
|
||||
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"75edd5542ddb6f78ab6a4d309bb3525a99ecfa55", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml")]
|
||||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Tags_Runtime
|
||||
{
|
||||
#pragma warning disable 1998
|
||||
|
|
@ -13,7 +13,12 @@ namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles
|
|||
{
|
||||
WriteLiteral(" <script type=\"text/javascript\" ");
|
||||
WriteLiteral(" ></script @foo >\r\n");
|
||||
WriteLiteral("\r\n<script></script @");
|
||||
WriteLiteral("\r\n<script type=\"text/html\">\r\n <%var");
|
||||
BeginWriteAttribute("x", " x =", 102, "", 106, 0);
|
||||
EndWriteAttribute();
|
||||
BeginWriteAttribute("window", " window =", 106, "", 115, 0);
|
||||
EndWriteAttribute();
|
||||
WriteLiteral("= null%>\r\n</script>\r\n\r\n<script></script @");
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml(5,11): Error RZ1024: End of file or an unexpected character was reached before the "script" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("<br />") or have matching end tags ("<p>Hello</p>"). If you intended to display a "<" character, use the "<" HTML entity.
|
||||
TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml(9,11): Error RZ1024: End of file or an unexpected character was reached before the "script" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("<br />") or have matching end tags ("<p>Hello</p>"). If you intended to display a "<" character, use the "<" HTML entity.
|
||||
|
|
|
|||
|
|
@ -20,8 +20,21 @@ Document -
|
|||
IntermediateToken - (59:1,55 [2] Tags.cshtml) - Html - \n
|
||||
CSharpCode - (61:2,0 [0] Tags.cshtml)
|
||||
IntermediateToken - (61:2,0 [0] Tags.cshtml) - CSharp -
|
||||
HtmlContent - (64:3,0 [20] Tags.cshtml)
|
||||
HtmlContent - (64:3,0 [38] Tags.cshtml)
|
||||
IntermediateToken - (64:3,0 [2] Tags.cshtml) - Html - \n
|
||||
IntermediateToken - (66:4,0 [7] Tags.cshtml) - Html - <script
|
||||
IntermediateToken - (73:4,7 [1] Tags.cshtml) - Html - >
|
||||
IntermediateToken - (74:4,8 [10] Tags.cshtml) - Html - </script @
|
||||
IntermediateToken - (73:4,7 [17] Tags.cshtml) - Html - type="text/html"
|
||||
IntermediateToken - (90:4,24 [1] Tags.cshtml) - Html - >
|
||||
IntermediateToken - (91:4,25 [6] Tags.cshtml) - Html - \n
|
||||
IntermediateToken - (97:5,4 [5] Tags.cshtml) - Html - <%var
|
||||
HtmlAttribute - (102:5,9 [4] Tags.cshtml) - x = -
|
||||
HtmlAttribute - (106:5,13 [9] Tags.cshtml) - window = -
|
||||
HtmlContent - (115:5,22 [41] Tags.cshtml)
|
||||
IntermediateToken - (115:5,22 [7] Tags.cshtml) - Html - = null%
|
||||
IntermediateToken - (122:5,29 [1] Tags.cshtml) - Html - >
|
||||
IntermediateToken - (123:5,30 [2] Tags.cshtml) - Html - \n
|
||||
IntermediateToken - (125:6,0 [9] Tags.cshtml) - Html - </script>
|
||||
IntermediateToken - (134:6,9 [4] Tags.cshtml) - Html - \n\n
|
||||
IntermediateToken - (138:8,0 [7] Tags.cshtml) - Html - <script
|
||||
IntermediateToken - (145:8,7 [1] Tags.cshtml) - Html - >
|
||||
IntermediateToken - (146:8,8 [10] Tags.cshtml) - Html - </script @
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ using Microsoft.AspNetCore.Components.Web;
|
|||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Document -
|
|||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
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 partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -10,6 +10,6 @@ Generated Location: (436:18,0 [41] )
|
|||
|
||||
Source Location: (94:2,19 [33] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|async (e) => await Task.Delay(10)|
|
||||
Generated Location: (1282:38,19 [33] )
|
||||
Generated Location: (1290:38,19 [33] )
|
||||
|async (e) => await Task.Delay(10)|
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ using Microsoft.AspNetCore.Components.Web;
|
|||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
@ -47,7 +47,7 @@ using Microsoft.AspNetCore.Components.Web;
|
|||
#nullable restore
|
||||
#line 4 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
|
||||
Task OnClick(MouseEventArgs e)
|
||||
Task OnClick(MouseEventArgs e)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Document -
|
|||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
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 partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
@ -27,5 +27,5 @@ Document -
|
|||
IntermediateToken - - CSharp - )
|
||||
HtmlContent - (103:2,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (103:2,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (112:3,7 [89] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (112:3,7 [89] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick(MouseEventArgs e) \n {\n return Task.CompletedTask;\n }\n
|
||||
CSharpCode - (112:3,7 [88] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (112:3,7 [88] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick(MouseEventArgs e)\n {\n return Task.CompletedTask;\n }\n
|
||||
|
|
|
|||
|
|
@ -10,19 +10,19 @@ Generated Location: (436:18,0 [41] )
|
|||
|
||||
Source Location: (92:2,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|OnClick|
|
||||
Generated Location: (1280:38,17 [7] )
|
||||
Generated Location: (1288:38,17 [7] )
|
||||
|OnClick|
|
||||
|
||||
Source Location: (112:3,7 [89] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (112:3,7 [88] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
Task OnClick(MouseEventArgs e)
|
||||
Task OnClick(MouseEventArgs e)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
|
||||
Generated Location: (1481:48,7 [89] )
|
||||
Generated Location: (1489:48,7 [88] )
|
||||
|
|
||||
Task OnClick(MouseEventArgs e)
|
||||
Task OnClick(MouseEventArgs e)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ using Microsoft.AspNetCore.Components.Web;
|
|||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Document -
|
|||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
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 partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -10,6 +10,6 @@ Generated Location: (436:18,0 [41] )
|
|||
|
||||
Source Location: (94:2,19 [32] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|async () => await Task.Delay(10)|
|
||||
Generated Location: (1282:38,19 [32] )
|
||||
Generated Location: (1290:38,19 [32] )
|
||||
|async () => await Task.Delay(10)|
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ using Microsoft.AspNetCore.Components.Web;
|
|||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
@ -47,7 +47,7 @@ using Microsoft.AspNetCore.Components.Web;
|
|||
#nullable restore
|
||||
#line 4 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
|
||||
Task OnClick()
|
||||
Task OnClick()
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Document -
|
|||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
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 partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
@ -27,5 +27,5 @@ Document -
|
|||
IntermediateToken - - CSharp - )
|
||||
HtmlContent - (103:2,28 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (103:2,28 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (112:3,7 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (112:3,7 [73] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick() \n {\n return Task.CompletedTask;\n }\n
|
||||
CSharpCode - (112:3,7 [72] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (112:3,7 [72] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick()\n {\n return Task.CompletedTask;\n }\n
|
||||
|
|
|
|||
|
|
@ -10,19 +10,19 @@ Generated Location: (436:18,0 [41] )
|
|||
|
||||
Source Location: (92:2,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|OnClick|
|
||||
Generated Location: (1280:38,17 [7] )
|
||||
Generated Location: (1288:38,17 [7] )
|
||||
|OnClick|
|
||||
|
||||
Source Location: (112:3,7 [73] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (112:3,7 [72] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
Task OnClick()
|
||||
Task OnClick()
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
|
||||
Generated Location: (1481:48,7 [73] )
|
||||
Generated Location: (1489:48,7 [72] )
|
||||
|
|
||||
Task OnClick()
|
||||
Task OnClick()
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (978:25,26 [11] )
|
||||
Generated Location: (986:25,26 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public int ParentValue { get; set; } = 42;
|
||||
|
|
||||
Generated Location: (2059:48,7 [50] )
|
||||
Generated Location: (2067:48,7 [50] )
|
||||
|
|
||||
public int ParentValue { get; set; } = 42;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (969:25,30 [11] )
|
||||
Generated Location: (977:25,30 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public DateTime ParentValue { get; set; } = DateTime.Now;
|
||||
|
|
||||
Generated Location: (1579:43,7 [65] )
|
||||
Generated Location: (1587:43,7 [65] )
|
||||
|
|
||||
public DateTime ParentValue { get; set; } = DateTime.Now;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (978:25,26 [11] )
|
||||
Generated Location: (986:25,26 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public int ParentValue { get; set; } = 42;
|
||||
|
|
||||
Generated Location: (1883:47,7 [50] )
|
||||
Generated Location: (1891:47,7 [50] )
|
||||
|
|
||||
public int ParentValue { get; set; } = 42;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (978:25,26 [11] )
|
||||
Generated Location: (986:25,26 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public string ParentValue { get; set; } = "42";
|
||||
|
|
||||
Generated Location: (1883:47,7 [55] )
|
||||
Generated Location: (1891:47,7 [55] )
|
||||
|
|
||||
public string ParentValue { get; set; } = "42";
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (978:25,26 [11] )
|
||||
Generated Location: (986:25,26 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public int ParentValue { get; set; } = 42;
|
||||
|
|
||||
Generated Location: (1586:47,7 [50] )
|
||||
Generated Location: (1594:47,7 [50] )
|
||||
|
|
||||
public int ParentValue { get; set; } = 42;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (890:25,26 [11] )
|
||||
Generated Location: (898:25,26 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public int ParentValue { get; set; } = 42;
|
||||
|
|
||||
Generated Location: (1562:46,7 [50] )
|
||||
Generated Location: (1570:46,7 [50] )
|
||||
|
|
||||
public int ParentValue { get; set; } = 42;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (978:25,26 [11] )
|
||||
Generated Location: (986:25,26 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public int ParentValue { get; set; } = 42;
|
||||
|
|
||||
Generated Location: (1762:48,7 [50] )
|
||||
Generated Location: (1770:48,7 [50] )
|
||||
|
|
||||
public int ParentValue { get; set; } = 42;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (969:25,30 [11] )
|
||||
Generated Location: (977:25,30 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public DateTime ParentValue { get; set; } = DateTime.Now;
|
||||
|
|
||||
Generated Location: (1399:43,7 [65] )
|
||||
Generated Location: (1407:43,7 [65] )
|
||||
|
|
||||
public DateTime ParentValue { get; set; } = DateTime.Now;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (978:25,26 [11] )
|
||||
Generated Location: (986:25,26 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public int ParentValue { get; set; } = 42;
|
||||
|
|
||||
Generated Location: (1586:47,7 [50] )
|
||||
Generated Location: (1594:47,7 [50] )
|
||||
|
|
||||
public int ParentValue { get; set; } = 42;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (890:25,26 [11] )
|
||||
Generated Location: (898:25,26 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public int ParentValue { get; set; } = 42;
|
||||
|
|
||||
Generated Location: (1562:46,7 [50] )
|
||||
Generated Location: (1570:46,7 [50] )
|
||||
|
|
||||
public int ParentValue { get; set; } = 42;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (978:25,26 [11] )
|
||||
Generated Location: (986:25,26 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public string ParentValue { get; set; } = "42";
|
||||
|
|
||||
Generated Location: (1586:47,7 [55] )
|
||||
Generated Location: (1594:47,7 [55] )
|
||||
|
|
||||
public string ParentValue { get; set; } = "42";
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
@ -23,5 +23,5 @@ Document -
|
|||
IntermediateToken - - CSharp - __value => person.Name = __value
|
||||
HtmlContent - (39:0,39 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (39:0,39 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
|
||||
CSharpCode - (57:3,1 [37] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (57:3,1 [37] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Person person = new Person();\n
|
||||
CSharpCode - (56:3,1 [37] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (56:3,1 [37] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Person person = new Person();\n
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (24:0,24 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|person.Name|
|
||||
Generated Location: (977:25,24 [11] )
|
||||
Generated Location: (985:25,24 [11] )
|
||||
|person.Name|
|
||||
|
||||
Source Location: (57:3,1 [37] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
Source Location: (56:3,1 [37] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
Person person = new Person();
|
||||
|
|
||||
Generated Location: (1578:47,1 [37] )
|
||||
Generated Location: (1586:47,1 [37] )
|
||||
|
|
||||
Person person = new Person();
|
||||
|
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ using System.Globalization;
|
|||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Document -
|
|||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
UsingDirective - (1:0,1 [26] x:\dir\subdir\Test\TestComponent.cshtml) - System.Globalization
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -5,19 +5,19 @@ Generated Location: (320:12,0 [26] )
|
|||
|
||||
Source Location: (48:1,19 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (1090:32,19 [11] )
|
||||
Generated Location: (1098:32,19 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (111:1,82 [28] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|CultureInfo.InvariantCulture|
|
||||
Generated Location: (1330:40,82 [28] )
|
||||
Generated Location: (1338:40,82 [28] )
|
||||
|CultureInfo.InvariantCulture|
|
||||
|
||||
Source Location: (152:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public string ParentValue { get; set; } = "hi";
|
||||
|
|
||||
Generated Location: (1731:51,7 [55] )
|
||||
Generated Location: (1739:51,7 [55] )
|
||||
|
|
||||
public string ParentValue { get; set; } = "hi";
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (33:0,33 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|CurrentDate|
|
||||
Generated Location: (955:25,33 [11] )
|
||||
Generated Location: (963:25,33 [11] )
|
||||
|CurrentDate|
|
||||
|
||||
Source Location: (113:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|
||||
|
|
||||
Generated Location: (1334:36,7 [77] )
|
||||
Generated Location: (1342:36,7 [77] )
|
||||
|
|
||||
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (33:0,33 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (955:25,33 [11] )
|
||||
Generated Location: (963:25,33 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (86:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public int ParentValue { get; set; } = 42;
|
||||
|
|
||||
Generated Location: (1300:36,7 [50] )
|
||||
Generated Location: (1308:36,7 [50] )
|
||||
|
|
||||
public int ParentValue { get; set; } = 42;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ using System.Globalization;
|
|||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Document -
|
|||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
UsingDirective - (1:0,1 [26] x:\dir\subdir\Test\TestComponent.cshtml) - System.Globalization
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -5,19 +5,19 @@ Generated Location: (320:12,0 [26] )
|
|||
|
||||
Source Location: (48:1,19 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (1090:32,19 [11] )
|
||||
Generated Location: (1098:32,19 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (115:1,86 [28] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|CultureInfo.InvariantCulture|
|
||||
Generated Location: (1334:40,86 [28] )
|
||||
Generated Location: (1342:40,86 [28] )
|
||||
|CultureInfo.InvariantCulture|
|
||||
|
||||
Source Location: (156:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public string ParentValue { get; set; } = "hi";
|
||||
|
|
||||
Generated Location: (1735:51,7 [55] )
|
||||
Generated Location: (1743:51,7 [55] )
|
||||
|
|
||||
public string ParentValue { get; set; } = "hi";
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (19:0,19 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (941:25,19 [11] )
|
||||
Generated Location: (949:25,19 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (76:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public string ParentValue { get; set; } = "hi";
|
||||
|
|
||||
Generated Location: (1286:36,7 [55] )
|
||||
Generated Location: (1294:36,7 [55] )
|
||||
|
|
||||
public string ParentValue { get; set; } = "hi";
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (19:0,19 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (941:25,19 [11] )
|
||||
Generated Location: (949:25,19 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (43:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public string ParentValue { get; set; } = "hi";
|
||||
|
|
||||
Generated Location: (1286:36,7 [55] )
|
||||
Generated Location: (1294:36,7 [55] )
|
||||
|
|
||||
public string ParentValue { get; set; } = "hi";
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (18:0,18 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (940:25,18 [11] )
|
||||
Generated Location: (948:25,18 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (42:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public string ParentValue { get; set; } = "hi";
|
||||
|
|
||||
Generated Location: (1285:36,7 [55] )
|
||||
Generated Location: (1293:36,7 [55] )
|
||||
|
|
||||
public string ParentValue { get; set; } = "hi";
|
||||
|
|
||||
|
|
|
|||
|
|
@ -0,0 +1,44 @@
|
|||
// <auto-generated/>
|
||||
#pragma warning disable 1591
|
||||
namespace Test
|
||||
{
|
||||
#line hidden
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
}
|
||||
#pragma warning restore 219
|
||||
#pragma warning disable 0414
|
||||
private static System.Object __o = null;
|
||||
#pragma warning restore 0414
|
||||
#pragma warning disable 1998
|
||||
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
|
||||
{
|
||||
__o =
|
||||
#nullable restore
|
||||
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
ParentValue
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
;
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
#nullable restore
|
||||
#line 4 "x:\dir\subdir\Test\TestComponent.cshtml"
|
||||
|
||||
public string ParentValue { get; set; } = "hi";
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
Document -
|
||||
NamespaceDeclaration - - Test
|
||||
UsingDirective - (3:1,1 [12] ) - System
|
||||
UsingDirective - (18:2,1 [32] ) - System.Collections.Generic
|
||||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - private static System.Object __o = null;
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning restore 0414
|
||||
MethodDeclaration - - protected override - void - BuildRenderTree
|
||||
MarkupElement - (0:0,0 [45] 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 [28] x:\dir\subdir\Test\TestComponent.cshtml) - input
|
||||
HtmlAttribute - (15:1,8 [21] x:\dir\subdir\Test\TestComponent.cshtml) - @bind=" - "
|
||||
CSharpExpressionAttributeValue - (23:1,16 [12] x:\dir\subdir\Test\TestComponent.cshtml) -
|
||||
IntermediateToken - (24:1,17 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue
|
||||
HtmlContent - (37:1,30 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (37:1,30 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
HtmlContent - (45:2,6 [2] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (45:2,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n
|
||||
CSharpCode - (54:3,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
IntermediateToken - (54:3,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
Source Location: (24:1,17 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (889:25,17 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (54:3,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public string ParentValue { get; set; } = "hi";
|
||||
|
|
||||
Generated Location: (1093:35,7 [55] )
|
||||
|
|
||||
public string ParentValue { get; set; } = "hi";
|
||||
|
|
||||
|
||||
|
|
@ -8,7 +8,7 @@ namespace Test
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Document -
|
|||
UsingDirective - (53:3,1 [17] ) - System.Linq
|
||||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (935:25,13 [11] )
|
||||
Generated Location: (943:25,13 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (37:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public string ParentValue { get; set; } = "hi";
|
||||
|
|
||||
Generated Location: (1280:36,7 [55] )
|
||||
Generated Location: (1288:36,7 [55] )
|
||||
|
|
||||
public string ParentValue { get; set; } = "hi";
|
||||
|
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ using System.Globalization;
|
|||
#line default
|
||||
#line hidden
|
||||
#nullable disable
|
||||
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Document -
|
|||
UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks
|
||||
UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components
|
||||
UsingDirective - (1:0,1 [26] x:\dir\subdir\Test\TestComponent.cshtml) - System.Globalization
|
||||
ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
ClassDeclaration - - public partial - TestComponent - Microsoft.AspNetCore.Components.ComponentBase -
|
||||
DesignTimeDirective -
|
||||
CSharpCode -
|
||||
IntermediateToken - - CSharp - #pragma warning disable 0414
|
||||
|
|
|
|||
|
|
@ -5,14 +5,14 @@ Generated Location: (320:12,0 [26] )
|
|||
|
||||
Source Location: (64:1,35 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|ParentValue|
|
||||
Generated Location: (1106:32,35 [11] )
|
||||
Generated Location: (1114:32,35 [11] )
|
||||
|ParentValue|
|
||||
|
||||
Source Location: (121:2,7 [44] x:\dir\subdir\Test\TestComponent.cshtml)
|
||||
|
|
||||
public int ParentValue { get; set; }
|
||||
|
|
||||
Generated Location: (1451:43,7 [44] )
|
||||
Generated Location: (1459:43,7 [44] )
|
||||
|
|
||||
public int ParentValue { get; set; }
|
||||
|
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue