From 90c2b6e47f55431d65d11e302d8d2643e2f5dee3 Mon Sep 17 00:00:00 2001 From: Asger F Date: Thu, 23 Jun 2022 09:57:35 +0200 Subject: [PATCH] JS: Downgrade ast_node_symbol relation --- .../ast_node_symbol.ql | 11 +++++++++++ .../upgrade.properties | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 javascript/downgrades/c0664d5721c90dd32a5b167efea24f9cc6f57cfb/ast_node_symbol.ql 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