15 references to Keyword
Microsoft.AspNetCore.Razor.Language.UnitTests (1)
RazorSyntaxTreeTest.cs (1)
60
Assert.Single(root.DescendantNodes().OfType<RazorDirectiveBodySyntax>(), body => body.
Keyword
.GetContent() == "tagHelperPrefix");
Microsoft.CodeAnalysis.Razor.Compiler (4)
Language\RazorCodeDocumentExtensions.cs (1)
55
Debug.Assert(directive is RazorUsingDirectiveSyntax || directive.DirectiveBody.
Keyword
.GetContent() == SyntaxConstants.CSharp.AddTagHelperKeyword);
Language\Syntax\Generated\Syntax.xml.Main.Generated.cs (1)
384
=> node.Update((RazorSyntaxNode)Visit(node.
Keyword
), (CSharpCodeBlockSyntax)Visit(node.CSharpCode));
Language\Syntax\Generated\Syntax.xml.Syntax.Generated.cs (2)
2298
if (keyword !=
Keyword
|| csharpCode != CSharpCode)
2311
public RazorDirectiveBodySyntax WithCSharpCode(CSharpCodeBlockSyntax csharpCode) => Update(
Keyword
, csharpCode);
Microsoft.CodeAnalysis.Razor.Workspaces (10)
CodeActions\Razor\RemoveUnnecessaryDirectivesCodeActionProvider.cs (1)
81
return directive.DirectiveBody.
Keyword
.GetContent() == SyntaxConstants.CSharp.AddTagHelperKeyword;
Extensions\RazorSyntaxNodeExtensions.cs (3)
32
=> directive.DirectiveBody.
Keyword
.GetContent() == SyntaxConstants.CSharp.AddTagHelperKeyword;
44
DirectiveBody.
Keyword
: CSharpStatementLiteralSyntax
373
var directive = body.
Keyword
.ToString();
Formatting\Passes\RazorFormattingPass.cs (2)
153
if (!IsCodeOrFunctionsBlock(directive.DirectiveBody.
Keyword
))
261
directive.DirectiveBody.
Keyword
is { } keyword &&
RazorSyntaxFacts.cs (1)
164
body.
Keyword
.GetContent() == "code")
SemanticTokens\SemanticTokensVisitor.cs (3)
276
if (node.
Keyword
.Kind != SyntaxKind.CSharpStatementLiteral)
278
AddSemanticRange(node.
Keyword
, _semanticTokensLegend.TokenTypes.RazorDirective);
282
Visit(node.
Keyword
);