github.com/goplus/igop@v0.25.0/pkg/go/scanner/go114_export.go (about)

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