class Mint::Ast::Statement

Defined in:

ast/statement.cr

Constructors

Instance Method Summary

Instance methods inherited from class Mint::Ast::Node

file : Parser::File file, from : Int64 from, from=(from : Int64) from=, location : Location location, new_line? new_line?, parent : Node | Nil parent, parent=(parent : Node | Nil) parent=, source source, to : Int64 to, to_tuple to_tuple

Constructor methods inherited from class Mint::Ast::Node

new(file : Mint::Parser::File, from : Int64, to : Int64) new

Class methods inherited from class Mint::Ast::Node

compute_location(file : Parser::File, from, to) compute_location, compute_position(lines, needle) : Position compute_position

Constructor Detail

def self.new(return_value : Node | Nil, file : Parser::File, expression : Node, target : Node | Nil, from : Int64, to : Int64) #

[View source]

Instance Method Detail

def expression : Mint::Ast::Node #

[View source]
def if_node : Ast::If | Nil #

[View source]
def if_node=(if_node : Ast::If | Nil) #

[View source]
def only_expression? #

[View source]
def return_value : Mint::Ast::Node? #

[View source]
def target : Mint::Ast::Node? #

[View source]