Debian Codegraph @

stdlib/go1_21_go_build_constraint.go

raw symbols SCIP
1 // Code generated by 'yaegi extract go/build/constraint'. DO NOT EDIT.
2
3 //go:build go1.21 && !go1.22
4 // +build go1.21,!go1.22
5
6 package stdlib
7
8 import (
9 "go/build/constraint"
10 "reflect"
11 )
12
13 func init() {
14 Symbols["go/build/constraint/constraint"] = map[string]reflect.Value{
15 // function, constant and variable definitions
16 "GoVersion": reflect.ValueOf(constraint.GoVersion),
17 "IsGoBuild": reflect.ValueOf(constraint.IsGoBuild),
18 "IsPlusBuild": reflect.ValueOf(constraint.IsPlusBuild),
19 "Parse": reflect.ValueOf(constraint.Parse),
20 "PlusBuildLines": reflect.ValueOf(constraint.PlusBuildLines),
21
22 // type definitions
23 "AndExpr": reflect.ValueOf((*constraint.AndExpr)(nil)),
24 "Expr": reflect.ValueOf((*constraint.Expr)(nil)),
25 "NotExpr": reflect.ValueOf((*constraint.NotExpr)(nil)),
26 "OrExpr": reflect.ValueOf((*constraint.OrExpr)(nil)),
27 "SyntaxError": reflect.ValueOf((*constraint.SyntaxError)(nil)),
28 "TagExpr": reflect.ValueOf((*constraint.TagExpr)(nil)),
29
30 // interface wrapper definitions
31 "_Expr": reflect.ValueOf((*_go_build_constraint_Expr)(nil)),
32 }
33 }
34
35 // _go_build_constraint_Expr is an interface wrapper for Expr type
36 type _go_build_constraint_Expr struct {
37 IValue interface{}
38 WEval func(ok func(tag string) bool) bool
39 WString func() string
40 }
41
42 func (W _go_build_constraint_Expr) Eval(ok func(tag string) bool) bool { return W.WEval(ok) }
43 func (W _go_build_constraint_Expr) String() string {
44 if W.WString == nil {
45 return ""
46 }
47 return W.WString()
48 }