module
Cruml::Parsers::VariableParser
Overview
Parses variable declarations from Crystal code
Included Modules
Extended Modules
Defined in:
parsers/variable_parser.crInstance Method Summary
-
#matches_instance_var?(var_name : String, ivar_name : String) : Bool
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
-
#parse_class_var_declaration(line : String) : NamedTuple(name: String, type: String) | Nil
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
-
#parse_instance_var_assignment(line : String, arg_name : String) : String | Nil
Parses instance variable assignment in constructor like @name = arg_name
-
#parse_instance_var_declaration(line : String) : NamedTuple(name: String, type: String) | Nil
Parses instance variable declarations like @name : Type
Instance Method Detail
Checks if the variable name matches the instance variable
Parses class variable attributes like class_property, class_getter
Parses class variable declarations like @@name : Type
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