github.com/goplus/gossa@v0.3.25/pkg/go/build/constraint/go115_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package constraint
     6  
     7  import (
     8  	q "go/build/constraint"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "constraint",
    18  		Path: "go/build/constraint",
    19  		Deps: map[string]string{
    20  			"errors":       "errors",
    21  			"strings":      "strings",
    22  			"unicode":      "unicode",
    23  			"unicode/utf8": "utf8",
    24  		},
    25  		Interfaces: map[string]reflect.Type{
    26  			"Expr": reflect.TypeOf((*q.Expr)(nil)).Elem(),
    27  		},
    28  		NamedTypes: map[string]gossa.NamedType{
    29  			"AndExpr":     {reflect.TypeOf((*q.AndExpr)(nil)).Elem(), "", "Eval,String,isExpr"},
    30  			"NotExpr":     {reflect.TypeOf((*q.NotExpr)(nil)).Elem(), "", "Eval,String,isExpr"},
    31  			"OrExpr":      {reflect.TypeOf((*q.OrExpr)(nil)).Elem(), "", "Eval,String,isExpr"},
    32  			"SyntaxError": {reflect.TypeOf((*q.SyntaxError)(nil)).Elem(), "", "Error"},
    33  			"TagExpr":     {reflect.TypeOf((*q.TagExpr)(nil)).Elem(), "", "Eval,String,isExpr"},
    34  		},
    35  		AliasTypes: map[string]reflect.Type{},
    36  		Vars:       map[string]reflect.Value{},
    37  		Funcs: map[string]reflect.Value{
    38  			"IsGoBuild":      reflect.ValueOf(q.IsGoBuild),
    39  			"IsPlusBuild":    reflect.ValueOf(q.IsPlusBuild),
    40  			"Parse":          reflect.ValueOf(q.Parse),
    41  			"PlusBuildLines": reflect.ValueOf(q.PlusBuildLines),
    42  		},
    43  		TypedConsts:   map[string]gossa.TypedConst{},
    44  		UntypedConsts: map[string]gossa.UntypedConst{},
    45  	})
    46  }