2 implementations of IImportScope
Microsoft.CodeAnalysis.CSharp (1)
Binder\ImportChain.cs (1)
17
internal sealed class ImportChain : Cci.
IImportScope
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\SourceFile.vb (1)
16
Implements Cci.
IImportScope
38 references to IImportScope
Microsoft.CodeAnalysis (29)
CodeGen\MethodBody.cs (3)
29
private readonly Cci.
IImportScope
_importScopeOpt;
63
Cci.
IImportScope
importScopeOpt,
138
Cci.
IImportScope
Cci.IMethodBody.ImportScope => _importScopeOpt;
Emit\EditAndContinue\DeletedMethodBody.cs (1)
51
public Cci.
IImportScope
ImportScope => null;
Emit\NoPia\CommonEmbeddedMethod.cs (1)
145
Cci.
IImportScope
Cci.IMethodBody.ImportScope => null;
NativePdbWriter\PdbWriter.cs (3)
164
var
namespaceScopes = methodBody.ImportScope;
169
for (
var
scope = namespaceScopes; scope != null; scope = scope.Parent)
190
for (
IImportScope
scope = namespaceScopes; scope != null; scope = scope.Parent)
PEWriter\CustomDebugInfoWriter.cs (4)
277
for (
IImportScope
scope = methodBody.ImportScope; scope != null; scope = scope.Parent)
309
var
previousScopes = _previousMethodBodyWithUsingInfo.ImportScope;
320
var
s1 = methodBody.ImportScope;
321
var
s2 = previousScopes;
PEWriter\IImportScope.cs (1)
24
IImportScope
Parent { get; }
PEWriter\Members.cs (1)
449
IImportScope
ImportScope { get; }
PEWriter\MetadataWriter.cs (1)
119
_scopeIndex = new Dictionary<
IImportScope
, ImportScopeHandle>(new ImportScopeEqualityComparer(context));
PEWriter\MetadataWriter.PortablePdb.cs (10)
33
internal sealed class ImportScopeEqualityComparer : IEqualityComparer<
IImportScope
>
42
public bool Equals(
IImportScope
x,
IImportScope
y)
48
public int GetHashCode(
IImportScope
obj)
55
private readonly Dictionary<
IImportScope
, ImportScopeHandle> _scopeIndex;
76
var
bodyImportScope = bodyOpt.ImportScope;
436
private ImportScopeHandle GetImportScopeIndex(
IImportScope
scope, Dictionary<
IImportScope
, ImportScopeHandle> scopeIndex)
445
var
parent = scope.Parent;
456
private BlobHandle SerializeImportsBlob(
IImportScope
scope)
PEWriter\ReferenceIndexer.cs (3)
18
private readonly HashSet<
IImportScope
> _alreadySeenScopes = new HashSet<
IImportScope
>();
114
for (
IImportScope
scope = body.ImportScope; scope != null; scope = scope.Parent)
PEWriter\RootModuleStaticConstructor.cs (1)
148
public
IImportScope
ImportScope => null;
Microsoft.CodeAnalysis.CSharp (5)
Binder\ImportChain.cs (4)
35
ImmutableArray<Cci.UsedNamespaceOrType> Cci.
IImportScope
.GetUsedNamespaces(EmitContext context)
44
public Cci.
IImportScope
Translate(Emit.PEModuleBuilder moduleBuilder, DiagnosticBag diagnostics)
159
Cci.
IImportScope
Cci.
IImportScope
.Parent => ParentOpt;
Compiler\MethodCompiler.cs (1)
1621
var
importScopeOpt = importChainOpt?.Translate(moduleBuilder, diagnosticsForThisMethod.DiagnosticBag);
Microsoft.CodeAnalysis.VisualBasic (4)
Symbols\Source\SourceFile.vb (4)
470
Public ReadOnly Property Parent As Cci.
IImportScope
Implements Cci.
IImportScope
.Parent
476
Public Function Translate(moduleBuilder As Emit.PEModuleBuilder, diagnostics As DiagnosticBag) As Cci.
IImportScope
484
Public Function GetUsedNamespaces(context As EmitContext) As ImmutableArray(Of Cci.UsedNamespaceOrType) Implements Cci.
IImportScope
.GetUsedNamespaces