|
lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Represents a singleton method definition (i.e. def self.foo; end)
More...
#include <nodes.hpp>
Public Attributes | |
| Node * | definee |
Definee of a method definition, Lvar("x") for def x.foo; end More... | |
| String | name |
Name of the method, String("foo") for def x.foo; end More... | |
| Node * | args |
| Node * | body |
Body of the method, None if there's no body. More... | |
| Loc | keyword_l |
| Loc | operator_l |
| Loc | name_l |
| MaybeLoc | assignment_l |
| MaybeLoc | end_l |
| Loc | expression_l |
Represents a singleton method definition (i.e. def self.foo; end)
| Node* lib_ruby_parser::Defs::args |
Arguments of a method, None if there's no arguments.
All information about parentheses around arguments is stored in this node.
| MaybeLoc lib_ruby_parser::Defs::assignment_l |
Location of the = operator for endless method definition
None for regular method definition
| Node* lib_ruby_parser::Defs::body |
Body of the method, None if there's no body.
| MaybeLoc lib_ruby_parser::Defs::end_l |
Location of the end keyword
None for endless method definition
| Loc lib_ruby_parser::Defs::expression_l |
Location of the full expression
| Loc lib_ruby_parser::Defs::keyword_l |
Location of the def keyword
| Loc lib_ruby_parser::Defs::name_l |
Location of the method name
| Loc lib_ruby_parser::Defs::operator_l |
Location of the .