github.com/goplus/gossa@v0.3.25/pkg/go/scanner/go117_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //go:build go1.17 && !go1.18
     4  // +build go1.17,!go1.18
     5  
     6  package scanner
     7  
     8  import (
     9  	q "go/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: "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]gossa.NamedType{
    34  			"Error":        {reflect.TypeOf((*q.Error)(nil)).Elem(), "Error", ""},
    35  			"ErrorHandler": {reflect.TypeOf((*q.ErrorHandler)(nil)).Elem(), "", ""},
    36  			"ErrorList":    {reflect.TypeOf((*q.ErrorList)(nil)).Elem(), "Err,Error,Len,Less,Sort,Swap", "Add,RemoveMultiples,Reset"},
    37  			"Mode":         {reflect.TypeOf((*q.Mode)(nil)).Elem(), "", ""},
    38  			"Scanner":      {reflect.TypeOf((*q.Scanner)(nil)).Elem(), "", "Init,Scan,digits,error,errorf,findLineEnd,next,peek,scanComment,scanEscape,scanIdentifier,scanNumber,scanRawString,scanRune,scanString,skipWhitespace,switch2,switch3,switch4,updateLineInfo"},
    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]gossa.TypedConst{
    46  			"ScanComments": {reflect.TypeOf(q.ScanComments), constant.MakeInt64(int64(q.ScanComments))},
    47  		},
    48  		UntypedConsts: map[string]gossa.UntypedConst{},
    49  	})
    50  }