28 instantiations of SmallDictionary
Microsoft.CodeAnalysis (5)
CodeGen\ILBuilder.cs (1)
82
_labelInfos = new
SmallDictionary
<object, LabelInfo>(ReferenceEqualityComparer.Instance);
Collections\SmallDictionary.cs (1)
42
public static readonly SmallDictionary<K, V> Empty = new
SmallDictionary
<K, V>(null!);
Compilation\Compilation.cs (2)
3760
_lazyMakeMemberMissingMap = new
SmallDictionary
<int, bool>();
3785
_lazyMakeWellKnownTypeMissingMap = new
SmallDictionary
<int, bool>();
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
20
private static readonly SmallDictionary<string, TargetScope> s_suppressMessageScopeTypes = new
SmallDictionary
<string, TargetScope>(StringComparer.OrdinalIgnoreCase)
Microsoft.CodeAnalysis.CSharp (20)
Binder\InMethodBinder.cs (1)
355
map = new
SmallDictionary
<string, Symbol>();
Binder\LocalBinderFactory.cs (1)
139
_map = new
SmallDictionary
<SyntaxNode, Binder>(ReferenceEqualityComparer.Instance);
Binder\LocalScopeBinder.cs (1)
136
var map = new
SmallDictionary
<string, TSymbol>();
Binder\WithLambdaParametersBinder.cs (1)
31
_definitionMap = new
SmallDictionary
<string, ParameterSymbol>();
CodeGen\Optimizer.cs (1)
409
new
SmallDictionary
<object, DummyLocal>(ReferenceEqualityComparer.Instance);
Compiler\TypeCompilationState.cs (1)
217
_constructorInitializers = new
SmallDictionary
<MethodSymbol, MethodSymbol>();
FlowAnalysis\AbstractFlowPass_LocalFunctions.cs (1)
49
_localFuncVarUsages ??= new
SmallDictionary
<LocalFunctionSymbol, TLocalFunctionState>();
FlowAnalysis\EmptyStructTypeCache.cs (1)
33
return _cache ?? (_cache = new
SmallDictionary
<NamedTypeSymbol, bool>(Symbols.SymbolEqualityComparer.ConsiderEverything));
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
307
private readonly SmallDictionary<Symbol, Scope> _localToScope = new
SmallDictionary
<Symbol, Scope>();
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1217
var handleToFieldMap = new
SmallDictionary
<FieldDefinitionHandle, FieldSymbol>();
Symbols\MutableTypeMap.cs (1)
20
: base(new
SmallDictionary
<TypeParameterSymbol, TypeWithAnnotations>())
Symbols\Source\SourceNamedTypeSymbol.cs (1)
633
var result = new
SmallDictionary
<TypeWithAnnotations, int>(comparer);
Symbols\Source\TypeParameterConstraintClause.cs (2)
137
var isValueTypeMap = new
SmallDictionary
<TypeParameterSymbol, bool>(ReferenceEqualityComparer.Instance);
202
var isReferenceTypeFromConstraintTypesMap = new
SmallDictionary
<TypeParameterSymbol, bool>(ReferenceEqualityComparer.Instance);
Symbols\Tuples\TupleTypeSymbol.cs (1)
1052
var map = new
SmallDictionary
<Symbol, Symbol>(ReferenceEqualityComparer.Instance);
Symbols\TypeMap.cs (5)
56
: base(new
SmallDictionary
<TypeParameterSymbol, TypeWithAnnotations>(mapping, ReferenceEqualityComparer.Instance))
65
new
SmallDictionary
<TypeParameterSymbol, TypeWithAnnotations>(substituted.TypeSubstitution.Mapping, ReferenceEqualityComparer.Instance) :
66
new
SmallDictionary
<TypeParameterSymbol, TypeWithAnnotations>(ReferenceEqualityComparer.Instance);
84
new
SmallDictionary
<TypeParameterSymbol, TypeWithAnnotations>(ReferenceEqualityComparer.Instance);
195
var mapping = new
SmallDictionary
<TypeParameterSymbol, TypeWithAnnotations>(ReferenceEqualityComparer.Instance);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
56
private static readonly SmallDictionary<string, string> s_experimentalFeatures = new
SmallDictionary
<string, string> { };
Microsoft.CodeAnalysis.UnitTests (2)
Collections\SmallDictionaryTests.cs (2)
22
var sd = new
SmallDictionary
<int, string>();
55
var ht = new
SmallDictionary
<int, int>();
72 references to SmallDictionary
Microsoft.CodeAnalysis (14)
CodeGen\BasicBlock.cs (1)
422
var
labelInfos = builder._labelInfos;
CodeGen\ILBuilder.cs (1)
39
private readonly
SmallDictionary
<object, LabelInfo> _labelInfos;
Collections\SmallDictionary.cs (9)
42
public static readonly
SmallDictionary
<K, V> Empty = new SmallDictionary<K, V>(null!);
51
public SmallDictionary(
SmallDictionary
<K, V> other, IEqualityComparer<K> comparer)
508
private readonly
SmallDictionary
<K, V> _dict;
510
public KeyCollection(
SmallDictionary
<K, V> dict)
521
public Enumerator(
SmallDictionary
<K, V> dict)
623
private readonly
SmallDictionary
<K, V> _dict;
625
public ValueCollection(
SmallDictionary
<K, V> dict)
636
public Enumerator(
SmallDictionary
<K, V> dict)
742
public Enumerator(
SmallDictionary
<K, V> dict)
Compilation\Compilation.cs (2)
61
private
SmallDictionary
<int, bool>? _lazyMakeWellKnownTypeMissingMap;
66
private
SmallDictionary
<int, bool>? _lazyMakeMemberMissingMap;
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
20
private static readonly
SmallDictionary
<string, TargetScope> s_suppressMessageScopeTypes = new SmallDictionary<string, TargetScope>(StringComparer.OrdinalIgnoreCase)
Microsoft.CodeAnalysis.CSharp (55)
Binder\ExecutableCodeBinder.cs (4)
30
private
SmallDictionary
<SyntaxNode, Binder> _lazyBinderMap;
66
SmallDictionary
<SyntaxNode, Binder> map;
83
map =
SmallDictionary
<SyntaxNode, Binder>.Empty;
90
private
SmallDictionary
<SyntaxNode, Binder> BinderMap
Binder\InMethodBinder.cs (3)
27
private
SmallDictionary
<string, Symbol> _lazyDefinitionMap;
49
private static void RecordDefinition<T>(
SmallDictionary
<string, Symbol> declarationMap, ImmutableArray<T> definitions) where T : Symbol
351
var
map = _lazyDefinitionMap;
Binder\LocalBinderFactory.cs (2)
34
private readonly
SmallDictionary
<SyntaxNode, Binder> _map;
71
public static
SmallDictionary
<SyntaxNode, Binder> BuildMap(
Binder\LocalScopeBinder.cs (13)
89
private
SmallDictionary
<string, LocalSymbol> _lazyLocalsMap;
90
private
SmallDictionary
<string, LocalSymbol> LocalsMap
103
private
SmallDictionary
<string, LocalFunctionSymbol> _lazyLocalFunctionsMap;
104
private
SmallDictionary
<string, LocalFunctionSymbol> LocalFunctionsMap
117
private
SmallDictionary
<string, LabelSymbol> _lazyLabelsMap;
118
private
SmallDictionary
<string, LabelSymbol> LabelsMap
131
private static
SmallDictionary
<string, TSymbol> BuildMap<TSymbol>(ImmutableArray<TSymbol> array)
136
var
map = new SmallDictionary<string, TSymbol>();
429
var
labelsMap = this.LabelsMap;
441
var
localsMap = this.LocalsMap;
451
var
localFunctionsMap = this.LocalFunctionsMap;
546
var
localsMap = this.LocalsMap;
547
var
localFunctionsMap = this.LocalFunctionsMap;
Binder\WithLambdaParametersBinder.cs (2)
20
private readonly
SmallDictionary
<string, ParameterSymbol> _definitionMap;
161
var
map = _definitionMap;
CodeGen\Optimizer.cs (1)
408
private readonly
SmallDictionary
<object, DummyLocal> _dummyVariables =
Compiler\TypeCompilationState.cs (1)
80
private
SmallDictionary
<MethodSymbol, MethodSymbol>? _constructorInitializers;
FlowAnalysis\AbstractFlowPass_LocalFunctions.cs (1)
45
private
SmallDictionary
<LocalFunctionSymbol, TLocalFunctionState>? _localFuncVarUsages = null;
FlowAnalysis\EmptyStructTypeCache.cs (2)
20
private
SmallDictionary
<NamedTypeSymbol, bool> _cache;
29
private
SmallDictionary
<NamedTypeSymbol, bool> Cache
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
307
private readonly
SmallDictionary
<Symbol, Scope> _localToScope = new SmallDictionary<Symbol, Scope>();
Symbols\AbstractTypeParameterMap.cs (2)
20
protected readonly
SmallDictionary
<TypeParameterSymbol, TypeWithAnnotations> Mapping;
22
protected AbstractTypeParameterMap(
SmallDictionary
<TypeParameterSymbol, TypeWithAnnotations> mapping)
Symbols\ConstraintsHelper.cs (2)
421
SmallDictionary
<TypeParameterSymbol, bool> isValueTypeMap = TypeParameterConstraintClause.BuildIsValueTypeMap(typeParameters, constraintClauses);
422
SmallDictionary
<TypeParameterSymbol, bool> isReferenceTypeFromConstraintTypesMap = TypeParameterConstraintClause.BuildIsReferenceTypeFromConstraintTypesMap(typeParameters, constraintClauses);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1217
var
handleToFieldMap = new SmallDictionary<FieldDefinitionHandle, FieldSymbol>();
Symbols\Source\SourceNamedTypeSymbol.cs (5)
514
SmallDictionary
<TypeWithAnnotations, int> originalConstraintTypesMap = null;
562
ref
SmallDictionary
<TypeWithAnnotations, int> originalConstraintTypesMap, ref ArrayBuilder<TypeWithAnnotations> mergedConstraintTypes,
583
SmallDictionary
<TypeWithAnnotations, int> clauseConstraintTypesMap = toDictionary(clause.ConstraintTypes, originalConstraintTypesMap.Comparer);
631
static
SmallDictionary
<TypeWithAnnotations, int> toDictionary(ImmutableArray<TypeWithAnnotations> constraintTypes, IEqualityComparer<TypeWithAnnotations> comparer)
633
var
result = new SmallDictionary<TypeWithAnnotations, int>(comparer);
Symbols\Source\TypeParameterConstraintClause.cs (6)
131
internal static
SmallDictionary
<TypeParameterSymbol, bool> BuildIsValueTypeMap(
137
var
isValueTypeMap = new SmallDictionary<TypeParameterSymbol, bool>(ReferenceEqualityComparer.Instance);
146
static bool isValueType(TypeParameterSymbol thisTypeParameter, ImmutableArray<TypeParameterConstraintClause> constraintClauses,
SmallDictionary
<TypeParameterSymbol, bool> isValueTypeMap, ConsList<TypeParameterSymbol> inProgress)
196
internal static
SmallDictionary
<TypeParameterSymbol, bool> BuildIsReferenceTypeFromConstraintTypesMap(
202
var
isReferenceTypeFromConstraintTypesMap = new SmallDictionary<TypeParameterSymbol, bool>(ReferenceEqualityComparer.Instance);
212
SmallDictionary
<TypeParameterSymbol, bool> isReferenceTypeFromConstraintTypesMap, ConsList<TypeParameterSymbol> inProgress)
Symbols\Tuples\TupleTypeSymbol.cs (4)
912
private
SmallDictionary
<Symbol, Symbol>? _lazyUnderlyingDefinitionToMemberMap;
1044
internal
SmallDictionary
<Symbol, Symbol> UnderlyingDefinitionToMemberMap
1050
SmallDictionary
<Symbol, Symbol> computeDefinitionToMemberMap()
1052
var
map = new SmallDictionary<Symbol, Symbol>(ReferenceEqualityComparer.Instance);
Symbols\TypeMap.cs (5)
55
private TypeMap(
SmallDictionary
<TypeParameterSymbol, TypeWithAnnotations> mapping)
61
private static
SmallDictionary
<TypeParameterSymbol, TypeWithAnnotations> ForType(NamedTypeSymbol containingType)
83
private static readonly
SmallDictionary
<TypeParameterSymbol, TypeWithAnnotations> s_emptyDictionary =
193
private static
SmallDictionary
<TypeParameterSymbol, TypeWithAnnotations> ConstructMapping(ImmutableArray<TypeParameterSymbol> from, ImmutableArray<TypeWithAnnotations> to)
195
var
mapping = new SmallDictionary<TypeParameterSymbol, TypeWithAnnotations>(ReferenceEqualityComparer.Instance);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
56
private static readonly
SmallDictionary
<string, string> s_experimentalFeatures = new SmallDictionary<string, string> { };
Microsoft.CodeAnalysis.UnitTests (2)
Collections\SmallDictionaryTests.cs (2)
22
var
sd = new SmallDictionary<int, string>();
55
var
ht = new SmallDictionary<int, int>();