Skip to main content

Tree sitter query language (scm)

Scopes

Supported facets

These facets are supported

Argument or parameter

  • Actual: An argument/parameter in a function call
  • Actual (iteration): Iteration scope of arguments in a function call, should be inside the parens of the argument list

Comment

  • Line: A line comment

Function call

  • Function call: A function call

Function callee

  • Function callee: The function being called in a function call

List

  • List: A list/array

Statement

  • Statement: A statement, eg assignment, for loop, etc

String

  • Single line: A single-line string

Text fragment

  • Comment line: Text fragment consisting of a line comment
  • String single line: Text fragment consisting of a single-line string

Unspecified facets

These facets are unspecified