66 references to BindToNaturalType
Microsoft.CodeAnalysis.CSharp (66)
Binder\Binder_Conversions.cs (5)
122source = BindToNaturalType(source, diagnostics); 304BindToNaturalType(source, diagnostics), 2246withArgumentsBuilder.Add(BindToNaturalType(argument, diagnostics, reportNoTargetType)); 2258? BindToNaturalType(expression, diagnostics, reportNoTargetType) 2467BindToNaturalType(source, diagnostics),
Binder\Binder_Deconstruct.cs (3)
102boundRight = BindToNaturalType(boundRight, diagnostics); 593return (BoundTupleExpression)BindToNaturalType(new BoundTupleLiteral(syntax, arguments, tupleNames, inferredPositions, type), diagnostics); 632receiver = BindToNaturalType(receiver, diagnostics);
Binder\Binder_Expressions.cs (13)
268return BindToNaturalType(BindValue(node, diagnostics, BindValueKind.RValue), diagnostics, reportNoTargetType); 299type is null ? BindToNaturalType(expression, diagnostics, reportNoTargetType: false) : 372boundArgs.Add(BindToNaturalType(arg, diagnostics, reportNoTargetType)); 3608coercedArgument = BindToNaturalType(argument, diagnostics); 5468childBoundNodes: [@this.BindToNaturalType(arg, diagnostics, reportNoTargetType: false)], 5547BoundExpression argument = analyzedArguments.Arguments.Count >= 1 ? BindToNaturalType(analyzedArguments.Arguments[0], diagnostics) : null; 6653arguments: boundElementInitializerExpressions.SelectAsArray(e => BindToNaturalType(e, diagnostics)), 6746BindToNaturalType(element.Expression, BindingDiagnosticBag.Discarded, reportNoTargetType: false), 7942boundLeft = BindToNaturalType(boundLeft, diagnostics); 8025boundLeft = BindToNaturalType(boundLeft, diagnostics); 8227return BindToNaturalType(expr, diagnostics); 9640receiver = BindToNaturalType(receiver, diagnostics); 10585argument: 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) 1986boundValue = BindToNaturalType(boundValue, diagnostics); 1998return BindToNaturalType(receiver, diagnostics); 2433boundArgument = BindToNaturalType(boundArgument, diagnostics, reportNoTargetType: false); 2533boundExpression = BindToNaturalType(boundExpression, diagnostics);
Binder\Binder_Operators.cs (19)
71left = BindToNaturalType(left, diagnostics); 74right = BindToNaturalType(right, diagnostics); 846left: BindToNaturalType(left, diagnostics), 847right: BindToNaturalType(right, diagnostics), 1114resultLeft = BindToNaturalType(resultLeft, diagnostics, reportNoTargetType: false); 1115resultRight = BindToNaturalType(resultRight, diagnostics, reportNoTargetType: false); 1463left = BindToNaturalType(left, diagnostics); 1464right = BindToNaturalType(right, diagnostics); 3251BoundExpression operand = BindToNaturalType(BindValue(operandSyntax, diagnostics, BindValueKind.IncrementDecrement), diagnostics); 4056BoundExpression 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); 1437op2 = BindToNaturalType(op2, diagnostics); 1521op2 = BindToNaturalType(op2, diagnostics); 2704BindToNaturalType(expr, diagnostics), 2752expr = BindToNaturalType(expr, diagnostics); 3221return BindToNaturalType(argument, diagnostics); 3554expression = BindToNaturalType(expression, diagnostics); 3584expression = BindToNaturalType(expression, diagnostics); 3593expression = 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);