7 instantiations of TypeParameterConstraint
Microsoft.CodeAnalysis.VisualBasic (7)
Symbols\Metadata\PE\PETypeParameterSymbol.vb (4)
172constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.Constructor, Nothing)) 176constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.ReferenceType, Nothing)) 180constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.ValueType, Nothing)) 225constraintsBuilder.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)
39 references to TypeParameterConstraint
Microsoft.CodeAnalysis.VisualBasic (39)
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() 860fromConstraintOpt As TypeParameterConstraint?) 861Dim constraints = ArrayBuilder(Of TypeParameterConstraint).GetInstance() 894Public Sub New(typeParameter As TypeParameterSymbol, constraint As TypeParameterConstraint, Optional isBad As Boolean = False) 901Public ReadOnly Constraint As TypeParameterConstraint 1045Private Function HasConflict(constraint1 As TypeParameterConstraint, constraint2 As TypeParameterConstraint, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean 1088Private Function HasValueTypeConstraintConflict(constraint As TypeParameterConstraint, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean 1108Private Function HasReferenceTypeConstraintConflict(constraint As TypeParameterConstraint) As Boolean 1207Private Function ContainsTypeConstraint(constraints As ArrayBuilder(Of TypeParameterConstraint), constraintType As TypeSymbol) As Boolean
Symbols\InstanceErrorTypeSymbol.vb (2)
214Friend Overrides Function GetConstraints() As ImmutableArray(Of TypeParameterConstraint) 215Return ImmutableArray(Of TypeParameterConstraint).Empty
Symbols\Metadata\PE\PETypeParameterSymbol.vb (2)
166Private Function GetDeclaredConstraints(<Out> ByRef hasUnmanagedModreqPattern As Boolean) As ImmutableArray(Of TypeParameterConstraint) 167Dim constraintsBuilder = ArrayBuilder(Of TypeParameterConstraint).GetInstance()
Symbols\Source\CrefTypeParameterSymbol.vb (2)
88Friend Overrides Function GetConstraints() As ImmutableArray(Of TypeParameterConstraint) 89Return ImmutableArray(Of TypeParameterConstraint).Empty
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
1047For 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) 99Friend Overrides Function GetConstraints() As ImmutableArray(Of TypeParameterConstraint) 151Protected MustOverride Overloads Function GetDeclaredConstraints(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterConstraint) 179Private Sub CheckConstraintTypeConstraints(constraints As ImmutableArray(Of TypeParameterConstraint), diagnostics As BindingDiagnosticBag) 288Protected Overrides Function GetDeclaredConstraints(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterConstraint) 290Dim constraints As ImmutableArray(Of TypeParameterConstraint) = Nothing 356Protected 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)