64 references to BindToNaturalType
Microsoft.CodeAnalysis.CSharp (64)
Binder\Binder_Conversions.cs (4)
119source = BindToNaturalType(source, diagnostics); 296BindToNaturalType(source, diagnostics), 1727BindToNaturalType(expression, diagnostics, reportNoTargetType: !targetType.IsErrorType()) : 2019BindToNaturalType(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 (12)
268return BindToNaturalType(BindValue(node, diagnostics, BindValueKind.RValue), diagnostics, reportNoTargetType); 299type is null ? BindToNaturalType(expression, diagnostics, reportNoTargetType: false) : 372boundArgs.Add(BindToNaturalType(arg, diagnostics, reportNoTargetType)); 3597coercedArgument = BindToNaturalType(argument, diagnostics); 5455BoundExpression argument = analyzedArguments.Arguments.Count >= 1 ? BindToNaturalType(analyzedArguments.Arguments[0], diagnostics) : null; 6562arguments: boundElementInitializerExpressions.SelectAsArray(e => BindToNaturalType(e, diagnostics)), 6655BindToNaturalType(element.Expression, BindingDiagnosticBag.Discarded, reportNoTargetType: false), 7811boundLeft = BindToNaturalType(boundLeft, diagnostics); 7894boundLeft = BindToNaturalType(boundLeft, diagnostics); 8095return BindToNaturalType(expr, diagnostics); 9484receiver = BindToNaturalType(receiver, diagnostics); 10427argument: BindToNaturalType(argument, diagnostics),
Binder\Binder_InterpolatedString.cs (2)
686value = BindToNaturalType(value, conversionDiagnostics); 866newValue = BindToNaturalType(insert.Value, diagnostics);
Binder\Binder_Invocation.cs (8)
104receiver = BindToNaturalType(receiver, diagnostics); 303analyzedArguments.Arguments[i] = BindToNaturalType(analyzedArguments.Arguments[i], diagnostics); 476expression = BindToNaturalType(expression, diagnostics); 542var arg => BindToNaturalType(arg, diagnostics) 1976boundValue = BindToNaturalType(boundValue, diagnostics); 1988return BindToNaturalType(receiver, diagnostics); 2423boundArgument = BindToNaturalType(boundArgument, diagnostics, reportNoTargetType: false); 2523boundExpression = BindToNaturalType(boundExpression, diagnostics);
Binder\Binder_Operators.cs (19)
71left = BindToNaturalType(left, diagnostics); 74right = BindToNaturalType(right, diagnostics); 848left: BindToNaturalType(left, diagnostics), 849right: BindToNaturalType(right, diagnostics), 1116resultLeft = BindToNaturalType(resultLeft, diagnostics, reportNoTargetType: false); 1117resultRight = BindToNaturalType(resultRight, diagnostics, reportNoTargetType: false); 1469left = BindToNaturalType(left, diagnostics); 1470right = BindToNaturalType(right, diagnostics); 3259BoundExpression operand = BindToNaturalType(BindValue(operandSyntax, diagnostics, BindValueKind.IncrementDecrement), diagnostics); 4063BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics); 4110BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, BindValueKind.AddressOf), diagnostics); 4307BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics); 5586leftOperand = BindToNaturalType(leftOperand, diagnostics); 5657rightOperand = BindToNaturalType(rightOperand, diagnostics); 5724rightOperand = BindToNaturalType(rightOperand, diagnostics); 5918trueExpr = BindToNaturalType(trueExpr, diagnostics, reportNoTargetType: false); 5919falseExpr = BindToNaturalType(falseExpr, diagnostics, reportNoTargetType: false); 5968trueExpr = BindToNaturalType(trueExpr, diagnostics, reportNoTargetType: false); 5969falseExpr = 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);