type text/template/parse.VariableNode
16 uses
text/template/parse (current package)
node.go#L192: Decl []*VariableNode // Variables in lexical order.
node.go#L196: func (t *Tree) newPipeline(pos Pos, line int, vars []*VariableNode) *PipeNode {
node.go#L236: vars := make([]*VariableNode, len(p.Decl))
node.go#L238: vars[i] = d.Copy().(*VariableNode)
node.go#L387: type VariableNode struct {
node.go#L394: func (t *Tree) newVariable(pos Pos, ident string) *VariableNode {
node.go#L395: return &VariableNode{tr: t, NodeType: NodeVariable, Pos: pos, Ident: strings.Split(ident, ".")}
node.go#L398: func (v *VariableNode) String() string {
node.go#L404: func (v *VariableNode) writeTo(sb *strings.Builder) {
node.go#L413: func (v *VariableNode) tree() *Tree {
node.go#L417: func (v *VariableNode) Copy() Node {
node.go#L418: return &VariableNode{tr: v.tr, NodeType: NodeVariable, Pos: v.Pos, Ident: append([]string{}, v.Ident...)}
text/template
exec.go#L472: case *parse.VariableNode:
exec.go#L550: func (s *state) evalVariableNode(dot reflect.Value, variable *parse.VariableNode, args []parse.Node, final reflect.Value) reflect.Value {
exec.go#L804: case *parse.VariableNode:
exec.go#L922: case *parse.VariableNode:
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |