1 instantiation of ModifierInfo
Microsoft.CodeAnalysis (1)
MetadataReader\MetadataDecoder.cs (1)
756
ModifierInfo<TypeSymbol> modifier = new
ModifierInfo
<TypeSymbol>(isOptional, type);
36 references to ModifierInfo
Microsoft.CodeAnalysis (36)
MetadataReader\MetadataDecoder.cs (21)
38
internal static bool AnyRequired<TypeSymbol>(this ImmutableArray<
ModifierInfo
<TypeSymbol>> modifiers) where TypeSymbol : class
48
internal readonly ImmutableArray<
ModifierInfo
<TypeSymbol>> RefCustomModifiers;
50
internal readonly ImmutableArray<
ModifierInfo
<TypeSymbol>> CustomModifiers;
52
internal FieldInfo(bool isByRef, ImmutableArray<
ModifierInfo
<TypeSymbol>> refCustomModifiers, TypeSymbol type, ImmutableArray<
ModifierInfo
<TypeSymbol>> customModifiers)
72
internal ImmutableArray<
ModifierInfo
<TypeSymbol>> RefCustomModifiers;
73
internal ImmutableArray<
ModifierInfo
<TypeSymbol>> CustomModifiers;
82
internal readonly ImmutableArray<
ModifierInfo
<TypeSymbol>> CustomModifiers;
85
internal LocalInfo(TypeSymbol type, ImmutableArray<
ModifierInfo
<TypeSymbol>> customModifiers, LocalSlotConstraints constraints, byte[] signatureOpt)
209
ImmutableArray<
ModifierInfo
<TypeSymbol>> modifiers;
402
var argumentsBuilder = ArrayBuilder<KeyValuePair<TypeSymbol, ImmutableArray<
ModifierInfo
<TypeSymbol>>>>.GetInstance(argumentCount);
409
ImmutableArray<
ModifierInfo
<TypeSymbol>> modifiers = DecodeModifiersOrThrow(ref ppSig, out typeCode);
731
private ImmutableArray<
ModifierInfo
<TypeSymbol>> DecodeModifiersOrThrow(
735
ArrayBuilder<
ModifierInfo
<TypeSymbol>> modifiers = null;
756
ModifierInfo
<TypeSymbol> modifier = new ModifierInfo<TypeSymbol>(isOptional, type);
760
modifiers = ArrayBuilder<
ModifierInfo
<TypeSymbol>>.GetInstance();
905
internal TypeSymbol DecodeGenericParameterConstraint(EntityHandle token, out ImmutableArray<
ModifierInfo
<TypeSymbol>> modifiers)
907
modifiers = ImmutableArray<
ModifierInfo
<TypeSymbol>>.Empty;
1345
type = GetSZArrayTypeSymbol(elementType, customModifiers: default(ImmutableArray<
ModifierInfo
<TypeSymbol>>));
1861
ImmutableArray<
ModifierInfo
<TypeSymbol>> refCustomModifiers = default;
1862
ImmutableArray<
ModifierInfo
<TypeSymbol>> customModifiers = DecodeModifiersOrThrow(
MetadataReader\SymbolFactory.cs (4)
23
internal abstract TypeSymbol GetSZArrayTypeSymbol(ModuleSymbol moduleSymbol, TypeSymbol elementType, ImmutableArray<
ModifierInfo
<TypeSymbol>> customModifiers);
24
internal abstract TypeSymbol GetMDArrayTypeSymbol(ModuleSymbol moduleSymbol, int rank, TypeSymbol elementType, ImmutableArray<
ModifierInfo
<TypeSymbol>> customModifiers,
40
internal abstract TypeSymbol SubstituteTypeParameters(ModuleSymbol moduleSymbol, TypeSymbol generic, ImmutableArray<KeyValuePair<TypeSymbol, ImmutableArray<
ModifierInfo
<TypeSymbol>>>> arguments, ImmutableArray<bool> refersToNoPiaLocalType);
42
internal abstract TypeSymbol MakePointerTypeSymbol(ModuleSymbol moduleSymbol, TypeSymbol type, ImmutableArray<
ModifierInfo
<TypeSymbol>> customModifiers);
MetadataReader\TypeNameDecoder.cs (11)
65
protected TypeSymbol GetSZArrayTypeSymbol(TypeSymbol elementType, ImmutableArray<
ModifierInfo
<TypeSymbol>> customModifiers)
70
protected TypeSymbol GetMDArrayTypeSymbol(int rank, TypeSymbol elementType, ImmutableArray<
ModifierInfo
<TypeSymbol>> customModifiers, ImmutableArray<int> sizes, ImmutableArray<int> lowerBounds)
75
protected TypeSymbol MakePointerTypeSymbol(TypeSymbol type, ImmutableArray<
ModifierInfo
<TypeSymbol>> customModifiers)
110
protected TypeSymbol SubstituteTypeParameters(TypeSymbol genericType, ImmutableArray<KeyValuePair<TypeSymbol, ImmutableArray<
ModifierInfo
<TypeSymbol>>>> arguments, ImmutableArray<bool> refersToNoPiaLocalType)
203
container = MakePointerTypeSymbol(container, ImmutableArray<
ModifierInfo
<TypeSymbol>>.Empty);
213
GetSZArrayTypeSymbol(container, default(ImmutableArray<
ModifierInfo
<TypeSymbol>>)) :
214
GetMDArrayTypeSymbol(rank, container, default(ImmutableArray<
ModifierInfo
<TypeSymbol>>), ImmutableArray<int>.Empty, default(ImmutableArray<int>));
221
private ImmutableArray<KeyValuePair<TypeSymbol, ImmutableArray<
ModifierInfo
<TypeSymbol>>>> ResolveTypeArguments(MetadataHelpers.AssemblyQualifiedTypeName[] arguments, out ImmutableArray<bool> refersToNoPiaLocalType)
224
var typeArgumentsBuilder = ArrayBuilder<KeyValuePair<TypeSymbol, ImmutableArray<
ModifierInfo
<TypeSymbol>>>>.GetInstance(count);
230
typeArgumentsBuilder.Add(new KeyValuePair<TypeSymbol, ImmutableArray<
ModifierInfo
<TypeSymbol>>>(GetTypeSymbol(argument, out refersToNoPia), ImmutableArray<
ModifierInfo
<TypeSymbol>>.Empty));