1 write to HasValueMethodOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5972
this.
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");
519
var hasValueOpt = expression.
HasValueMethodOpt
;
CodeGen\Optimizer.cs (1)
1613
return node.Update(receiver, node.
HasValueMethodOpt
, whenNotNull, whenNull, node.Id, node.ForceCopyOfNullableValueType, node.Type);
Generated\BoundNodes.xml.Generated.cs (4)
5992
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))
11748
return node.Update(receiver, node.
HasValueMethodOpt
, whenNotNull, whenNullOpt, node.Id, node.ForceCopyOfNullableValueType, type);
13879
MethodSymbol? hasValueMethodOpt = GetUpdatedSymbol(node, node.
HasValueMethodOpt
);
16367
new TreeDumperNode("hasValueMethodOpt", node.
HasValueMethodOpt
, null),
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
575
conditionalLeft.
HasValueMethodOpt
,
1984
return conditionalAccess.Update(conditionalAccess.Receiver, conditionalAccess.
HasValueMethodOpt
, whenNotNull, whenNull, conditionalAccess.Id, conditionalAccess.ForceCopyOfNullableValueType, whenNotNull.Type!);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
122
conditionalAccess.
HasValueMethodOpt
,
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
280
conditionalLeft.
HasValueMethodOpt
,
Lowering\MethodToClassRewriter.cs (1)
612
return node.Update(receiver, VisitMethodSymbol(node.
HasValueMethodOpt
), whenNotNull, whenNullOpt, node.Id, node.ForceCopyOfNullableValueType, type);
Lowering\SpillSequenceSpiller.cs (3)
1278
return UpdateExpression(receiverBuilder, node.Update(receiver, node.
HasValueMethodOpt
, whenNotNull, whenNullOpt, node.Id, node.ForceCopyOfNullableValueType, node.Type));
1290
var hasValueOpt = node.
HasValueMethodOpt
;
1303
Debug.Assert(node.
HasValueMethodOpt
== null);
Lowering\SyntheticBoundNodeFactory.cs (1)
1864
return conditionalAccess.Update(conditionalAccess.Receiver, conditionalAccess.
HasValueMethodOpt
, whenNotNull, whenNull, conditionalAccess.Id, conditionalAccess.ForceCopyOfNullableValueType, whenNotNull.Type);