1 write to NamespaceOrType
Microsoft.CodeAnalysis (1)
Compilation\IImportScope.cs (1)
95
NamespaceOrType
= namespaceOrType;
24 references to NamespaceOrType
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
1192
Assert.True(import.
NamespaceOrType
is INamespaceSymbol { Name: "System", ContainingNamespace.IsGlobalNamespace: true });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (15)
Compilation\GetImportScopesTests.cs (15)
55
Assert.True(scopes.Single().Imports.Single().
NamespaceOrType
is INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) });
71
Assert.True(scopes.Single().Imports.Single().
NamespaceOrType
is INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) });
102
Assert.True(scopes.Single().Imports.Single().
NamespaceOrType
is INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) });
130
Assert.True(scopes.Single().Imports.Single().
NamespaceOrType
is INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) });
147
Assert.True(scopes.Single().Imports.Any(i => i.
NamespaceOrType
is INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) }));
148
Assert.True(scopes.Single().Imports.Any(i => i.
NamespaceOrType
is INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(Microsoft) }));
175
Assert.True(scopes.Single().Imports.Single().
NamespaceOrType
is INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) });
198
Assert.True(scopes[0].Imports.Single().
NamespaceOrType
is INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(Microsoft) });
200
Assert.True(scopes[1].Imports.Single().
NamespaceOrType
is INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) });
226
Assert.True(scopes[0].Imports.Single().
NamespaceOrType
is INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(Microsoft) });
228
Assert.True(scopes[1].Imports.Single().
NamespaceOrType
is INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) });
625
Assert.True(scopes.Single().Imports.Single().
NamespaceOrType
is INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) });
648
Assert.True(scopes.Single().Imports.Single().
NamespaceOrType
is INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) });
682
Assert.True(scopes.Single().Imports.Any(i => i.
NamespaceOrType
is INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) }));
684
Assert.True(scopes.Single().Imports.Any(i => i.
NamespaceOrType
is INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: false, Name: nameof(System.IO) }));
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (8)
Compilation\GetImportScopesTests.vb (8)
73
Assert.True(IsNamespaceWithName(scopes.Single().Imports.Single().
NamespaceOrType
, NameOf(System)))
90
Assert.True(IsNamespaceWithName(scopes.Single().Imports.Single().
NamespaceOrType
, NameOf(System)))
108
Assert.True(IsNamespaceWithName(scopes.Single().Imports.Single().
NamespaceOrType
, NameOf(System)))
123
Assert.True(scopes.Single().Imports.Any(Function(i) IsNamespaceWithName(i.
NamespaceOrType
, NameOf(System))))
124
Assert.True(scopes.Single().Imports.Any(Function(i) IsNamespaceWithName(i.
NamespaceOrType
, NameOf(Microsoft))))
152
Assert.True(IsNamespaceWithName(scopes.Single().Imports.Single().
NamespaceOrType
, NameOf(System)))
175
Assert.True(IsNamespaceWithName(scopes.Single().Imports.Single().
NamespaceOrType
, NameOf(System)))
200
Assert.True(IsNamespaceWithName(scopes.Single().Imports.Single().
NamespaceOrType
, NameOf(System)))