57 references to FileScopedNamespaceDeclaration
Microsoft.CodeAnalysis.CSharp (23)
_generated\1\Syntax.xml.Internal.Generated.cs (2)
31864
return new FileScopedNamespaceDeclarationSyntax(SyntaxKind.
FileScopedNamespaceDeclaration
, attributeLists.Node, modifiers.Node, namespaceKeyword, name, semicolonToken, externs.Node, usings.Node, members.Node, this.context);
37291
return new FileScopedNamespaceDeclarationSyntax(SyntaxKind.
FileScopedNamespaceDeclaration
, attributeLists.Node, modifiers.Node, namespaceKeyword, name, semicolonToken, externs.Node, usings.Node, members.Node);
_generated\2\Syntax.xml.Syntax.Generated.cs (1)
9701
/// <item><description><see cref="SyntaxKind.
FileScopedNamespaceDeclaration
"/></description></item>
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1040
Debug.Assert(declarationSyntax.Kind() is SyntaxKind.CompilationUnit or SyntaxKind.NamespaceDeclaration or SyntaxKind.
FileScopedNamespaceDeclaration
);
Binder\BinderFactory.cs (1)
189
case SyntaxKind.
FileScopedNamespaceDeclaration
:
Binder\WithExternAliasesBinder.cs (1)
91
Debug.Assert(declarationSyntax.Kind() is SyntaxKind.CompilationUnit or SyntaxKind.NamespaceDeclaration or SyntaxKind.
FileScopedNamespaceDeclaration
);
Binder\WithExternAndUsingAliasesBinder.cs (1)
120
Debug.Assert(declarationSyntax.Kind() is SyntaxKind.CompilationUnit or SyntaxKind.NamespaceDeclaration or SyntaxKind.
FileScopedNamespaceDeclaration
);
Binder\WithUsingNamespacesAndTypesBinder.cs (1)
264
Debug.Assert(declarationSyntax.Kind() is SyntaxKind.CompilationUnit or SyntaxKind.NamespaceDeclaration or SyntaxKind.
FileScopedNamespaceDeclaration
);
Compilation\CSharpSemanticModel.cs (1)
5178
case SyntaxKind.
FileScopedNamespaceDeclaration
:
Compilation\SyntaxTreeSemanticModel.cs (2)
2358
if (memberDeclaration.Kind() is SyntaxKind.NamespaceDeclaration or SyntaxKind.
FileScopedNamespaceDeclaration
)
2389
if (memberDeclaration.Kind() is SyntaxKind.NamespaceDeclaration or SyntaxKind.
FileScopedNamespaceDeclaration
Declarations\DeclarationKind.cs (1)
42
case SyntaxKind.
FileScopedNamespaceDeclaration
:
Declarations\DeclarationTreeBuilder.cs (1)
131
node.Kind() is SyntaxKind.NamespaceDeclaration or SyntaxKind.
FileScopedNamespaceDeclaration
||
Parser\LanguageParser.cs (5)
292
this.ParseNamespaceBody(ref semicolon, ref body, ref initialBadNodes, SyntaxKind.
FileScopedNamespaceDeclaration
);
798
case SyntaxKind.
FileScopedNamespaceDeclaration
:
2548
case SyntaxKind.
FileScopedNamespaceDeclaration
:
3089
else if (parentKind is SyntaxKind.NamespaceDeclaration or SyntaxKind.
FileScopedNamespaceDeclaration
||
5305
parentKind is not SyntaxKind.NamespaceDeclaration and not SyntaxKind.
FileScopedNamespaceDeclaration
&&
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
75
case SyntaxKind.
FileScopedNamespaceDeclaration
:
Symbols\Source\SourceMemberContainerSymbol.cs (2)
4053
case SyntaxKind.
FileScopedNamespaceDeclaration
:
6092
SyntaxKind.
FileScopedNamespaceDeclaration
or
Syntax\SyntaxKindFacts.cs (1)
399
kind == SyntaxKind.
FileScopedNamespaceDeclaration
;
Syntax\SyntaxNormalizer.cs (1)
1350
if (node.Parent.Kind() is SyntaxKind.GlobalStatement or SyntaxKind.
FileScopedNamespaceDeclaration
)
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\roslyn\src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiers.cs (1)
87
case SyntaxKind.
FileScopedNamespaceDeclaration
:
src\roslyn\src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToBlockScopedNamespaceDiagnosticAnalyzer.cs (1)
29
=> context.RegisterSyntaxNodeAction(AnalyzeNamespace, SyntaxKind.
FileScopedNamespaceDeclaration
);
src\roslyn\src\Analyzers\CSharp\Analyzers\MatchFolderAndNamespace\CSharpMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
37
=> [SyntaxKind.NamespaceDeclaration, SyntaxKind.
FileScopedNamespaceDeclaration
];
src\roslyn\src\Analyzers\CSharp\Analyzers\MisplacedUsingDirectives\MisplacedUsingDirectivesDiagnosticAnalyzer.cs (2)
53
context.RegisterSyntaxNodeAction(AnalyzeNamespaceNode, SyntaxKind.NamespaceDeclaration, SyntaxKind.
FileScopedNamespaceDeclaration
);
103
t => t.Kind() is not (SyntaxKind.UsingDirective or SyntaxKind.NamespaceDeclaration or SyntaxKind.
FileScopedNamespaceDeclaration
));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
824
case SyntaxKind.
FileScopedNamespaceDeclaration
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
237
SyntaxKind.
FileScopedNamespaceDeclaration
=> CodeGenerationDestination.Namespace,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
920
case SyntaxKind.
FileScopedNamespaceDeclaration
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
63
(i == 0 && currentUsing.IsParentKind(SyntaxKind.
FileScopedNamespaceDeclaration
)))
Microsoft.CodeAnalysis.CSharp.Features (14)
Completion\KeywordRecommenders\ExternKeywordRecommender.cs (1)
94
token.Parent.IsKind(SyntaxKind.
FileScopedNamespaceDeclaration
))
Completion\KeywordRecommenders\NamespaceKeywordRecommender.cs (1)
113
!token.Parent.Parent.IsKind(SyntaxKind.
FileScopedNamespaceDeclaration
))
Completion\KeywordRecommenders\UsingKeywordRecommender.cs (1)
99
|| (token.Kind() == SyntaxKind.SemicolonToken && token.Parent.IsKind(SyntaxKind.
FileScopedNamespaceDeclaration
)))
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
1382
if (node.Kind() is SyntaxKind.UsingDirective or SyntaxKind.NamespaceDeclaration or SyntaxKind.
FileScopedNamespaceDeclaration
)
1633
case SyntaxKind.
FileScopedNamespaceDeclaration
:
2017
case SyntaxKind.
FileScopedNamespaceDeclaration
:
EditAndContinue\SyntaxComparer.cs (2)
587
case SyntaxKind.
FileScopedNamespaceDeclaration
:
1431
case SyntaxKind.
FileScopedNamespaceDeclaration
:
src\roslyn\src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiers.cs (1)
87
case SyntaxKind.
FileScopedNamespaceDeclaration
:
src\roslyn\src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToBlockScopedNamespaceDiagnosticAnalyzer.cs (1)
29
=> context.RegisterSyntaxNodeAction(AnalyzeNamespace, SyntaxKind.
FileScopedNamespaceDeclaration
);
src\roslyn\src\Analyzers\CSharp\Analyzers\MatchFolderAndNamespace\CSharpMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
37
=> [SyntaxKind.NamespaceDeclaration, SyntaxKind.
FileScopedNamespaceDeclaration
];
src\roslyn\src\Analyzers\CSharp\Analyzers\MisplacedUsingDirectives\MisplacedUsingDirectivesDiagnosticAnalyzer.cs (2)
53
context.RegisterSyntaxNodeAction(AnalyzeNamespaceNode, SyntaxKind.NamespaceDeclaration, SyntaxKind.
FileScopedNamespaceDeclaration
);
103
t => t.Kind() is not (SyntaxKind.UsingDirective or SyntaxKind.NamespaceDeclaration or SyntaxKind.
FileScopedNamespaceDeclaration
));
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
75
case SyntaxKind.
FileScopedNamespaceDeclaration
:
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
137
case SyntaxKind.
FileScopedNamespaceDeclaration
:
1920
case SyntaxKind.
FileScopedNamespaceDeclaration
:
Simplification\Simplifiers\NameSimplifier.cs (1)
566
case SyntaxKind.
FileScopedNamespaceDeclaration
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
824
case SyntaxKind.
FileScopedNamespaceDeclaration
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
237
SyntaxKind.
FileScopedNamespaceDeclaration
=> CodeGenerationDestination.Namespace,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
920
case SyntaxKind.
FileScopedNamespaceDeclaration
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
63
(i == 0 && currentUsing.IsParentKind(SyntaxKind.
FileScopedNamespaceDeclaration
)))
Roslyn.Diagnostics.CSharp.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
824
case SyntaxKind.
FileScopedNamespaceDeclaration
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
237
SyntaxKind.
FileScopedNamespaceDeclaration
=> CodeGenerationDestination.Namespace,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
920
case SyntaxKind.
FileScopedNamespaceDeclaration
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
63
(i == 0 && currentUsing.IsParentKind(SyntaxKind.
FileScopedNamespaceDeclaration
)))