67 references to BindToNaturalType
Microsoft.CodeAnalysis.CSharp (67)
Binder\Binder_Conversions.cs (6)
160source = BindToNaturalType(source, diagnostics); 349BindToNaturalType(source, diagnostics), 2319withArgumentsBuilder.Add(BindToNaturalType(argument, diagnostics, reportNoTargetType)); 2331? BindToNaturalType(expression, diagnostics, reportNoTargetType) 2540BindToNaturalType(source, diagnostics), 2730BindToNaturalType(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)); 3611coercedArgument = BindToNaturalType(argument, diagnostics); 5484childBoundNodes: [@this.BindToNaturalType(arg, diagnostics, reportNoTargetType: false)], 5563BoundExpression argument = analyzedArguments.Arguments.Count >= 1 ? BindToNaturalType(analyzedArguments.Arguments[0], diagnostics) : null; 6646arguments: boundElementInitializerExpressions.SelectAsArray(e => BindToNaturalType(e, diagnostics)), 6739BindToNaturalType(element.Expression, BindingDiagnosticBag.Discarded, reportNoTargetType: false), 7955boundLeft = BindToNaturalType(boundLeft, diagnostics); 8038boundLeft = BindToNaturalType(boundLeft, diagnostics); 8240return BindToNaturalType(expr, diagnostics); 10321receiver = BindToNaturalType(receiver, diagnostics); 11307argument: BindToNaturalType(arguments.Arguments[0], 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) 2011boundValue = BindToNaturalType(boundValue, diagnostics); 2023return BindToNaturalType(receiver, diagnostics); 2458boundArgument = BindToNaturalType(boundArgument, diagnostics, reportNoTargetType: false); 2560boundExpression = 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); 3274BoundExpression operand = BindToNaturalType(BindValue(operandSyntax, diagnostics, BindValueKind.IncrementDecrement), diagnostics); 4081BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics); 4135BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, BindValueKind.AddressOf), diagnostics); 4332BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics); 5689leftOperand = BindToNaturalType(leftOperand, diagnostics); 5760rightOperand = BindToNaturalType(rightOperand, diagnostics); 5827rightOperand = BindToNaturalType(rightOperand, diagnostics); 6021trueExpr = BindToNaturalType(trueExpr, diagnostics, reportNoTargetType: false); 6022falseExpr = BindToNaturalType(falseExpr, diagnostics, reportNoTargetType: false); 6071trueExpr = BindToNaturalType(trueExpr, diagnostics, reportNoTargetType: false); 6072falseExpr = BindToNaturalType(falseExpr, diagnostics, reportNoTargetType: false);
Binder\Binder_Patterns.cs (1)
1249convertedExpression = 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); 2705BindToNaturalType(expr, diagnostics), 2753expr = BindToNaturalType(expr, diagnostics); 3246return BindToNaturalType(argument, diagnostics); 3579expression = BindToNaturalType(expression, diagnostics); 3609expression = BindToNaturalType(expression, diagnostics); 3618expression = 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);