github.com/goplus/gossa@v0.3.25/pkg/text/template/parse/go115_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //+build go1.15,!go1.16 4 5 package parse 6 7 import ( 8 q "text/template/parse" 9 10 "go/constant" 11 "reflect" 12 13 "github.com/goplus/gossa" 14 ) 15 16 func init() { 17 gossa.RegisterPackage(&gossa.Package{ 18 Name: "parse", 19 Path: "text/template/parse", 20 Deps: map[string]string{ 21 "bytes": "bytes", 22 "fmt": "fmt", 23 "runtime": "runtime", 24 "strconv": "strconv", 25 "strings": "strings", 26 "unicode": "unicode", 27 "unicode/utf8": "utf8", 28 }, 29 Interfaces: map[string]reflect.Type{ 30 "Node": reflect.TypeOf((*q.Node)(nil)).Elem(), 31 }, 32 NamedTypes: map[string]gossa.NamedType{ 33 "ActionNode": {reflect.TypeOf((*q.ActionNode)(nil)).Elem(), "", "Copy,String,tree,writeTo"}, 34 "BoolNode": {reflect.TypeOf((*q.BoolNode)(nil)).Elem(), "", "Copy,String,tree,writeTo"}, 35 "BranchNode": {reflect.TypeOf((*q.BranchNode)(nil)).Elem(), "", "Copy,String,tree,writeTo"}, 36 "ChainNode": {reflect.TypeOf((*q.ChainNode)(nil)).Elem(), "", "Add,Copy,String,tree,writeTo"}, 37 "CommandNode": {reflect.TypeOf((*q.CommandNode)(nil)).Elem(), "", "Copy,String,append,tree,writeTo"}, 38 "DotNode": {reflect.TypeOf((*q.DotNode)(nil)).Elem(), "", "Copy,String,Type,tree,writeTo"}, 39 "FieldNode": {reflect.TypeOf((*q.FieldNode)(nil)).Elem(), "", "Copy,String,tree,writeTo"}, 40 "IdentifierNode": {reflect.TypeOf((*q.IdentifierNode)(nil)).Elem(), "", "Copy,SetPos,SetTree,String,tree,writeTo"}, 41 "IfNode": {reflect.TypeOf((*q.IfNode)(nil)).Elem(), "", "Copy"}, 42 "ListNode": {reflect.TypeOf((*q.ListNode)(nil)).Elem(), "", "Copy,CopyList,String,append,tree,writeTo"}, 43 "NilNode": {reflect.TypeOf((*q.NilNode)(nil)).Elem(), "", "Copy,String,Type,tree,writeTo"}, 44 "NodeType": {reflect.TypeOf((*q.NodeType)(nil)).Elem(), "Type", ""}, 45 "NumberNode": {reflect.TypeOf((*q.NumberNode)(nil)).Elem(), "", "Copy,String,simplifyComplex,tree,writeTo"}, 46 "PipeNode": {reflect.TypeOf((*q.PipeNode)(nil)).Elem(), "", "Copy,CopyPipe,String,append,tree,writeTo"}, 47 "Pos": {reflect.TypeOf((*q.Pos)(nil)).Elem(), "Position", ""}, 48 "RangeNode": {reflect.TypeOf((*q.RangeNode)(nil)).Elem(), "", "Copy"}, 49 "StringNode": {reflect.TypeOf((*q.StringNode)(nil)).Elem(), "", "Copy,String,tree,writeTo"}, 50 "TemplateNode": {reflect.TypeOf((*q.TemplateNode)(nil)).Elem(), "", "Copy,String,tree,writeTo"}, 51 "TextNode": {reflect.TypeOf((*q.TextNode)(nil)).Elem(), "", "Copy,String,tree,writeTo"}, 52 "Tree": {reflect.TypeOf((*q.Tree)(nil)).Elem(), "", "Copy,ErrorContext,Parse,action,add,backup,backup2,backup3,blockControl,checkPipeline,command,elseControl,endControl,error,errorf,expect,expectOneOf,hasFunction,ifControl,itemList,newAction,newBool,newChain,newCommand,newDot,newElse,newEnd,newField,newIf,newList,newNil,newNumber,newPipeline,newRange,newString,newTemplate,newText,newVariable,newWith,next,nextNonSpace,operand,parse,parseControl,parseDefinition,parseTemplateName,peek,peekNonSpace,pipeline,popVars,rangeControl,recover,startParse,stopParse,templateControl,term,textOrAction,unexpected,useVar,withControl"}, 53 "VariableNode": {reflect.TypeOf((*q.VariableNode)(nil)).Elem(), "", "Copy,String,tree,writeTo"}, 54 "WithNode": {reflect.TypeOf((*q.WithNode)(nil)).Elem(), "", "Copy"}, 55 }, 56 AliasTypes: map[string]reflect.Type{}, 57 Vars: map[string]reflect.Value{}, 58 Funcs: map[string]reflect.Value{ 59 "IsEmptyTree": reflect.ValueOf(q.IsEmptyTree), 60 "New": reflect.ValueOf(q.New), 61 "NewIdentifier": reflect.ValueOf(q.NewIdentifier), 62 "Parse": reflect.ValueOf(q.Parse), 63 }, 64 TypedConsts: map[string]gossa.TypedConst{ 65 "NodeAction": {reflect.TypeOf(q.NodeAction), constant.MakeInt64(int64(q.NodeAction))}, 66 "NodeBool": {reflect.TypeOf(q.NodeBool), constant.MakeInt64(int64(q.NodeBool))}, 67 "NodeChain": {reflect.TypeOf(q.NodeChain), constant.MakeInt64(int64(q.NodeChain))}, 68 "NodeCommand": {reflect.TypeOf(q.NodeCommand), constant.MakeInt64(int64(q.NodeCommand))}, 69 "NodeDot": {reflect.TypeOf(q.NodeDot), constant.MakeInt64(int64(q.NodeDot))}, 70 "NodeField": {reflect.TypeOf(q.NodeField), constant.MakeInt64(int64(q.NodeField))}, 71 "NodeIdentifier": {reflect.TypeOf(q.NodeIdentifier), constant.MakeInt64(int64(q.NodeIdentifier))}, 72 "NodeIf": {reflect.TypeOf(q.NodeIf), constant.MakeInt64(int64(q.NodeIf))}, 73 "NodeList": {reflect.TypeOf(q.NodeList), constant.MakeInt64(int64(q.NodeList))}, 74 "NodeNil": {reflect.TypeOf(q.NodeNil), constant.MakeInt64(int64(q.NodeNil))}, 75 "NodeNumber": {reflect.TypeOf(q.NodeNumber), constant.MakeInt64(int64(q.NodeNumber))}, 76 "NodePipe": {reflect.TypeOf(q.NodePipe), constant.MakeInt64(int64(q.NodePipe))}, 77 "NodeRange": {reflect.TypeOf(q.NodeRange), constant.MakeInt64(int64(q.NodeRange))}, 78 "NodeString": {reflect.TypeOf(q.NodeString), constant.MakeInt64(int64(q.NodeString))}, 79 "NodeTemplate": {reflect.TypeOf(q.NodeTemplate), constant.MakeInt64(int64(q.NodeTemplate))}, 80 "NodeText": {reflect.TypeOf(q.NodeText), constant.MakeInt64(int64(q.NodeText))}, 81 "NodeVariable": {reflect.TypeOf(q.NodeVariable), constant.MakeInt64(int64(q.NodeVariable))}, 82 "NodeWith": {reflect.TypeOf(q.NodeWith), constant.MakeInt64(int64(q.NodeWith))}, 83 }, 84 UntypedConsts: map[string]gossa.UntypedConst{}, 85 }) 86 }