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