159 instantiations of BoundLiteral
Microsoft.CodeAnalysis.VisualBasic (109)
Analysis\InitializerRewriter.vb (2)
77New BoundLiteral(syntax, ConstantValue.Null, Nothing), 225submissionResult = New BoundLiteral(method.Syntax, ConstantValue.Nothing, submissionResultType)
Binding\Binder_Expressions.vb (7)
3718New BoundLiteral( 3740Dim arg = New BoundLiteral(name, ConstantValue.Create(node.Name.Identifier.ValueText), GetSpecialType(SpecialType.System_String, name, diagnostics)) 3759Dim arg = New BoundLiteral(name, ConstantValue.Create(node.Name.Identifier.ValueText), GetSpecialType(SpecialType.System_String, name, diagnostics)) 3799New BoundLiteral( 4109Dim sizeExpr = New BoundLiteral( 4387Dim one = New BoundLiteral(argumentSyntax, ConstantValue.Create(1), int32Type) 4445Return New BoundLiteral(node, cv, type)
Binding\Binder_Initializers.vb (1)
473Dim boundInitValue = New BoundLiteral(equalsValueOrAsNewSyntax,
Binding\Binder_Invocation.vb (7)
2723(New BoundExpression() {New BoundLiteral(node, 3184literal = New BoundLiteral(syntax, callerInfoValue, GetSpecialType(SpecialType.System_Int32, syntax, ignoreDiagnostics)) 3187literal = New BoundLiteral(syntax, callerInfoValue, GetSpecialType(SpecialType.System_String, syntax, ignoreDiagnostics)) 3248defaultArgument = New BoundLiteral(syntax, defaultConstantValue, defaultArgumentType) 3260defaultArgument = New BoundLiteral(syntax, ConstantValue.Null, Nothing) 3272Dim argument = New BoundLiteral(syntax, ConstantValue.Null, param.Type).MakeCompilerGenerated() 3280defaultArgument = New BoundLiteral(syntax, ConstantValue.Null, Nothing)
Binding\Binder_Operators.vb (1)
543Dim nothingStr = New BoundLiteral(left.Syntax, ConstantValue.Nothing, stringType).MakeCompilerGenerated()
Binding\Binder_Statements.vb (5)
771Dim nothingLiteral = New BoundLiteral(operand, ConstantValue.Nothing, Nothing).MakeCompilerGenerated() 3134stepValue = New BoundLiteral(node, 3470New BoundLiteral(collectionSyntax, ConstantValue.Nothing, Nothing), 3492New BoundLiteral(collectionSyntax, ConstantValue.Nothing, Nothing), 4592New BoundLiteral(syntaxNode, ConstantValue.Nothing, Nothing),
Binding\Binder_XmlLiterals.vb (2)
42ImmutableArray.Create(Of BoundExpression)(declaration, New BoundLiteral(syntax, ConstantValue.Nothing, Nothing)), 1057Dim result = New BoundLiteral(syntax, ConstantValue.Create(str), GetSpecialType(SpecialType.System_String, syntax, diagnostics), hasErrors:=hasErrors)
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (8)
131expression = New BoundLiteral(syntax, ConstantValue.Create(hashBase), integerType).MakeCompilerGenerated() 133Dim factorLiteral = New BoundLiteral(syntax, ConstantValue.Create(&HA5555529), integerType).MakeCompilerGenerated() 134Dim zeroLiteral = New BoundLiteral(syntax, ConstantValue.Create(0), integerType).MakeCompilerGenerated() 135Dim nothingLiteral = New BoundLiteral(syntax, ConstantValue.Nothing, objectType).MakeCompilerGenerated() 205Dim nothingLiteral = New BoundLiteral(syntax, ConstantValue.Nothing, objectType).MakeCompilerGenerated() 367New BoundLiteral(syntax, ConstantValue.Create(numberOfFields), 375New BoundLiteral(syntax, ConstantValue.Nothing, 377New BoundLiteral(syntax, ConstantValue.Create(formatString),
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (2)
263New BoundLiteral(syntax, ConstantValue.Nothing, 343New BoundLiteral(syntax, ConstantValue.Nothing,
Binding\SyntheticBoundTrees\SynthesizedStringSwitchHashMethod.vb (4)
96F.Assignment(F.Local(hashCode, True), New BoundLiteral(Me.Syntax, ConstantValue.Create(CUInt(2166136261)), hashCode.Type)), 102F.Assignment(F.Local(i, True), New BoundLiteral(Me.Syntax, ConstantValue.Create(0), i.Type)), 111New BoundLiteral(Me.Syntax, ConstantValue.Create(CUInt(16777619)), hashCode.Type))), 116New BoundLiteral(Me.Syntax, ConstantValue.Create(1), i.Type))),
Generated\BoundNodes.xml.Generated.vb (1)
5919Dim result = New BoundLiteral(Me.Syntax, value, type, Me.HasErrors)
Lowering\AsyncRewriter\AsyncRewriter.CapturedSymbolOrExpression.vb (1)
58Return New BoundLiteral(rewriter.F.Syntax, Me._constValue, Me._type)
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
441New BoundLiteral(syntaxNode, ConstantValue.Nothing, obj),
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
490If(midResult.LengthOpt, New BoundLiteral(node.Syntax, ConstantValue.Create(&H7FFFFFFF), midResult.Start.Type)),
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (9)
496New BoundLiteral(node.Syntax, ConstantValue.Create(0I), memberSymbol.ReturnType), 535New BoundLiteral(node.Syntax, ConstantValue.Create(0I), memberSymbol.ReturnType), 705New BoundLiteral(node.Syntax, ConstantValue.Create(compareText), memberSymbol.Parameters(2).Type)), 710compare, New BoundLiteral(node.Syntax, ConstantValue.Create(0I), memberSymbol.ReturnType), 737New BoundLiteral(node.Syntax, ConstantValue.Create(compareText), memberSymbol.Parameters(2).Type)), 770New BoundLiteral(node.Syntax, ConstantValue.Create(If(compareText, 1I, 0I)), memberSymbol.Parameters(2).Type)), 1043Dim result = New BoundLiteral(node.Syntax, ConstantValue.False, node.Type.GetNullableUnderlyingType()) 1330Return New BoundLiteral(operand.Syntax, 1337Return MakeSequence(operand, New BoundLiteral(operand.Syntax,
Lowering\LocalRewriter\LocalRewriter_Constant.vb (8)
28Return If(node.Kind = BoundKind.Literal, node, New BoundLiteral(node.Syntax, constantValue, node.Type, hasErrors:=constantValue.IsBad)) 97{New BoundLiteral(node.Syntax, ConstantValue.Create(value), decCtorInt64.Parameters(0).Type)}), 126New BoundLiteral(node.Syntax, ConstantValue.Create(UncheckedCInt(low)), decCtor.Parameters(0).Type), 127New BoundLiteral(node.Syntax, ConstantValue.Create(UncheckedCInt(mid)), decCtor.Parameters(1).Type), 128New BoundLiteral(node.Syntax, ConstantValue.Create(UncheckedCInt(high)), decCtor.Parameters(2).Type), 129New BoundLiteral(node.Syntax, ConstantValue.Create(isNegative), decCtor.Parameters(3).Type), 130New BoundLiteral(node.Syntax, ConstantValue.Create(scale), decCtor.Parameters(4).Type)), 175{New BoundLiteral(node.Syntax, ConstantValue.Create(dt.Ticks), dtCtorInt64.Parameters(0).Type)}),
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (1)
548operand = RewriteConstant(New BoundLiteral(node.Syntax, constantResult, unwrappedResultType), constantResult)
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (2)
244New BoundLiteral(syntaxNode, 391New BoundLiteral(syntaxNode, ConstantValue.Create(1), expressionType),
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (2)
128Dim literal As BoundExpression = New BoundLiteral(rewrittenStep.Syntax, ConstantValue.Default(literalUnderlyingType.SpecialType), stepValue.Type) 635Dim shiftConst = New BoundLiteral(value.Syntax, ConstantValue.Create(bits), int32Type)
Lowering\LocalRewriter\LocalRewriter_Label.vb (1)
31New BoundLiteral(node.Syntax, ConstantValue.Create(lineNumber), _currentLineTemporary.Type),
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (12)
75Dim bounds As BoundExpression = New BoundLiteral(node, ConstantValue.Create(flags.Length), intType) 115Dim bounds As BoundExpression = New BoundLiteral(node, ConstantValue.Create(rewrittenArguments.Length), intType) 143Dim indexExpr As BoundExpression = New BoundLiteral(node, ConstantValue.Create(indexVal), intType) 204Dim bounds As BoundExpression = New BoundLiteral(node, ConstantValue.Create(rewrittenArguments.Length + 1), intType) 254Dim indexExpr As BoundExpression = New BoundLiteral(node, ConstantValue.Create(index), intType) 276Dim bounds As BoundExpression = New BoundLiteral(node, ConstantValue.Default(ConstantValueTypeDiscriminator.Int32), intType) 280Dim bounds As BoundExpression = New BoundLiteral(node, ConstantValue.Create(rewrittenArguments.Length), intType) 329Dim bounds As BoundExpression = New BoundLiteral(node, ConstantValue.Create(initializer.Initializers.Length), intType) 347Dim index As BoundExpression = New BoundLiteral(syntax, ConstantValue.Create(argNum), intType) 929Return New BoundLiteral(node, ConstantValue.Create(value), stringType) 937Return New BoundLiteral(node, ConstantValue.Create(value), booleanType) 953Dim bounds As BoundExpression = New BoundLiteral(node, ConstantValue.Create(types.Length), intType)
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (5)
212New BoundLiteral(syntax, ConstantValue.Nothing, objectType), 226ImmutableArray.Create(Of BoundExpression)(flag, newFlagInstance, New BoundLiteral(syntax, ConstantValue.Nothing, flag.Type)), 266Dim two = New BoundLiteral(syntax, ConstantValue.Create(2S), flagState.Type) 270New BoundLiteral(syntax, ConstantValue.Default(ConstantValueTypeDiscriminator.Int16), flagState.Type), 320New BoundLiteral(syntax, ConstantValue.Create(1S), flagState.Type),
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (6)
67hasValueExpr = New BoundLiteral(operand.Syntax, ConstantValue.True, Me.GetSpecialType(SpecialType.System_Boolean)) 186New BoundLiteral(expr.Syntax, ConstantValue.False, expr.Type.GetNullableUnderlyingType())) 300Return WrapInNullable(New BoundLiteral(syntax, ConstantValue.False, booleanType), nullableOfBoolean) 306Return WrapInNullable(New BoundLiteral(syntax, ConstantValue.True, booleanType), nullableOfBoolean) 392Return New BoundLiteral(syntax, constant, resultType) 484Return New BoundLiteral(syntax, ConstantValue.Nothing, type)
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (1)
79New BoundLiteral(syntax, ConstantValue.Nothing,
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (2)
194New BoundLiteral(syntaxNode, ConstantValue.False, boundLockTakenLocal.Type), 263New BoundLiteral(syntaxNode, ConstantValue.True, boundLockTakenLocal.Type),
Lowering\LocalRewriter\LocalRewriter_UnaryOperators.vb (1)
32Return New BoundLiteral(node.Syntax, ConstantValue.False, node.Type)
Lowering\LocalRewriter\LocalRewriter_With.vb (1)
119New BoundLiteral(syntax, ConstantValue.Nothing, Nothing).MakeCompilerGenerated(),
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (4)
258New BoundLiteral( 326Return New BoundLiteral(syntax, ConstantValue.Create(str), GetSpecialType(SpecialType.System_String)).MakeCompilerGenerated() 348result = New BoundLiteral(syntax, ConstantValue.Nothing, arrayType) 350Dim size = (New BoundLiteral(syntax, ConstantValue.Create(items.Length), GetSpecialType(SpecialType.System_Int32))).MakeCompilerGenerated()
Lowering\SyntheticBoundNodeFactory.vb (7)
439Dim boundNode = New BoundLiteral(_syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean)) 445Dim boundNode = New BoundLiteral(_syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 758Dim boundNode = New BoundLiteral(_syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_String)) 765Dim boundNode = New BoundLiteral(_syntax, value, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_String)) 814Dim nullLiteral As BoundExpression = New BoundLiteral(_syntax, ConstantValue.Null, Nothing) 821Dim nullLiteral As BoundExpression = New BoundLiteral(_syntax, ConstantValue.Null, type) 826Dim nullLiteral As BoundExpression = New BoundLiteral(_syntax, ConstantValue.Null, Nothing)
Lowering\UseTwiceRewriter.vb (1)
186Dim second = New BoundLiteral(value.Syntax, constantValue, value.Type)
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (3)
79New BoundArrayAccess(syntax, submissionArrayReference, ImmutableArray.Create(Of BoundExpression)(New BoundLiteral(syntax, ConstantValue.Create(slotIndex), intType)), isLValue:=True, type:=objectType), 93New BoundArrayAccess(syntax, submissionArrayReference, ImmutableArray.Create(Of BoundExpression)(New BoundLiteral(syntax, ConstantValue.Create(0), intType)), isLValue:=False, type:=objectType), 113New BoundArrayAccess(syntax, submissionArrayReference, ImmutableArray.Create(Of BoundExpression)(New BoundLiteral(syntax, ConstantValue.Create(targetSubmissionId), intType)), isLValue:=False, type:=objectType),
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (4)
Rewriters\LocalDeclarationRewriter.vb (2)
72Dim name = New BoundLiteral(syntax, ConstantValue.Create(local.Name), stringType) 74Dim customTypeInfoPayload = New BoundLiteral(syntax, ConstantValue.Null, byteArrayType)
Symbols\ObjectIdLocalSymbol.vb (1)
102Dim argument As New BoundLiteral(
Symbols\ReturnValueLocalSymbol.vb (1)
35Dim argument As New BoundLiteral(
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (46)
Semantics\Conversions.vb (36)
102Dim [nothing] = New BoundLiteral(DirectCast(DirectCast(dummyTree.GetRoot(Nothing), VisualBasicSyntaxNode), VisualBasicSyntaxNode), ConstantValue.Nothing, Nothing) 103Dim intZero = New BoundLiteral(DirectCast(DirectCast(dummyTree.GetRoot(Nothing), VisualBasicSyntaxNode), VisualBasicSyntaxNode), ConstantValue.Create(0I), m13p(c)) 104Dim longZero = New BoundLiteral(DirectCast(DirectCast(dummyTree.GetRoot(Nothing), VisualBasicSyntaxNode), VisualBasicSyntaxNode), ConstantValue.Create(0L), m13p(d)) 271Dim _nothing = New BoundLiteral(DirectCast(DirectCast(dummyTree.GetRoot(Nothing), VisualBasicSyntaxNode), VisualBasicSyntaxNode), ConstantValue.Nothing, Nothing) 311literal = New BoundLiteral(DirectCast(DirectCast(dummyTree.GetRoot(Nothing), VisualBasicSyntaxNode), VisualBasicSyntaxNode), zero, integralType) 338literal = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(DirectCast(DirectCast(dummyTree.GetRoot(Nothing), VisualBasicSyntaxNode), VisualBasicSyntaxNode), ConstantValue.Null, Nothing), ConversionKind.WideningNothingLiteral, False, True, zero, convertibleType, Nothing) 340literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), zero, convertibleType) 369literal = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(DirectCast(dummyTree.GetRoot(Nothing), VisualBasicSyntaxNode), ConstantValue.Null, Nothing), ConversionKind.WideningNothingLiteral, False, True, zero, type1, Nothing) 371literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), zero, type1) 375New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Default(ConstantValueTypeDiscriminator.Int32), int32Type), 624literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), v, mv.Type) 626New BoundLiteral(DirectCast(dummyTree.GetRoot(Nothing), VisualBasicSyntaxNode), ConstantValue.Null, Nothing), 750Dim zero = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(DirectCast(dummyTree.GetRoot(Nothing), VisualBasicSyntaxNode), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Default(mv.Type.GetConstantValueTypeDiscriminator()), mv.Type, Nothing) 776constant = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, doubleValue, doubleType, Nothing) 789constant = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, doubleValue, doubleType, Nothing) 802constant = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, doubleValue, doubleType, Nothing) 815constant = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, doubleValue, doubleType, Nothing) 828constant = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, doubleValue, doubleType, Nothing) 842literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), falseValue, booleanType) 843constant = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, falseValue, booleanType, Nothing) 874literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), trueValue, booleanType) 875constant = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, trueValue, booleanType, Nothing) 937literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), v, mv.Type) 938constant = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, v, mv.Type, Nothing) 970literal = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), stringValue, Nothing), ConversionKind.WideningNothingLiteral, False, True, stringValue, stringType, Nothing) 971constant = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, stringValue, stringType, Nothing) 995literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), stringValue, stringType) 996constant = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, stringValue, stringType, Nothing) 1018literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), stringValue, stringType) 1019constant = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, stringValue, stringType, Nothing) 1040literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), charValue, charType) 1041constant = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, charValue, charType, Nothing) 1120Dim _nothing = New BoundLiteral(DirectCast(dummyTree.GetRoot(Nothing), VisualBasicSyntaxNode), ConstantValue.Nothing, Nothing) 1184literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), v, mv.Type) 1186New BoundLiteral(DirectCast(dummyTree.GetRoot(Nothing), VisualBasicSyntaxNode), ConstantValue.Null, Nothing), 1316New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Default(ConstantValueTypeDiscriminator.Int32), int32Type),
Semantics\OverloadResolution.vb (10)
193Dim [nothing] As BoundExpression = New BoundLiteral(_syntaxNode, ConstantValue.Nothing, Nothing) 194Dim intZero As BoundExpression = New BoundLiteral(_syntaxNode, ConstantValue.Create(0I), c1.GetSpecialType(System_Int32)) 195Dim longZero As BoundExpression = New BoundLiteral(_syntaxNode, ConstantValue.Create(0L), c1.GetSpecialType(System_Int64)) 196Dim unsignedOne As BoundExpression = New BoundLiteral(_syntaxNode, ConstantValue.Create(1UI), c1.GetSpecialType(System_UInt32)) 197Dim longConst As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(-1L), c1.GetSpecialType(System_Int64), Nothing) 202Dim doubleConst As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(0.0R), c1.GetSpecialType(System_Double), Nothing) 2883Dim DoubleMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Double.MaxValue), c1.GetSpecialType(System_Double), Nothing) 2884Dim IntegerMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Integer.MaxValue), c1.GetSpecialType(System_Int32), Nothing) 3074Dim DoubleMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Double.MaxValue), c1.GetSpecialType(System_Double), Nothing) 3075Dim IntegerMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Integer.MaxValue), c1.GetSpecialType(System_Int32), Nothing)
52 references to BoundLiteral
Microsoft.CodeAnalysis.VisualBasic (49)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
1362Public Overrides Function VisitLiteral(node As BoundLiteral) As BoundNode
Binding\Binder_Expressions.vb (1)
4422Private Function BindLiteralConstant(node As LiteralExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundLiteral
Binding\Binder_InterpolatedString.vb (1)
36Private Function BindInterpolatedStringText(syntax As InterpolatedStringTextSyntax, diagnostics As BindingDiagnosticBag) As BoundLiteral
Binding\Binder_Invocation.vb (1)
3181Dim literal As BoundLiteral
Binding\Binder_XmlLiterals.vb (4)
68Private Function BindXmlDeclarationOption(syntax As XmlDeclarationSyntax, optionSyntax As XmlDeclarationOptionSyntax, diagnostics As BindingDiagnosticBag) As BoundLiteral 784Dim namespaceExpr As BoundLiteral 924Private Function BindXmlText(syntax As XmlTextSyntax, diagnostics As BindingDiagnosticBag) As BoundLiteral 1055Optional hasErrors As Boolean = False) As BoundLiteral
BoundTree\BoundExpressionExtensions.vb (4)
362IsIntegerZeroLiteral(DirectCast(node, BoundLiteral)) 370Public Function IsIntegerZeroLiteral(node As BoundLiteral) As Boolean 472Public Function IsNothingLiteral(node As BoundLiteral) As Boolean 499Return IsNothingLiteral(DirectCast(node, BoundLiteral))
BoundTree\BoundTreeVisitor.vb (1)
94Return VisitLiteral(CType(node, BoundLiteral), arg)
Generated\BoundNodes.xml.Generated.vb (19)
5917Public Function Update(value As ConstantValue, type As TypeSymbol) As BoundLiteral 8262Public Sub New(syntax As SyntaxNode, value As BoundLiteral, objectCreation As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False) 8274Private ReadOnly _Value As BoundLiteral 8275Public ReadOnly Property Value As BoundLiteral 8293Public Function Update(value As BoundLiteral, objectCreation As BoundExpression, type As TypeSymbol) As BoundXmlCData 9256Public Sub New(syntax As SyntaxNode, expression As BoundExpression, alignmentOpt As BoundExpression, formatStringOpt As BoundLiteral, Optional hasErrors As Boolean = False) 9281Private ReadOnly _FormatStringOpt As BoundLiteral 9282Public ReadOnly Property FormatStringOpt As BoundLiteral 9293Public Function Update(expression As BoundExpression, alignmentOpt As BoundExpression, formatStringOpt As BoundLiteral) As BoundInterpolation 9523Return VisitLiteral(CType(node, BoundLiteral), arg) 10093Public Overridable Function VisitLiteral(node As BoundLiteral, arg As A) As R 10796Public Overridable Function VisitLiteral(node As BoundLiteral) As BoundNode 11655Public Overrides Function VisitLiteral(node As BoundLiteral) As BoundNode 12683Public Overrides Function VisitLiteral(node As BoundLiteral) As BoundNode 12975Dim value As BoundLiteral = DirectCast(Me.Visit(node.Value), BoundLiteral) 13101Dim formatStringOpt As BoundLiteral = DirectCast(Me.Visit(node.FormatStringOpt), BoundLiteral) 14016Public Overrides Function VisitLiteral(node As BoundLiteral, arg As Object) As TreeDumperNode
Lowering\LocalRewriter\LocalRewriter_InterpolatedString.vb (2)
44Dim valueWithEscapes = DirectCast(node.Contents(0), BoundLiteral).Value.StringValue 128formatStringBuilderHandle.Builder.Append(DirectCast(item, BoundLiteral).Value.StringValue)
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (4)
551Dim name As BoundLiteral = MakeStringLiteral(syntax, memberAccess.NameOpt, lateSetMethod.Parameters(2).Type) 792Dim name As BoundLiteral = MakeStringLiteral(syntax, memberAccess.NameOpt, lateCallOrGetMethod.Parameters(2).Type) 924stringType As TypeSymbol) As BoundLiteral 935booleanType As TypeSymbol) As BoundLiteral
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (1)
483Private Shared Function MakeNullLiteral(syntax As SyntaxNode, type As TypeSymbol) As BoundLiteral
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (1)
325Private Function CreateStringLiteral(syntax As SyntaxNode, str As String) As BoundLiteral
Lowering\SyntheticBoundNodeFactory.vb (5)
438Public Function Literal(value As Boolean) As BoundLiteral 444Public Function Literal(value As Integer) As BoundLiteral 450Public Function Literal(value As StateMachineState) As BoundLiteral 757Public Function Literal(value As String) As BoundLiteral 763Public Function StringLiteral(value As ConstantValue) As BoundLiteral
Operations\VisualBasicOperationFactory.vb (4)
74Return CreateBoundLiteralOperation(DirectCast(boundNode, BoundLiteral)) 405Friend Function CreateBoundLiteralOperation(boundLiteral As BoundLiteral, Optional implicit As Boolean = False) As ILiteralOperation 1573builder.Add(CreateBoundInterpolatedStringTextOperation(DirectCast(part, BoundLiteral))) 1588Private Function CreateBoundInterpolatedStringTextOperation(boundLiteral As BoundLiteral) As IInterpolatedStringTextOperation
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Semantics\Conversions.vb (3)
184Private Shared Function ClassifyDirectCastAssignment([to] As TypeSymbol, [from] As BoundLiteral, binder As Binder) As ConversionKind 194Private Shared Function ClassifyTryCastAssignment([to] As TypeSymbol, [from] As BoundLiteral, binder As Binder) As ConversionKind 1124Dim literal As BoundLiteral