diff --git a/javascript/downgrades/c0664d5721c90dd32a5b167efea24f9cc6f57cfb/ast_node_symbol.ql b/javascript/downgrades/c0664d5721c90dd32a5b167efea24f9cc6f57cfb/ast_node_symbol.ql new file mode 100644 index 00000000000..550968b04b8 --- /dev/null +++ b/javascript/downgrades/c0664d5721c90dd32a5b167efea24f9cc6f57cfb/ast_node_symbol.ql @@ -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 diff --git a/javascript/downgrades/c0664d5721c90dd32a5b167efea24f9cc6f57cfb/upgrade.properties b/javascript/downgrades/c0664d5721c90dd32a5b167efea24f9cc6f57cfb/upgrade.properties index df6e2231ddd..f3b64346d14 100644 --- a/javascript/downgrades/c0664d5721c90dd32a5b167efea24f9cc6f57cfb/upgrade.properties +++ b/javascript/downgrades/c0664d5721c90dd32a5b167efea24f9cc6f57cfb/upgrade.properties @@ -1,2 +1,4 @@ description: Associate symbols with external module declarations compatibility: backwards + +ast_node_symbol.rel: run ast_node_symbol.qlo