105 references to NamespaceKind
Microsoft.CodeAnalysis (2)
Compilation\SymbolInfo.cs (1)
69const NamespaceKind NamespaceKindNamespaceGroup = 0;
Symbols\INamespaceSymbol.cs (1)
47NamespaceKind NamespaceKind { get; }
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (3)
40case NamespaceKind.Module: 44case NamespaceKind.Assembly: 48case NamespaceKind.Compilation:
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (2)
53public NamespaceKind NamespaceKind => NamespaceKind.Module;
Microsoft.CodeAnalysis.CSharp (21)
Binder\BindingDiagnosticBag.cs (1)
130if (ns.Extent.Kind == NamespaceKind.Compilation)
Compilation\CSharpCompilation.cs (2)
1445namespaceSymbol.NamespaceKind == NamespaceKind.Compilation && 1468if (namespaceSymbol.NamespaceKind == NamespaceKind.Compilation &&
Symbols\AssemblySymbol.cs (1)
153if (namespaceSymbol.NamespaceKind == NamespaceKind.Assembly && namespaceSymbol.ContainingAssembly == this)
Symbols\MergedNamespaceSymbol.cs (2)
262if (_extent.Kind == NamespaceKind.Module) 266else if (_extent.Kind == NamespaceKind.Assembly)
Symbols\ModuleSymbol.cs (2)
342if (namespaceSymbol.NamespaceKind == NamespaceKind.Module) 377if (namespaceSymbol.Extent.Kind == NamespaceKind.Module && namespaceSymbol.ContainingModule == this)
Symbols\NamespaceExtent.cs (8)
22private readonly NamespaceKind _kind; 28public NamespaceKind Kind 44if (_kind == NamespaceKind.Module) 61if (_kind == NamespaceKind.Assembly) 78if (_kind == NamespaceKind.Compilation) 97_kind = NamespaceKind.Module; 106_kind = NamespaceKind.Assembly; 115_kind = NamespaceKind.Compilation;
Symbols\NamespaceSymbol.cs (3)
63public NamespaceKind NamespaceKind 73get { return this.NamespaceKind == NamespaceKind.Compilation ? this.Extent.Compilation : null; } 108if (extent.Kind == NamespaceKind.Module)
Symbols\PublicModel\NamespaceSymbol.cs (1)
29NamespaceKind INamespaceSymbol.NamespaceKind => _underlying.NamespaceKind;
Symbols\Source\SourceAssemblySymbol.cs (1)
1070Debug.Assert(moduleNs.Extent.Kind == NamespaceKind.Module);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenTupleTest.cs (3)
6227Assert.Equal(NamespaceKind.Compilation, ns.NamespaceKind); 6235Assert.Equal(NamespaceKind.Assembly, ns.NamespaceKind); 6243Assert.Equal(NamespaceKind.Module, ns.NamespaceKind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Compilation\SemanticModelAPITests.cs (1)
1271Assert.Equal(NamespaceKind.Module, aliasTarget.NamespaceKind);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
3745Assert.Equal(NamespaceKind.Compilation, declSymbol.NamespaceKind);
Symbols\AssemblyAndNamespaceTests.cs (4)
78Assert.Equal(NamespaceKind.Module, ext.Kind); 216Assert.Equal(NamespaceKind.Compilation, ns.Extent.Kind); 226Assert.Equal(NamespaceKind.Module, constituentNs.Extent.Kind); 264Assert.Equal(NamespaceKind.Compilation, ns.Extent.Kind);
Symbols\Metadata\PE\LoadingNamespacesAndTypes.cs (3)
135Assert.Equal(NamespaceKind.Module, extent.Kind); 148Assert.Equal(NamespaceKind.Module, extent.Kind); 161Assert.Equal(NamespaceKind.Module, extent.Kind);
Symbols\MockSymbolTests.cs (1)
94Assert.Equal(NamespaceKind.Assembly, ne1.Kind);
Symbols\Source\UsingAliasTests.cs (2)
393Assert.Equal(NamespaceKind.Module, global.NamespaceKind); 414Assert.Equal(NamespaceKind.Module, global.NamespaceKind);
Microsoft.CodeAnalysis.Features (1)
MoveToNamespace\AbstractMoveToNamespaceService.cs (1)
295.Where(n => n.NamespaceKind == NamespaceKind.Module && n.ContainingAssembly == compilation.Assembly)
Microsoft.CodeAnalysis.VisualBasic (29)
Binding\BindingDiagnosticBag.vb (1)
139If ns.Extent.Kind = NamespaceKind.Compilation Then
Binding\LookupResult.vb (1)
996possiblyMergedNamespace.Extent.Kind <> NamespaceKind.Module Then
Compilation\VisualBasicCompilation.vb (1)
1474If vbNs IsNot Nothing AndAlso vbNs.Extent.Kind = NamespaceKind.Compilation AndAlso vbNs.Extent.Compilation Is Me Then
SymbolDisplay\SymbolDisplayVisitor_Minimal.vb (4)
47Debug.Assert(lookupResult.Extent.Kind = NamespaceKind.Module OrElse lookupResult.Extent.Kind = NamespaceKind.Compilation) 49If lookupResult IsNot symbol AndAlso lookupResult.Extent.Kind = NamespaceKind.Compilation Then 52If ns IsNot Nothing AndAlso ns.Extent.Kind <> NamespaceKind.Compilation AndAlso
Symbols\AssemblySymbol.vb (1)
150If namespaceSymbol.Extent.Kind = NamespaceKind.Assembly AndAlso namespaceSymbol.ContainingAssembly = Me Then
Symbols\MergedNamespaceSymbol.vb (4)
333If Me.Extent.Kind = NamespaceKind.Module Then 336ElseIf Me.Extent.Kind = NamespaceKind.Assembly Then 601Debug.Assert(ns.NamespaceKind = NamespaceKind.Module OrElse ns.NamespaceKind = NamespaceKind.Compilation)
Symbols\ModuleSymbol.vb (1)
265If moduleNs IsNot Nothing And moduleNs.Extent.Kind = NamespaceKind.Module And moduleNs.ContainingModule = Me Then
Symbols\NamespaceExtent.vb (11)
18Private ReadOnly _kind As NamespaceKind 24Public ReadOnly Property Kind As NamespaceKind 36If Kind = NamespaceKind.Module Then 50If Kind = NamespaceKind.Assembly Then 64If Kind = NamespaceKind.Compilation Then 80_kind = NamespaceKind.Module 88_kind = NamespaceKind.Assembly 96_kind = NamespaceKind.Compilation 106Const assert1 As Integer = 1 Mod (NamespaceKind.Compilation - NamespaceKindNamespaceGroup) 109Const assert2 As Integer = 1 Mod (NamespaceKind.Assembly - NamespaceKindNamespaceGroup) 112Const assert3 As Integer = 1 Mod (NamespaceKind.Module - NamespaceKindNamespaceGroup)
Symbols\NamespaceSymbol.vb (4)
74Public ReadOnly Property NamespaceKind As NamespaceKind 85Return If(Me.NamespaceKind = NamespaceKind.Compilation, Me.Extent.Compilation, Nothing) 119If extent.Kind = NamespaceKind.Module Then 577Private ReadOnly Property INamespaceSymbol_NamespaceKind As NamespaceKind Implements INamespaceSymbol.NamespaceKind
Symbols\SymbolExtensions.vb (1)
12Friend Const NamespaceKindNamespaceGroup As NamespaceKind = Nothing
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
CodeGen\CodeGenTuples.vb (3)
8951Assert.Equal(NamespaceKind.Compilation, ns.NamespaceKind) 8959Assert.Equal(NamespaceKind.Assembly, ns.NamespaceKind) 8967Assert.Equal(NamespaceKind.Module, ns.NamespaceKind)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (16)
Binding\LookupTests.vb (12)
1622Assert.Equal(NamespaceKind.Module, ns.NamespaceKind) 1672Assert.Equal(NamespaceKind.Compilation, ns.NamespaceKind) 1732Assert.Equal(NamespaceKind.Module, ns2.NamespaceKind) 1741Assert.Equal(NamespaceKind.Module, ns1.NamespaceKind) 2107Assert.Equal(NamespaceKind.Module, DirectCast(info2.Symbol, NamespaceSymbol).NamespaceKind) 2113Assert.Equal(NamespaceKind.Module, DirectCast(info1.Symbol, NamespaceSymbol).NamespaceKind) 2362Assert.Equal(NamespaceKind.Module, DirectCast(info2.Symbol, NamespaceSymbol).NamespaceKind) 2368Assert.Equal(NamespaceKind.Module, DirectCast(info1.Symbol, NamespaceSymbol).NamespaceKind) 2463Assert.Equal(NamespaceKind.Module, DirectCast(info2.Symbol, NamespaceSymbol).NamespaceKind) 2469Assert.Equal(NamespaceKind.Module, DirectCast(info1.Symbol, NamespaceSymbol).NamespaceKind) 2740Assert.Equal(NamespaceKind.Module, DirectCast(info2.Symbol, NamespaceSymbol).NamespaceKind) 2746Assert.Equal(NamespaceKind.Module, DirectCast(info1.Symbol, NamespaceSymbol).NamespaceKind)
Compilation\CompilationAPITests.vb (3)
2555NamespaceKind.Compilation, 2560NamespaceKind.Assembly, 2566kind As NamespaceKind,
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (1)
2617Assert.Equal(NamespaceKind.Compilation, nsSymbolA.NamespaceKind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (8)
SymbolsTests\AssemblyAndNamespaceTests.vb (4)
442Assert.Equal(NamespaceKind.Compilation, ext.Kind) 452Assert.Equal(NamespaceKind.Module, constituentNs.Extent.Kind) 493Assert.Equal(NamespaceKind.Compilation, ns.Extent.Kind) 502Assert.Equal(NamespaceKind.Module, constituentNs.Extent.Kind)
SymbolsTests\Metadata\PE\LoadingNamespacesAndTypes.vb (3)
118Assert.Equal(extent.Kind, NamespaceKind.Module) 131Assert.Equal(extent.Kind, NamespaceKind.Module) 144Assert.Equal(extent.Kind, NamespaceKind.Module)
SymbolsTests\MockSymbolTests.vb (1)
72Assert.Equal(ne1.Kind, NamespaceKind.Assembly)
Microsoft.CodeAnalysis.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (3)
40case NamespaceKind.Module: 44case NamespaceKind.Assembly: 48case NamespaceKind.Compilation:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (2)
53public NamespaceKind NamespaceKind => NamespaceKind.Module;