Extend ImportDeclaration instead of AstNode
This commit is contained in:
4
.github/codeql/queries/assert-pure.ql
vendored
4
.github/codeql/queries/assert-pure.ql
vendored
@@ -9,8 +9,8 @@
|
||||
|
||||
import javascript
|
||||
|
||||
class VSCodeImport extends AstNode {
|
||||
VSCodeImport() { this.(Import).getImportedPath().getValue() = "vscode" }
|
||||
class VSCodeImport extends ImportDeclaration {
|
||||
VSCodeImport() { this.getImportedPath().getValue() = "vscode" }
|
||||
}
|
||||
|
||||
class PureFile extends File {
|
||||
|
||||
Reference in New Issue
Block a user