Corrects spelling of some comments
This commit is contained in:
parent
0f73aca42e
commit
e696325b76
|
|
@ -22,7 +22,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// For each bind *usage* we need to rewrite the tag helper node to map to basic contstructs.
|
// For each bind *usage* we need to rewrite the tag helper node to map to basic constructs.
|
||||||
var nodes = documentNode.FindDescendantNodes<TagHelperIntermediateNode>();
|
var nodes = documentNode.FindDescendantNodes<TagHelperIntermediateNode>();
|
||||||
for (var i = 0; i < nodes.Count; i++)
|
for (var i = 0; i < nodes.Count; i++)
|
||||||
{
|
{
|
||||||
|
|
@ -322,7 +322,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The the tag helper specifies attribute names, they should win.
|
// The tag helper specifies attribute names, they should win.
|
||||||
//
|
//
|
||||||
// This handles cases like <input type="text" bind="@Foo" /> where the tag helper is
|
// This handles cases like <input type="text" bind="@Foo" /> where the tag helper is
|
||||||
// generated to match a specific tag and has metadata that identify the attributes.
|
// generated to match a specific tag and has metadata that identify the attributes.
|
||||||
|
|
|
||||||
|
|
@ -52,13 +52,13 @@ namespace Microsoft.AspNetCore.Blazor.Razor
|
||||||
//
|
//
|
||||||
// We don't do any transformation or inference for this case, because the developer has
|
// We don't do any transformation or inference for this case, because the developer has
|
||||||
// told us exactly what to do. This is the *full* form of bind, and should support any
|
// told us exactly what to do. This is the *full* form of bind, and should support any
|
||||||
// combination of elemement, component, and attributes.
|
// combination of element, component, and attributes.
|
||||||
//
|
//
|
||||||
// This is the most general case, and is implemented with a built-in tag helper that applies
|
// This is the most general case, and is implemented with a built-in tag helper that applies
|
||||||
// to everything, and binds to a dictionary of attributes that start with bind-.
|
// to everything, and binds to a dictionary of attributes that start with bind-.
|
||||||
//
|
//
|
||||||
// 2. We also support cases like 'bind-value="@FirstName"' where we will generate the 'value'
|
// 2. We also support cases like 'bind-value="@FirstName"' where we will generate the 'value'
|
||||||
// attribute and and another attribute based for a changed handler based on the metadata.
|
// attribute and another attribute based for a changed handler based on the metadata.
|
||||||
//
|
//
|
||||||
// These mappings are provided by attributes that tell us what attributes, suffixes, and
|
// These mappings are provided by attributes that tell us what attributes, suffixes, and
|
||||||
// elements to map.
|
// elements to map.
|
||||||
|
|
|
||||||
|
|
@ -410,7 +410,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
|
||||||
// We also limit component attributes to simple cases. However there is still a lot of complexity
|
// We also limit component attributes to simple cases. However there is still a lot of complexity
|
||||||
// to handle here, since there are a few different cases for how an attribute might be structured.
|
// to handle here, since there are a few different cases for how an attribute might be structured.
|
||||||
//
|
//
|
||||||
// This rougly follows the design of the runtime writer for simplicity.
|
// This roughly follows the design of the runtime writer for simplicity.
|
||||||
if (node.AttributeStructure == AttributeStructure.Minimized)
|
if (node.AttributeStructure == AttributeStructure.Minimized)
|
||||||
{
|
{
|
||||||
// Do nothing
|
// Do nothing
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Blazor.Razor
|
namespace Microsoft.AspNetCore.Blazor.Razor
|
||||||
{
|
{
|
||||||
// Metadata used for Blazor's interations with the tag helper system
|
// Metadata used for Blazor's interactions with the tag helper system
|
||||||
internal static class BlazorMetadata
|
internal static class BlazorMetadata
|
||||||
{
|
{
|
||||||
// There's a bug in the 15.7 preview 1 Razor that prevents 'Kind' from being serialized
|
// There's a bug in the 15.7 preview 1 Razor that prevents 'Kind' from being serialized
|
||||||
|
|
|
||||||
|
|
@ -269,7 +269,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
|
||||||
{
|
{
|
||||||
base.VisitTagHelper(node);
|
base.VisitTagHelper(node);
|
||||||
|
|
||||||
// Use a post-order traversal because we're going to rewite tag helper nodes, and thus
|
// Use a post-order traversal because we're going to rewrite tag helper nodes, and thus
|
||||||
// change the parent nodes.
|
// change the parent nodes.
|
||||||
//
|
//
|
||||||
// This ensures that we operate the leaf nodes first.
|
// This ensures that we operate the leaf nodes first.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue