1 write to HasValueMethodOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5860
this.
HasValueMethodOpt
= hasValueMethodOpt;
16 references to HasValueMethodOpt
Microsoft.CodeAnalysis.CSharp (16)
CodeGen\EmitExpression.cs (2)
397
(receiverType.IsNullableType() && expression.
HasValueMethodOpt
!= null), "conditional receiver cannot be a struct");
504
var hasValueOpt = expression.
HasValueMethodOpt
;
CodeGen\Optimizer.cs (1)
1546
return node.Update(receiver, node.
HasValueMethodOpt
, whenNotNull, whenNull, node.Id, node.ForceCopyOfNullableValueType, node.Type);
Generated\BoundNodes.xml.Generated.cs (4)
5880
if (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))
11316
return node.Update(receiver, node.
HasValueMethodOpt
, whenNotNull, whenNullOpt, node.Id, node.ForceCopyOfNullableValueType, type);
13375
MethodSymbol? hasValueMethodOpt = GetUpdatedSymbol(node, node.
HasValueMethodOpt
);
15770
new TreeDumperNode("hasValueMethodOpt", node.
HasValueMethodOpt
, null),
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
573
conditionalLeft.
HasValueMethodOpt
,
1904
return conditionalAccess.Update(conditionalAccess.Receiver, conditionalAccess.
HasValueMethodOpt
, whenNotNull, whenNull, conditionalAccess.Id, conditionalAccess.ForceCopyOfNullableValueType, whenNotNull.Type!);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
124
conditionalAccess.
HasValueMethodOpt
,
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
275
conditionalLeft.
HasValueMethodOpt
,
Lowering\MethodToClassRewriter.cs (1)
603
return node.Update(receiver, VisitMethodSymbol(node.
HasValueMethodOpt
), whenNotNull, whenNullOpt, node.Id, node.ForceCopyOfNullableValueType, type);
Lowering\SpillSequenceSpiller.cs (3)
1180
return UpdateExpression(receiverBuilder, node.Update(receiver, node.
HasValueMethodOpt
, whenNotNull, whenNullOpt, node.Id, node.ForceCopyOfNullableValueType, node.Type));
1192
var hasValueOpt = node.
HasValueMethodOpt
;
1207
Debug.Assert(node.
HasValueMethodOpt
== null);
Lowering\SyntheticBoundNodeFactory.cs (1)
1736
return conditionalAccess.Update(conditionalAccess.Receiver, conditionalAccess.
HasValueMethodOpt
, whenNotNull, whenNull, conditionalAccess.Id, conditionalAccess.ForceCopyOfNullableValueType, whenNotNull.Type);