class Lit::Stmt::If

Defined in:

lit/stmt.cr

Constructors

Instance Method Summary

Instance methods inherited from class Lit::Stmt

accept(visitor : Visitor) accept

Constructor Detail

def self.new(condition : ::Lit::Expr, then_branch : ::Lit::Stmt, else_branch : ::Lit::Stmt | Nil) #

[View source]

Instance Method Detail

def accept(visitor : Visitor) #

[View source]
def condition : Expr #

[View source]
def else_branch : Stmt | Nil #

[View source]
def then_branch : Stmt #

[View source]