25 references to NamespaceKeyword
Microsoft.CodeAnalysis.CSharp (21)
_generated\0\Syntax.xml.Main.Generated.cs (6)
4857if (namespaceKeyword.Kind() != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 4872=> SyntaxFactory.NamespaceDeclaration(attributeLists, modifiers, SyntaxFactory.Token(SyntaxKind.NamespaceKeyword), name, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), externs, usings, members, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 4876=> SyntaxFactory.NamespaceDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.NamespaceKeyword), name, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, default, default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 4881if (namespaceKeyword.Kind() != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 4889=> SyntaxFactory.FileScopedNamespaceDeclaration(attributeLists, modifiers, SyntaxFactory.Token(SyntaxKind.NamespaceKeyword), name, SyntaxFactory.Token(SyntaxKind.SemicolonToken), externs, usings, members); 4893=> SyntaxFactory.FileScopedNamespaceDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.NamespaceKeyword), name, SyntaxFactory.Token(SyntaxKind.SemicolonToken), default, default, default);
_generated\1\Syntax.xml.Internal.Generated.cs (4)
31834if (namespaceKeyword.Kind != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 31858if (namespaceKeyword.Kind != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 37261if (namespaceKeyword.Kind != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 37285if (namespaceKeyword.Kind != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
Parser\LanguageParser.cs (8)
251Debug.Assert(this.CurrentToken.Kind == SyntaxKind.NamespaceKeyword); 252var namespaceToken = this.EatToken(SyntaxKind.NamespaceKeyword); 588case SyntaxKind.NamespaceKeyword: 875case SyntaxKind.NamespaceKeyword: 892else if (this.PeekToken(1).Kind == SyntaxKind.NamespaceKeyword) 1400else if (nextToken.Kind == SyntaxKind.NamespaceKeyword) 1645if (currentTokenKind == SyntaxKind.NamespaceKeyword) 2753if (this.CurrentToken.Kind == SyntaxKind.NamespaceKeyword)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
180AddKeyword(SyntaxKind.NamespaceKeyword);
Syntax\SyntaxKindFacts.cs (2)
1019return SyntaxKind.NamespaceKeyword; 1720case SyntaxKind.NamespaceKeyword:
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\NamespaceKeywordRecommender.cs (1)
13internal sealed class NamespaceKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.NamespaceKeyword)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Rename\CSharpRenameRewriterLanguageService.cs (2)
379if (!isRenameLocation && symbol is INamespaceSymbol && token.GetPreviousToken().IsKind(SyntaxKind.NamespaceKeyword)) 398if (isRenameLocation && token.GetPreviousToken().IsKind(SyntaxKind.NamespaceKeyword))
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Legacy\NativeCSharpTokenizer.cs (1)
104CSharpSyntaxKind.NamespaceKeyword,