64 references to BindToNaturalType
Microsoft.CodeAnalysis.CSharp (64)
Binder\Binder_Conversions.cs (4)
119source = BindToNaturalType(source, diagnostics); 290BindToNaturalType(source, diagnostics), 1721BindToNaturalType(expression, diagnostics, reportNoTargetType: !targetType.IsErrorType()) : 2013BindToNaturalType(source, diagnostics),
Binder\Binder_Deconstruct.cs (3)
102boundRight = BindToNaturalType(boundRight, diagnostics); 591return (BoundTupleExpression)BindToNaturalType(new BoundTupleLiteral(syntax, arguments, tupleNames, inferredPositions, type), diagnostics); 630receiver = BindToNaturalType(receiver, diagnostics);
Binder\Binder_Expressions.cs (13)
250return BindToNaturalType(BindValue(node, diagnostics, BindValueKind.RValue), diagnostics, reportNoTargetType); 281type is null ? BindToNaturalType(expression, diagnostics, reportNoTargetType: false) : 350boundArgs.Add(BindToNaturalType(arg, diagnostics, reportNoTargetType)); 3555coercedArgument = BindToNaturalType(argument, diagnostics); 5413BoundExpression argument = analyzedArguments.Arguments.Count >= 1 ? BindToNaturalType(analyzedArguments.Arguments[0], diagnostics) : null; 6520arguments: boundElementInitializerExpressions.SelectAsArray(e => BindToNaturalType(e, diagnostics)), 6613BindToNaturalType(element.Expression, BindingDiagnosticBag.Discarded, reportNoTargetType: false), 7573boundValue = BindToNaturalType(boundValue, valueDiagnostics); 7740boundLeft = BindToNaturalType(boundLeft, diagnostics); 7823boundLeft = BindToNaturalType(boundLeft, diagnostics); 8024return BindToNaturalType(expr, diagnostics); 9394receiver = BindToNaturalType(receiver, diagnostics); 10337argument: BindToNaturalType(argument, diagnostics),
Binder\Binder_InterpolatedString.cs (2)
686value = BindToNaturalType(value, conversionDiagnostics); 866newValue = BindToNaturalType(insert.Value, diagnostics);
Binder\Binder_Invocation.cs (7)
104receiver = BindToNaturalType(receiver, diagnostics); 303analyzedArguments.Arguments[i] = BindToNaturalType(analyzedArguments.Arguments[i], diagnostics); 476expression = BindToNaturalType(expression, diagnostics); 542var arg => BindToNaturalType(arg, diagnostics) 1990return BindToNaturalType(receiver, diagnostics); 2413boundArgument = BindToNaturalType(boundArgument, diagnostics, reportNoTargetType: false); 2513boundExpression = BindToNaturalType(boundExpression, diagnostics);
Binder\Binder_Operators.cs (19)
71left = BindToNaturalType(left, diagnostics); 74right = BindToNaturalType(right, diagnostics); 848left: BindToNaturalType(left, diagnostics), 849right: BindToNaturalType(right, diagnostics), 1118resultLeft = BindToNaturalType(resultLeft, diagnostics, reportNoTargetType: false); 1119resultRight = BindToNaturalType(resultRight, diagnostics, reportNoTargetType: false); 1471left = BindToNaturalType(left, diagnostics); 1472right = BindToNaturalType(right, diagnostics); 3261BoundExpression operand = BindToNaturalType(BindValue(operandSyntax, diagnostics, BindValueKind.IncrementDecrement), diagnostics); 4065BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics); 4112BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, BindValueKind.AddressOf), diagnostics); 4309BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics); 5588leftOperand = BindToNaturalType(leftOperand, diagnostics); 5659rightOperand = BindToNaturalType(rightOperand, diagnostics); 5726rightOperand = BindToNaturalType(rightOperand, diagnostics); 5922trueExpr = BindToNaturalType(trueExpr, diagnostics, reportNoTargetType: false); 5923falseExpr = BindToNaturalType(falseExpr, diagnostics, reportNoTargetType: false); 5972trueExpr = BindToNaturalType(trueExpr, diagnostics, reportNoTargetType: false); 5973falseExpr = BindToNaturalType(falseExpr, diagnostics, reportNoTargetType: false);
Binder\Binder_Patterns.cs (1)
680convertedExpression = BindToNaturalType(expression, diagnostics);
Binder\Binder_Query.cs (1)
40boundFromExpression = BindToNaturalType(boundFromExpression, diagnostics);
Binder\Binder_Statements.cs (11)
406boundExpr = BindToNaturalType(boundExpr, diagnostics); 901BindToNaturalType(value, diagnostics); 1320initializerOpt = BindToNaturalType(initializerOpt, diagnostics, reportNoTargetType: false); 1436op2 = BindToNaturalType(op2, diagnostics); 1520op2 = BindToNaturalType(op2, diagnostics); 2703BindToNaturalType(expr, diagnostics), 2750expr = BindToNaturalType(expr, diagnostics); 3217return BindToNaturalType(argument, diagnostics); 3535expression = BindToNaturalType(expression, diagnostics); 3565expression = BindToNaturalType(expression, diagnostics); 3574expression = BindToNaturalType(expression, diagnostics);
Binder\Binder_TupleOperators.cs (2)
51return BindToNaturalType(expr, diagnostics, reportNoTargetType: false); 69return BindToNaturalType(expr, diagnostics, reportNoTargetType: false);
Binder\LockOrUsingBinder.cs (1)
91boundExpression = originalBinder.BindToNaturalType(boundExpression, expressionDiagnostics);