21 references to BadExpression
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Expressions.cs (3)
212
if (exprKind == BoundKind.
BadExpression
)
6540
Debug.Assert(addMethodInvocation.Kind == BoundKind.
BadExpression
);
7025
case BoundKind.
BadExpression
:
Binder\Binder_Invocation.cs (1)
124
Debug.Assert(allowFieldsAndProperties || boundExpression.Kind is (BoundKind.MethodGroup or BoundKind.
BadExpression
));
Binder\Binder_Operators.cs (1)
878
else if (result.Kind == BoundKind.
BadExpression
)
Binder\Binder_Patterns.cs (1)
538
wasExpression = expression.Kind switch { BoundKind.
BadExpression
=> false, BoundKind.TypeExpression => false, _ => true };
Binder\Binder_Statements.cs (1)
2338
case BoundKind.
BadExpression
:
BoundTree\BoundExpressionExtensions.cs (1)
186
case BoundKind.
BadExpression
:
CodeGen\EmitExpression.cs (1)
362
Debug.Assert(expression.Kind != BoundKind.
BadExpression
);
Compilation\CSharpSemanticModel.cs (5)
3377
case BoundKind.
BadExpression
:
3411
boundNodeForSyntacticParent.Kind == BoundKind.
BadExpression
&&
4008
case BoundKind.
BadExpression
:
4342
case BoundKind.
BadExpression
:
4443
case BoundKind.
BadExpression
:
FlowAnalysis\AbstractFlowPass.cs (1)
2163
var refKind = node.Left.Kind == BoundKind.
BadExpression
FlowAnalysis\DefiniteAssignment.cs (1)
1662
case BoundKind.
BadExpression
:
Generated\BoundNodes.xml.Generated.cs (2)
962
: base(BoundKind.
BadExpression
, syntax, type, hasErrors || childBoundNodes.HasErrors())
8898
case BoundKind.
BadExpression
:
Operations\CSharpOperationFactory.cs (3)
119
case BoundKind.
BadExpression
:
1070
Debug.Assert(boundOperand.Kind == BoundKind.
BadExpression
||
1072
ExpressionOpt?.Kind == BoundKind.
BadExpression
);