github.com/traefik/yaegi@v0.15.1/stdlib/go1_20_go_ast.go (about) 1 // Code generated by 'yaegi extract go/ast'. DO NOT EDIT. 2 3 //go:build go1.20 4 // +build go1.20 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 "Lbl": reflect.ValueOf(ast.Lbl), 31 "MergePackageFiles": reflect.ValueOf(ast.MergePackageFiles), 32 "NewCommentMap": reflect.ValueOf(ast.NewCommentMap), 33 "NewIdent": reflect.ValueOf(ast.NewIdent), 34 "NewObj": reflect.ValueOf(ast.NewObj), 35 "NewPackage": reflect.ValueOf(ast.NewPackage), 36 "NewScope": reflect.ValueOf(ast.NewScope), 37 "NotNilFilter": reflect.ValueOf(ast.NotNilFilter), 38 "PackageExports": reflect.ValueOf(ast.PackageExports), 39 "Pkg": reflect.ValueOf(ast.Pkg), 40 "Print": reflect.ValueOf(ast.Print), 41 "RECV": reflect.ValueOf(ast.RECV), 42 "SEND": reflect.ValueOf(ast.SEND), 43 "SortImports": reflect.ValueOf(ast.SortImports), 44 "Typ": reflect.ValueOf(ast.Typ), 45 "Var": reflect.ValueOf(ast.Var), 46 "Walk": reflect.ValueOf(ast.Walk), 47 48 // type definitions 49 "ArrayType": reflect.ValueOf((*ast.ArrayType)(nil)), 50 "AssignStmt": reflect.ValueOf((*ast.AssignStmt)(nil)), 51 "BadDecl": reflect.ValueOf((*ast.BadDecl)(nil)), 52 "BadExpr": reflect.ValueOf((*ast.BadExpr)(nil)), 53 "BadStmt": reflect.ValueOf((*ast.BadStmt)(nil)), 54 "BasicLit": reflect.ValueOf((*ast.BasicLit)(nil)), 55 "BinaryExpr": reflect.ValueOf((*ast.BinaryExpr)(nil)), 56 "BlockStmt": reflect.ValueOf((*ast.BlockStmt)(nil)), 57 "BranchStmt": reflect.ValueOf((*ast.BranchStmt)(nil)), 58 "CallExpr": reflect.ValueOf((*ast.CallExpr)(nil)), 59 "CaseClause": reflect.ValueOf((*ast.CaseClause)(nil)), 60 "ChanDir": reflect.ValueOf((*ast.ChanDir)(nil)), 61 "ChanType": reflect.ValueOf((*ast.ChanType)(nil)), 62 "CommClause": reflect.ValueOf((*ast.CommClause)(nil)), 63 "Comment": reflect.ValueOf((*ast.Comment)(nil)), 64 "CommentGroup": reflect.ValueOf((*ast.CommentGroup)(nil)), 65 "CommentMap": reflect.ValueOf((*ast.CommentMap)(nil)), 66 "CompositeLit": reflect.ValueOf((*ast.CompositeLit)(nil)), 67 "Decl": reflect.ValueOf((*ast.Decl)(nil)), 68 "DeclStmt": reflect.ValueOf((*ast.DeclStmt)(nil)), 69 "DeferStmt": reflect.ValueOf((*ast.DeferStmt)(nil)), 70 "Ellipsis": reflect.ValueOf((*ast.Ellipsis)(nil)), 71 "EmptyStmt": reflect.ValueOf((*ast.EmptyStmt)(nil)), 72 "Expr": reflect.ValueOf((*ast.Expr)(nil)), 73 "ExprStmt": reflect.ValueOf((*ast.ExprStmt)(nil)), 74 "Field": reflect.ValueOf((*ast.Field)(nil)), 75 "FieldFilter": reflect.ValueOf((*ast.FieldFilter)(nil)), 76 "FieldList": reflect.ValueOf((*ast.FieldList)(nil)), 77 "File": reflect.ValueOf((*ast.File)(nil)), 78 "Filter": reflect.ValueOf((*ast.Filter)(nil)), 79 "ForStmt": reflect.ValueOf((*ast.ForStmt)(nil)), 80 "FuncDecl": reflect.ValueOf((*ast.FuncDecl)(nil)), 81 "FuncLit": reflect.ValueOf((*ast.FuncLit)(nil)), 82 "FuncType": reflect.ValueOf((*ast.FuncType)(nil)), 83 "GenDecl": reflect.ValueOf((*ast.GenDecl)(nil)), 84 "GoStmt": reflect.ValueOf((*ast.GoStmt)(nil)), 85 "Ident": reflect.ValueOf((*ast.Ident)(nil)), 86 "IfStmt": reflect.ValueOf((*ast.IfStmt)(nil)), 87 "ImportSpec": reflect.ValueOf((*ast.ImportSpec)(nil)), 88 "Importer": reflect.ValueOf((*ast.Importer)(nil)), 89 "IncDecStmt": reflect.ValueOf((*ast.IncDecStmt)(nil)), 90 "IndexExpr": reflect.ValueOf((*ast.IndexExpr)(nil)), 91 "IndexListExpr": reflect.ValueOf((*ast.IndexListExpr)(nil)), 92 "InterfaceType": reflect.ValueOf((*ast.InterfaceType)(nil)), 93 "KeyValueExpr": reflect.ValueOf((*ast.KeyValueExpr)(nil)), 94 "LabeledStmt": reflect.ValueOf((*ast.LabeledStmt)(nil)), 95 "MapType": reflect.ValueOf((*ast.MapType)(nil)), 96 "MergeMode": reflect.ValueOf((*ast.MergeMode)(nil)), 97 "Node": reflect.ValueOf((*ast.Node)(nil)), 98 "ObjKind": reflect.ValueOf((*ast.ObjKind)(nil)), 99 "Object": reflect.ValueOf((*ast.Object)(nil)), 100 "Package": reflect.ValueOf((*ast.Package)(nil)), 101 "ParenExpr": reflect.ValueOf((*ast.ParenExpr)(nil)), 102 "RangeStmt": reflect.ValueOf((*ast.RangeStmt)(nil)), 103 "ReturnStmt": reflect.ValueOf((*ast.ReturnStmt)(nil)), 104 "Scope": reflect.ValueOf((*ast.Scope)(nil)), 105 "SelectStmt": reflect.ValueOf((*ast.SelectStmt)(nil)), 106 "SelectorExpr": reflect.ValueOf((*ast.SelectorExpr)(nil)), 107 "SendStmt": reflect.ValueOf((*ast.SendStmt)(nil)), 108 "SliceExpr": reflect.ValueOf((*ast.SliceExpr)(nil)), 109 "Spec": reflect.ValueOf((*ast.Spec)(nil)), 110 "StarExpr": reflect.ValueOf((*ast.StarExpr)(nil)), 111 "Stmt": reflect.ValueOf((*ast.Stmt)(nil)), 112 "StructType": reflect.ValueOf((*ast.StructType)(nil)), 113 "SwitchStmt": reflect.ValueOf((*ast.SwitchStmt)(nil)), 114 "TypeAssertExpr": reflect.ValueOf((*ast.TypeAssertExpr)(nil)), 115 "TypeSpec": reflect.ValueOf((*ast.TypeSpec)(nil)), 116 "TypeSwitchStmt": reflect.ValueOf((*ast.TypeSwitchStmt)(nil)), 117 "UnaryExpr": reflect.ValueOf((*ast.UnaryExpr)(nil)), 118 "ValueSpec": reflect.ValueOf((*ast.ValueSpec)(nil)), 119 "Visitor": reflect.ValueOf((*ast.Visitor)(nil)), 120 121 // interface wrapper definitions 122 "_Decl": reflect.ValueOf((*_go_ast_Decl)(nil)), 123 "_Expr": reflect.ValueOf((*_go_ast_Expr)(nil)), 124 "_Node": reflect.ValueOf((*_go_ast_Node)(nil)), 125 "_Spec": reflect.ValueOf((*_go_ast_Spec)(nil)), 126 "_Stmt": reflect.ValueOf((*_go_ast_Stmt)(nil)), 127 "_Visitor": reflect.ValueOf((*_go_ast_Visitor)(nil)), 128 } 129 } 130 131 // _go_ast_Decl is an interface wrapper for Decl type 132 type _go_ast_Decl struct { 133 IValue interface{} 134 WEnd func() token.Pos 135 WPos func() token.Pos 136 } 137 138 func (W _go_ast_Decl) End() token.Pos { 139 return W.WEnd() 140 } 141 func (W _go_ast_Decl) Pos() token.Pos { 142 return W.WPos() 143 } 144 145 // _go_ast_Expr is an interface wrapper for Expr type 146 type _go_ast_Expr struct { 147 IValue interface{} 148 WEnd func() token.Pos 149 WPos func() token.Pos 150 } 151 152 func (W _go_ast_Expr) End() token.Pos { 153 return W.WEnd() 154 } 155 func (W _go_ast_Expr) Pos() token.Pos { 156 return W.WPos() 157 } 158 159 // _go_ast_Node is an interface wrapper for Node type 160 type _go_ast_Node struct { 161 IValue interface{} 162 WEnd func() token.Pos 163 WPos func() token.Pos 164 } 165 166 func (W _go_ast_Node) End() token.Pos { 167 return W.WEnd() 168 } 169 func (W _go_ast_Node) Pos() token.Pos { 170 return W.WPos() 171 } 172 173 // _go_ast_Spec is an interface wrapper for Spec type 174 type _go_ast_Spec struct { 175 IValue interface{} 176 WEnd func() token.Pos 177 WPos func() token.Pos 178 } 179 180 func (W _go_ast_Spec) End() token.Pos { 181 return W.WEnd() 182 } 183 func (W _go_ast_Spec) Pos() token.Pos { 184 return W.WPos() 185 } 186 187 // _go_ast_Stmt is an interface wrapper for Stmt type 188 type _go_ast_Stmt struct { 189 IValue interface{} 190 WEnd func() token.Pos 191 WPos func() token.Pos 192 } 193 194 func (W _go_ast_Stmt) End() token.Pos { 195 return W.WEnd() 196 } 197 func (W _go_ast_Stmt) Pos() token.Pos { 198 return W.WPos() 199 } 200 201 // _go_ast_Visitor is an interface wrapper for Visitor type 202 type _go_ast_Visitor struct { 203 IValue interface{} 204 WVisit func(node ast.Node) (w ast.Visitor) 205 } 206 207 func (W _go_ast_Visitor) Visit(node ast.Node) (w ast.Visitor) { 208 return W.WVisit(node) 209 }