mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Apply suggestions from code review
Co-authored-by: Taus <tausbn@github.com>
This commit is contained in:
@@ -26,7 +26,7 @@ class TypeNameBindingNode extends NameResolution::Node {
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if this refers a value exported by the given module, with the given
|
||||
* Holds if this refers to a value exported by the given module, with the given
|
||||
* qualified name. If the `qualifiedName` is empty, this refers to the module itself.
|
||||
*
|
||||
* For example, the type annotations below have the following name bindings:
|
||||
@@ -151,8 +151,8 @@ class ExprNameBindingNode extends NameResolution::Node {
|
||||
* ```ts
|
||||
* import * as f from "foo";
|
||||
*
|
||||
* var x = f; // hasQualifiedName(f, "")
|
||||
* var x = f.x.y; // hasQualifiedName(f, "x.y")
|
||||
* var x = f; // hasQualifiedName("f", "")
|
||||
* var x = f.x.y; // hasQualifiedName("f", "x.y")
|
||||
* ```
|
||||
*/
|
||||
predicate hasQualifiedName(string moduleName, string qualifiedName) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
category: breaking
|
||||
---
|
||||
* The `Type` and `Symbol` classes have been deprecated and will be empty in newly extracted databases, since the TypeScript extractor no longer populates them.
|
||||
This is breaking change for custom queries that explicitly relied on these classes.
|
||||
This is a breaking change for custom queries that explicitly relied on these classes.
|
||||
Such queries will still compile, but with deprecation warnings, and may have different query results due to type information no longer being available.
|
||||
We expect most custom queries will not be affected, however. If a custom query has no deprecation warnings, it should not be affected by this change.
|
||||
Uses of `getType()` should be rewritten to use the new `getTypeBinding()` or `getNameBinding()` APIs instead.
|
||||
|
||||
Reference in New Issue
Block a user