class FayrantLang::AST::IfStatement

Defined in:

ast/statement.cr

Constructors

Instance Method Summary

Instance methods inherited from class FayrantLang::AST::Statement

==(other) ==, exec(ctx : Context) : Tuple(ExecResult, AnyValue) exec

Constructor Detail

def self.new(cond : Expr, true_body : Array(Statement), false_body : Array(Statement)) #

[View source]

Instance Method Detail

def ==(other : IfStatement) #

[View source]

[View source]
def exec(ctx : Context) : Tuple(ExecResult, AnyValue) #

[View source]
def false_body : Array(FayrantLang::AST::Statement) #

[View source]
def true_body : Array(FayrantLang::AST::Statement) #

[View source]