17 instantiations of CConst
Microsoft.CodeAnalysis.VisualBasic (17)
Preprocessor\CConst.vb (17)
77Return New CConst(Of Object)(Nothing, SpecialType.System_Object) 81Return New CConst(Of Boolean)(value, SpecialType.System_Boolean) 85Return New CConst(Of Byte)(value, SpecialType.System_Byte) 89Return New CConst(Of SByte)(value, SpecialType.System_SByte) 93Return New CConst(Of Char)(value, SpecialType.System_Char) 97Return New CConst(Of Short)(value, SpecialType.System_Int16) 101Return New CConst(Of UShort)(value, SpecialType.System_UInt16) 105Return New CConst(Of Integer)(value, SpecialType.System_Int32) 109Return New CConst(Of UInteger)(value, SpecialType.System_UInt32) 113Return New CConst(Of Long)(value, SpecialType.System_Int64) 117Return New CConst(Of ULong)(value, SpecialType.System_UInt64) 121Return New CConst(Of Decimal)(value, SpecialType.System_Decimal) 125Return New CConst(Of String)(value, SpecialType.System_String) 129Return New CConst(Of Single)(value, SpecialType.System_Single) 133Return New CConst(Of Double)(value, SpecialType.System_Double) 137Return New CConst(Of Date)(value, SpecialType.System_DateTime) 214Return New CConst(Of T)(_value, _specialType, id)
50 references to CConst
Microsoft.CodeAnalysis.VisualBasic (50)
Preprocessor\CConst.vb (17)
76Friend Shared Function CreateNothing() As CConst(Of Object) 80Friend Shared Function Create(value As Boolean) As CConst(Of Boolean) 84Friend Shared Function Create(value As Byte) As CConst(Of Byte) 88Friend Shared Function Create(value As SByte) As CConst(Of SByte) 92Friend Shared Function Create(value As Char) As CConst(Of Char) 96Friend Shared Function Create(value As Short) As CConst(Of Short) 100Friend Shared Function Create(value As UShort) As CConst(Of UShort) 104Friend Shared Function Create(value As Integer) As CConst(Of Integer) 108Friend Shared Function Create(value As UInteger) As CConst(Of UInteger) 112Friend Shared Function Create(value As Long) As CConst(Of Long) 116Friend Shared Function Create(value As ULong) As CConst(Of ULong) 120Friend Shared Function Create(value As Decimal) As CConst(Of Decimal) 124Friend Shared Function Create(value As String) As CConst(Of String) 128Friend Shared Function Create(value As Single) As CConst(Of Single) 132Friend Shared Function Create(value As Double) As CConst(Of Double) 136Friend Shared Function Create(value As Date) As CConst(Of Date) 152Dim boolValue = TryCast(Me, CConst(Of Boolean))
Preprocessor\ExpressionEvaluator.vb (33)
601Return If(DirectCast(cond, CConst(Of Boolean)).Value, whenTrue, whenFalse) 612Return DirectCast(value, CConst(Of Boolean)) 660Dim tv = DirectCast(value, CConst(Of Boolean)) 732Return DirectCast(value, CConst(Of Char)) 754Dim tv = DirectCast(value, CConst(Of String)) 770Return DirectCast(value, CConst(Of DateTime)) 806Return DirectCast(value, CConst(Of String)) 818Dim tv = DirectCast(value, CConst(Of Char)) 870Return CConst.Create(-(CShort(DirectCast(val, CConst(Of Boolean)).Value))) 872Return CConst.Create(-(DirectCast(val, CConst(Of Byte)).Value)) 874Return CConst.Create(-(DirectCast(val, CConst(Of Decimal)).Value)) 876Return CConst.Create(-(DirectCast(val, CConst(Of Double)).Value)) 878Return CConst.Create(-(DirectCast(val, CConst(Of Int16)).Value)) 880Return CConst.Create(-(DirectCast(val, CConst(Of Int32)).Value)) 882Return CConst.Create(-(DirectCast(val, CConst(Of Int64)).Value)) 884Return CConst.Create(-(DirectCast(val, CConst(Of SByte)).Value)) 886Return CConst.Create(-(DirectCast(val, CConst(Of Single)).Value)) 888Return CConst.Create(-(DirectCast(val, CConst(Of UInt16)).Value)) 890Return CConst.Create(-(DirectCast(val, CConst(Of UInt32)).Value)) 892Return CConst.Create(-(DirectCast(val, CConst(Of UInt64)).Value)) 899Return CConst.Create(+(CShort(DirectCast(val, CConst(Of Boolean)).Value))) 909Return CConst.Create(Not (DirectCast(val, CConst(Of Boolean)).Value)) 911Return CConst.Create(Not (DirectCast(val, CConst(Of Byte)).Value)) 913Return CConst.Create(Not CLng(DirectCast(val, CConst(Of Decimal)).Value)) 915Return CConst.Create(Not CLng(DirectCast(val, CConst(Of Double)).Value)) 917Return CConst.Create(Not (DirectCast(val, CConst(Of Int16)).Value)) 919Return CConst.Create(Not (DirectCast(val, CConst(Of Int32)).Value)) 921Return CConst.Create(Not (DirectCast(val, CConst(Of Int64)).Value)) 923Return CConst.Create(Not (DirectCast(val, CConst(Of SByte)).Value)) 925Return CConst.Create(Not CLng(DirectCast(val, CConst(Of Single)).Value)) 927Return CConst.Create(Not (DirectCast(val, CConst(Of UInt16)).Value)) 929Return CConst.Create(Not (DirectCast(val, CConst(Of UInt32)).Value)) 931Return CConst.Create(Not (DirectCast(val, CConst(Of UInt64)).Value))