rxcc
Version:
A tool to pack repository contents to single file for AI consumption
65 lines (52 loc) • 1.73 kB
JavaScript
export const queryGo = `
; For repomix
(comment)
(package_clause) .package
(import_declaration) .import
(import_spec) .import
(var_declaration) .variable
(const_declaration) .constant
; tree-sitter-go
(
(comment)*
.
(function_declaration
name: (identifier) ) .function
(#strip! "^//\\\\s*")
(#set-adjacent! .function)
)
(
(comment)*
.
(method_declaration
name: (field_identifier) ) .method
(#strip! "^//\\\\s*")
(#set-adjacent! .method)
)
(call_expression
function: [
(identifier)
(parenthesized_expression (identifier) )
(selector_expression field: (field_identifier) )
(parenthesized_expression (selector_expression field: (field_identifier) ))
]) .call
(type_spec
name: (type_identifier) ) .type
(type_identifier) .type
(package_clause "package" (package_identifier) )
(type_declaration (type_spec name: (type_identifier) type: (interface_type)))
(type_declaration (type_spec name: (type_identifier) type: (struct_type)))
; Import statements
(import_declaration
(import_spec_list
(import_spec
path: (interpreted_string_literal) .reference.module))) .import
(import_declaration
(import_spec
path: (interpreted_string_literal) .reference.module)) .import
(package_clause
(package_identifier) .reference.module) .package
(var_declaration (var_spec name: (identifier) ))
(const_declaration (const_spec name: (identifier) ))
`;
//# sourceMappingURL=queryGo.js.map