UNPKG

aico-pack

Version:

A tool to pack repository contents to single file for AI consumption

76 lines (52 loc) 1.83 kB
export const queryRust = ` (line_comment) @comment (block_comment) @comment ; Import statements (use_declaration (scoped_identifier) @name.reference.module) @definition.import (use_declaration (identifier) @name.reference.module) @definition.import (extern_crate_declaration (identifier) @name.reference.module) @definition.import ; ADT definitions (struct_item name: (type_identifier) @name.definition.class) @definition.class (enum_item name: (type_identifier) @name.definition.class) @definition.class (union_item name: (type_identifier) @name.definition.class) @definition.class ; type aliases (type_item name: (type_identifier) @name.definition.class) @definition.class ; method definitions (declaration_list (function_item name: (identifier) @name.definition.method)) @definition.method ; function definitions (function_item name: (identifier) @name.definition.function) @definition.function ; trait definitions (trait_item name: (type_identifier) @name.definition.interface) @definition.interface ; module definitions (mod_item name: (identifier) @name.definition.module) @definition.module ; macro definitions (macro_definition name: (identifier) @name.definition.macro) @definition.macro ; references (call_expression function: (identifier) @name.reference.call) @reference.call (call_expression function: (field_expression field: (field_identifier) @name.reference.call)) @reference.call (macro_invocation macro: (identifier) @name.reference.call) @reference.call ; implementations (impl_item trait: (type_identifier) @name.reference.implementation) @reference.implementation (impl_item type: (type_identifier) @name.reference.implementation !trait) @reference.implementation `; //# sourceMappingURL=queryRust.js.map