github.com/goplus/igop@v0.25.0/pkg/go/scanner/go119_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.19 && !go1.20 4 // +build go1.19,!go1.20 5 6 package scanner 7 8 import ( 9 q "go/scanner" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "scanner", 20 Path: "go/scanner", 21 Deps: map[string]string{ 22 "bytes": "bytes", 23 "fmt": "fmt", 24 "go/token": "token", 25 "io": "io", 26 "path/filepath": "filepath", 27 "sort": "sort", 28 "strconv": "strconv", 29 "unicode": "unicode", 30 "unicode/utf8": "utf8", 31 }, 32 Interfaces: map[string]reflect.Type{}, 33 NamedTypes: map[string]reflect.Type{ 34 "Error": reflect.TypeOf((*q.Error)(nil)).Elem(), 35 "ErrorHandler": reflect.TypeOf((*q.ErrorHandler)(nil)).Elem(), 36 "ErrorList": reflect.TypeOf((*q.ErrorList)(nil)).Elem(), 37 "Mode": reflect.TypeOf((*q.Mode)(nil)).Elem(), 38 "Scanner": reflect.TypeOf((*q.Scanner)(nil)).Elem(), 39 }, 40 AliasTypes: map[string]reflect.Type{}, 41 Vars: map[string]reflect.Value{}, 42 Funcs: map[string]reflect.Value{ 43 "PrintError": reflect.ValueOf(q.PrintError), 44 }, 45 TypedConsts: map[string]igop.TypedConst{ 46 "ScanComments": {reflect.TypeOf(q.ScanComments), constant.MakeInt64(int64(q.ScanComments))}, 47 }, 48 UntypedConsts: map[string]igop.UntypedConst{}, 49 }) 50 }