aico-pack
Version:
A tool to pack repository contents to single file for AI consumption
76 lines (52 loc) • 1.83 kB
JavaScript
export const queryRust = `
(line_comment)
(block_comment)
; Import statements
(use_declaration
(scoped_identifier) .reference.module) .import
(use_declaration
(identifier) .reference.module) .import
(extern_crate_declaration
(identifier) .reference.module) .import
; ADT definitions
(struct_item
name: (type_identifier) .definition.class) .class
(enum_item
name: (type_identifier) .definition.class) .class
(union_item
name: (type_identifier) .definition.class) .class
; type aliases
(type_item
name: (type_identifier) .definition.class) .class
; method definitions
(declaration_list
(function_item
name: (identifier) .definition.method)) .method
; function definitions
(function_item
name: (identifier) .definition.function) .function
; trait definitions
(trait_item
name: (type_identifier) .definition.interface) .interface
; module definitions
(mod_item
name: (identifier) .definition.module) .module
; macro definitions
(macro_definition
name: (identifier) .definition.macro) .macro
; references
(call_expression
function: (identifier) .reference.call) .call
(call_expression
function: (field_expression
field: (field_identifier) .reference.call)) .call
(macro_invocation
macro: (identifier) .reference.call) .call
; implementations
(impl_item
trait: (type_identifier) .reference.implementation) .implementation
(impl_item
type: (type_identifier) .reference.implementation
!trait) .implementation
`;
//# sourceMappingURL=queryRust.js.map