class Can::AST::ElseMark

Overview

Transient parser-only nodes: <.else/> and <.elseif cond={…}/> are sentinels emitted by the parser and consumed by build_if, which restructures the body into nested If nodes. They never reach codegen in well-formed templates; if they do, codegen raises a "stray" error.

Defined in:

can/ast.cr

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