1
0
mirror of https://github.com/danog/liquid.git synced 2024-12-12 12:07:24 +01:00
liquid/chunks/ast.go
Oliver Steele 803fbbcd61 Docs
2017-06-26 12:41:41 -04:00

34 lines
418 B
Go

package chunks
import (
"io"
)
// ASTNode is a node of an AST.
type ASTNode interface {
Render(io.Writer, Context) error
}
type ASTSeq struct {
Children []ASTNode
}
type ASTChunks struct {
chunks []Chunk
}
type ASTText struct {
chunk Chunk
}
type ASTObject struct {
chunk Chunk
}
type ASTControlTag struct {
chunk Chunk
cd *ControlTagDefinition
body []ASTNode
branches []*ASTControlTag
}