JS: Downgrade ast_node_symbol relation

This commit is contained in:
Asger F
2022-06-23 09:57:35 +02:00
parent 5dfa5fb877
commit 90c2b6e47f
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
class AstNodeWithSymbol extends @ast_node_with_symbol {
string toString() { none() }
}
class Symbol extends @symbol {
string toString() { none() }
}
from AstNodeWithSymbol node, Symbol symbol
where ast_node_symbol(node, symbol) and not node instanceof @external_module_declaration
select node, symbol

View File

@@ -1,2 +1,4 @@
description: Associate symbols with external module declarations
compatibility: backwards
ast_node_symbol.rel: run ast_node_symbol.qlo