/
go1_15_text_template_parse.go
79 lines (71 loc) · 3.46 KB
/
go1_15_text_template_parse.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// Code generated by 'yaegi extract text/template/parse'. DO NOT EDIT.
// +build go1.15
package stdlib
import (
"reflect"
"text/template/parse"
)
func init() {
Symbols["text/template/parse"] = map[string]reflect.Value{
// function, constant and variable definitions
"IsEmptyTree": reflect.ValueOf(parse.IsEmptyTree),
"New": reflect.ValueOf(parse.New),
"NewIdentifier": reflect.ValueOf(parse.NewIdentifier),
"NodeAction": reflect.ValueOf(parse.NodeAction),
"NodeBool": reflect.ValueOf(parse.NodeBool),
"NodeChain": reflect.ValueOf(parse.NodeChain),
"NodeCommand": reflect.ValueOf(parse.NodeCommand),
"NodeDot": reflect.ValueOf(parse.NodeDot),
"NodeField": reflect.ValueOf(parse.NodeField),
"NodeIdentifier": reflect.ValueOf(parse.NodeIdentifier),
"NodeIf": reflect.ValueOf(parse.NodeIf),
"NodeList": reflect.ValueOf(parse.NodeList),
"NodeNil": reflect.ValueOf(parse.NodeNil),
"NodeNumber": reflect.ValueOf(parse.NodeNumber),
"NodePipe": reflect.ValueOf(parse.NodePipe),
"NodeRange": reflect.ValueOf(parse.NodeRange),
"NodeString": reflect.ValueOf(parse.NodeString),
"NodeTemplate": reflect.ValueOf(parse.NodeTemplate),
"NodeText": reflect.ValueOf(parse.NodeText),
"NodeVariable": reflect.ValueOf(parse.NodeVariable),
"NodeWith": reflect.ValueOf(parse.NodeWith),
"Parse": reflect.ValueOf(parse.Parse),
// type definitions
"ActionNode": reflect.ValueOf((*parse.ActionNode)(nil)),
"BoolNode": reflect.ValueOf((*parse.BoolNode)(nil)),
"BranchNode": reflect.ValueOf((*parse.BranchNode)(nil)),
"ChainNode": reflect.ValueOf((*parse.ChainNode)(nil)),
"CommandNode": reflect.ValueOf((*parse.CommandNode)(nil)),
"DotNode": reflect.ValueOf((*parse.DotNode)(nil)),
"FieldNode": reflect.ValueOf((*parse.FieldNode)(nil)),
"IdentifierNode": reflect.ValueOf((*parse.IdentifierNode)(nil)),
"IfNode": reflect.ValueOf((*parse.IfNode)(nil)),
"ListNode": reflect.ValueOf((*parse.ListNode)(nil)),
"NilNode": reflect.ValueOf((*parse.NilNode)(nil)),
"Node": reflect.ValueOf((*parse.Node)(nil)),
"NodeType": reflect.ValueOf((*parse.NodeType)(nil)),
"NumberNode": reflect.ValueOf((*parse.NumberNode)(nil)),
"PipeNode": reflect.ValueOf((*parse.PipeNode)(nil)),
"Pos": reflect.ValueOf((*parse.Pos)(nil)),
"RangeNode": reflect.ValueOf((*parse.RangeNode)(nil)),
"StringNode": reflect.ValueOf((*parse.StringNode)(nil)),
"TemplateNode": reflect.ValueOf((*parse.TemplateNode)(nil)),
"TextNode": reflect.ValueOf((*parse.TextNode)(nil)),
"Tree": reflect.ValueOf((*parse.Tree)(nil)),
"VariableNode": reflect.ValueOf((*parse.VariableNode)(nil)),
"WithNode": reflect.ValueOf((*parse.WithNode)(nil)),
// interface wrapper definitions
"_Node": reflect.ValueOf((*_text_template_parse_Node)(nil)),
}
}
// _text_template_parse_Node is an interface wrapper for Node type
type _text_template_parse_Node struct {
WCopy func() parse.Node
WPosition func() parse.Pos
WString func() string
WType func() parse.NodeType
}
func (W _text_template_parse_Node) Copy() parse.Node { return W.WCopy() }
func (W _text_template_parse_Node) Position() parse.Pos { return W.WPosition() }
func (W _text_template_parse_Node) String() string { return W.WString() }
func (W _text_template_parse_Node) Type() parse.NodeType { return W.WType() }