4 instantiations of ImportChain
Microsoft.CodeAnalysis.CSharp (4)
Binder\WithExternAndUsingAliasesBinder.cs (3)
217previous = new ImportChain(Imports.Empty, previous); 222return new ImportChain(_declaringSymbol.GetImports(_declarationSyntax, basesBeingResolved: null), previous); 262return new ImportChain(Imports.Create(_usingAliases, ((WithUsingNamespacesAndTypesBinder)Next!).GetUsings(basesBeingResolved: null), _externAliases), Next!.ImportChain);
Binder\WithUsingNamespacesAndTypesBinder.cs (1)
240importChain = new ImportChain(GetImports(), importChain);
34 references to ImportChain
Microsoft.CodeAnalysis.CSharp (34)
Binder\Binder.cs (1)
388internal virtual ImportChain? ImportChain
Binder\Binder_Expressions.cs (1)
7517for (var chain = this.ImportChain; chain != null; chain = chain.ParentOpt)
Binder\Binder_Initializers.cs (5)
22internal ImportChain? FirstImportChain { get; set; } 33ImportChain? firstImportChain; 46out ImportChain? firstImportChain) 75out ImportChain? firstDebugImports) 167out ImportChain? firstDebugImports)
Binder\BuckStopsHereBinder.cs (1)
33internal override ImportChain? ImportChain
Binder\ImportChain.cs (3)
20public readonly ImportChain ParentOpt; 22public ImportChain(Imports imports, ImportChain parentOpt) 46for (var scope = this; scope != null; scope = scope.ParentOpt)
Binder\InMethodBinder.cs (1)
30/// This map is used by <see cref="MethodCompiler.BindMethodBody(MethodSymbol, TypeCompilationState, BindingDiagnosticBag, bool, BoundNode?, bool, out ImportChain?, out bool, out bool, out MethodBodySemanticModel.InitialState)"/>
Binder\WithExternAndUsingAliasesBinder.cs (6)
22private ImportChain? _lazyImportChain; 66internal override ImportChain ImportChain 82protected abstract ImportChain BuildImportChain(); 206protected override ImportChain BuildImportChain() 208var previous = Next!.ImportChain; 260protected override ImportChain BuildImportChain()
Binder\WithUsingNamespacesAndTypesBinder.cs (3)
23private ImportChain? _lazyImportChain; 230internal override ImportChain? ImportChain 236ImportChain? importChain = this.Next!.ImportChain;
Compilation\CSharpSemanticModel.cs (1)
5411for (var chain = binder?.ImportChain; chain != null; chain = chain.ParentOpt)
Compiler\MethodCompiler.cs (5)
715var oldImportChain = compilationState.CurrentImportChain; 922ImportChain oldImportChain = compilationState.CurrentImportChain; 955ImportChain importChain = null; 1498ImportChain importChainOpt, 1740out ImportChain? importChain,
Compiler\TypeCompilationState.cs (3)
31public readonly ImportChain? ImportChain; 33internal MethodWithBody(MethodSymbol method, BoundStatement body, ImportChain? importChain) 68public ImportChain? CurrentImportChain;
Emitter\Model\PEModuleBuilder.cs (4)
31private readonly ConcurrentDictionary<ImportChain, ImmutableArray<Cci.UsedNamespaceOrType>> _translatedImportsMap = 32new ConcurrentDictionary<ImportChain, ImmutableArray<Cci.UsedNamespaceOrType>>(ReferenceEqualityComparer.Instance); 2084internal bool TryGetTranslatedImports(ImportChain chain, out ImmutableArray<Cci.UsedNamespaceOrType> imports) 2089internal ImmutableArray<Cci.UsedNamespaceOrType> GetOrAddTranslatedImports(ImportChain chain, ImmutableArray<Cci.UsedNamespaceOrType> imports)