1 write to HasValueMethodOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5970this.HasValueMethodOpt = hasValueMethodOpt;
15 references to HasValueMethodOpt
Microsoft.CodeAnalysis.CSharp (15)
CodeGen\EmitExpression.cs (2)
412(receiverType.IsNullableType() && expression.HasValueMethodOpt != null), "conditional receiver cannot be a struct"); 519var hasValueOpt = expression.HasValueMethodOpt;
CodeGen\Optimizer.cs (1)
1612return node.Update(receiver, node.HasValueMethodOpt, whenNotNull, whenNull, node.Id, node.ForceCopyOfNullableValueType, node.Type);
Generated\BoundNodes.xml.Generated.cs (4)
5990if (receiver != this.Receiver || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(hasValueMethodOpt, this.HasValueMethodOpt) || whenNotNull != this.WhenNotNull || whenNullOpt != this.WhenNullOpt || id != this.Id || forceCopyOfNullableValueType != this.ForceCopyOfNullableValueType || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11844MethodSymbol? hasValueMethodOpt = this.VisitMethodSymbol(node.HasValueMethodOpt); 14022MethodSymbol? hasValueMethodOpt = GetUpdatedSymbol(node, node.HasValueMethodOpt); 16509new TreeDumperNode("hasValueMethodOpt", node.HasValueMethodOpt, null),
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
581conditionalLeft.HasValueMethodOpt, 1990return conditionalAccess.Update(conditionalAccess.Receiver, conditionalAccess.HasValueMethodOpt, whenNotNull, whenNull, conditionalAccess.Id, conditionalAccess.ForceCopyOfNullableValueType, whenNotNull.Type!);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
122conditionalAccess.HasValueMethodOpt,
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
280conditionalLeft.HasValueMethodOpt,
Lowering\SpillSequenceSpiller.cs (3)
1278return UpdateExpression(receiverBuilder, node.Update(receiver, node.HasValueMethodOpt, whenNotNull, whenNullOpt, node.Id, node.ForceCopyOfNullableValueType, node.Type)); 1290var hasValueOpt = node.HasValueMethodOpt; 1303Debug.Assert(node.HasValueMethodOpt == null);
Lowering\SyntheticBoundNodeFactory.cs (1)
1882return conditionalAccess.Update(conditionalAccess.Receiver, conditionalAccess.HasValueMethodOpt, whenNotNull, whenNull, conditionalAccess.Id, conditionalAccess.ForceCopyOfNullableValueType, whenNotNull.Type);