salim0986/graph-bug-ai
0
1; ============================================================2; JavaScript — structural relationships3; ============================================================4 5; --- CALLS ---6 7(call_expression8 function: (identifier) @call.callee)9 10(call_expression11 function: (member_expression12 property: (property_identifier) @call.callee))13 14(new_expression15 constructor: (identifier) @call.callee)16 17(new_expression18 constructor: (member_expression19 property: (property_identifier) @call.callee))20 21; --- IMPORTS ---22 23; import ... from 'module'24(import_statement25 source: (string26 (string_fragment) @import.module))27 28; import { foo } — capture specific names29(import_specifier30 name: (identifier) @import.name)31 32; require('module')33(call_expression34 function: (identifier) @_req35 (#eq? @_req "require")36 arguments: (arguments37 (string38 (string_fragment) @import.module)))39 40; --- INHERITANCE ---41 42; class Foo extends Bar43(class_declaration44 name: (identifier) @inherit.child45 (class_heritage46 (identifier) @inherit.parent))47 48(class_declaration49 name: (identifier) @inherit.child50 (class_heritage51 (member_expression52 property: (property_identifier) @inherit.parent)))53 