34 instantiations of SmallDictionary
Microsoft.CodeAnalysis (5)
CodeGen\ILBuilder.cs (1)
83_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)
3640_lazyMakeMemberMissingMap = new SmallDictionary<int, bool>(); 3665_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)
336map = new SmallDictionary<string, Symbol>();
Binder\LocalBinderFactory.cs (1)
139_map = new SmallDictionary<SyntaxNode, Binder>(ReferenceEqualityComparer.Instance);
Binder\LocalScopeBinder.cs (1)
133var map = new SmallDictionary<string, TSymbol>();
Binder\WithLambdaParametersBinder.cs (1)
31_definitionMap = new SmallDictionary<string, ParameterSymbol>();
CodeGen\Optimizer.cs (1)
410new 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)
38return _cache ?? (_cache = new SmallDictionary<NamedTypeSymbol, bool>(Symbols.SymbolEqualityComparer.ConsiderEverything));
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
289private readonly SmallDictionary<Symbol, Scope> _localToScope = new SmallDictionary<Symbol, Scope>();
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1009var 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)
134var isValueTypeMap = new SmallDictionary<TypeParameterSymbol, bool>(ReferenceEqualityComparer.Instance); 199var isReferenceTypeFromConstraintTypesMap = new SmallDictionary<TypeParameterSymbol, bool>(ReferenceEqualityComparer.Instance);
Symbols\Tuples\TupleTypeSymbol.cs (1)
1059var map = new SmallDictionary<Symbol, Symbol>(ReferenceEqualityComparer.Instance);
Symbols\TypeMap.cs (5)
57: base(new SmallDictionary<TypeParameterSymbol, TypeWithAnnotations>(mapping, ReferenceEqualityComparer.Instance)) 66new SmallDictionary<TypeParameterSymbol, TypeWithAnnotations>(substituted.TypeSubstitution.Mapping, ReferenceEqualityComparer.Instance) : 67new SmallDictionary<TypeParameterSymbol, TypeWithAnnotations>(ReferenceEqualityComparer.Instance); 85new SmallDictionary<TypeParameterSymbol, TypeWithAnnotations>(ReferenceEqualityComparer.Instance); 202var mapping = new SmallDictionary<TypeParameterSymbol, TypeWithAnnotations>(ReferenceEqualityComparer.Instance);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
52private 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>();
Microsoft.CodeAnalysis.VisualBasic (6)
Binding\Binder_Expressions.vb (2)
3379Dim namespaces = New SmallDictionary(Of NamespaceSymbol, Boolean)() 3460Dim lookup = New SmallDictionary(Of NamespaceSymbol, Boolean)()
Binding\MemberSemanticModel.vb (1)
1209Private ReadOnly _guardedBoundNodeMap As New SmallDictionary(Of SyntaxNode, ImmutableArray(Of BoundNode))(ReferenceEqualityComparer.Instance)
Compilation\SyntaxTreeSemanticModel.vb (1)
656Dim namespaces = New SmallDictionary(Of NamespaceSymbol, Boolean)()
Symbols\MergedNamespaceSymbol.vb (1)
673Dim lookup = New SmallDictionary(Of NamespaceSymbol, Boolean)()
Symbols\Tuples\TupleTypeSymbol.vb (1)
883Dim smallDictionary As SmallDictionary(Of Symbol, Symbol) = New SmallDictionary(Of Symbol, Symbol)(ReferenceEqualityComparer.Instance)
79 references to SmallDictionary
Microsoft.CodeAnalysis (14)
CodeGen\BasicBlock.cs (1)
423var labelInfos = builder._labelInfos;
CodeGen\ILBuilder.cs (1)
40private 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)
57private SmallDictionary<int, bool>? _lazyMakeWellKnownTypeMissingMap; 62private 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)
26private SmallDictionary<string, Symbol> _lazyDefinitionMap; 48private static void RecordDefinition<T>(SmallDictionary<string, Symbol> declarationMap, ImmutableArray<T> definitions) where T : Symbol 332var map = _lazyDefinitionMap;
Binder\LocalBinderFactory.cs (2)
34private readonly SmallDictionary<SyntaxNode, Binder> _map; 71public static SmallDictionary<SyntaxNode, Binder> BuildMap(
Binder\LocalScopeBinder.cs (13)
86private SmallDictionary<string, LocalSymbol> _lazyLocalsMap; 87private SmallDictionary<string, LocalSymbol> LocalsMap 100private SmallDictionary<string, LocalFunctionSymbol> _lazyLocalFunctionsMap; 101private SmallDictionary<string, LocalFunctionSymbol> LocalFunctionsMap 114private SmallDictionary<string, LabelSymbol> _lazyLabelsMap; 115private SmallDictionary<string, LabelSymbol> LabelsMap 128private static SmallDictionary<string, TSymbol> BuildMap<TSymbol>(ImmutableArray<TSymbol> array) 133var map = new SmallDictionary<string, TSymbol>(); 383var labelsMap = this.LabelsMap; 395var localsMap = this.LocalsMap; 405var localFunctionsMap = this.LocalFunctionsMap; 500var localsMap = this.LocalsMap; 501var localFunctionsMap = this.LocalFunctionsMap;
Binder\WithLambdaParametersBinder.cs (2)
20private readonly SmallDictionary<string, ParameterSymbol> _definitionMap; 161var map = _definitionMap;
CodeGen\Optimizer.cs (1)
409private 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)
25private SmallDictionary<NamedTypeSymbol, bool> _cache; 34private SmallDictionary<NamedTypeSymbol, bool> Cache
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
289private 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)
392SmallDictionary<TypeParameterSymbol, bool> isValueTypeMap = TypeParameterConstraintClause.BuildIsValueTypeMap(typeParameters, constraintClauses); 393SmallDictionary<TypeParameterSymbol, bool> isReferenceTypeFromConstraintTypesMap = TypeParameterConstraintClause.BuildIsReferenceTypeFromConstraintTypesMap(typeParameters, constraintClauses);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1009var 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)
128internal static SmallDictionary<TypeParameterSymbol, bool> BuildIsValueTypeMap( 134var isValueTypeMap = new SmallDictionary<TypeParameterSymbol, bool>(ReferenceEqualityComparer.Instance); 143static bool isValueType(TypeParameterSymbol thisTypeParameter, ImmutableArray<TypeParameterConstraintClause> constraintClauses, SmallDictionary<TypeParameterSymbol, bool> isValueTypeMap, ConsList<TypeParameterSymbol> inProgress) 193internal static SmallDictionary<TypeParameterSymbol, bool> BuildIsReferenceTypeFromConstraintTypesMap( 199var isReferenceTypeFromConstraintTypesMap = new SmallDictionary<TypeParameterSymbol, bool>(ReferenceEqualityComparer.Instance); 209SmallDictionary<TypeParameterSymbol, bool> isReferenceTypeFromConstraintTypesMap, ConsList<TypeParameterSymbol> inProgress)
Symbols\Tuples\TupleTypeSymbol.cs (4)
919private SmallDictionary<Symbol, Symbol>? _lazyUnderlyingDefinitionToMemberMap; 1051internal SmallDictionary<Symbol, Symbol> UnderlyingDefinitionToMemberMap 1057SmallDictionary<Symbol, Symbol> computeDefinitionToMemberMap() 1059var map = new SmallDictionary<Symbol, Symbol>(ReferenceEqualityComparer.Instance);
Symbols\TypeMap.cs (5)
56private TypeMap(SmallDictionary<TypeParameterSymbol, TypeWithAnnotations> mapping) 62private static SmallDictionary<TypeParameterSymbol, TypeWithAnnotations> ForType(NamedTypeSymbol containingType) 84private static readonly SmallDictionary<TypeParameterSymbol, TypeWithAnnotations> s_emptyDictionary = 200private static SmallDictionary<TypeParameterSymbol, TypeWithAnnotations> ConstructMapping(ImmutableArray<TypeParameterSymbol> from, ImmutableArray<TypeWithAnnotations> to) 202var mapping = new SmallDictionary<TypeParameterSymbol, TypeWithAnnotations>(ReferenceEqualityComparer.Instance);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
52private 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>();
Microsoft.CodeAnalysis.VisualBasic (7)
Binding\Binder_Expressions.vb (2)
3396Friend Shared Function AddReceiverNamespaces(namespaces As SmallDictionary(Of NamespaceSymbol, Boolean), candidate As Symbol, compilation As VisualBasicCompilation) As Boolean 3411Private Shared Function AddContainingNamespaces(namespaces As SmallDictionary(Of NamespaceSymbol, Boolean), candidate As Symbol, compilation As VisualBasicCompilation) As Boolean
Binding\MemberSemanticModel.vb (1)
2118nodeCache As SmallDictionary(Of SyntaxNode, ImmutableArray(Of BoundNode)),
Symbols\Tuples\TupleTypeSymbol.vb (4)
50Private _lazyUnderlyingDefinitionToMemberMap As SmallDictionary(Of Symbol, Symbol) 123Friend ReadOnly Property UnderlyingDefinitionToMemberMap As SmallDictionary(Of Symbol, Symbol) 882Private Function ComputeDefinitionToMemberMap() As SmallDictionary(Of Symbol, Symbol) 883Dim smallDictionary As SmallDictionary(Of Symbol, Symbol) = New SmallDictionary(Of Symbol, Symbol)(ReferenceEqualityComparer.Instance)