JS: Extract mapping from TopLevel to parent HTML node

This commit is contained in:
Asger Feldthaus
2020-12-14 11:59:08 +00:00
parent 8848ee2d10
commit 3b666a5646
4 changed files with 102 additions and 113 deletions

View File

@@ -131,6 +131,11 @@ is_nodejs (int tl: @toplevel ref);
is_es2015_module (int tl: @toplevel ref);
is_closure_module (int tl: @toplevel ref);
@xml_node_with_code = @xmlelement | @xmlattribute;
toplevel_parent_xml_node(
unique int toplevel: @toplevel ref,
int xmlnode: @xml_node_with_code ref);
// statements
#keyset[parent, idx]
stmts (unique int id: @stmt,