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