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