24 references to RightOperand
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Expressions.cs (3)
2660
if (node.LeftOperand is null && node.
RightOperand
is null)
2668
else if (node.
RightOperand
is null)
2692
BoundExpression right = BindRangeExpressionOperand(node.
RightOperand
, diagnostics);
Syntax.xml.Main.Generated.cs (1)
1594
=> node.Update((ExpressionSyntax?)Visit(node.LeftOperand), VisitToken(node.OperatorToken), (ExpressionSyntax?)Visit(node.
RightOperand
));
Syntax.xml.Syntax.Generated.cs (3)
1610
if (leftOperand != this.LeftOperand || operatorToken != this.OperatorToken || rightOperand != this.
RightOperand
)
1620
public RangeExpressionSyntax WithLeftOperand(ExpressionSyntax? leftOperand) => Update(leftOperand, this.OperatorToken, this.
RightOperand
);
1621
public RangeExpressionSyntax WithOperatorToken(SyntaxToken operatorToken) => Update(this.LeftOperand, operatorToken, this.
RightOperand
);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
540
var hasRightOperand = rangeExpression.
RightOperand
!= null;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\IndexAndRangeTests.cs (12)
1127
Assert.Equal("System.Int32", model.GetTypeInfo(expressions[0].
RightOperand
).Type.ToTestDisplayString());
1132
Assert.Null(expressions[1].
RightOperand
);
1137
Assert.Equal("System.Int32", model.GetTypeInfo(expressions[2].
RightOperand
).Type.ToTestDisplayString());
1142
Assert.Null(expressions[3].
RightOperand
);
1346
Assert.Equal("System.Index", model.GetTypeInfo(expressions[0].
RightOperand
).Type.ToTestDisplayString());
1351
Assert.Null(expressions[1].
RightOperand
);
1356
Assert.Equal("System.Index", model.GetTypeInfo(expressions[2].
RightOperand
).Type.ToTestDisplayString());
1361
Assert.Null(expressions[3].
RightOperand
);
1389
Assert.Equal("System.Index?", model.GetTypeInfo(expressions[0].
RightOperand
).Type.ToTestDisplayString());
1394
Assert.Null(expressions[1].
RightOperand
);
1399
Assert.Equal("System.Index?", model.GetTypeInfo(expressions[2].
RightOperand
).Type.ToTestDisplayString());
1404
Assert.Null(expressions[3].
RightOperand
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
11441
Assert.Null(node.
RightOperand
);
11442
var newNode = node.WithLeftOperand(node.LeftOperand).WithOperatorToken(node.OperatorToken).WithRightOperand(node.
RightOperand
);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
540
var hasRightOperand = rangeExpression.
RightOperand
!= null;
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
540
var hasRightOperand = rangeExpression.
RightOperand
!= null;