Debian Codegraph @

stdlib/go1_21_go_ast.go

raw symbols SCIP
1 // Code generated by 'yaegi extract go/ast'. 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/ast"
10 "go/token"
11 "reflect"
12 )
13
14 func init() {
15 Symbols["go/ast/ast"] = map[string]reflect.Value{
16 // function, constant and variable definitions
17 "Bad": reflect.ValueOf(ast.Bad),
18 "Con": reflect.ValueOf(ast.Con),
19 "FileExports": reflect.ValueOf(ast.FileExports),
20 "FilterDecl": reflect.ValueOf(ast.FilterDecl),
21 "FilterFile": reflect.ValueOf(ast.FilterFile),
22 "FilterFuncDuplicates": reflect.ValueOf(ast.FilterFuncDuplicates),
23 "FilterImportDuplicates": reflect.ValueOf(ast.FilterImportDuplicates),
24 "FilterPackage": reflect.ValueOf(ast.FilterPackage),
25 "FilterUnassociatedComments": reflect.ValueOf(ast.FilterUnassociatedComments),
26 "Fprint": reflect.ValueOf(ast.Fprint),
27 "Fun": reflect.ValueOf(ast.Fun),
28 "Inspect": reflect.ValueOf(ast.Inspect),
29 "IsExported": reflect.ValueOf(ast.IsExported),
30 "IsGenerated": reflect.ValueOf(ast.IsGenerated),
31 "Lbl": reflect.ValueOf(ast.Lbl),
32 "MergePackageFiles": reflect.ValueOf(ast.MergePackageFiles),
33 "NewCommentMap": reflect.ValueOf(ast.NewCommentMap),
34 "NewIdent": reflect.ValueOf(ast.NewIdent),
35 "NewObj": reflect.ValueOf(ast.NewObj),
36 "NewPackage": reflect.ValueOf(ast.NewPackage),
37 "NewScope": reflect.ValueOf(ast.NewScope),
38 "NotNilFilter": reflect.ValueOf(ast.NotNilFilter),
39 "PackageExports": reflect.ValueOf(ast.PackageExports),
40 "Pkg": reflect.ValueOf(ast.Pkg),
41 "Print": reflect.ValueOf(ast.Print),
42 "RECV": reflect.ValueOf(ast.RECV),
43 "SEND": reflect.ValueOf(ast.SEND),
44 "SortImports": reflect.ValueOf(ast.SortImports),
45 "Typ": reflect.ValueOf(ast.Typ),
46 "Var": reflect.ValueOf(ast.Var),
47 "Walk": reflect.ValueOf(ast.Walk),
48
49 // type definitions
50 "ArrayType": reflect.ValueOf((*ast.ArrayType)(nil)),
51 "AssignStmt": reflect.ValueOf((*ast.AssignStmt)(nil)),
52 "BadDecl": reflect.ValueOf((*ast.BadDecl)(nil)),
53 "BadExpr": reflect.ValueOf((*ast.BadExpr)(nil)),
54 "BadStmt": reflect.ValueOf((*ast.BadStmt)(nil)),
55 "BasicLit": reflect.ValueOf((*ast.BasicLit)(nil)),
56 "BinaryExpr": reflect.ValueOf((*ast.BinaryExpr)(nil)),
57 "BlockStmt": reflect.ValueOf((*ast.BlockStmt)(nil)),
58 "BranchStmt": reflect.ValueOf((*ast.BranchStmt)(nil)),
59 "CallExpr": reflect.ValueOf((*ast.CallExpr)(nil)),
60 "CaseClause": reflect.ValueOf((*ast.CaseClause)(nil)),
61 "ChanDir": reflect.ValueOf((*ast.ChanDir)(nil)),
62 "ChanType": reflect.ValueOf((*ast.ChanType)(nil)),
63 "CommClause": reflect.ValueOf((*ast.CommClause)(nil)),
64 "Comment": reflect.ValueOf((*ast.Comment)(nil)),
65 "CommentGroup": reflect.ValueOf((*ast.CommentGroup)(nil)),
66 "CommentMap": reflect.ValueOf((*ast.CommentMap)(nil)),
67 "CompositeLit": reflect.ValueOf((*ast.CompositeLit)(nil)),
68 "Decl": reflect.ValueOf((*ast.Decl)(nil)),
69 "DeclStmt": reflect.ValueOf((*ast.DeclStmt)(nil)),
70 "DeferStmt": reflect.ValueOf((*ast.DeferStmt)(nil)),
71 "Ellipsis": reflect.ValueOf((*ast.Ellipsis)(nil)),
72 "EmptyStmt": reflect.ValueOf((*ast.EmptyStmt)(nil)),
73 "Expr": reflect.ValueOf((*ast.Expr)(nil)),
74 "ExprStmt": reflect.ValueOf((*ast.ExprStmt)(nil)),
75 "Field": reflect.ValueOf((*ast.Field)(nil)),
76 "FieldFilter": reflect.ValueOf((*ast.FieldFilter)(nil)),
77 "FieldList": reflect.ValueOf((*ast.FieldList)(nil)),
78 "File": reflect.ValueOf((*ast.File)(nil)),
79 "Filter": reflect.ValueOf((*ast.Filter)(nil)),
80 "ForStmt": reflect.ValueOf((*ast.ForStmt)(nil)),
81 "FuncDecl": reflect.ValueOf((*ast.FuncDecl)(nil)),
82 "FuncLit": reflect.ValueOf((*ast.FuncLit)(nil)),
83 "FuncType": reflect.ValueOf((*ast.FuncType)(nil)),
84 "GenDecl": reflect.ValueOf((*ast.GenDecl)(nil)),
85 "GoStmt": reflect.ValueOf((*ast.GoStmt)(nil)),
86 "Ident": reflect.ValueOf((*ast.Ident)(nil)),
87 "IfStmt": reflect.ValueOf((*ast.IfStmt)(nil)),
88 "ImportSpec": reflect.ValueOf((*ast.ImportSpec)(nil)),
89 "Importer": reflect.ValueOf((*ast.Importer)(nil)),
90 "IncDecStmt": reflect.ValueOf((*ast.IncDecStmt)(nil)),
91 "IndexExpr": reflect.ValueOf((*ast.IndexExpr)(nil)),
92 "IndexListExpr": reflect.ValueOf((*ast.IndexListExpr)(nil)),
93 "InterfaceType": reflect.ValueOf((*ast.InterfaceType)(nil)),
94 "KeyValueExpr": reflect.ValueOf((*ast.KeyValueExpr)(nil)),
95 "LabeledStmt": reflect.ValueOf((*ast.LabeledStmt)(nil)),
96 "MapType": reflect.ValueOf((*ast.MapType)(nil)),
97 "MergeMode": reflect.ValueOf((*ast.MergeMode)(nil)),
98 "Node": reflect.ValueOf((*ast.Node)(nil)),
99 "ObjKind": reflect.ValueOf((*ast.ObjKind)(nil)),
100 "Object": reflect.ValueOf((*ast.Object)(nil)),
101 "Package": reflect.ValueOf((*ast.Package)(nil)),
102 "ParenExpr": reflect.ValueOf((*ast.ParenExpr)(nil)),
103 "RangeStmt": reflect.ValueOf((*ast.RangeStmt)(nil)),
104 "ReturnStmt": reflect.ValueOf((*ast.ReturnStmt)(nil)),
105 "Scope": reflect.ValueOf((*ast.Scope)(nil)),
106 "SelectStmt": reflect.ValueOf((*ast.SelectStmt)(nil)),
107 "SelectorExpr": reflect.ValueOf((*ast.SelectorExpr)(nil)),
108 "SendStmt": reflect.ValueOf((*ast.SendStmt)(nil)),
109 "SliceExpr": reflect.ValueOf((*ast.SliceExpr)(nil)),
110 "Spec": reflect.ValueOf((*ast.Spec)(nil)),
111 "StarExpr": reflect.ValueOf((*ast.StarExpr)(nil)),
112 "Stmt": reflect.ValueOf((*ast.Stmt)(nil)),
113 "StructType": reflect.ValueOf((*ast.StructType)(nil)),
114 "SwitchStmt": reflect.ValueOf((*ast.SwitchStmt)(nil)),
115 "TypeAssertExpr": reflect.ValueOf((*ast.TypeAssertExpr)(nil)),
116 "TypeSpec": reflect.ValueOf((*ast.TypeSpec)(nil)),
117 "TypeSwitchStmt": reflect.ValueOf((*ast.TypeSwitchStmt)(nil)),
118 "UnaryExpr": reflect.ValueOf((*ast.UnaryExpr)(nil)),
119 "ValueSpec": reflect.ValueOf((*ast.ValueSpec)(nil)),
120 "Visitor": reflect.ValueOf((*ast.Visitor)(nil)),
121
122 // interface wrapper definitions
123 "_Decl": reflect.ValueOf((*_go_ast_Decl)(nil)),
124 "_Expr": reflect.ValueOf((*_go_ast_Expr)(nil)),
125 "_Node": reflect.ValueOf((*_go_ast_Node)(nil)),
126 "_Spec": reflect.ValueOf((*_go_ast_Spec)(nil)),
127 "_Stmt": reflect.ValueOf((*_go_ast_Stmt)(nil)),
128 "_Visitor": reflect.ValueOf((*_go_ast_Visitor)(nil)),
129 }
130 }
131
132 // _go_ast_Decl is an interface wrapper for Decl type
133 type _go_ast_Decl struct {
134 IValue interface{}
135 WEnd func() token.Pos
136 WPos func() token.Pos
137 }
138
139 func (W _go_ast_Decl) End() token.Pos { return W.WEnd() }
140 func (W _go_ast_Decl) Pos() token.Pos { return W.WPos() }
141
142 // _go_ast_Expr is an interface wrapper for Expr type
143 type _go_ast_Expr struct {
144 IValue interface{}
145 WEnd func() token.Pos
146 WPos func() token.Pos
147 }
148
149 func (W _go_ast_Expr) End() token.Pos { return W.WEnd() }
150 func (W _go_ast_Expr) Pos() token.Pos { return W.WPos() }
151
152 // _go_ast_Node is an interface wrapper for Node type
153 type _go_ast_Node struct {
154 IValue interface{}
155 WEnd func() token.Pos
156 WPos func() token.Pos
157 }
158
159 func (W _go_ast_Node) End() token.Pos { return W.WEnd() }
160 func (W _go_ast_Node) Pos() token.Pos { return W.WPos() }
161
162 // _go_ast_Spec is an interface wrapper for Spec type
163 type _go_ast_Spec struct {
164 IValue interface{}
165 WEnd func() token.Pos
166 WPos func() token.Pos
167 }
168
169 func (W _go_ast_Spec) End() token.Pos { return W.WEnd() }
170 func (W _go_ast_Spec) Pos() token.Pos { return W.WPos() }
171
172 // _go_ast_Stmt is an interface wrapper for Stmt type
173 type _go_ast_Stmt struct {
174 IValue interface{}
175 WEnd func() token.Pos
176 WPos func() token.Pos
177 }
178
179 func (W _go_ast_Stmt) End() token.Pos { return W.WEnd() }
180 func (W _go_ast_Stmt) Pos() token.Pos { return W.WPos() }
181
182 // _go_ast_Visitor is an interface wrapper for Visitor type
183 type _go_ast_Visitor struct {
184 IValue interface{}
185 WVisit func(node ast.Node) (w ast.Visitor)
186 }
187
188 func (W _go_ast_Visitor) Visit(node ast.Node) (w ast.Visitor) { return W.WVisit(node) }