lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Represents a class definition (using a class
keyword, Class.new
is just a method call)
More...
#include <nodes.hpp>
Public Attributes | |
Node * | name |
Name of the class, String("Foo") for class Foo; end More... | |
Node * | superclass |
Node * | body |
Body of the method, None if there's no body. More... | |
Loc | keyword_l |
MaybeLoc | operator_l |
Loc | end_l |
Loc | expression_l |
Represents a class definition (using a class
keyword, Class.new
is just a method call)
Node* lib_ruby_parser::Class::body |
Body of the method, None
if there's no body.
Loc lib_ruby_parser::Class::end_l |
Location of the end
keyword.
Loc lib_ruby_parser::Class::expression_l |
Location of the full expression
Loc lib_ruby_parser::Class::keyword_l |
Location of the class
keyword.
MaybeLoc lib_ruby_parser::Class::operator_l |
Location of the <
operator
None
if there's no explicit superclass given.
Node* lib_ruby_parser::Class::superclass |
Superclass. Can be an expression in cases like class A < (obj.foo + 1); end
None
if no explicit superclass given (i.e. class Foo; end
)