1 write to HasValueMethodOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5971this.HasValueMethodOpt = hasValueMethodOpt;
16 references to HasValueMethodOpt
Microsoft.CodeAnalysis.CSharp (16)
CodeGen\EmitExpression.cs (2)
412(receiverType.IsNullableType() && expression.HasValueMethodOpt != null), "conditional receiver cannot be a struct"); 519var hasValueOpt = expression.HasValueMethodOpt;
CodeGen\Optimizer.cs (1)
1613return node.Update(receiver, node.HasValueMethodOpt, whenNotNull, whenNull, node.Id, node.ForceCopyOfNullableValueType, node.Type);
Generated\BoundNodes.xml.Generated.cs (4)
5991if (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)) 11709return node.Update(receiver, node.HasValueMethodOpt, whenNotNull, whenNullOpt, node.Id, node.ForceCopyOfNullableValueType, type); 13840MethodSymbol? hasValueMethodOpt = GetUpdatedSymbol(node, node.HasValueMethodOpt); 16328new TreeDumperNode("hasValueMethodOpt", node.HasValueMethodOpt, null),
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
575conditionalLeft.HasValueMethodOpt, 1984return 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\MethodToClassRewriter.cs (1)
612return node.Update(receiver, VisitMethodSymbol(node.HasValueMethodOpt), whenNotNull, whenNullOpt, node.Id, node.ForceCopyOfNullableValueType, type);
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)
1920return conditionalAccess.Update(conditionalAccess.Receiver, conditionalAccess.HasValueMethodOpt, whenNotNull, whenNull, conditionalAccess.Id, conditionalAccess.ForceCopyOfNullableValueType, whenNotNull.Type);