github.com/goplus/igop@v0.25.0/pkg/go/parser/go115_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //+build go1.15,!go1.16 4 5 package parser 6 7 import ( 8 q "go/parser" 9 10 "go/constant" 11 "reflect" 12 13 "github.com/goplus/igop" 14 ) 15 16 func init() { 17 igop.RegisterPackage(&igop.Package{ 18 Name: "parser", 19 Path: "go/parser", 20 Deps: map[string]string{ 21 "bytes": "bytes", 22 "errors": "errors", 23 "fmt": "fmt", 24 "go/ast": "ast", 25 "go/scanner": "scanner", 26 "go/token": "token", 27 "io": "io", 28 "io/ioutil": "ioutil", 29 "os": "os", 30 "path/filepath": "filepath", 31 "strconv": "strconv", 32 "strings": "strings", 33 "unicode": "unicode", 34 }, 35 Interfaces: map[string]reflect.Type{}, 36 NamedTypes: map[string]reflect.Type{ 37 "Mode": reflect.TypeOf((*q.Mode)(nil)).Elem(), 38 }, 39 AliasTypes: map[string]reflect.Type{}, 40 Vars: map[string]reflect.Value{}, 41 Funcs: map[string]reflect.Value{ 42 "ParseDir": reflect.ValueOf(q.ParseDir), 43 "ParseExpr": reflect.ValueOf(q.ParseExpr), 44 "ParseExprFrom": reflect.ValueOf(q.ParseExprFrom), 45 "ParseFile": reflect.ValueOf(q.ParseFile), 46 }, 47 TypedConsts: map[string]igop.TypedConst{ 48 "AllErrors": {reflect.TypeOf(q.AllErrors), constant.MakeInt64(int64(q.AllErrors))}, 49 "DeclarationErrors": {reflect.TypeOf(q.DeclarationErrors), constant.MakeInt64(int64(q.DeclarationErrors))}, 50 "ImportsOnly": {reflect.TypeOf(q.ImportsOnly), constant.MakeInt64(int64(q.ImportsOnly))}, 51 "PackageClauseOnly": {reflect.TypeOf(q.PackageClauseOnly), constant.MakeInt64(int64(q.PackageClauseOnly))}, 52 "ParseComments": {reflect.TypeOf(q.ParseComments), constant.MakeInt64(int64(q.ParseComments))}, 53 "SpuriousErrors": {reflect.TypeOf(q.SpuriousErrors), constant.MakeInt64(int64(q.SpuriousErrors))}, 54 "Trace": {reflect.TypeOf(q.Trace), constant.MakeInt64(int64(q.Trace))}, 55 }, 56 UntypedConsts: map[string]igop.UntypedConst{}, 57 }) 58 }