21 references to BadExpression
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Expressions.cs (3)
231
if (exprKind == BoundKind.
BadExpression
)
6709
Debug.Assert(addMethodInvocation.Kind == BoundKind.
BadExpression
);
7196
case BoundKind.
BadExpression
:
Binder\Binder_Invocation.cs (1)
125
Debug.Assert(allowFieldsAndProperties || boundExpression.Kind is (BoundKind.MethodGroup or BoundKind.
BadExpression
));
Binder\Binder_Operators.cs (1)
912
else if (result.Kind == BoundKind.
BadExpression
)
Binder\Binder_Patterns.cs (1)
792
wasExpression = originalExpression.Kind switch { BoundKind.
BadExpression
=> false, BoundKind.TypeExpression => false, _ => true };
Binder\Binder_Statements.cs (1)
2368
case BoundKind.
BadExpression
:
BoundTree\BoundExpressionExtensions.cs (1)
196
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
&&
4027
case BoundKind.
BadExpression
:
4361
case BoundKind.
BadExpression
:
4462
case BoundKind.
BadExpression
:
FlowAnalysis\AbstractFlowPass.cs (1)
2213
var refKind = node.Left.Kind == BoundKind.
BadExpression
FlowAnalysis\DefiniteAssignment.cs (1)
1614
case BoundKind.
BadExpression
:
Generated\BoundNodes.xml.Generated.cs (2)
993
: base(BoundKind.
BadExpression
, syntax, type, hasErrors || childBoundNodes.HasErrors())
9137
case BoundKind.
BadExpression
:
Operations\CSharpOperationFactory.cs (3)
118
case BoundKind.
BadExpression
:
1110
Debug.Assert(boundOperand.Kind == BoundKind.
BadExpression
||
1112
ExpressionOpt?.Kind == BoundKind.
BadExpression
);