hataraku
Version:
An autonomous coding agent for building AI-powered development tools. The name "Hataraku" (働く) means "to work" in Japanese.
68 lines (64 loc) • 1.55 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/*
- class definitions
- method definitions
- named function declarations
- arrow functions and function expressions assigned to variables
*/
exports.default = `
(
(comment)*
.
(method_definition
name: (property_identifier) ) .method
(#not-eq? "constructor")
(#strip! "^[\\s\\*/]+|^[\\s\\*/]$")
(#select-adjacent! .method)
)
(
(comment)*
.
[
(class
name: (_) )
(class_declaration
name: (_) )
] .class
(#strip! "^[\\s\\*/]+|^[\\s\\*/]$")
(#select-adjacent! .class)
)
(
(comment)*
.
[
(function_declaration
name: (identifier) )
(generator_function_declaration
name: (identifier) )
] .function
(#strip! "^[\\s\\*/]+|^[\\s\\*/]$")
(#select-adjacent! .function)
)
(
(comment)*
.
(lexical_declaration
(variable_declarator
name: (identifier)
value: [(arrow_function) (function_expression)]) .function)
(#strip! "^[\\s\\*/]+|^[\\s\\*/]$")
(#select-adjacent! .function)
)
(
(comment)*
.
(variable_declaration
(variable_declarator
name: (identifier)
value: [(arrow_function) (function_expression)]) .function)
(#strip! "^[\\s\\*/]+|^[\\s\\*/]$")
(#select-adjacent! .function)
)
`;
//# sourceMappingURL=javascript.js.map