Skip to main content

class_field_info

Function class_field_info 

Source
pub fn class_field_info(
    node: &SyntaxNode,
) -> Option<(String, Option<Type>, bool)>
Expand description

Field name, optional declared type, and whether it’s static from a NodeClassField. Returns (name, type, is_static) where type is None if the field has no type annotation.