class

Cosmo::AST::Node

Inherits Reference / Object

Instance methods

end_location
Source
end_location=(end_location : Location | Nil)
Source
single_expression

It yields itself for any node, but if it's a Statement::ExpressionList, then it returns the first node of the ExpressionList statement

Source
single_expression?

It yields nil always for any regular node. (It is overridden by ExpressionList to implement #single_expression.)

Source
start_location
Source
start_location=(start_location : Location | Nil)
Source
token
Source
visibility
Source
visibility=(visibility : Cosmo::AST::Visibility)
Source