27 references to LeftOperand
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Expressions.cs (3)
2660if (node.LeftOperand is null && node.RightOperand is null) 2664else if (node.LeftOperand is null) 2691BoundExpression left = BindRangeExpressionOperand(node.LeftOperand, 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)
1610if (leftOperand != this.LeftOperand || operatorToken != this.OperatorToken || rightOperand != this.RightOperand) 1621public RangeExpressionSyntax WithOperatorToken(SyntaxToken operatorToken) => Update(this.LeftOperand, operatorToken, this.RightOperand); 1622public RangeExpressionSyntax WithRightOperand(ExpressionSyntax? rightOperand) => Update(this.LeftOperand, this.OperatorToken, rightOperand);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
551var hasLeftOperand = rangeExpression.LeftOperand != null;
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\AwaitCompletionProvider.cs (1)
137RangeExpressionSyntax range => range.LeftOperand,
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (1)
86: (dotToken.Parent as RangeExpressionSyntax)?.LeftOperand;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\IndexAndRangeTests.cs (12)
1128Assert.Equal("System.Int32", model.GetTypeInfo(expressions[0].LeftOperand).Type.ToTestDisplayString()); 1133Assert.Equal("System.Int32", model.GetTypeInfo(expressions[1].LeftOperand).Type.ToTestDisplayString()); 1138Assert.Null(expressions[2].LeftOperand); 1143Assert.Null(expressions[3].LeftOperand); 1347Assert.Equal("System.Index", model.GetTypeInfo(expressions[0].LeftOperand).Type.ToTestDisplayString()); 1352Assert.Equal("System.Index", model.GetTypeInfo(expressions[1].LeftOperand).Type.ToTestDisplayString()); 1357Assert.Null(expressions[2].LeftOperand); 1362Assert.Null(expressions[3].LeftOperand); 1390Assert.Equal("System.Index?", model.GetTypeInfo(expressions[0].LeftOperand).Type.ToTestDisplayString()); 1395Assert.Equal("System.Index?", model.GetTypeInfo(expressions[1].LeftOperand).Type.ToTestDisplayString()); 1400Assert.Null(expressions[2].LeftOperand); 1405Assert.Null(expressions[3].LeftOperand);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
11439Assert.Null(node.LeftOperand); 11442var newNode = node.WithLeftOperand(node.LeftOperand).WithOperatorToken(node.OperatorToken).WithRightOperand(node.RightOperand);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
229var currentExpression = rangeExpression.LeftOperand;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
551var hasLeftOperand = rangeExpression.LeftOperand != null;
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
551var hasLeftOperand = rangeExpression.LeftOperand != null;