JS: Move Directive subclasses into Directive module

This commit is contained in:
Asger F
2023-05-26 13:39:22 +02:00
parent a950de36a0
commit 1d22e65851
5 changed files with 171 additions and 134 deletions

View File

@@ -12,7 +12,7 @@ import javascript
from Directive d
where
not d instanceof KnownDirective and
not d instanceof Directive::KnownDirective and
// ignore ":" pseudo-directive sometimes seen in dual-use shell/node.js scripts
not d.getExpr().getStringValue() = ":" and
// but exclude attribute top-levels: `<a href="javascript:'some-attribute-string'">`