2 writes to CustomModifiers
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\TypeWithModifiers.vb (2)
18
Me.
CustomModifiers
= customModifiers.NullToEmpty
24
Me.
CustomModifiers
= ImmutableArray(Of CustomModifier).Empty
51 references to CustomModifiers
Microsoft.CodeAnalysis.VisualBasic (51)
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (2)
414
Return New TypeWithModifiers(newType, v.VisitCustomModifiers(t.
CustomModifiers
))
735
v.VisitCustomModifiers(t.
CustomModifiers
)), Me)
Symbols\ArrayTypeSymbol.vb (3)
516
newArray = New SZArray(newElementType.Type, newElementType.
CustomModifiers
, _systemArray, newInterfaces)
519
newArray = New MDArrayNoSizesOrBounds(newElementType.Type, newElementType.
CustomModifiers
, Me.Rank, _systemArray)
522
newArray = New MDArrayWithSizesAndBounds(newElementType.Type, newElementType.
CustomModifiers
, Me.Rank, Me.Sizes, Me.LowerBounds, _systemArray)
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
455
RetargetModifiers(arg.
CustomModifiers
, modifiersHaveChanged))
Symbols\TypeSubstitution.vb (7)
167
If Not p.Value.
CustomModifiers
.IsDefaultOrEmpty Then
197
Return p.Value.
CustomModifiers
220
If Not p.Value.
CustomModifiers
.IsDefaultOrEmpty Then
560
Debug.Assert(pairs.All(Function(p) Not p.Value.
CustomModifiers
.IsDefault))
649
If argument.
CustomModifiers
.IsDefaultOrEmpty Then
675
If typeParameter.Ordinal = i AndAlso typeParameter.ContainingSymbol Is targetMethod AndAlso argument.
CustomModifiers
.IsDefaultOrEmpty Then
863
Return New TypeWithModifiers(type, customModifiers).InternalSubstituteTypeParameters(Me).
CustomModifiers
Symbols\TypeWithModifiers.vb (12)
42
Return If(Me.
CustomModifiers
.IsDefault,
43
other.
CustomModifiers
.IsDefault,
44
Not other.
CustomModifiers
.IsDefault AndAlso Me.
CustomModifiers
.SequenceEqual(other.
CustomModifiers
))
59
Return Hash.Combine(Me.Type, Hash.CombineValues(Me.
CustomModifiers
))
63
Return TypeSymbol.Equals(Me.Type, other, TypeCompareKind.ConsiderEverything) AndAlso Me.
CustomModifiers
.IsEmpty
77
Debug.Assert(Me.
CustomModifiers
.IsEmpty)
82
Dim newCustomModifiers = If(substitution IsNot Nothing, substitution.SubstituteCustomModifiers(Me.
CustomModifiers
), Me.
CustomModifiers
)
84
If Not newTypeWithModifiers.Is(Me.Type) OrElse newCustomModifiers <> Me.
CustomModifiers
Then
85
Return New TypeWithModifiers(newTypeWithModifiers.Type, newCustomModifiers.Concat(newTypeWithModifiers.
CustomModifiers
))
Utilities\TypeUnification.vb (26)
94
If t2.Type.TypeKind <> t1.Type.TypeKind OrElse Not t1.
CustomModifiers
.SequenceEqual(t2.
CustomModifiers
) Then
107
If t2.Type.TypeKind <> t1.Type.TypeKind OrElse Not t1.
CustomModifiers
.SequenceEqual(t2.
CustomModifiers
) Then
160
If t1.
CustomModifiers
.IsDefaultOrEmpty Then
165
If t1.
CustomModifiers
.SequenceEqual(t2.
CustomModifiers
) Then
170
If t1.
CustomModifiers
.Length < t2.
CustomModifiers
.Length AndAlso
171
t1.
CustomModifiers
.SequenceEqual(t2.
CustomModifiers
.Take(t1.
CustomModifiers
.Length)) Then
174
ImmutableArray.Create(t2.
CustomModifiers
, t1.
CustomModifiers
.Length, t2.
CustomModifiers
.Length - t1.
CustomModifiers
.Length)))
181
If t2.
CustomModifiers
.IsDefaultOrEmpty Then
186
If t2.
CustomModifiers
.Length < t1.
CustomModifiers
.Length AndAlso
187
t2.
CustomModifiers
.SequenceEqual(t1.
CustomModifiers
.Take(t2.
CustomModifiers
.Length)) Then
190
ImmutableArray.Create(t1.
CustomModifiers
, t2.
CustomModifiers
.Length, t1.
CustomModifiers
.Length - t2.
CustomModifiers
.Length)))