fix(ts): remove unused files
This commit is contained in:
@@ -1,82 +0,0 @@
|
||||
[
|
||||
(arguments)
|
||||
(array)
|
||||
(binary_expression)
|
||||
(class_body)
|
||||
(export_clause)
|
||||
(formal_parameters)
|
||||
(named_imports)
|
||||
(object)
|
||||
(object_pattern)
|
||||
(parenthesized_expression)
|
||||
(return_statement)
|
||||
(statement_block)
|
||||
(switch_case)
|
||||
(switch_default)
|
||||
(switch_statement)
|
||||
(template_substitution)
|
||||
(ternary_expression)
|
||||
] @indent.begin
|
||||
|
||||
(arguments
|
||||
(call_expression) @indent.begin)
|
||||
|
||||
(binary_expression
|
||||
(call_expression) @indent.begin)
|
||||
|
||||
(expression_statement
|
||||
(call_expression) @indent.begin)
|
||||
|
||||
(arrow_function
|
||||
body: (_) @_body
|
||||
(#not-kind-eq? @_body "statement_block")) @indent.begin
|
||||
|
||||
(assignment_expression
|
||||
right: (_) @_right
|
||||
(#not-kind-eq? @_right "arrow_function")) @indent.begin
|
||||
|
||||
(variable_declarator
|
||||
value: (_) @_value
|
||||
(#not-kind-eq? @_value "arrow_function" "call_expression")) @indent.begin
|
||||
|
||||
(arguments
|
||||
")" @indent.end)
|
||||
|
||||
(object
|
||||
"}" @indent.end)
|
||||
|
||||
(statement_block
|
||||
"}" @indent.end)
|
||||
|
||||
[
|
||||
(arguments
|
||||
(object))
|
||||
")"
|
||||
"}"
|
||||
"]"
|
||||
] @indent.branch
|
||||
|
||||
(statement_block
|
||||
"{" @indent.branch)
|
||||
|
||||
((parenthesized_expression
|
||||
"("
|
||||
(_)
|
||||
")" @indent.end) @_outer
|
||||
(#not-has-parent? @_outer if_statement))
|
||||
|
||||
[
|
||||
"}"
|
||||
"]"
|
||||
] @indent.end
|
||||
|
||||
(template_string) @indent.ignore
|
||||
|
||||
[
|
||||
(comment)
|
||||
(ERROR)
|
||||
] @indent.auto
|
||||
|
||||
(if_statement
|
||||
consequence: (_) @indent.dedent
|
||||
(#not-kind-eq? @indent.dedent statement_block)) @indent.begin
|
||||
@@ -1,51 +0,0 @@
|
||||
; Scopes
|
||||
;-------
|
||||
(statement_block) @local.scope
|
||||
|
||||
(function_expression) @local.scope
|
||||
|
||||
(arrow_function) @local.scope
|
||||
|
||||
(function_declaration) @local.scope
|
||||
|
||||
(method_definition) @local.scope
|
||||
|
||||
(for_statement) @local.scope
|
||||
|
||||
(for_in_statement) @local.scope
|
||||
|
||||
(catch_clause) @local.scope
|
||||
|
||||
; Definitions
|
||||
;------------
|
||||
(variable_declarator
|
||||
name: (identifier) @local.definition.var)
|
||||
|
||||
(variable_declarator
|
||||
name: (object_pattern
|
||||
(shorthand_property_identifier_pattern) @local.definition.var))
|
||||
|
||||
(variable_declarator
|
||||
(object_pattern
|
||||
(pair_pattern
|
||||
(identifier) @local.definition.var)))
|
||||
|
||||
(import_specifier
|
||||
(identifier) @local.definition.import)
|
||||
|
||||
(namespace_import
|
||||
(identifier) @local.definition.import)
|
||||
|
||||
(function_declaration
|
||||
(identifier) @local.definition.function
|
||||
(#set! definition.var.scope parent))
|
||||
|
||||
(method_definition
|
||||
(property_identifier) @local.definition.function
|
||||
(#set! definition.var.scope parent))
|
||||
|
||||
; References
|
||||
;------------
|
||||
(identifier) @local.reference
|
||||
|
||||
(shorthand_property_identifier) @local.reference
|
||||
Reference in New Issue
Block a user