12 references to AdjustBadExpressionChild
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder.ValueChecks.cs (1)
882
receiver == null ? ImmutableArray<BoundExpression>.Empty : ImmutableArray.Create(
AdjustBadExpressionChild
(receiver)),
Binder\Binder.WithQueryLambdaParametersBinder.cs (1)
89
ImmutableArray.Create(
AdjustBadExpressionChild
(BindToTypeForErrorRecovery(receiver))),
Binder\Binder_Expressions.cs (7)
170
ImmutableArray.Create(
AdjustBadExpressionChild
(BindToTypeForErrorRecovery(childNode))),
195
childNodes.SelectAsArray((e, self) => self.
AdjustBadExpressionChild
(self.BindToTypeForErrorRecovery(e)), this),
238
ImmutableArray.Create(
AdjustBadExpressionChild
(BindToTypeForErrorRecovery(expr))),
7926
return new BoundBadExpression(node, LookupResultKind.Ambiguous, lookupResult.Symbols.AsImmutable(), ImmutableArray.Create(
AdjustBadExpressionChild
(boundLeft)), CreateErrorType(rightName), hasErrors: true);
7963
return new BoundBadExpression(node, lookupResult.Kind, symbols.AsImmutable(), ImmutableArray.Create(
AdjustBadExpressionChild
(boundLeft)), CreateErrorType(rightName), hasErrors: true);
8148
return new BoundBadExpression(syntax, LookupResultKind.Viable, errorTypeSymbol.CandidateSymbols!, [
AdjustBadExpressionChild
(receiver)], CreateErrorType());
8411
boundLeft == null ? ImmutableArray<BoundExpression>.Empty : ImmutableArray.Create(
AdjustBadExpressionChild
(BindToTypeForErrorRecovery(boundLeft))),
Binder\Binder_Invocation.cs (1)
775
receiverOpt == null ? [] : [
AdjustBadExpressionChild
(receiverOpt)],
Binder\Binder_Symbols.cs (1)
1518
receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, childBoundNodes: [
AdjustBadExpressionChild
(receiver)], receiver.Type, hasErrors: true).MakeCompilerGenerated();
BoundTree\Constructors.cs (1)
148
receiverOpt: binder.
AdjustBadExpressionChild
(binder.BindToTypeForErrorRecovery(receiverOpt)),