File: go1_22_go_ast.go

package info (click to toggle)
golang-github-traefik-yaegi 0.16.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 24,608 kB
  • sloc: sh: 457; makefile: 39
file content (211 lines) | stat: -rw-r--r-- 8,533 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
// Code generated by 'yaegi extract go/ast'. DO NOT EDIT.

//go:build go1.22
// +build go1.22

package stdlib

import (
	"go/ast"
	"go/token"
	"reflect"
)

func init() {
	Symbols["go/ast/ast"] = map[string]reflect.Value{
		// function, constant and variable definitions
		"Bad":                        reflect.ValueOf(ast.Bad),
		"Con":                        reflect.ValueOf(ast.Con),
		"FileExports":                reflect.ValueOf(ast.FileExports),
		"FilterDecl":                 reflect.ValueOf(ast.FilterDecl),
		"FilterFile":                 reflect.ValueOf(ast.FilterFile),
		"FilterFuncDuplicates":       reflect.ValueOf(ast.FilterFuncDuplicates),
		"FilterImportDuplicates":     reflect.ValueOf(ast.FilterImportDuplicates),
		"FilterPackage":              reflect.ValueOf(ast.FilterPackage),
		"FilterUnassociatedComments": reflect.ValueOf(ast.FilterUnassociatedComments),
		"Fprint":                     reflect.ValueOf(ast.Fprint),
		"Fun":                        reflect.ValueOf(ast.Fun),
		"Inspect":                    reflect.ValueOf(ast.Inspect),
		"IsExported":                 reflect.ValueOf(ast.IsExported),
		"IsGenerated":                reflect.ValueOf(ast.IsGenerated),
		"Lbl":                        reflect.ValueOf(ast.Lbl),
		"MergePackageFiles":          reflect.ValueOf(ast.MergePackageFiles),
		"NewCommentMap":              reflect.ValueOf(ast.NewCommentMap),
		"NewIdent":                   reflect.ValueOf(ast.NewIdent),
		"NewObj":                     reflect.ValueOf(ast.NewObj),
		"NewPackage":                 reflect.ValueOf(ast.NewPackage),
		"NewScope":                   reflect.ValueOf(ast.NewScope),
		"NotNilFilter":               reflect.ValueOf(ast.NotNilFilter),
		"PackageExports":             reflect.ValueOf(ast.PackageExports),
		"Pkg":                        reflect.ValueOf(ast.Pkg),
		"Print":                      reflect.ValueOf(ast.Print),
		"RECV":                       reflect.ValueOf(ast.RECV),
		"SEND":                       reflect.ValueOf(ast.SEND),
		"SortImports":                reflect.ValueOf(ast.SortImports),
		"Typ":                        reflect.ValueOf(ast.Typ),
		"Unparen":                    reflect.ValueOf(ast.Unparen),
		"Var":                        reflect.ValueOf(ast.Var),
		"Walk":                       reflect.ValueOf(ast.Walk),

		// type definitions
		"ArrayType":      reflect.ValueOf((*ast.ArrayType)(nil)),
		"AssignStmt":     reflect.ValueOf((*ast.AssignStmt)(nil)),
		"BadDecl":        reflect.ValueOf((*ast.BadDecl)(nil)),
		"BadExpr":        reflect.ValueOf((*ast.BadExpr)(nil)),
		"BadStmt":        reflect.ValueOf((*ast.BadStmt)(nil)),
		"BasicLit":       reflect.ValueOf((*ast.BasicLit)(nil)),
		"BinaryExpr":     reflect.ValueOf((*ast.BinaryExpr)(nil)),
		"BlockStmt":      reflect.ValueOf((*ast.BlockStmt)(nil)),
		"BranchStmt":     reflect.ValueOf((*ast.BranchStmt)(nil)),
		"CallExpr":       reflect.ValueOf((*ast.CallExpr)(nil)),
		"CaseClause":     reflect.ValueOf((*ast.CaseClause)(nil)),
		"ChanDir":        reflect.ValueOf((*ast.ChanDir)(nil)),
		"ChanType":       reflect.ValueOf((*ast.ChanType)(nil)),
		"CommClause":     reflect.ValueOf((*ast.CommClause)(nil)),
		"Comment":        reflect.ValueOf((*ast.Comment)(nil)),
		"CommentGroup":   reflect.ValueOf((*ast.CommentGroup)(nil)),
		"CommentMap":     reflect.ValueOf((*ast.CommentMap)(nil)),
		"CompositeLit":   reflect.ValueOf((*ast.CompositeLit)(nil)),
		"Decl":           reflect.ValueOf((*ast.Decl)(nil)),
		"DeclStmt":       reflect.ValueOf((*ast.DeclStmt)(nil)),
		"DeferStmt":      reflect.ValueOf((*ast.DeferStmt)(nil)),
		"Ellipsis":       reflect.ValueOf((*ast.Ellipsis)(nil)),
		"EmptyStmt":      reflect.ValueOf((*ast.EmptyStmt)(nil)),
		"Expr":           reflect.ValueOf((*ast.Expr)(nil)),
		"ExprStmt":       reflect.ValueOf((*ast.ExprStmt)(nil)),
		"Field":          reflect.ValueOf((*ast.Field)(nil)),
		"FieldFilter":    reflect.ValueOf((*ast.FieldFilter)(nil)),
		"FieldList":      reflect.ValueOf((*ast.FieldList)(nil)),
		"File":           reflect.ValueOf((*ast.File)(nil)),
		"Filter":         reflect.ValueOf((*ast.Filter)(nil)),
		"ForStmt":        reflect.ValueOf((*ast.ForStmt)(nil)),
		"FuncDecl":       reflect.ValueOf((*ast.FuncDecl)(nil)),
		"FuncLit":        reflect.ValueOf((*ast.FuncLit)(nil)),
		"FuncType":       reflect.ValueOf((*ast.FuncType)(nil)),
		"GenDecl":        reflect.ValueOf((*ast.GenDecl)(nil)),
		"GoStmt":         reflect.ValueOf((*ast.GoStmt)(nil)),
		"Ident":          reflect.ValueOf((*ast.Ident)(nil)),
		"IfStmt":         reflect.ValueOf((*ast.IfStmt)(nil)),
		"ImportSpec":     reflect.ValueOf((*ast.ImportSpec)(nil)),
		"Importer":       reflect.ValueOf((*ast.Importer)(nil)),
		"IncDecStmt":     reflect.ValueOf((*ast.IncDecStmt)(nil)),
		"IndexExpr":      reflect.ValueOf((*ast.IndexExpr)(nil)),
		"IndexListExpr":  reflect.ValueOf((*ast.IndexListExpr)(nil)),
		"InterfaceType":  reflect.ValueOf((*ast.InterfaceType)(nil)),
		"KeyValueExpr":   reflect.ValueOf((*ast.KeyValueExpr)(nil)),
		"LabeledStmt":    reflect.ValueOf((*ast.LabeledStmt)(nil)),
		"MapType":        reflect.ValueOf((*ast.MapType)(nil)),
		"MergeMode":      reflect.ValueOf((*ast.MergeMode)(nil)),
		"Node":           reflect.ValueOf((*ast.Node)(nil)),
		"ObjKind":        reflect.ValueOf((*ast.ObjKind)(nil)),
		"Object":         reflect.ValueOf((*ast.Object)(nil)),
		"Package":        reflect.ValueOf((*ast.Package)(nil)),
		"ParenExpr":      reflect.ValueOf((*ast.ParenExpr)(nil)),
		"RangeStmt":      reflect.ValueOf((*ast.RangeStmt)(nil)),
		"ReturnStmt":     reflect.ValueOf((*ast.ReturnStmt)(nil)),
		"Scope":          reflect.ValueOf((*ast.Scope)(nil)),
		"SelectStmt":     reflect.ValueOf((*ast.SelectStmt)(nil)),
		"SelectorExpr":   reflect.ValueOf((*ast.SelectorExpr)(nil)),
		"SendStmt":       reflect.ValueOf((*ast.SendStmt)(nil)),
		"SliceExpr":      reflect.ValueOf((*ast.SliceExpr)(nil)),
		"Spec":           reflect.ValueOf((*ast.Spec)(nil)),
		"StarExpr":       reflect.ValueOf((*ast.StarExpr)(nil)),
		"Stmt":           reflect.ValueOf((*ast.Stmt)(nil)),
		"StructType":     reflect.ValueOf((*ast.StructType)(nil)),
		"SwitchStmt":     reflect.ValueOf((*ast.SwitchStmt)(nil)),
		"TypeAssertExpr": reflect.ValueOf((*ast.TypeAssertExpr)(nil)),
		"TypeSpec":       reflect.ValueOf((*ast.TypeSpec)(nil)),
		"TypeSwitchStmt": reflect.ValueOf((*ast.TypeSwitchStmt)(nil)),
		"UnaryExpr":      reflect.ValueOf((*ast.UnaryExpr)(nil)),
		"ValueSpec":      reflect.ValueOf((*ast.ValueSpec)(nil)),
		"Visitor":        reflect.ValueOf((*ast.Visitor)(nil)),

		// interface wrapper definitions
		"_Decl":    reflect.ValueOf((*_go_ast_Decl)(nil)),
		"_Expr":    reflect.ValueOf((*_go_ast_Expr)(nil)),
		"_Node":    reflect.ValueOf((*_go_ast_Node)(nil)),
		"_Spec":    reflect.ValueOf((*_go_ast_Spec)(nil)),
		"_Stmt":    reflect.ValueOf((*_go_ast_Stmt)(nil)),
		"_Visitor": reflect.ValueOf((*_go_ast_Visitor)(nil)),
	}
}

