Languages / TypeScript · Edit coverage JSON

AST coverage

TypeScript

Support matrix rendered from typescript-ast-coverage.json. Update that file when bumping the grammar; the site regenerates on the next build.

Grammar
tree-sitter-typescript@0.23.2
Plugin
TypeScriptPlugin (rgctl-lang-typescript)
Extensions
.ts, .tsx
Discover
rgctl discover . -l typescript --with-cfg

Handler summary

HandlerKinds
Symbol7
Relation10
CfgStatement15
AstSkeleton2
Literal13
Skip130

Symbol (7)

  • class
  • class_declaration
  • enum_declaration
  • function_declaration
  • interface_declaration
  • method_definition
  • type_alias_declaration

Relation (10)

  • call_expression
  • import
  • import_alias
  • import_attribute
  • import_clause
  • import_require_clause
  • import_specifier
  • import_statement
  • named_imports
  • namespace_import

CfgStatement (15)

  • break_statement
  • catch_clause
  • continue_statement
  • do_statement
  • else_clause
  • finally_clause
  • for_statement
  • if_statement
  • return_statement
  • statement_block
  • switch_statement
  • throw_statement
  • try_statement
  • while_statement
  • yield_expression

AstSkeleton (2)

  • assignment_expression
  • augmented_assignment_expression

Literal (13)

  • comment
  • escape_sequence
  • false
  • html_comment
  • literal_type
  • null
  • number
  • string
  • string_fragment
  • template_literal_type
  • template_string
  • true
  • undefined

Skip (130)

  • abstract_class_declaration
  • abstract_method_signature
  • accessibility_modifier
  • adding_type_annotation
  • ambient_declaration
  • arguments
  • array
  • array_pattern
  • array_type
  • arrow_function
  • as_expression
  • asserts
  • asserts_annotation
  • assignment_pattern
  • await_expression
  • binary_expression
  • call_signature
  • class_body
  • class_heritage
  • class_static_block
  • computed_property_name
  • conditional_type
  • constraint
  • construct_signature
  • constructor_type
  • debugger_statement
  • decorator
  • default_type
  • empty_statement
  • enum_assignment
  • enum_body
  • existential_type
  • export_clause
  • export_specifier
  • export_statement
  • expression_statement
  • extends_clause
  • extends_type_clause
  • flow_maybe_type
  • for_in_statement
  • formal_parameters
  • function_expression
  • function_signature
  • function_type
  • generator_function
  • generator_function_declaration
  • generic_type
  • hash_bang_line
  • identifier
  • implements_clause
  • index_signature
  • index_type_query
  • infer_type
  • instantiation_expression
  • interface_body
  • internal_module
  • intersection_type
  • jsx_text
  • labeled_statement
  • lexical_declaration
  • lookup_type
  • mapped_type_clause
  • member_expression
  • meta_property
  • method_signature
  • module
  • namespace_export
  • nested_identifier
  • nested_type_identifier
  • new_expression
  • non_null_expression
  • object
  • object_assignment_pattern
  • object_pattern
  • object_type
  • omitting_type_annotation
  • opting_type_annotation
  • optional_chain
  • optional_parameter
  • optional_type
  • override_modifier
  • pair
  • pair_pattern
  • parenthesized_expression
  • parenthesized_type
  • predefined_type
  • private_property_identifier
  • program
  • property_identifier
  • property_signature
  • public_field_definition
  • readonly_type
  • regex
  • regex_flags
  • regex_pattern
  • required_parameter
  • rest_pattern
  • rest_type
  • satisfies_expression
  • sequence_expression
  • shorthand_property_identifier
  • shorthand_property_identifier_pattern
  • spread_element
  • statement_identifier
  • subscript_expression
  • super
  • switch_body
  • switch_case
  • switch_default
  • template_substitution
  • template_type
  • ternary_expression
  • this
  • this_type
  • tuple_type
  • type_annotation
  • type_arguments
  • type_assertion
  • type_identifier
  • type_parameter
  • type_parameters
  • type_predicate
  • type_predicate_annotation
  • type_query
  • unary_expression
  • union_type
  • update_expression
  • variable_declaration
  • variable_declarator
  • with_statement

Related: Tier 1 language support · Discovering and indexing