21 references to BadExpression
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Expressions.cs (3)
207
if (exprKind == BoundKind.
BadExpression
)
6484
Debug.Assert(addMethodInvocation.Kind == BoundKind.
BadExpression
);
6969
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)
479
else if (result.Kind == BoundKind.
BadExpression
)
Binder\Binder_Patterns.cs (1)
537
wasExpression = expression.Kind switch { BoundKind.
BadExpression
=> false, BoundKind.TypeExpression => false, _ => true };
Binder\Binder_Statements.cs (1)
2319
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)
3365
case BoundKind.
BadExpression
:
3399
boundNodeForSyntacticParent.Kind == BoundKind.
BadExpression
&&
3996
case BoundKind.
BadExpression
:
4323
case BoundKind.
BadExpression
:
4424
case BoundKind.
BadExpression
:
FlowAnalysis\AbstractFlowPass.cs (1)
2157
var refKind = node.Left.Kind == BoundKind.
BadExpression
FlowAnalysis\DefiniteAssignment.cs (1)
1661
case BoundKind.
BadExpression
:
Generated\BoundNodes.xml.Generated.cs (2)
980
: base(BoundKind.
BadExpression
, syntax, type, hasErrors || childBoundNodes.HasErrors())
8870
case BoundKind.
BadExpression
:
Operations\CSharpOperationFactory.cs (3)
119
case BoundKind.
BadExpression
:
1070
Debug.Assert(boundOperand.Kind == BoundKind.
BadExpression
||
1072
ExpressionOpt?.Kind == BoundKind.
BadExpression
);