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