Cruml::Parsers::VariableParser
Inherits Cruml::Parsers::RegexPatterns
Parses variable declarations from Crystal code
Instance methods
Checks if the variable name matches the instance variable
parse_class_attribute(body_string : String) : NamedTuple(visibility: String, name: String, type: String) | Nil
Parses class variable attributes like class_property, class_getter
Parses class variable declarations like @@name : Type
parse_instance_attribute(expression_string : String) : NamedTuple(visibility: String, name: String, type: String) | Nil
Parses instance variable attributes like property, getter, setter
Parses instance variable assignment in constructor like @name = arg_name
Parses instance variable declarations like @name : Type