Open Sidebar
Close Sidebar
can
0.4.1
Can
AST
Attribute
Comment
Def
Doctype
Element
ElseIfMark
ElseMark
ExprAttr
For
If
Interpolation
Let
Node
Param
Raw
Require
Slot
SlotFill
StringAttr
Template
Text
Use
CLI
Render
Codegen
CssScoper
ParseError
Parser
SafeString
class
Can::
AST::
Template
Can::AST::Template
Can::AST::Node
Reference
Object
Overview
Root node for a parsed
.can
template.
Defined in:
can/ast.cr
Constructors
.new
(children : Array(Can::AST::Node) =
[]
of
Node
, line =
0
, column =
0
)
Instance Method Summary
#children
: Array(Node)
#children=
(children : 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
(children : Array(
Can::AST::Node
) =
[]
of
Node
, line =
0
, column =
0
)
#
[
View source
]
Instance Method Detail
def
children
: Array(
Node
)
#
[
View source
]
def
children=
(children : Array(
Node
))
#
[
View source
]