* feat: support go1.22 * Temporary fix for consistency tests due to language change in for loops * review: clean old files --------- Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
51 lines
1.5 KiB
Go
51 lines
1.5 KiB
Go
// Code generated by 'yaegi extract go/build/constraint'. DO NOT EDIT.
|
|
|
|
//go:build go1.22
|
|
// +build go1.22
|
|
|
|
package stdlib
|
|
|
|
import (
|
|
"go/build/constraint"
|
|
"reflect"
|
|
)
|
|
|
|
func init() {
|
|
Symbols["go/build/constraint/constraint"] = map[string]reflect.Value{
|
|
// function, constant and variable definitions
|
|
"GoVersion": reflect.ValueOf(constraint.GoVersion),
|
|
"IsGoBuild": reflect.ValueOf(constraint.IsGoBuild),
|
|
"IsPlusBuild": reflect.ValueOf(constraint.IsPlusBuild),
|
|
"Parse": reflect.ValueOf(constraint.Parse),
|
|
"PlusBuildLines": reflect.ValueOf(constraint.PlusBuildLines),
|
|
|
|
// type definitions
|
|
"AndExpr": reflect.ValueOf((*constraint.AndExpr)(nil)),
|
|
"Expr": reflect.ValueOf((*constraint.Expr)(nil)),
|
|
"NotExpr": reflect.ValueOf((*constraint.NotExpr)(nil)),
|
|
"OrExpr": reflect.ValueOf((*constraint.OrExpr)(nil)),
|
|
"SyntaxError": reflect.ValueOf((*constraint.SyntaxError)(nil)),
|
|
"TagExpr": reflect.ValueOf((*constraint.TagExpr)(nil)),
|
|
|
|
// interface wrapper definitions
|
|
"_Expr": reflect.ValueOf((*_go_build_constraint_Expr)(nil)),
|
|
}
|
|
}
|
|
|
|
// _go_build_constraint_Expr is an interface wrapper for Expr type
|
|
type _go_build_constraint_Expr struct {
|
|
IValue interface{}
|
|
WEval func(ok func(tag string) bool) bool
|
|
WString func() string
|
|
}
|
|
|
|
func (W _go_build_constraint_Expr) Eval(ok func(tag string) bool) bool {
|
|
return W.WEval(ok)
|
|
}
|
|
func (W _go_build_constraint_Expr) String() string {
|
|
if W.WString == nil {
|
|
return ""
|
|
}
|
|
return W.WString()
|
|
}
|