Skip to content

Commit e1894af

Browse files
Extend ImportDeclaration instead of AstNode
1 parent b8770a2 commit e1894af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/codeql/queries/assert-pure.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
import javascript
1111

12-
class VSCodeImport extends AstNode {
13-
VSCodeImport() { this.(Import).getImportedPath().getValue() = "vscode" }
12+
class VSCodeImport extends ImportDeclaration {
13+
VSCodeImport() { this.getImportedPath().getValue() = "vscode" }
1414
}
1515

1616
class PureFile extends File {

0 commit comments

Comments
 (0)