CoolFace
Apppublic

salim0986/graph-bug-ai

sourceHugging Facemitupdated 4mo agoView on Hugging Face
0likes
relationships.scm57 linesDownload Raw Back to java
1; ============================================================2; Java — structural relationships3; ============================================================4 5; --- CALLS ---6 7; method()  /  obj.method()8(method_invocation9  name: (identifier) @call.callee)10 11; new Foo()12(object_creation_expression13  type: (type_identifier) @call.callee)14 15; --- IMPORTS ---16 17; import java.util.List;18(import_declaration19  (scoped_identifier) @import.module)20 21; import static java.util.Arrays.*;22(import_declaration23  "static"24  (scoped_identifier) @import.module)25 26; --- INHERITANCE ---27 28; class Foo extends Bar29(class_declaration30  name: (identifier) @inherit.child31  (superclass32    (type_identifier) @inherit.parent))33 34; class Foo implements Bar, Baz35(class_declaration36  name: (identifier) @implement.child37  (super_interfaces38    (type_list39      (type_identifier) @implement.interface)))40 41; interface IFoo extends IBar42(interface_declaration43  name: (identifier) @inherit.child44  (extends_interfaces45    (type_list46      (type_identifier) @inherit.parent)))47 48; --- TYPE USES ---49 50; return type51(method_declaration52  type: (type_identifier) @type.use)53 54; variable declaration type55(local_variable_declaration56  type: (type_identifier) @type.use)57