35 references to DiscardExpression
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder.ValueChecks.cs (5)
504
case BoundKind.
DiscardExpression
:
3357
case BoundKind.
DiscardExpression
:
3677
case BoundKind.
DiscardExpression
:
4078
case BoundKind.
DiscardExpression
:
4763
case BoundKind.
DiscardExpression
:
Binder\Binder_Deconstruct.cs (4)
376
case BoundKind.
DiscardExpression
:
410
case BoundKind.
DiscardExpression
:
597
if (expression.Kind == BoundKind.
DiscardExpression
)
792
if (expression == null && checkedVariable.Kind != BoundKind.
DiscardExpression
)
Binder\Binder_Expressions.cs (3)
3537
else if (argument.Kind == BoundKind.
DiscardExpression
&& !argument.HasExpressionType())
3573
(BoundKind.OutVariablePendingInference or BoundKind.OutDeconstructVarPendingInference or BoundKind.
DiscardExpression
or BoundKind.ArgListOperator));
9401
else if (index.Kind == BoundKind.
DiscardExpression
&& !index.HasExpressionType())
Binder\Binder_Invocation.cs (3)
131
e.Kind == BoundKind.
DiscardExpression
&& !e.HasExpressionType()));
2052
case BoundKind.
DiscardExpression
:
2071
else if (argument.Kind == BoundKind.
DiscardExpression
)
Binder\Binder_Statements.cs (1)
1428
bool discardAssignment = op1.Kind == BoundKind.
DiscardExpression
;
Binder\ForEachLoopBinder.cs (1)
400
if (iterationErrorExpression.Kind == BoundKind.
DiscardExpression
)
Binder\RefSafetyAnalysis.cs (1)
541
if (node.Left.Kind != BoundKind.
DiscardExpression
)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
2903
(nodeKind == BoundKind.
DiscardExpression
&& !node.HasExpressionType()))
4598
(argument.Kind == BoundKind.
DiscardExpression
&& (object)argType == null))
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
1210
argument.Kind != BoundKind.
DiscardExpression
)
1301
Debug.Assert(argument.Kind != BoundKind.
DiscardExpression
|| argument.HasExpressionType());
Generated\BoundNodes.xml.Generated.cs (3)
8529
: base(BoundKind.
DiscardExpression
, syntax, type, hasErrors)
8536
: base(BoundKind.
DiscardExpression
, syntax, type)
9279
case BoundKind.
DiscardExpression
:
Lowering\DiagnosticsPass_Warnings.cs (1)
43
case BoundKind.
DiscardExpression
:
Lowering\LocalRewriter\LocalRewriter.cs (1)
1028
case BoundKind.
DiscardExpression
:
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
230
case BoundKind.
DiscardExpression
:
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (2)
252
if (leftTarget.Kind != BoundKind.
DiscardExpression
)
451
case BoundKind.
DiscardExpression
:
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
672
int discardCount = loweredArguments.Count(a => a.Kind == BoundKind.
DiscardExpression
);
Lowering\SyntheticBoundNodeFactory.cs (2)
1728
var discardsPresent = arguments.Any(static a => a.Kind == BoundKind.
DiscardExpression
);
1733
(arg, t) => arg.Kind == BoundKind.
DiscardExpression
? t.factory.MakeTempForDiscard((BoundDiscardExpression)arg, t.builder) : arg,
Operations\CSharpOperationFactory.cs (2)
262
case BoundKind.
DiscardExpression
:
2539
if (variable == null && boundDeclarationPattern.VariableAccess?.Kind == BoundKind.
DiscardExpression
)