11 instantiations of TypeParameterConstraint
Microsoft.CodeAnalysis.VisualBasic (11)
Binding\Binder_Constraints.vb (4)
58constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.Constructor, syntax.GetLocation())) 68constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.ReferenceType, syntax.GetLocation())) 80constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.ValueType, syntax.GetLocation())) 90constraintsBuilder.Add(New TypeParameterConstraint(constraintType, syntax.GetLocation()))
Symbols\Metadata\PE\PETypeParameterSymbol.vb (4)
156constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.Constructor, Nothing)) 160constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.ReferenceType, Nothing)) 164constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.ValueType, Nothing)) 211constraintsBuilder.Add(New TypeParameterConstraint(typeSymbol, Nothing))
Symbols\TypeParameterConstraint.vb (3)
16Me.New(kind, Nothing, loc) 23Me.New(TypeParameterConstraintKind.None, type, loc) 36Return New TypeParameterConstraint(Kind, TypeConstraint, loc)
43 references to TypeParameterConstraint
Microsoft.CodeAnalysis.VisualBasic (43)
Binding\Binder_Constraints.vb (4)
17) As ImmutableArray(Of TypeParameterConstraint) 21Return ImmutableArray(Of TypeParameterConstraint).Empty 25Dim constraintsBuilder = ArrayBuilder(Of TypeParameterConstraint).GetInstance() 45constraintsBuilder As ArrayBuilder(Of TypeParameterConstraint),
Symbols\ConstraintsHelper.vb (14)
33Public Sub New(typeParameter As TypeParameterSymbol, constraint As TypeParameterConstraint, diagnostic As DiagnosticInfo) 39Public ReadOnly Constraint As TypeParameterConstraint 97constraints As ImmutableArray(Of TypeParameterConstraint), 100diagnosticsBuilder As ArrayBuilder(Of TypeParameterDiagnosticInfo)) As ImmutableArray(Of TypeParameterConstraint) 102Dim constraintsBuilder = ArrayBuilder(Of TypeParameterConstraint).GetInstance() 827fromConstraintOpt As TypeParameterConstraint?) 828Dim constraints = ArrayBuilder(Of TypeParameterConstraint).GetInstance() 861Public Sub New(typeParameter As TypeParameterSymbol, constraint As TypeParameterConstraint, Optional isBad As Boolean = False) 868Public ReadOnly Constraint As TypeParameterConstraint 1004Private Function HasConflict(constraint1 As TypeParameterConstraint, constraint2 As TypeParameterConstraint, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean 1047Private Function HasValueTypeConstraintConflict(constraint As TypeParameterConstraint, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean 1067Private Function HasReferenceTypeConstraintConflict(constraint As TypeParameterConstraint) As Boolean 1140Private Function ContainsTypeConstraint(constraints As ArrayBuilder(Of TypeParameterConstraint), constraintType As TypeSymbol) As Boolean
Symbols\InstanceErrorTypeSymbol.vb (2)
208Friend Overrides Function GetConstraints() As ImmutableArray(Of TypeParameterConstraint) 209Return ImmutableArray(Of TypeParameterConstraint).Empty
Symbols\Metadata\PE\PETypeParameterSymbol.vb (2)
152Private Function GetDeclaredConstraints() As ImmutableArray(Of TypeParameterConstraint) 153Dim constraintsBuilder = ArrayBuilder(Of TypeParameterConstraint).GetInstance()
Symbols\Source\CrefTypeParameterSymbol.vb (2)
76Friend Overrides Function GetConstraints() As ImmutableArray(Of TypeParameterConstraint) 77Return ImmutableArray(Of TypeParameterConstraint).Empty
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
1056For Each constraintInfo As TypeParameterConstraint In param.GetConstraints()
Symbols\Source\SourceMethodSymbol.vb (1)
892diagnostics As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterConstraint)
Symbols\Source\SourceNamedTypeSymbol.vb (6)
754constraints As ImmutableArray(Of TypeParameterConstraint)) 760Public ReadOnly Constraints As ImmutableArray(Of TypeParameterConstraint) 788<Out()> ByRef constraints As ImmutableArray(Of TypeParameterConstraint), 862Private Shared Function HaveSameConstraints(constraints1 As ImmutableArray(Of TypeParameterConstraint), 863constraints2 As ImmutableArray(Of TypeParameterConstraint)) As Boolean 898Private Shared Function GetConstraintKind(constraints As ImmutableArray(Of TypeParameterConstraint)) As TypeParameterConstraintKind
Symbols\Source\SourceTypeParameterSymbol.vb (7)
20Private _lazyConstraints As ImmutableArray(Of TypeParameterConstraint) 87Friend Overrides Function GetConstraints() As ImmutableArray(Of TypeParameterConstraint) 139Protected MustOverride Overloads Function GetDeclaredConstraints(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterConstraint) 167Private Sub CheckConstraintTypeConstraints(constraints As ImmutableArray(Of TypeParameterConstraint), diagnostics As BindingDiagnosticBag) 274Protected Overrides Function GetDeclaredConstraints(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterConstraint) 276Dim constraints As ImmutableArray(Of TypeParameterConstraint) = Nothing 342Protected Overrides Function GetDeclaredConstraints(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterConstraint)
Symbols\TypeParameterConstraint.vb (1)
35Public Function AtLocation(loc As Location) As TypeParameterConstraint
Symbols\TypeParameterSymbol.vb (3)
187Friend Sub GetConstraints(constraintsBuilder As ArrayBuilder(Of TypeParameterConstraint)) 191Friend Overridable Function GetConstraints() As ImmutableArray(Of TypeParameterConstraint) 205Friend Shared Function GetConstraintTypesOnly(constraints As ImmutableArray(Of TypeParameterConstraint)) As ImmutableArray(Of TypeSymbol)