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