mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Address review comments and add missing notes.
This commit is contained in:
@@ -20,12 +20,15 @@ if seq:
|
||||
Instances of the `Parameter` and `ParameterDefinition` class now have a `getAnnotation` method that returns the corresponding parameter annotation, if one exists.
|
||||
|
||||
### Improvements to the Value API
|
||||
The Value API has been extended with classes representing functions, classes, tuples, and other types.
|
||||
- The Value API has been extended with classes representing functions, classes, tuples, and other types.
|
||||
|
||||
- `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.
|
||||
|
||||
### Other improvements
|
||||
|
||||
- Short flags for regexes (e.g. `re.M` for multiline regexes) are now handled correctly.
|
||||
- Short flags for regexes (for example, `re.M` for multiline regexes) are now handled correctly.
|
||||
- Modules with multiple import roots no longer get multiple names.
|
||||
- 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.
|
||||
|
||||
## New queries
|
||||
|
||||
|
||||
Reference in New Issue
Block a user