node

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseNode

type BaseNode struct {
	File string
	Line int
}

func (*BaseNode) FilePos

func (n *BaseNode) FilePos() string

type Content

type Content struct {
	BaseNode
	Children []Node
}

func (*Content) WriteGoCode

func (n *Content) WriteGoCode(buf *gobuf.GoBuf)

type Expression

type Expression struct {
	BaseNode
	Value Node
}

func (*Expression) WriteGoCode

func (n *Expression) WriteGoCode(buf *gobuf.GoBuf)

type ExpressionsList

type ExpressionsList struct {
	BaseNode
	Values []Node
}

func (*ExpressionsList) WriteGoCode

func (n *ExpressionsList) WriteGoCode(buf *gobuf.GoBuf)

type Function

type Function struct {
	BaseNode
	Expr      Node
	Arguments *ExpressionsList
}

func (*Function) WriteGoCode

func (n *Function) WriteGoCode(buf *gobuf.GoBuf)

type HtmlAttribute

type HtmlAttribute struct {
	Key    string
	Values []Node
}

type HtmlElement

type HtmlElement struct {
	BaseNode
	TagName    string
	Attributes []HtmlAttribute
	SelfClosed bool
	Children   []Node
}

func (*HtmlElement) WriteGoCode

func (n *HtmlElement) WriteGoCode(buf *gobuf.GoBuf)

type HtmlRaw

type HtmlRaw struct {
	BaseNode
	Data string
}

func (*HtmlRaw) WriteGoCode

func (n *HtmlRaw) WriteGoCode(buf *gobuf.GoBuf)

type Indexed

type Indexed struct {
	BaseNode
	Expr  Node
	Index Node
}

func (*Indexed) WriteGoCode

func (n *Indexed) WriteGoCode(buf *gobuf.GoBuf)

type Loop

type Loop struct {
	BaseNode
	Index    string
	Variable string
	Array    Node
	Children []Node
}

func (*Loop) WriteGoCode

func (n *Loop) WriteGoCode(buf *gobuf.GoBuf)

type Node

type Node interface {
	WriteGoCode(buf *gobuf.GoBuf)
	FilePos() string
}

type Number

type Number struct {
	BaseNode
	Text string
}

func (*Number) WriteGoCode

func (n *Number) WriteGoCode(buf *gobuf.GoBuf)

type Operator

type Operator struct {
	BaseNode
	Op    string
	Left  Node
	Right Node
}

func (*Operator) WriteGoCode

func (n *Operator) WriteGoCode(buf *gobuf.GoBuf)

type Parentheses

type Parentheses struct {
	BaseNode
	Value Node
}

func (*Parentheses) WriteGoCode

func (n *Parentheses) WriteGoCode(buf *gobuf.GoBuf)

type RawExpression

type RawExpression struct {
	BaseNode
	Value Node
}

func (*RawExpression) WriteGoCode

func (n *RawExpression) WriteGoCode(buf *gobuf.GoBuf)

type SsrAssets

type SsrAssets struct {
	BaseNode
}

func (*SsrAssets) WriteGoCode

func (n *SsrAssets) WriteGoCode(buf *gobuf.GoBuf)

type SsrCondition

type SsrCondition struct {
	BaseNode
	Conditions []SsrConditionData
	ElseBody   Node
}

func (*SsrCondition) WriteGoCode

func (n *SsrCondition) WriteGoCode(buf *gobuf.GoBuf)

type SsrConditionData

type SsrConditionData struct {
	BaseNode
	Condition Node
	Body      Node
}

type SsrContent

type SsrContent struct {
	BaseNode
	Default string
}

func (*SsrContent) WriteGoCode

func (n *SsrContent) WriteGoCode(buf *gobuf.GoBuf)

type String

type String struct {
	BaseNode
	Text string
}

func (*String) WriteGoCode

func (n *String) WriteGoCode(buf *gobuf.GoBuf)

type StructField

type StructField struct {
	BaseNode
	Expr      Node
	FieldName string
}

func (*StructField) WriteGoCode

func (n *StructField) WriteGoCode(buf *gobuf.GoBuf)

type TernaryIf

type TernaryIf struct {
	BaseNode
	Cond Node
	T    Node
	F    Node
}

func (*TernaryIf) WriteGoCode

func (n *TernaryIf) WriteGoCode(buf *gobuf.GoBuf)

type Text

type Text struct {
	BaseNode
	Text string
}

func (*Text) WriteGoCode

func (n *Text) WriteGoCode(buf *gobuf.GoBuf)

type Variable

type Variable struct {
	BaseNode
	Name string
}

func (*Variable) WriteGoCode

func (n *Variable) WriteGoCode(buf *gobuf.GoBuf)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL