github.com/goplus/gossa@v0.3.25/pkg/text/scanner/go118_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //go:build go1.18 4 // +build go1.18 5 6 package scanner 7 8 import ( 9 q "text/scanner" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.Package{ 19 Name: "scanner", 20 Path: "text/scanner", 21 Deps: map[string]string{ 22 "bytes": "bytes", 23 "fmt": "fmt", 24 "io": "io", 25 "os": "os", 26 "unicode": "unicode", 27 "unicode/utf8": "utf8", 28 }, 29 Interfaces: map[string]reflect.Type{}, 30 NamedTypes: map[string]gossa.NamedType{ 31 "Position": {reflect.TypeOf((*q.Position)(nil)).Elem(), "String", "IsValid"}, 32 "Scanner": {reflect.TypeOf((*q.Scanner)(nil)).Elem(), "", "Init,Next,Peek,Pos,Scan,TokenText,digits,error,errorf,isIdentRune,next,scanChar,scanComment,scanDigits,scanEscape,scanIdentifier,scanNumber,scanRawString,scanString"}, 33 }, 34 AliasTypes: map[string]reflect.Type{}, 35 Vars: map[string]reflect.Value{}, 36 Funcs: map[string]reflect.Value{ 37 "TokenString": reflect.ValueOf(q.TokenString), 38 }, 39 TypedConsts: map[string]gossa.TypedConst{}, 40 UntypedConsts: map[string]gossa.UntypedConst{ 41 "Char": {"untyped int", constant.MakeInt64(int64(q.Char))}, 42 "Comment": {"untyped int", constant.MakeInt64(int64(q.Comment))}, 43 "EOF": {"untyped int", constant.MakeInt64(int64(q.EOF))}, 44 "Float": {"untyped int", constant.MakeInt64(int64(q.Float))}, 45 "GoTokens": {"untyped int", constant.MakeInt64(int64(q.GoTokens))}, 46 "GoWhitespace": {"untyped int", constant.MakeInt64(int64(q.GoWhitespace))}, 47 "Ident": {"untyped int", constant.MakeInt64(int64(q.Ident))}, 48 "Int": {"untyped int", constant.MakeInt64(int64(q.Int))}, 49 "RawString": {"untyped int", constant.MakeInt64(int64(q.RawString))}, 50 "ScanChars": {"untyped int", constant.MakeInt64(int64(q.ScanChars))}, 51 "ScanComments": {"untyped int", constant.MakeInt64(int64(q.ScanComments))}, 52 "ScanFloats": {"untyped int", constant.MakeInt64(int64(q.ScanFloats))}, 53 "ScanIdents": {"untyped int", constant.MakeInt64(int64(q.ScanIdents))}, 54 "ScanInts": {"untyped int", constant.MakeInt64(int64(q.ScanInts))}, 55 "ScanRawStrings": {"untyped int", constant.MakeInt64(int64(q.ScanRawStrings))}, 56 "ScanStrings": {"untyped int", constant.MakeInt64(int64(q.ScanStrings))}, 57 "SkipComments": {"untyped int", constant.MakeInt64(int64(q.SkipComments))}, 58 "String": {"untyped int", constant.MakeInt64(int64(q.String))}, 59 }, 60 }) 61 }