Languages / Rust · Edit coverage JSON

AST coverage

Rust

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

Grammar
tree-sitter-rust@0.24.2
Plugin
RustPlugin (rgctl-lang-rust)
Extensions
.rs
Discover
rgctl discover . -l rust --with-cfg

Handler summary

HandlerKinds
Symbol9
Relation2
CfgStatement11
AstSkeleton2
Literal14
Skip125

Symbol (9)

  • const_item
  • enum_item
  • field_declaration
  • function_item
  • impl_item
  • static_item
  • struct_item
  • trait_item
  • union_item

Relation (2)

  • call_expression
  • use_declaration

CfgStatement (11)

  • block
  • else_clause
  • for_expression
  • if_expression
  • loop_expression
  • match_block
  • match_expression
  • return_expression
  • try_expression
  • while_expression
  • yield_expression

AstSkeleton (2)

  • assignment_expression
  • compound_assignment_expr

Literal (14)

  • block_comment
  • boolean_literal
  • char_literal
  • doc_comment
  • escape_sequence
  • float_literal
  • inner_doc_comment_marker
  • integer_literal
  • line_comment
  • negative_literal
  • outer_doc_comment_marker
  • raw_string_literal
  • string_content
  • string_literal

Skip (125)

  • abstract_type
  • arguments
  • array_expression
  • array_type
  • associated_type
  • async_block
  • attribute
  • attribute_item
  • await_expression
  • base_field_initializer
  • binary_expression
  • bounded_type
  • bracketed_type
  • break_expression
  • captured_pattern
  • closure_expression
  • closure_parameters
  • const_block
  • const_parameter
  • continue_expression
  • crate
  • declaration_list
  • dynamic_type
  • empty_statement
  • enum_variant
  • enum_variant_list
  • expression_statement
  • extern_crate_declaration
  • extern_modifier
  • field_declaration_list
  • field_expression
  • field_identifier
  • field_initializer
  • field_initializer_list
  • field_pattern
  • for_lifetimes
  • foreign_mod_item
  • fragment_specifier
  • function_modifiers
  • function_signature_item
  • function_type
  • gen_block
  • generic_function
  • generic_pattern
  • generic_type
  • generic_type_with_turbofish
  • higher_ranked_trait_bound
  • identifier
  • index_expression
  • inner_attribute_item
  • label
  • let_chain
  • let_condition
  • let_declaration
  • lifetime
  • lifetime_parameter
  • macro_definition
  • macro_invocation
  • macro_rule
  • match_arm
  • match_pattern
  • metavariable
  • mod_item
  • mut_pattern
  • mutable_specifier
  • never_type
  • or_pattern
  • ordered_field_declaration_list
  • parameter
  • parameters
  • parenthesized_expression
  • pointer_type
  • primitive_type
  • qualified_type
  • range_expression
  • range_pattern
  • ref_pattern
  • reference_expression
  • reference_pattern
  • reference_type
  • remaining_field_pattern
  • removed_trait_bound
  • scoped_identifier
  • scoped_type_identifier
  • scoped_use_list
  • self
  • self_parameter
  • shebang
  • shorthand_field_identifier
  • shorthand_field_initializer
  • slice_pattern
  • source_file
  • struct_expression
  • struct_pattern
  • super
  • token_binding_pattern
  • token_repetition
  • token_repetition_pattern
  • token_tree
  • token_tree_pattern
  • trait_bounds
  • try_block
  • tuple_expression
  • tuple_pattern
  • tuple_struct_pattern
  • tuple_type
  • type_arguments
  • type_binding
  • type_cast_expression
  • type_identifier
  • type_item
  • type_parameter
  • type_parameters
  • unary_expression
  • unit_expression
  • unit_type
  • unsafe_block
  • use_as_clause
  • use_bounds
  • use_list
  • use_wildcard
  • variadic_parameter
  • visibility_modifier
  • where_clause
  • where_predicate

Related: Tier 1 language support · Discovering and indexing