Languages / C# · Edit coverage JSON

AST coverage

C#

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

Grammar
tree-sitter-c-sharp@0.23.5
Plugin
CSharpPlugin (rgctl-lang-csharp)
Extensions
.cs
Discover
rgctl discover . -l csharp --with-cfg

Handler summary

HandlerKinds
Symbol10
Relation2
CfgStatement18
AstSkeleton1
Literal18
Skip166

Symbol (10)

  • class_declaration
  • constructor_declaration
  • enum_declaration
  • field_declaration
  • interface_declaration
  • method_declaration
  • namespace_declaration
  • property_declaration
  • record_declaration
  • struct_declaration

Relation (2)

  • base_list
  • invocation_expression

CfgStatement (18)

  • block
  • break_statement
  • catch_clause
  • continue_statement
  • do_statement
  • finally_clause
  • for_statement
  • foreach_statement
  • goto_statement
  • if_statement
  • return_statement
  • switch_expression
  • switch_statement
  • throw_expression
  • throw_statement
  • try_statement
  • while_statement
  • yield_statement

AstSkeleton (1)

  • assignment_expression

Literal (18)

  • boolean_literal
  • character_literal
  • character_literal_content
  • comment
  • escape_sequence
  • integer_literal
  • interpolated_string_expression
  • null_literal
  • raw_string_content
  • raw_string_end
  • raw_string_literal
  • raw_string_start
  • real_literal
  • string_content
  • string_literal
  • string_literal_content
  • string_literal_encoding
  • verbatim_string_literal

Skip (166)

  • accessor_declaration
  • accessor_list
  • alias_qualified_name
  • and_pattern
  • anonymous_method_expression
  • anonymous_object_creation_expression
  • argument
  • argument_list
  • array_creation_expression
  • array_rank_specifier
  • array_type
  • arrow_expression_clause
  • as_expression
  • attribute
  • attribute_argument
  • attribute_argument_list
  • attribute_list
  • attribute_target_specifier
  • await_expression
  • binary_expression
  • bracketed_argument_list
  • bracketed_parameter_list
  • calling_convention
  • cast_expression
  • catch_declaration
  • catch_filter_clause
  • checked_expression
  • checked_statement
  • collection_element
  • collection_expression
  • compilation_unit
  • conditional_access_expression
  • conditional_expression
  • constant_pattern
  • constructor_constraint
  • constructor_initializer
  • conversion_operator_declaration
  • declaration_expression
  • declaration_list
  • declaration_pattern
  • default_expression
  • delegate_declaration
  • destructor_declaration
  • discard
  • element_access_expression
  • element_binding_expression
  • empty_statement
  • enum_member_declaration
  • enum_member_declaration_list
  • event_declaration
  • event_field_declaration
  • explicit_interface_specifier
  • expression_element
  • expression_statement
  • extern_alias_directive
  • file_scoped_namespace_declaration
  • fixed_statement
  • from_clause
  • function_pointer_parameter
  • function_pointer_type
  • generic_name
  • global_attribute
  • global_statement
  • group_clause
  • identifier
  • implicit_array_creation_expression
  • implicit_object_creation_expression
  • implicit_parameter
  • implicit_stackalloc_expression
  • implicit_type
  • indexer_declaration
  • initializer_expression
  • interpolation
  • interpolation_alignment_clause
  • interpolation_brace
  • interpolation_format_clause
  • interpolation_quote
  • interpolation_start
  • is_expression
  • is_pattern_expression
  • join_clause
  • join_into_clause
  • labeled_statement
  • lambda_expression
  • let_clause
  • list_pattern
  • local_declaration_statement
  • local_function_statement
  • lock_statement
  • makeref_expression
  • member_access_expression
  • member_binding_expression
  • modifier
  • negated_pattern
  • nullable_type
  • object_creation_expression
  • operator_declaration
  • or_pattern
  • order_by_clause
  • parameter
  • parameter_list
  • parenthesized_expression
  • parenthesized_pattern
  • parenthesized_variable_designation
  • pointer_type
  • positional_pattern_clause
  • postfix_unary_expression
  • predefined_type
  • prefix_unary_expression
  • preproc_arg
  • preproc_define
  • preproc_elif
  • preproc_else
  • preproc_endregion
  • preproc_error
  • preproc_if
  • preproc_if_in_attribute_list
  • preproc_line
  • preproc_nullable
  • preproc_pragma
  • preproc_region
  • preproc_undef
  • preproc_warning
  • primary_constructor_base_type
  • property_pattern_clause
  • qualified_name
  • query_expression
  • range_expression
  • recursive_pattern
  • ref_expression
  • ref_type
  • reftype_expression
  • refvalue_expression
  • relational_pattern
  • scoped_type
  • select_clause
  • shebang_directive
  • sizeof_expression
  • spread_element
  • stackalloc_expression
  • subpattern
  • switch_body
  • switch_expression_arm
  • switch_section
  • tuple_element
  • tuple_expression
  • tuple_pattern
  • tuple_type
  • type_argument_list
  • type_parameter
  • type_parameter_constraint
  • type_parameter_constraints_clause
  • type_parameter_list
  • type_pattern
  • typeof_expression
  • unary_expression
  • unsafe_statement
  • using_directive
  • using_statement
  • var_pattern
  • variable_declaration
  • variable_declarator
  • when_clause
  • where_clause
  • with_expression
  • with_initializer

Related: Tier 1 language support · Discovering and indexing