7 instantiations of TypeParameterConstraint
Microsoft.CodeAnalysis.VisualBasic (7)
Symbols\Metadata\PE\PETypeParameterSymbol.vb (4)
172
constraintsBuilder.Add(New
TypeParameterConstraint
(TypeParameterConstraintKind.Constructor, Nothing))
176
constraintsBuilder.Add(New
TypeParameterConstraint
(TypeParameterConstraintKind.ReferenceType, Nothing))
180
constraintsBuilder.Add(New
TypeParameterConstraint
(TypeParameterConstraintKind.ValueType, Nothing))
225
constraintsBuilder.Add(New
TypeParameterConstraint
(typeSymbol, Nothing))
Symbols\TypeParameterConstraint.vb (3)
16
Me.
New
(kind, Nothing, loc)
23
Me.
New
(TypeParameterConstraintKind.None, type, loc)
36
Return New
TypeParameterConstraint
(Kind, TypeConstraint, loc)
39 references to TypeParameterConstraint
Microsoft.CodeAnalysis.VisualBasic (39)
Symbols\ConstraintsHelper.vb (14)
33
Public Sub New(typeParameter As TypeParameterSymbol, constraint As
TypeParameterConstraint
, diagnostic As DiagnosticInfo)
39
Public ReadOnly Constraint As
TypeParameterConstraint
97
constraints As ImmutableArray(Of
TypeParameterConstraint
),
100
diagnosticsBuilder As ArrayBuilder(Of TypeParameterDiagnosticInfo)) As ImmutableArray(Of
TypeParameterConstraint
)
102
Dim constraintsBuilder = ArrayBuilder(Of
TypeParameterConstraint
).GetInstance()
860
fromConstraintOpt As
TypeParameterConstraint
?)
861
Dim constraints = ArrayBuilder(Of
TypeParameterConstraint
).GetInstance()
894
Public Sub New(typeParameter As TypeParameterSymbol, constraint As
TypeParameterConstraint
, Optional isBad As Boolean = False)
901
Public ReadOnly Constraint As
TypeParameterConstraint
1045
Private Function HasConflict(constraint1 As
TypeParameterConstraint
, constraint2 As
TypeParameterConstraint
, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
1088
Private Function HasValueTypeConstraintConflict(constraint As
TypeParameterConstraint
, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
1108
Private Function HasReferenceTypeConstraintConflict(constraint As
TypeParameterConstraint
) As Boolean
1207
Private Function ContainsTypeConstraint(constraints As ArrayBuilder(Of
TypeParameterConstraint
), constraintType As TypeSymbol) As Boolean
Symbols\InstanceErrorTypeSymbol.vb (2)
214
Friend Overrides Function GetConstraints() As ImmutableArray(Of
TypeParameterConstraint
)
215
Return ImmutableArray(Of
TypeParameterConstraint
).Empty
Symbols\Metadata\PE\PETypeParameterSymbol.vb (2)
166
Private Function GetDeclaredConstraints(<Out> ByRef hasUnmanagedModreqPattern As Boolean) As ImmutableArray(Of
TypeParameterConstraint
)
167
Dim constraintsBuilder = ArrayBuilder(Of
TypeParameterConstraint
).GetInstance()
Symbols\Source\CrefTypeParameterSymbol.vb (2)
88
Friend Overrides Function GetConstraints() As ImmutableArray(Of
TypeParameterConstraint
)
89
Return ImmutableArray(Of
TypeParameterConstraint
).Empty
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
1047
For Each constraintInfo As
TypeParameterConstraint
In param.GetConstraints()
Symbols\Source\SourceMethodSymbol.vb (1)
892
diagnostics As BindingDiagnosticBag) As ImmutableArray(Of
TypeParameterConstraint
)
Symbols\Source\SourceNamedTypeSymbol.vb (6)
754
constraints As ImmutableArray(Of
TypeParameterConstraint
))
760
Public ReadOnly Constraints As ImmutableArray(Of
TypeParameterConstraint
)
788
<Out()> ByRef constraints As ImmutableArray(Of
TypeParameterConstraint
),
862
Private Shared Function HaveSameConstraints(constraints1 As ImmutableArray(Of
TypeParameterConstraint
),
863
constraints2 As ImmutableArray(Of
TypeParameterConstraint
)) As Boolean
898
Private Shared Function GetConstraintKind(constraints As ImmutableArray(Of
TypeParameterConstraint
)) As TypeParameterConstraintKind
Symbols\Source\SourceTypeParameterSymbol.vb (7)
20
Private _lazyConstraints As ImmutableArray(Of
TypeParameterConstraint
)
99
Friend Overrides Function GetConstraints() As ImmutableArray(Of
TypeParameterConstraint
)
151
Protected MustOverride Overloads Function GetDeclaredConstraints(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of
TypeParameterConstraint
)
179
Private Sub CheckConstraintTypeConstraints(constraints As ImmutableArray(Of
TypeParameterConstraint
), diagnostics As BindingDiagnosticBag)
288
Protected Overrides Function GetDeclaredConstraints(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of
TypeParameterConstraint
)
290
Dim constraints As ImmutableArray(Of
TypeParameterConstraint
) = Nothing
356
Protected Overrides Function GetDeclaredConstraints(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of
TypeParameterConstraint
)
Symbols\TypeParameterConstraint.vb (1)
35
Public Function AtLocation(loc As Location) As
TypeParameterConstraint
Symbols\TypeParameterSymbol.vb (3)
187
Friend Sub GetConstraints(constraintsBuilder As ArrayBuilder(Of
TypeParameterConstraint
))
191
Friend Overridable Function GetConstraints() As ImmutableArray(Of
TypeParameterConstraint
)
205
Friend Shared Function GetConstraintTypesOnly(constraints As ImmutableArray(Of
TypeParameterConstraint
)) As ImmutableArray(Of TypeSymbol)