Documentation
¶
Index ¶
- Constants
- type Assignment
- type Attribute
- type Block
- type Case
- type Code
- type Comment
- type Comp
- type CompCall
- type Condition
- type Default
- type Doctype
- type Export
- type For
- type Func
- type If
- type Kind
- type NamedBlock
- type Node
- type ParseError
- type Parser
- type Root
- type Slot
- type SlotPass
- type SourcePosition
- type Switch
- type Tag
- type Text
- type Wrap
Constants ¶
View Source
const (
NamedBlockDefault = iota
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assignment ¶
type Assignment struct {
SourcePosition
Op string
X string
Expression string
}
type Attribute ¶
type Attribute struct {
SourcePosition
Name string
Value string
IsRaw bool
IsFlag bool
Condition string
Elements *node.KeyValueArrayLit
}
type Block ¶
type Block struct {
SourcePosition
Children []Node
}
type Case ¶
type Case struct {
SourcePosition
Expr string
Content *Block
}
type Code ¶
type Code struct {
SourcePosition
Expressions []string
TrimRigth, TrimLeft bool
}
type Comp ¶
type Comp struct {
SourcePosition
Block *Block
Name string
Params *node.FuncParams
ID string
Exported bool
Slots []*Slot
Comps []*Comp
}
type Condition ¶
type Condition struct {
SourcePosition
Block *Block
Expression string
// contains filtered or unexported fields
}
type Default ¶
type Default struct {
SourcePosition
Content *Block
}
type Doctype ¶
type Doctype struct {
SourcePosition
Value string
}
type Export ¶
type Export struct {
SourcePosition
Name string
Value string
}
type For ¶
type For struct {
SourcePosition
Args string
Expression string
Block *Block
Else *Block
}
type Func ¶
type Func struct {
SourcePosition
Block *Block
Name string
Params *node.FuncParams
Exported bool
}
type If ¶
type If struct {
SourcePosition
Positives []*Condition
Negative *Block
// contains filtered or unexported fields
}
type NamedBlock ¶
type Node ¶
type Node interface {
Pos() SourcePosition
}
type ParseError ¶
func (*ParseError) Error ¶
func (p *ParseError) Error() string
func (*ParseError) Unrap ¶
func (p *ParseError) Unrap() error
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func FileParser ¶
func (*Parser) SetFilename ¶
type Slot ¶
type Slot struct {
SourcePosition
Name string
ID string
Scope *node.FuncParams
Block *Block
Wrap *Wrap
}
type SourcePosition ¶
func (*SourcePosition) Pos ¶
func (s *SourcePosition) Pos() SourcePosition
func (SourcePosition) String ¶
func (s SourcePosition) String() string
type Tag ¶
type Tag struct {
SourcePosition
Block *Block
Name string
IsInterpolated bool
Attributes []Attribute
}
func (*Tag) IsSelfClosing ¶
type Text ¶
type Text struct {
SourcePosition
Stmts node.Stmts
}
type Wrap ¶
type Wrap struct {
SourcePosition
Block *Block
}
Click to show internal directories.
Click to hide internal directories.