Base:
property
ConstantValueOpt
Microsoft.CodeAnalysis.CSharp.BoundExpression.ConstantValueOpt
2 writes to ConstantValueOpt
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
4515this.ConstantValueOpt = constantValueOpt; 4528this.ConstantValueOpt = constantValueOpt;
11 references to ConstantValueOpt
Microsoft.CodeAnalysis.CSharp (11)
CodeGen\Optimizer.cs (1)
853if (node.ConstantValueOpt == null)
Generated\BoundNodes.xml.Generated.cs (5)
4543if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(localSymbol, this.LocalSymbol) || declarationKind != this.DeclarationKind || constantValueOpt != this.ConstantValueOpt || isNullableUnknown != this.IsNullableUnknown || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11511return node.Update(node.LocalSymbol, node.DeclarationKind, node.ConstantValueOpt, node.IsNullableUnknown, type); 13588updatedNode = node.Update(localSymbol, node.DeclarationKind, node.ConstantValueOpt, node.IsNullableUnknown, infoAndType.Type!); 13593updatedNode = node.Update(localSymbol, node.DeclarationKind, node.ConstantValueOpt, node.IsNullableUnknown, node.Type); 16027new TreeDumperNode("constantValueOpt", node.ConstantValueOpt, null),
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
690return node.Update(hoistedLocal, node.ConstantValueOpt, hoistedLocal.Type);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
230if (boundLocal.ConstantValueOpt == ConstantValue.Null)
Lowering\MethodToClassRewriter.cs (1)
449return new BoundLocal(node.Syntax, replacementLocal, node.ConstantValueOpt, replacementLocal.Type, node.HasErrors);
Lowering\SpillSequenceSpiller.cs (1)
219return node.Update(longLived, node.ConstantValueOpt, node.Type);
Operations\CSharpOperationFactory.cs (1)
558ConstantValue? constantValue = boundLocal.ConstantValueOpt;