Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d2aea63

Browse files
committed
C#: Address review comments
1 parent fe6056b commit d2aea63

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

change-notes/1.21/analysis-csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
* The class `Attribute` has two new predicates: `getConstructorArgument()` and `getNamedArgument()`. The first predicate returns arguments to the underlying constructor call and the latter returns named arguments for initializing fields and properties.
1919
* The following QL classes have been added to model C# 8 features:
20-
- Class `IndexExpr` models from end index expressions, for example `^1`
20+
- Class `IndexExpr` models from-end index expressions, for example `^1`
2121
- Class `PatternExpr` is an `Expr` that appears in a pattern. It has the new subclasses `DiscardPatternExpr`, `LabeledPatternExpr`, `RecursivePatternExpr`, `TypeAccessPatternExpr`, `TypePatternExpr`, and `VariablePatternExpr`.
2222
- Class `PatternMatch` models a pattern being matched. It has the subclasses `Case` and `IsExpr`.
2323
- Class `PositionalPatternExpr` models position patterns, for example `(int x, int y)`

csharp/extractor/Semmle.Extraction.CSharp/Entities/Expressions/RangeExpression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ protected override void Populate()
1414
if (!(Syntax.LeftOperand is null))
1515
Expression.Create(cx, Syntax.LeftOperand, this, 0);
1616
if (!(Syntax.RightOperand is null))
17-
Expression.Create(cx, Syntax.RightOperand, this, 1);
17+
Expression.Create(cx, Syntax.RightOperand, this, 1);
1818
}
1919

2020
public static Expression Create(ExpressionNodeInfo info) => new RangeExpression(info).TryPopulate();

0 commit comments

Comments
 (0)