29 references to IImportScope
Microsoft.CodeAnalysis (29)
CodeGen\MethodBody.cs (3)
29
private readonly Cci.
IImportScope
_importScopeOpt;
64
Cci.
IImportScope
importScopeOpt,
141
Cci.
IImportScope
Cci.IMethodBody.ImportScope => _importScopeOpt;
Emit\EditAndContinue\DeletedMethodBody.cs (1)
42
public Cci.
IImportScope
ImportScope => null;
Emit\NoPia\CommonEmbeddedMethod.cs (1)
148
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)
124
_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
>();
113
for (
IImportScope
scope = body.ImportScope; scope != null; scope = scope.Parent)
PEWriter\RootModuleStaticConstructor.cs (1)
150
public
IImportScope
ImportScope => null;