class
Can::AST::If
- Can::AST::If
- Can::AST::Node
- Reference
- Object
Overview
Both <.if cond={…}>…</.if> and the :if={…} attribute desugar to this.
Defined in:
can/ast.crConstructors
Instance Method Summary
- #condition : String
- #condition=(condition : String)
- #else_body : Array(Node)
- #else_body=(else_body : Array(Node))
- #then_body : Array(Node)
- #then_body=(then_body : Array(Node))
Instance methods inherited from class Can::AST::Node
column : Int32
column,
column=(column : Int32)
column=,
line : Int32
line,
line=(line : Int32)
line=
Constructor methods inherited from class Can::AST::Node
new(line : Int32 = 0, column : Int32 = 0)
new
Constructor Detail
def self.new(condition : String, then_body : Array(Can::AST::Node) = [] of Node, else_body : Array(Can::AST::Node) = [] of Node, line = 0, column = 0)
#