Skip to content

Commit f08d857

Browse files
committed
Address review comments and add missing notes.
1 parent 76c0113 commit f08d857

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

change-notes/1.22/analysis-python.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,15 @@ if seq:
2020
Instances of the `Parameter` and `ParameterDefinition` class now have a `getAnnotation` method that returns the corresponding parameter annotation, if one exists.
2121

2222
### Improvements to the Value API
23-
The Value API has been extended with classes representing functions, classes, tuples, and other types.
23+
- The Value API has been extended with classes representing functions, classes, tuples, and other types.
24+
25+
- `Value::forInt(int x)` and `Value::forString(string s)` have been added to make it easier to refer to the `Value` entities for common constants.
2426

2527
### Other improvements
2628

27-
- Short flags for regexes (e.g. `re.M` for multiline regexes) are now handled correctly.
29+
- Short flags for regexes (for example, `re.M` for multiline regexes) are now handled correctly.
2830
- Modules with multiple import roots no longer get multiple names.
31+
- A new `NegativeIntegerLiteral` class has been added as a subtype of `ImmutableLiteral`, so that `-1` is treated as an `ImmutableLiteral`. This means that queries looking for the use of constant integers will automatically handle negative numbers.
2932

3033
## New queries
3134

0 commit comments

Comments
 (0)