41 references to Name
Microsoft.CodeAnalysis.Razor.Compiler (27)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (10)
988
attributeBlock.
Name
.GetContent(),
1156
node.
Name
.LiteralTokens,
1161
var position = node.NamePrefix?.Position ?? node.
Name
.Position;
1164
var name = node.
Name
.GetContent();
1183
AttributeNameSpan = BuildSourceSpanFromNode(node.
Name
),
1721
var name = node.
Name
.GetContent();
1737
AttributeNameSpan = BuildSourceSpanFromNode(node.
Name
),
1747
node.
Name
.LiteralTokens,
1782
node.
Name
.LiteralTokens,
1787
var position = node.NamePrefix?.Position ?? node.
Name
.Position;
Language\Legacy\ClassifiedSpanVisitor.cs (1)
228
spanComputer.Add(node.
Name
);
Language\Legacy\TagHelperBlockRewriter.cs (4)
82
attributeNameLocation = attributeBlock.
Name
.GetSourceLocation(source);
269
var result = CreateTryParseResult(attributeBlock.
Name
.GetContent(), tagHelpers, processedBoundAttributeNames);
322
attributeBlock.
Name
,
356
var attributeNameSyntax = attributeBlock.
Name
;
Language\Legacy\TagHelperParseTreeRewriter.cs (2)
430
if (attributeBlock.
Name
== null)
451
var attributeName = attributeBlock.
Name
.GetContent();
Language\Syntax\Generated\Syntax.xml.Main.Generated.cs (1)
297
=> node.Update((MarkupTextLiteralSyntax)Visit(node.NamePrefix), (MarkupTextLiteralSyntax)Visit(node.
Name
), (MarkupTextLiteralSyntax)Visit(node.NameSuffix), (SyntaxToken)VisitToken(node.EqualsToken), (MarkupTextLiteralSyntax)Visit(node.ValuePrefix), (RazorBlockSyntax)Visit(node.Value), (MarkupTextLiteralSyntax)Visit(node.ValueSuffix));
Language\Syntax\Generated\Syntax.xml.Syntax.Generated.cs (9)
560
if (namePrefix != NamePrefix || name !=
Name
|| nameSuffix != NameSuffix || equalsToken != EqualsToken || valuePrefix != ValuePrefix || value != Value || valueSuffix != ValueSuffix)
572
public MarkupAttributeBlockSyntax WithNamePrefix(MarkupTextLiteralSyntax namePrefix) => Update(namePrefix,
Name
, NameSuffix, EqualsToken, ValuePrefix, Value, ValueSuffix);
574
public MarkupAttributeBlockSyntax WithNameSuffix(MarkupTextLiteralSyntax nameSuffix) => Update(NamePrefix,
Name
, nameSuffix, EqualsToken, ValuePrefix, Value, ValueSuffix);
575
public MarkupAttributeBlockSyntax WithEqualsToken(SyntaxToken equalsToken) => Update(NamePrefix,
Name
, NameSuffix, equalsToken, ValuePrefix, Value, ValueSuffix);
576
public MarkupAttributeBlockSyntax WithValuePrefix(MarkupTextLiteralSyntax valuePrefix) => Update(NamePrefix,
Name
, NameSuffix, EqualsToken, valuePrefix, Value, ValueSuffix);
577
public MarkupAttributeBlockSyntax WithValue(RazorBlockSyntax value) => Update(NamePrefix,
Name
, NameSuffix, EqualsToken, ValuePrefix, value, ValueSuffix);
578
public MarkupAttributeBlockSyntax WithValueSuffix(MarkupTextLiteralSyntax valueSuffix) => Update(NamePrefix,
Name
, NameSuffix, EqualsToken, ValuePrefix, Value, valueSuffix);
580
public MarkupAttributeBlockSyntax AddNameLiteralTokens(params SyntaxToken[] items) => WithName(this.
Name
.WithLiteralTokens(this.
Name
.LiteralTokens.AddRange(items)));
Microsoft.CodeAnalysis.Razor.Workspaces (14)
CodeActions\Razor\UnboundDirectiveAttributeAddUsingCodeActionProvider.cs (2)
55
var nameSpan = attributeBlock.
Name
.Span;
90
var attributeName = attributeBlock.
Name
.GetContent();
Completion\AbstractRazorCompletionFactsService.cs (1)
112
return markupAttribute.
Name
;
Completion\BlazorDataAttributeCompletionItemProvider.cs (1)
95
MarkupAttributeBlockSyntax attributeBlock => attributeBlock.
Name
.GetContent(),
Completion\DirectiveAttributeCompletionItemProviderBase.cs (3)
48
markupAttribute.
Name
.GetContent(),
49
markupAttribute.
Name
.Span,
157
attributeNames.Add(markupAttribute.
Name
.GetContent());
Extensions\RazorCodeDocumentExtensions_ClassifiedSpans.cs (1)
256
spanComputer.Add(node.
Name
);
Formatting\FormattingVisitor.cs (1)
362
spanComputer.Add(node.
Name
);
HtmlFacts.cs (2)
237
selectedAttributeName = attributeBlock.
Name
.GetContent();
238
selectedAttributeNameLocation = attributeBlock.
Name
.Span;
RazorSyntaxFacts.cs (1)
91
MarkupAttributeBlockSyntax att => att.
Name
.Span,
SemanticTokens\SemanticTokensVisitor.cs (1)
78
AddSemanticRange(node.
Name
, tokenTypes.MarkupAttribute);
TagHelperFacts.cs (1)
162
var name = markupAttribute.
Name
.GetContent();