54 references to BoundLiteral
Microsoft.CodeAnalysis.CSharp (46)
Binder\Binder_Await.cs (1)
369
var receiver = new
BoundLiteral
(node, ConstantValue.Null, awaiterType);
Binder\Binder_Expressions.cs (3)
3762
sizeArray[i] = new
BoundLiteral
(
3987
sizeOpt = new
BoundLiteral
(
6270
return new
BoundLiteral
(node, cv, type);
Binder\Binder_InterpolatedString.cs (3)
168
builder.Add(new
BoundLiteral
(content, constantValue, stringType));
674
argumentsBuilder.Add(new
BoundLiteral
(syntax, ConstantValue.Create(baseStringLength), intType) { WasCompilerGenerated = true });
676
argumentsBuilder.Add(new
BoundLiteral
(syntax, ConstantValue.Create(numFormatHoles), intType) { WasCompilerGenerated = true });
Binder\Binder_Invocation.cs (5)
1377
defaultValue = new
BoundLiteral
(syntax, ConstantValue.Create(line), Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true };
1382
defaultValue = new
BoundLiteral
(syntax, ConstantValue.Create(path), Compilation.GetSpecialType(SpecialType.System_String)) { WasCompilerGenerated = true };
1387
defaultValue = new
BoundLiteral
(syntax, ConstantValue.Create(memberName), Compilation.GetSpecialType(SpecialType.System_String)) { WasCompilerGenerated = true };
1396
defaultValue = new
BoundLiteral
(syntax, ConstantValue.Create(argument.Syntax.ToString()), Compilation.GetSpecialType(SpecialType.System_String)) { WasCompilerGenerated = true };
1419
defaultValue = new
BoundLiteral
(syntax, defaultConstantValue, constantType) { WasCompilerGenerated = true };
Binder\Binder_Operators.cs (3)
542
return new
BoundLiteral
(node, ConstantValue.Create(kind == BinaryOperatorKind.Equal), GetSpecialType(SpecialType.System_Boolean, diagnostics, node));
3061
return new
BoundLiteral
(node, ConstantValue.Create((int)-2147483648), GetSpecialType(SpecialType.System_Int32, diagnostics, node));
3076
return new
BoundLiteral
(node, ConstantValue.Create(-9223372036854775808), GetSpecialType(SpecialType.System_Int64, diagnostics, node));
Binder\Binder_Statements.cs (1)
2214
ConversionsBase.HasImplicitConstantExpressionConversion(new
BoundLiteral
(syntax, ConstantValue.Bad, sourceType), targetType))
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1617
BoundLiteral intMaxValueLiteral = new
BoundLiteral
(syntaxNode, ConstantValue.Create(int.MaxValue), expectedAttributeType);
Compilation\CSharpCompilation.cs (1)
2012
var dumbInstance = new
BoundLiteral
(syntax, ConstantValue.Null, namedType);
Compiler\MethodBodySynthesizer.cs (3)
105
ImmutableArray.Create<BoundExpression>(new
BoundLiteral
(syntax, ConstantValue.Create(slotIndex), intType) { WasCompilerGenerated = true }),
125
ImmutableArray.Create<BoundExpression>(new
BoundLiteral
(syntax, ConstantValue.Create(0), intType) { WasCompilerGenerated = true }),
153
ImmutableArray.Create<BoundExpression>(new
BoundLiteral
(syntax, ConstantValue.Create(targetSubmissionIndex), intType) { WasCompilerGenerated = true }),
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
379
_factory.Convert(operandType, new
BoundLiteral
(syntax, ConstantValue.Null, objectType)),
Lowering\LocalRewriter\LocalRewriter_Literal.cs (10)
100
arguments.Add(new
BoundLiteral
(syntax, ConstantValue.Create((int)value), _compilation.GetSpecialType(SpecialType.System_Int32)));
106
arguments.Add(new
BoundLiteral
(syntax, ConstantValue.Create((uint)value), _compilation.GetSpecialType(SpecialType.System_UInt32)));
112
arguments.Add(new
BoundLiteral
(syntax, ConstantValue.Create((long)value), _compilation.GetSpecialType(SpecialType.System_Int64)));
118
arguments.Add(new
BoundLiteral
(syntax, ConstantValue.Create((ulong)value), _compilation.GetSpecialType(SpecialType.System_UInt64)));
124
arguments.Add(new
BoundLiteral
(syntax, ConstantValue.Create(low), _compilation.GetSpecialType(SpecialType.System_Int32)));
125
arguments.Add(new
BoundLiteral
(syntax, ConstantValue.Create(mid), _compilation.GetSpecialType(SpecialType.System_Int32)));
126
arguments.Add(new
BoundLiteral
(syntax, ConstantValue.Create(high), _compilation.GetSpecialType(SpecialType.System_Int32)));
127
arguments.Add(new
BoundLiteral
(syntax, ConstantValue.Create(isNegative), _compilation.GetSpecialType(SpecialType.System_Boolean)));
128
arguments.Add(new
BoundLiteral
(syntax, ConstantValue.Create(scale), _compilation.GetSpecialType(SpecialType.System_Byte)));
148
arguments.Add(new
BoundLiteral
(syntax, ConstantValue.Create(constantValue.DateTimeValue.Ticks), _compilation.GetSpecialType(SpecialType.System_Int64)));
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (3)
206
return new
BoundLiteral
(expr.Syntax, ConstantValue.Null, expr.Type);
259
return new
BoundLiteral
(left.Syntax, ConstantValue.Create(nullnull.Kind == BinaryOperatorKind.Equal), boolType);
569
return new
BoundLiteral
(left.Syntax, ConstantValue.Create(operatorKind == BinaryOperatorKind.Equal), boolType);
Lowering\SyntheticBoundNodeFactory.cs (8)
672
return new
BoundLiteral
(Syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Byte)) { WasCompilerGenerated = true };
677
return new
BoundLiteral
(Syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) { WasCompilerGenerated = true };
685
return new
BoundLiteral
(Syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_UInt32)) { WasCompilerGenerated = true };
690
return new
BoundLiteral
(Syntax, value, type) { WasCompilerGenerated = true };
1064
return new
BoundLiteral
(Syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean)) { WasCompilerGenerated = true };
1076
return new
BoundLiteral
(Syntax, stringConst, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_String)) { WasCompilerGenerated = true };
1087
return new
BoundLiteral
(Syntax, charConst, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Char)) { WasCompilerGenerated = true };
1169
BoundExpression nullLiteral = new
BoundLiteral
(syntax, ConstantValue.Null, type) { WasCompilerGenerated = true };
Symbols\ReducedExtensionMethodSymbol.cs (2)
139
var thisArgumentValue = new
BoundLiteral
(syntax, ConstantValue.Bad, thisType) { WasCompilerGenerated = true };
141
var otherArgumentValue = new
BoundLiteral
(syntax, ConstantValue.Bad, otherArgumentType) { WasCompilerGenerated = true };
Symbols\Source\SourceComplexParameterSymbol.cs (1)
342
new
BoundLiteral
(parameterSyntax, defaultValue, Type));
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (8)
Rewriters\LocalDeclarationRewriter.cs (5)
110
var name = new
BoundLiteral
(syntax, ConstantValue.Create(local.Name), stringType);
133
new
BoundLiteral
(syntax, value, guidConstructor.ContainingType));
146
return new
BoundLiteral
(syntax, ConstantValue.Null, byteArrayType);
156
initializerExprs.Add(new
BoundLiteral
(syntax, ConstantValue.Create(b), byteType));
159
var lengthExpr = new
BoundLiteral
(syntax, ConstantValue.Create(numBytes), intType);
Symbols\ObjectAddressLocalSymbol.cs (1)
34
var argument = new
BoundLiteral
(
Symbols\ObjectIdLocalSymbol.cs (1)
87
var argument = new
BoundLiteral
(
Symbols\ReturnValueLocalSymbol.cs (1)
31
var argument = new
BoundLiteral
(