21 references to BadExpression
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Expressions.cs (3)
207if (exprKind == BoundKind.BadExpression) 6484Debug.Assert(addMethodInvocation.Kind == BoundKind.BadExpression); 6969case BoundKind.BadExpression:
Binder\Binder_Invocation.cs (1)
124Debug.Assert(allowFieldsAndProperties || boundExpression.Kind is (BoundKind.MethodGroup or BoundKind.BadExpression));
Binder\Binder_Operators.cs (1)
479else if (result.Kind == BoundKind.BadExpression)
Binder\Binder_Patterns.cs (1)
537wasExpression = expression.Kind switch { BoundKind.BadExpression => false, BoundKind.TypeExpression => false, _ => true };
Binder\Binder_Statements.cs (1)
2319case BoundKind.BadExpression:
BoundTree\BoundExpressionExtensions.cs (1)
186case BoundKind.BadExpression:
CodeGen\EmitExpression.cs (1)
362Debug.Assert(expression.Kind != BoundKind.BadExpression);
Compilation\CSharpSemanticModel.cs (5)
3365case BoundKind.BadExpression: 3399boundNodeForSyntacticParent.Kind == BoundKind.BadExpression && 3996case BoundKind.BadExpression: 4323case BoundKind.BadExpression: 4424case BoundKind.BadExpression:
FlowAnalysis\AbstractFlowPass.cs (1)
2157var refKind = node.Left.Kind == BoundKind.BadExpression
FlowAnalysis\DefiniteAssignment.cs (1)
1661case BoundKind.BadExpression:
Generated\BoundNodes.xml.Generated.cs (2)
980: base(BoundKind.BadExpression, syntax, type, hasErrors || childBoundNodes.HasErrors()) 8870case BoundKind.BadExpression:
Operations\CSharpOperationFactory.cs (3)
119case BoundKind.BadExpression: 1070Debug.Assert(boundOperand.Kind == BoundKind.BadExpression || 1072ExpressionOpt?.Kind == BoundKind.BadExpression);