55 references to Conversion
Microsoft.CodeAnalysis.VisualBasic (55)
Binding\MemberSemanticModel.vb (3)
107
Public Overrides Function ClassifyConversion(expression As ExpressionSyntax, destination As ITypeSymbol) As
Conversion
775
Dim currentConversion As
Conversion
= Nothing
776
Dim elementConversion As
Conversion
= Nothing
Compilation\ForEachStatementInfo.vb (4)
46
Public ReadOnly Property ElementConversion As
Conversion
54
Public ReadOnly Property CurrentConversion As
Conversion
68
elementConversion As
Conversion
,
69
currentConversion As
Conversion
)
Compilation\SemanticModel.vb (6)
357
Dim conversion As
Conversion
= Nothing
366
Public Function GetConversion(node As SyntaxNode, Optional cancellationToken As CancellationToken = Nothing) As
Conversion
383
Public Function GetSpeculativeConversion(position As Integer, expression As ExpressionSyntax, bindingOption As SpeculativeBindingOption) As
Conversion
918
ByRef conversion As
Conversion
) As TypeSymbol
2335
Public MustOverride Shadows Function ClassifyConversion(expression As ExpressionSyntax, destination As ITypeSymbol) As
Conversion
2350
Public Shadows Function ClassifyConversion(position As Integer, expression As ExpressionSyntax, destination As ITypeSymbol) As
Conversion
Compilation\SpeculativeSemanticModelWithMemberModel.vb (1)
129
Public Overrides Function ClassifyConversion(expression As ExpressionSyntax, destination As ITypeSymbol) As
Conversion
Compilation\SyntaxTreeSemanticModel.vb (1)
1388
Public Overrides Function ClassifyConversion(expression As ExpressionSyntax, destination As ITypeSymbol) As
Conversion
Compilation\TypeInfo.vb (3)
16
Private ReadOnly _implicitConversion As
Conversion
45
Public ReadOnly Property ImplicitConversion As
Conversion
55
Friend Sub New(type As TypeSymbol, convertedType As TypeSymbol, implicitConversion As
Conversion
)
Compilation\VisualBasicCompilation.vb (2)
1875
Public Shadows Function ClassifyConversion(source As ITypeSymbol, destination As ITypeSymbol) As
Conversion
1917
Dim result As
Conversion
= ClassifyConversion(sourceType, destination)
Semantics\Conversions.vb (12)
19
Implements IEquatable(Of
Conversion
), IConvertibleConversion
216
''' Returns True if two <see cref="
Conversion
"/> values are equal.
220
Public Shared Operator =(left As
Conversion
, right As
Conversion
) As Boolean
225
''' Returns True if two <see cref="
Conversion
"/> values are not equal.
229
Public Shared Operator <>(left As
Conversion
, right As
Conversion
) As Boolean
238
''' This is a lossy conversion; it is not possible to recover the original <see cref="
Conversion
"/>
252
Return TypeOf obj Is
Conversion
AndAlso
253
Me = DirectCast(obj,
Conversion
)
262
Public Overloads Function Equals(other As
Conversion
) As Boolean Implements IEquatable(Of
Conversion
).Equals
VisualBasicExtensions.vb (23)
772
Public Function ClassifyConversion(compilation As Compilation, source As ITypeSymbol, destination As ITypeSymbol) As
Conversion
807
Public Function ClassifyConversion(semanticModel As SemanticModel, expression As ExpressionSyntax, destination As ITypeSymbol) As
Conversion
825
Public Function ClassifyConversion(semanticModel As SemanticModel, position As Integer, expression As ExpressionSyntax, destination As ITypeSymbol) As
Conversion
1371
Public Function GetConversion(semanticModel As SemanticModel, expression As SyntaxNode, Optional cancellationToken As CancellationToken = Nothing) As
Conversion
1381
''' Gets the underlying <see cref="
Conversion
"/> information from an <see cref="IConversionOperation"/> that was created from Visual Basic code.
1384
''' <returns>The underlying <see cref="
Conversion
"/>.</returns>
1387
Public Function GetConversion(conversionExpression As IConversionOperation) As
Conversion
1389
Return DirectCast(DirectCast(conversionExpression, ConversionOperation).ConversionConvertible,
Conversion
)
1398
''' Gets the underlying <see cref="
Conversion
"/> information for InConversion of <see cref="IArgumentOperation"/> that was created from Visual Basic code.
1401
''' <returns>The underlying <see cref="
Conversion
"/> of the InConversion.</returns>
1404
Public Function GetInConversion(argument As IArgumentOperation) As
Conversion
1407
Return If(inConversionConvertible IsNot Nothing, DirectCast(inConversionConvertible,
Conversion
), New Conversion(Conversions.Identity))
1416
''' Gets the underlying <see cref="
Conversion
"/> information for OutConversion of <see cref="IArgumentOperation"/> that was created from Visual Basic code.
1419
''' <returns>The underlying <see cref="
Conversion
"/> of the OutConversion.</returns>
1422
Public Function GetOutConversion(argument As IArgumentOperation) As
Conversion
1425
Return If(outConversionConvertible IsNot Nothing, DirectCast(outConversionConvertible,
Conversion
), New Conversion(Conversions.Identity))
1434
''' Gets the underlying <see cref="
Conversion
"/> information from this <see cref="ICompoundAssignmentOperation"/>. This
1441
Public Function GetInConversion(compoundAssignment As ICompoundAssignmentOperation) As
Conversion
1447
Return DirectCast(DirectCast(compoundAssignment, CompoundAssignmentOperation).InConversionConvertible,
Conversion
)
1456
''' Gets the underlying <see cref="
Conversion
"/> information from this <see cref="ICompoundAssignmentOperation"/>. This
1463
Public Function GetOutConversion(compoundAssignment As ICompoundAssignmentOperation) As
Conversion
1469
Return DirectCast(DirectCast(compoundAssignment, CompoundAssignmentOperation).OutConversionConvertible,
Conversion
)
1478
Public Function GetSpeculativeConversion(semanticModel As SemanticModel, position As Integer, expression As ExpressionSyntax, bindingOption As SpeculativeBindingOption) As
Conversion