101 references to NamespaceKeyword
Microsoft.CodeAnalysis.CSharp (11)
Parser\LanguageParser.cs (8)
252
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
NamespaceKeyword
);
253
var namespaceToken = this.EatToken(SyntaxKind.
NamespaceKeyword
);
589
case SyntaxKind.
NamespaceKeyword
:
867
case SyntaxKind.
NamespaceKeyword
:
884
else if (this.PeekToken(1).Kind == SyntaxKind.
NamespaceKeyword
)
1388
else if (nextToken.Kind == SyntaxKind.
NamespaceKeyword
)
1593
if (currentTokenKind == SyntaxKind.
NamespaceKeyword
)
2614
if (this.CurrentToken.Kind == SyntaxKind.
NamespaceKeyword
)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
180
AddKeyword(SyntaxKind.
NamespaceKeyword
);
Syntax\SyntaxKindFacts.cs (2)
989
return SyntaxKind.
NamespaceKeyword
;
1637
case SyntaxKind.
NamespaceKeyword
:
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\NamespaceKeywordRecommender.cs (1)
16
: base(SyntaxKind.
NamespaceKeyword
)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (87)
Generated\Syntax.Test.xml.Generated.cs (8)
473
=> InternalSyntaxFactory.NamespaceDeclaration(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Token(SyntaxKind.
NamespaceKeyword
), GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.OpenBraceToken), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.ExternAliasDirectiveSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.UsingDirectiveSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.MemberDeclarationSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.CloseBraceToken), null);
476
=> InternalSyntaxFactory.FileScopedNamespaceDeclaration(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Token(SyntaxKind.
NamespaceKeyword
), GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.ExternAliasDirectiveSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.UsingDirectiveSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.MemberDeclarationSyntax>());
2637
Assert.Equal(SyntaxKind.
NamespaceKeyword
, node.NamespaceKeyword.Kind);
2656
Assert.Equal(SyntaxKind.
NamespaceKeyword
, node.NamespaceKeyword.Kind);
10689
=> SyntaxFactory.NamespaceDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.
NamespaceKeyword
), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.OpenBraceToken), new SyntaxList<ExternAliasDirectiveSyntax>(), new SyntaxList<UsingDirectiveSyntax>(), new SyntaxList<MemberDeclarationSyntax>(), SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default(SyntaxToken));
10692
=> SyntaxFactory.FileScopedNamespaceDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.
NamespaceKeyword
), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.SemicolonToken), new SyntaxList<ExternAliasDirectiveSyntax>(), new SyntaxList<UsingDirectiveSyntax>(), new SyntaxList<MemberDeclarationSyntax>());
12853
Assert.Equal(SyntaxKind.
NamespaceKeyword
, node.NamespaceKeyword.Kind());
12872
Assert.Equal(SyntaxKind.
NamespaceKeyword
, node.NamespaceKeyword.Kind());
Parsing\AsyncParsingTests.cs (1)
2311
N(SyntaxKind.
NamespaceKeyword
);
Parsing\CollectionExpressionParsingTests.cs (1)
1088
N(SyntaxKind.
NamespaceKeyword
);
Parsing\DeclarationParsingTests.cs (4)
8415
N(SyntaxKind.
NamespaceKeyword
);
8658
N(SyntaxKind.
NamespaceKeyword
);
8705
N(SyntaxKind.
NamespaceKeyword
);
8752
N(SyntaxKind.
NamespaceKeyword
);
Parsing\FileModifierParsingTests.cs (6)
631
N(SyntaxKind.
NamespaceKeyword
);
664
N(SyntaxKind.
NamespaceKeyword
);
2251
N(SyntaxKind.
NamespaceKeyword
);
2316
N(SyntaxKind.
NamespaceKeyword
);
2379
N(SyntaxKind.
NamespaceKeyword
);
2442
N(SyntaxKind.
NamespaceKeyword
);
Parsing\MemberDeclarationParsingTests.cs (17)
10504
N(SyntaxKind.
NamespaceKeyword
);
10589
N(SyntaxKind.
NamespaceKeyword
);
10697
N(SyntaxKind.
NamespaceKeyword
);
10822
N(SyntaxKind.
NamespaceKeyword
);
10981
N(SyntaxKind.
NamespaceKeyword
);
11155
N(SyntaxKind.
NamespaceKeyword
);
11332
N(SyntaxKind.
NamespaceKeyword
);
11340
N(SyntaxKind.
NamespaceKeyword
);
11460
N(SyntaxKind.
NamespaceKeyword
);
11632
N(SyntaxKind.
NamespaceKeyword
);
11929
N(SyntaxKind.
NamespaceKeyword
);
11988
N(SyntaxKind.
NamespaceKeyword
);
12050
N(SyntaxKind.
NamespaceKeyword
);
12110
N(SyntaxKind.
NamespaceKeyword
);
12172
N(SyntaxKind.
NamespaceKeyword
);
12253
N(SyntaxKind.
NamespaceKeyword
);
12344
N(SyntaxKind.
NamespaceKeyword
);
Parsing\SingleLineDeclarationParsingTests.cs (31)
47
N(SyntaxKind.
NamespaceKeyword
);
76
N(SyntaxKind.
NamespaceKeyword
);
108
N(SyntaxKind.
NamespaceKeyword
);
145
N(SyntaxKind.
NamespaceKeyword
);
176
N(SyntaxKind.
NamespaceKeyword
);
204
N(SyntaxKind.
NamespaceKeyword
);
229
N(SyntaxKind.
NamespaceKeyword
);
259
N(SyntaxKind.
NamespaceKeyword
);
292
N(SyntaxKind.
NamespaceKeyword
);
320
N(SyntaxKind.
NamespaceKeyword
);
345
N(SyntaxKind.
NamespaceKeyword
);
368
N(SyntaxKind.
NamespaceKeyword
);
376
N(SyntaxKind.
NamespaceKeyword
);
402
N(SyntaxKind.
NamespaceKeyword
);
410
N(SyntaxKind.
NamespaceKeyword
);
437
N(SyntaxKind.
NamespaceKeyword
);
445
N(SyntaxKind.
NamespaceKeyword
);
472
N(SyntaxKind.
NamespaceKeyword
);
482
N(SyntaxKind.
NamespaceKeyword
);
514
N(SyntaxKind.
NamespaceKeyword
);
537
N(SyntaxKind.
NamespaceKeyword
);
576
N(SyntaxKind.
NamespaceKeyword
);
599
N(SyntaxKind.
NamespaceKeyword
);
636
N(SyntaxKind.
NamespaceKeyword
);
659
N(SyntaxKind.
NamespaceKeyword
);
691
N(SyntaxKind.
NamespaceKeyword
);
713
N(SyntaxKind.
NamespaceKeyword
);
744
N(SyntaxKind.
NamespaceKeyword
);
775
N(SyntaxKind.
NamespaceKeyword
);
809
N(SyntaxKind.
NamespaceKeyword
);
831
N(SyntaxKind.
NamespaceKeyword
);
Parsing\TopLevelStatementsParsingTests.cs (1)
310
N(SyntaxKind.
NamespaceKeyword
);
Parsing\UsingDirectiveParsingTests.cs (8)
1190
N(SyntaxKind.
NamespaceKeyword
);
1262
N(SyntaxKind.
NamespaceKeyword
);
1337
N(SyntaxKind.
NamespaceKeyword
);
1413
N(SyntaxKind.
NamespaceKeyword
);
1497
N(SyntaxKind.
NamespaceKeyword
);
1977
N(SyntaxKind.
NamespaceKeyword
);
2052
N(SyntaxKind.
NamespaceKeyword
);
3381
N(SyntaxKind.
NamespaceKeyword
);
Syntax\SyntaxTreeTests.cs (10)
405
N(SyntaxKind.
NamespaceKeyword
);
453
N(SyntaxKind.
NamespaceKeyword
);
548
N(SyntaxKind.
NamespaceKeyword
);
597
N(SyntaxKind.
NamespaceKeyword
);
710
N(SyntaxKind.
NamespaceKeyword
);
769
N(SyntaxKind.
NamespaceKeyword
);
818
N(SyntaxKind.
NamespaceKeyword
);
883
N(SyntaxKind.
NamespaceKeyword
);
891
N(SyntaxKind.
NamespaceKeyword
);
930
N(SyntaxKind.
NamespaceKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Rename\CSharpRenameRewriterLanguageService.cs (2)
380
if (!isRenameLocation && symbol is INamespaceSymbol && token.GetPreviousToken().IsKind(SyntaxKind.
NamespaceKeyword
))
399
if (isRenameLocation && token.GetPreviousToken().IsKind(SyntaxKind.
NamespaceKeyword
))