class AST::IfExpression
- AST::IfExpression
- AST::Expression
- AST::Node
- Reference
- Object
Defined in:
ast/expressions.crConstructors
Instance Method Summary
- #alternative : BlockStatement | Nil
- #alternative=(alternative : BlockStatement | Nil)
- #condition : Expression
- #condition=(condition : Expression)
- #consequence : BlockStatement
- #consequence=(consequence : BlockStatement)
- #string
- #token : Token::Token
- #token=(token : Token::Token)
- #token_literal
Constructor Detail
def self.new(token : Token::Token, condition : AST::Expression, consequence : AST::BlockStatement, alternative : Nil | AST::BlockStatement = nil)
#