Skip to main content

Module checker

Module checker 

Source
Expand description

The [Checker] classification predicates and their per-language impls.

Modules§

ruby
Checker implementation for Ruby.

Structs§

SubtreeSkip
A [Checker::should_skip_subtree] verdict, plus the following nodes it also answers for.

Functions§

c_family_void_parameter
Whether param is C’s (void) marker — the spelling for an empty parameter list — rather than a parameter.
csharp_accessor_count
Counts the accessor_declaration children (get / set / init) of a C# property_declaration / indexer_declaration by walking its accessor_list. Returns 0 for the expression-bodied form (this[int i] => _d[i]; / int W => _w;), which has no accessor list.
csharp_member_has_accessors
Returns true when a C# indexer_declaration / property_declaration carries bodied accessors — an accessor_list containing at least one accessor_declaration (get / set / init). Returns false for the expression-bodied form (this[int i] => _d[i]; / int W => _w;), which has no accessor list and defines a single implicit getter.
java_anonymous_class_body
Returns the class_body child of a Java object_creation_expression when the node is an anonymous class (new Runnable() { ... }), or None for a plain constructor call (new Foo()). Shared by JavaCode::is_func_space and JavaCode::get_space_kind so both agree on exactly which object_creation_expression nodes open a Class space (#463); a lambda is a distinct lambda_expression node and never reaches this path.