javascript.scm 641 B

123456789101112
  1. ; Seed query for the R1 scaffold (JavaScript / JSX grammar) — smoke-level
  2. ; coverage only; R2 replaces this with the full port. See typescript.scm for
  3. ; the capture convention.
  4. (class_declaration name: (identifier) @name) @def.class
  5. (function_declaration name: (identifier) @name) @def.function
  6. (generator_function_declaration name: (identifier) @name) @def.function
  7. (method_definition name: (property_identifier) @name) @def.method
  8. (call_expression function: (identifier) @ref.calls)
  9. (call_expression function: (member_expression property: (property_identifier) @ref.calls))
  10. (new_expression constructor: (identifier) @ref.instantiates)