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