50 references to BindToTypeForErrorRecovery
Microsoft.CodeAnalysis.CSharp (50)
Binder\Binder.WithQueryLambdaParametersBinder.cs (1)
89
ImmutableArray.Create(
BindToTypeForErrorRecovery
(receiver)),
Binder\Binder_Attributes.cs (1)
192
static (arg, binder) => binder.
BindToTypeForErrorRecovery
(arg),
Binder\Binder_Expressions.cs (10)
169
ImmutableArray.Create(
BindToTypeForErrorRecovery
(childNode)),
182
childNodes.SelectAsArray((e, self) => self.
BindToTypeForErrorRecovery
(e), this),
225
ImmutableArray.Create(
BindToTypeForErrorRecovery
(expr)),
861
node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(
BindToTypeForErrorRecovery
(BindValue(node.Expression, BindingDiagnosticBag.Discarded, BindValueKind.RefersToLocation))),
955
return
BindToTypeForErrorRecovery
(result);
1683
childBoundNodes: ImmutableArray.Create(
BindToTypeForErrorRecovery
(expression)),
4105
size =
BindToTypeForErrorRecovery
(size);
4538
builder.Add(
BindToTypeForErrorRecovery
(BindExpression(size, BindingDiagnosticBag.Discarded)));
5794
return
BindToTypeForErrorRecovery
(ToBadExpression(boundExpression, LookupResultKind.NotAValue));
8315
boundLeft == null ? ImmutableArray<BoundExpression>.Empty : ImmutableArray.Create(
BindToTypeForErrorRecovery
(boundLeft)),
Binder\Binder_Invocation.cs (3)
2023
receiver =
BindToTypeForErrorRecovery
(receiver);
2175
newArguments[i] =
BindToTypeForErrorRecovery
(argument);
2180
newArguments[i] =
BindToTypeForErrorRecovery
(argument, getCorrespondingParameterType(i));
Binder\Binder_Operators.cs (19)
52
left =
BindToTypeForErrorRecovery
(left);
53
right =
BindToTypeForErrorRecovery
(right);
97
left =
BindToTypeForErrorRecovery
(left);
98
right =
BindToTypeForErrorRecovery
(right);
111
left =
BindToTypeForErrorRecovery
(left);
112
right =
BindToTypeForErrorRecovery
(right);
325
left =
BindToTypeForErrorRecovery
(left);
326
right =
BindToTypeForErrorRecovery
(right);
531
BindToTypeForErrorRecovery
(right),
915
left =
BindToTypeForErrorRecovery
(left);
916
right =
BindToTypeForErrorRecovery
(right);
5401
leftOperand =
BindToTypeForErrorRecovery
(leftOperand);
5402
rightOperand =
BindToTypeForErrorRecovery
(rightOperand);
5416
leftOperand =
BindToTypeForErrorRecovery
(leftOperand);
5417
rightOperand =
BindToTypeForErrorRecovery
(rightOperand);
5605
leftOperand =
BindToTypeForErrorRecovery
(leftOperand);
5606
rightOperand =
BindToTypeForErrorRecovery
(rightOperand);
5658
leftOperand =
BindToTypeForErrorRecovery
(leftOperand);
5659
rightOperand =
BindToTypeForErrorRecovery
(rightOperand);
Binder\Binder_Patterns.cs (1)
582
convertedExpression =
BindToTypeForErrorRecovery
(convertedExpression);
Binder\Binder_Statements.cs (12)
248
argument =
BindToTypeForErrorRecovery
(argument);
1158
initializerOpt: hasErrors ?
BindToTypeForErrorRecovery
(initializerOpt)?.WithHasErrors() : initializerOpt,
1495
op1 =
BindToTypeForErrorRecovery
(op1);
1520
op1 =
BindToTypeForErrorRecovery
(op1);
1521
op2 =
BindToTypeForErrorRecovery
(op2);
2663
return BoundConversion.Synthesized(node,
BindToTypeForErrorRecovery
(expr), Conversion.NoConversion, false, explicitCastInCode: false, conversionGroupOpt: null, ConstantValue.NotAvailable, boolean, hasErrors: true);
3137
return new BoundReturnStatement(syntax, refKind, hasErrors ?
BindToTypeForErrorRecovery
(arg) : arg, hasErrors);
3473
expression =
BindToTypeForErrorRecovery
(expression);
3484
expression =
BindToTypeForErrorRecovery
(expression);
3497
expression =
BindToTypeForErrorRecovery
(expression);
3515
expression =
BindToTypeForErrorRecovery
(expression);
3522
expression =
BindToTypeForErrorRecovery
(expression);
Binder\ForEachLoopBinder.cs (1)
409
iterationErrorExpression =
BindToTypeForErrorRecovery
(BindExpression(node.Variable, BindingDiagnosticBag.Discarded));
BoundTree\Constructors.cs (2)
141
receiverOpt: binder.
BindToTypeForErrorRecovery
(receiverOpt),
144
arguments: arguments.SelectAsArray((e, binder) => binder.
BindToTypeForErrorRecovery
(e), binder),