Base:
property
ConstantValueOpt
Microsoft.CodeAnalysis.CSharp.BoundExpression.ConstantValueOpt
2 writes to ConstantValueOpt
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
4403this.ConstantValueOpt = constantValueOpt; 4416this.ConstantValueOpt = constantValueOpt;
11 references to ConstantValueOpt
Microsoft.CodeAnalysis.CSharp (11)
CodeGen\Optimizer.cs (1)
852if (node.ConstantValueOpt == null)
Generated\BoundNodes.xml.Generated.cs (5)
4431if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(localSymbol, this.LocalSymbol) || declarationKind != this.DeclarationKind || constantValueOpt != this.ConstantValueOpt || isNullableUnknown != this.IsNullableUnknown || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11079return node.Update(node.LocalSymbol, node.DeclarationKind, node.ConstantValueOpt, node.IsNullableUnknown, type); 13084updatedNode = node.Update(localSymbol, node.DeclarationKind, node.ConstantValueOpt, node.IsNullableUnknown, infoAndType.Type!); 13089updatedNode = node.Update(localSymbol, node.DeclarationKind, node.ConstantValueOpt, node.IsNullableUnknown, node.Type); 15430new TreeDumperNode("constantValueOpt", node.ConstantValueOpt, null),
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
659return node.Update(hoistedLocal, node.ConstantValueOpt, hoistedLocal.Type);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
229if (boundLocal.ConstantValueOpt == ConstantValue.Null)
Lowering\MethodToClassRewriter.cs (1)
440return new BoundLocal(node.Syntax, replacementLocal, node.ConstantValueOpt, replacementLocal.Type, node.HasErrors);
Lowering\SpillSequenceSpiller.cs (1)
220return node.Update(longLived, node.ConstantValueOpt, node.Type);
Operations\CSharpOperationFactory.cs (1)
555ConstantValue? constantValue = boundLocal.ConstantValueOpt;