36 references to None
Microsoft.CodeAnalysis.VisualBasic (4)
Binding\Binder_Constraints.vb (1)
24
Dim constraints = TypeParameterConstraintKind.
None
Symbols\ConstraintsHelper.vb (1)
144
Case TypeParameterConstraintKind.
None
Symbols\Source\SourceNamedTypeSymbol.vb (1)
899
Dim kind = TypeParameterConstraintKind.
None
Symbols\TypeParameterConstraint.vb (1)
23
Me.New(TypeParameterConstraintKind.
None
, type, loc)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (32)
SymbolsTests\GenericConstraintTests.vb (32)
3577
CheckConstraints(method.TypeParameters(0), TypeParameterConstraintKind.
None
, "T", "U")
3580
CheckConstraints(method.TypeParameters(0), TypeParameterConstraintKind.
None
, "T", "I(Of U)", "I(Of Object)")
3583
CheckConstraints(method.TypeParameters(0), TypeParameterConstraintKind.
None
, "I(Of T)", "I(Of U)")
3586
CheckConstraints(method.TypeParameters(0), TypeParameterConstraintKind.
None
, "T")
3589
CheckConstraints(method.TypeParameters(0), TypeParameterConstraintKind.
None
, "I(Of Object)", "I(Of T)")
3592
CheckConstraints(method.TypeParameters(0), TypeParameterConstraintKind.
None
, "I(Of I(Of U))")
3619
CheckConstraints(type.TypeParameters(0), TypeParameterConstraintKind.
None
)
3620
CheckConstraints(type.TypeParameters(1), TypeParameterConstraintKind.
None
, "T")
3621
CheckConstraints(type.TypeParameters(2), TypeParameterConstraintKind.
None
, "A", "B")
3624
CheckConstraints(method.TypeParameters(0), TypeParameterConstraintKind.
None
, "T")
3625
CheckConstraints(method.TypeParameters(1), TypeParameterConstraintKind.
None
, "B", "A")
3741
CheckConstraints([namespace].GetMember(Of NamedTypeSymbol)("O1").TypeParameters(0), TypeParameterConstraintKind.
None
)
3742
CheckConstraints([namespace].GetMember(Of NamedTypeSymbol)("O2").TypeParameters(0), TypeParameterConstraintKind.
None
, "Object")
3747
CheckConstraints([namespace].GetMember(Of NamedTypeSymbol)("V5").TypeParameters(0), TypeParameterConstraintKind.
None
, "ValueType")
3748
CheckConstraints([namespace].GetMember(Of NamedTypeSymbol)("R1").TypeParameters(0), TypeParameterConstraintKind.
None
, "A")
3790
CheckConstraints(type.GetMember(Of MethodSymbol)("M1").TypeParameters(0), TypeParameterConstraintKind.
None
)
3793
CheckConstraints(type.GetMember(Of MethodSymbol)("M1").TypeParameters(0), TypeParameterConstraintKind.
None
, "Object")
3796
CheckConstraints(type.GetMember(Of MethodSymbol)("M1").TypeParameters(0), TypeParameterConstraintKind.
None
, "ValueType")
3993
CheckConstraints(type.Interfaces(0).GetMember(Of MethodSymbol)("M").TypeParameters(0), TypeParameterConstraintKind.
None
, "Object")
3995
CheckConstraints(type.GetMember(Of MethodSymbol)("M").TypeParameters(0), TypeParameterConstraintKind.
None
)
3997
CheckConstraints(type.GetMember(Of MethodSymbol)("M").TypeParameters(0), TypeParameterConstraintKind.
None
, "Object")
3999
CheckConstraints(type.Interfaces(0).GetMember(Of MethodSymbol)("M").TypeParameters(0), TypeParameterConstraintKind.
None
, "Object")
4001
CheckConstraints(type.GetMember(Of MethodSymbol)("M").TypeParameters(0), TypeParameterConstraintKind.
None
, "Object")
4003
CheckConstraints(type.GetMember(Of MethodSymbol)("M").TypeParameters(0), TypeParameterConstraintKind.
None
)
4005
CheckConstraints(type.GetMember(Of MethodSymbol)("M").TypeParameters(0), TypeParameterConstraintKind.
None
, "Object")
4007
CheckConstraints(type.GetMember(Of MethodSymbol)("M").TypeParameters(0), TypeParameterConstraintKind.
None
, "Object")
4009
CheckConstraints(type.GetMember(Of MethodSymbol)("M").TypeParameters(0), TypeParameterConstraintKind.
None
, "Object")
4011
CheckConstraints(type.BaseType.GetMember(Of MethodSymbol)("M").TypeParameters(0), TypeParameterConstraintKind.
None
, "Object")
4393
CheckConstraints(type.TypeParameters(0), TypeParameterConstraintKind.
None
)
4395
CheckConstraints(type.TypeParameters(0), TypeParameterConstraintKind.
None
, "C")
4397
CheckConstraints(method.TypeParameters(0), TypeParameterConstraintKind.
None
, "Object")
4399
CheckConstraints(method.TypeParameters(0), TypeParameterConstraintKind.
None
, "C")