58 references to BindValue
Microsoft.CodeAnalysis.CSharp (58)
Binder\Binder_Attributes.cs (1)
563
BoundExpression namedArgumentValue = this.
BindValue
(namedArgument.Expression, diagnostics, BindValueKind.RValue);
Binder\Binder_Deconstruct.cs (1)
99
BoundExpression boundRight = rightPlaceholder ??
BindValue
(right, deconstructionDiagnostics, BindValueKind.RValue);
Binder\Binder_Expressions.cs (22)
250
return BindToNaturalType(
BindValue
(node, diagnostics, BindValueKind.RValue), diagnostics, reportNoTargetType);
514
valueBeforeConversion = defaultValueBinder.
BindValue
(defaultValueSyntax.Value, diagnostics, BindValueKind.RValue);
532
var initializer = initializerBinder.
BindValue
(equalsValueSyntax.Value, diagnostics, BindValueKind.RValue);
862
node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(BindToTypeForErrorRecovery(
BindValue
(node.Expression, BindingDiagnosticBag.Discarded, BindValueKind.RefersToLocation))),
1014
ImmutableArray.Create(
BindValue
(arguments[0].Expression, diagnostics, BindValueKind.RValue)) :
1044
BoundExpression boundArgument =
BindValue
(argumentSyntax.Expression, diagnostics, BindValueKind.RValue);
1225
BoundExpression argument =
BindValue
(node.Expression, diagnostics, BindValueKind.RValue);
1248
BoundExpression argument = this.
BindValue
(node.Expression, diagnostics, BindValueKind.RefOrOut);
1273
BoundExpression argument =
BindValue
(node.Expression, diagnostics, BindValueKind.RValue);
2609
BoundExpression operand = this.
BindValue
(node.Expression, diagnostics, BindValueKind.RValue);
2634
BoundExpression boundOperand =
BindValue
(node.Operand, diagnostics, BindValueKind.RValue);
2742
BoundExpression boundOperand =
BindValue
(operand, diagnostics, BindValueKind.RValue);
3440
argument = this.
BindValue
(argumentExpression, diagnostics, valueKind);
4125
var size =
BindValue
(dimension, diagnostics, BindValueKind.RValue);
4241
var boundExpression =
BindValue
(expression, diagnostics, BindValueKind.RValue);
4258
var boundExpression =
BindValue
(expression, diagnostics, BindValueKind.RValue);
4587
count =
BindValue
(countSyntax, diagnostics, BindValueKind.RValue);
5301
ExpressionElementSyntax expressionElementSyntax => @this.
BindValue
(expressionElementSyntax.Expression, diagnostics, BindValueKind.RValue),
5696
return
BindValue
(syntax, diagnostics, rhsValueKind);
5829
var boundExpression =
BindValue
(memberInitializer, diagnostics, BindValueKind.RValue);
6424
exprBuilder.Add(
BindValue
(childElementInitializer, diagnostics, BindValueKind.RValue));
11360
var access = conditionalAccessBinder.
BindValue
(node.WhenNotNull, diagnostics, BindValueKind.RValue);
Binder\Binder_InterpolatedString.cs (2)
90
var value =
BindValue
(interpolation.Expression, diagnostics, BindValueKind.RValue);
101
alignment = GenerateConversionForAssignment(intType,
BindValue
(interpolation.AlignmentClause.Value, diagnostics, Binder.BindValueKind.RValue), diagnostics);
Binder\Binder_Operators.cs (15)
28
BoundExpression left =
BindValue
(node.Left, diagnostics, GetBinaryAssignmentKind(node.Kind()));
30
BoundExpression right =
BindValue
(node.Right, diagnostics, BindValueKind.RValue);
902
BoundExpression right =
BindValue
(syntaxNode.Right, diagnostics, BindValueKind.RValue);
3143
BoundExpression operand = BindToNaturalType(
BindValue
(operandSyntax, diagnostics, BindValueKind.IncrementDecrement), diagnostics);
3924
BoundExpression operand = BindToNaturalType(
BindValue
(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics);
3971
BoundExpression operand = BindToNaturalType(
BindValue
(node.Operand, diagnostics, BindValueKind.AddressOf), diagnostics);
4168
BoundExpression operand = BindToNaturalType(
BindValue
(node.Operand, diagnostics, GetUnaryAssignmentKind(node.Kind())), diagnostics);
5441
var leftOperand =
BindValue
(node.Left, diagnostics, BindValueKind.RValue);
5443
var rightOperand =
BindValue
(node.Right, diagnostics, BindValueKind.RValue);
5630
BoundExpression leftOperand =
BindValue
(node.Left, diagnostics, BindValueKind.CompoundAssignment);
5632
BoundExpression rightOperand =
BindValue
(node.Right, diagnostics, BindValueKind.RValue);
5759
BoundExpression trueExpr =
BindValue
(whenTrue, diagnostics, BindValueKind.RValue);
5760
BoundExpression falseExpr =
BindValue
(whenFalse, diagnostics, BindValueKind.RValue);
5800
BoundExpression trueExpr =
BindValue
(whenTrue, diagnostics, BindValueKind.RValue | BindValueKind.RefersToLocation);
5801
BoundExpression falseExpr =
BindValue
(whenFalse, diagnostics, BindValueKind.RValue | BindValueKind.RefersToLocation);
Binder\Binder_Query.cs (2)
848
BoundExpression boundExpression = lambdaBodyBinder.
BindValue
(expression, diagnostics, BindValueKind.RValue);
858
BoundExpression boundExpression = lambdaBodyBinder.
BindValue
(expression, diagnostics, BindValueKind.RValue);
Binder\Binder_Statements.cs (10)
240
:
BindValue
(node.Expression, diagnostics, BindValueKind.RValue);
395
var boundExpr =
BindValue
(exprSyntax, diagnostics, BindValueKind.RValue);
893
BoundExpression value =
BindValue
(initializer, diagnostics, valueKind);
1422
var op1 =
BindValue
(node.Left, diagnostics, lhsKind);
1426
var op2 =
BindValue
(rhsExpr, diagnostics, rhsKind);
1868
return
BindValue
(node, diagnostics, valueKind);
2678
var expr =
BindValue
(node, diagnostics, BindValueKind.RValue);
3032
arg =
BindValue
(expressionSyntax, diagnostics, requiredValueKind);
3615
BoundExpression expression = bodyBinder.
BindValue
(expressionSyntax, diagnostics, requiredValueKind);
3631
BoundExpression expression = bodyBinder.
BindValue
(expressionSyntax, diagnostics, requiredValueKind);
Binder\ForEachLoopBinder.cs (1)
629
BoundExpression collectionExpr = this.GetBinder(collectionSyntax).
BindValue
(collectionSyntax, diagnostics, BindValueKind.RValue);
Binder\LockOrUsingBinder.cs (1)
84
BoundExpression boundExpression = originalBinder.
BindValue
(TargetExpressionSyntax, expressionDiagnostics, Binder.BindValueKind.RValueOrMethodGroup);
Binder\SwitchBinder.cs (1)
497
gotoCaseExpressionOpt = gotoBinder.
BindValue
(node.Expression, diagnostics, BindValueKind.RValue);
Binder\SwitchExpressionArmBinder.cs (1)
46
BoundExpression armResult = armBinder.
BindValue
(node.Expression, diagnostics, BindValueKind.RValue);
Symbols\Source\SourceFixedFieldSymbol.cs (1)
93
binder.
BindValue
(sizeExpression, diagnostics, Binder.BindValueKind.RValue),