// _go_ast_Decl is an interface wrapper for Decl type
type _go_ast_Decl struct {
	IValue interface{}
	WEnd   func() token.Pos
	WPos   func() token.Pos
}

func (W _go_ast_Decl) End() token.Pos {
	return W.WEnd()
}
func (W _go_ast_Decl) Pos() token.Pos {
	return W.WPos()
}

// _go_ast_Expr is an interface wrapper for Expr type
type _go_ast_Expr struct {
	IValue interface{}
	WEnd   func() token.Pos
	WPos   func() token.Pos
}

func (W _go_ast_Expr) End() token.Pos {
	return W.WEnd()
}
func (W _go_ast_Expr) Pos() token.Pos {
	return W.WPos()
}

// _go_ast_Node is an interface wrapper for Node type
type _go_ast_Node struct {
	IValue interface{}
	WEnd   func() token.Pos
	WPos   func() token.Pos
}

func (W _go_ast_Node) End() token.Pos {
	return W.WEnd()
}
func (W _go_ast_Node) Pos() token.Pos {
	return W.WPos()
}

// _go_ast_Spec is an interface wrapper for Spec type
type _go_ast_Spec struct {
	IValue interface{}
	WEnd   func() token.Pos
	WPos   func() token.Pos
}

func (W _go_ast_Spec) End() token.Pos {
	return W.WEnd()
}
func (W _go_ast_Spec) Pos() token.Pos {
	return W.WPos()
}

// _go_ast_Stmt is an interface wrapper for Stmt type
type _go_ast_Stmt struct {
	IValue interface{}
	WEnd   func() token.Pos
	WPos   func() token.Pos
}

func (W _go_ast_Stmt) End() token.Pos {
	return W.WEnd()
}
func (W _go_ast_Stmt) Pos() token.Pos {
	return W.WPos()
}

// _go_ast_Visitor is an interface wrapper for Visitor type
type _go_ast_Visitor struct {
	IValue interface{}
	WVisit func(node ast.Node) (w ast.Visitor)
}

func (W _go_ast_Visitor) Visit(node ast.Node) (w ast.Visitor) {
	return W.WVisit(node)
}