class AST::IfExpression

Defined in:

ast/expressions.cr

Constructors

Instance Method Summary

Instance methods inherited from class AST::Node

string string, token_literal token_literal

Constructor Detail

def self.new(token : Token::Token, condition : AST::Expression, consequence : AST::BlockStatement, alternative : Nil | AST::BlockStatement = nil) #

[View source]

Instance Method Detail

def alternative : BlockStatement | Nil #

[View source]
def alternative=(alternative : BlockStatement | Nil) #

[View source]
def condition : Expression #

[View source]
def condition=(condition : Expression) #

[View source]
def consequence : BlockStatement #

[View source]
def consequence=(consequence : BlockStatement) #

[View source]
def string #

[View source]
def token : Token::Token #

[View source]
def token=(token : Token::Token) #

[View source]
def token_literal #

[View source]