github.com/HaHadaxigua/yaegi@v1.0.1/stdlib/go1_17_go_ast.go (about)

     1  // Code generated by 'yaegi extract go/ast'. DO NOT EDIT.
     2  
     3  //go:build go1.17
     4  // +build go1.17
     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  		"InterfaceType":  reflect.ValueOf((*ast.InterfaceType)(nil)),
    92  		"KeyValueExpr":   reflect.ValueOf((*ast.KeyValueExpr)(nil)),
    93  		"LabeledStmt":    reflect.ValueOf((*ast.LabeledStmt)(nil)),
    94  		"MapType":        reflect.ValueOf((*ast.MapType)(nil)),
    95  		"MergeMode":      reflect.ValueOf((*ast.MergeMode)(nil)),
    96  		"Node":           reflect.ValueOf((*ast.Node)(nil)),
    97  		"ObjKind":        reflect.ValueOf((*ast.ObjKind)(nil)),
    98  		"Object":         reflect.ValueOf((*ast.Object)(nil)),
    99  		"Package":        reflect.ValueOf((*ast.Package)(nil)),
   100  		"ParenExpr":      reflect.ValueOf((*ast.ParenExpr)(nil)),
   101  		"RangeStmt":      reflect.ValueOf((*ast.RangeStmt)(nil)),
   102  		"ReturnStmt":     reflect.ValueOf((*ast.ReturnStmt)(nil)),
   103  		"Scope":          reflect.ValueOf((*ast.Scope)(nil)),
   104  		"SelectStmt":     reflect.ValueOf((*ast.SelectStmt)(nil)),
   105  		"SelectorExpr":   reflect.ValueOf((*ast.SelectorExpr)(nil)),
   106  		"SendStmt":       reflect.ValueOf((*ast.SendStmt)(nil)),
   107  		"SliceExpr":      reflect.ValueOf((*ast.SliceExpr)(nil)),
   108  		"Spec":           reflect.ValueOf((*ast.Spec)(nil)),
   109  		"StarExpr":       reflect.ValueOf((*ast.StarExpr)(nil)),
   110  		"Stmt":           reflect.ValueOf((*ast.Stmt)(nil)),
   111  		"StructType":     reflect.ValueOf((*ast.StructType)(nil)),
   112  		"SwitchStmt":     reflect.ValueOf((*ast.SwitchStmt)(nil)),
   113  		"TypeAssertExpr": reflect.ValueOf((*ast.TypeAssertExpr)(nil)),
   114  		"TypeSpec":       reflect.ValueOf((*ast.TypeSpec)(nil)),
   115  		"TypeSwitchStmt": reflect.ValueOf((*ast.TypeSwitchStmt)(nil)),
   116  		"UnaryExpr":      reflect.ValueOf((*ast.UnaryExpr)(nil)),
   117  		"ValueSpec":      reflect.ValueOf((*ast.ValueSpec)(nil)),
   118  		"Visitor":        reflect.ValueOf((*ast.Visitor)(nil)),
   119  
   120  		// interface wrapper definitions
   121  		"_Decl":    reflect.ValueOf((*_go_ast_Decl)(nil)),
   122  		"_Expr":    reflect.ValueOf((*_go_ast_Expr)(nil)),
   123  		"_Node":    reflect.ValueOf((*_go_ast_Node)(nil)),
   124  		"_Spec":    reflect.ValueOf((*_go_ast_Spec)(nil)),
   125  		"_Stmt":    reflect.ValueOf((*_go_ast_Stmt)(nil)),
   126  		"_Visitor": reflect.ValueOf((*_go_ast_Visitor)(nil)),
   127  	}
   128  }
   129  
   130  // _go_ast_Decl is an interface wrapper for Decl type
   131  type _go_ast_Decl struct {
   132  	IValue interface{}
   133  	WEnd   func() token.Pos
   134  	WPos   func() token.Pos
   135  }
   136  
   137  func (W _go_ast_Decl) End() token.Pos {
   138  	return W.WEnd()
   139  }
   140  func (W _go_ast_Decl) Pos() token.Pos {
   141  	return W.WPos()
   142  }
   143  
   144  // _go_ast_Expr is an interface wrapper for Expr type
   145  type _go_ast_Expr struct {
   146  	IValue interface{}
   147  	WEnd   func() token.Pos
   148  	WPos   func() token.Pos
   149  }
   150  
   151  func (W _go_ast_Expr) End() token.Pos {
   152  	return W.WEnd()
   153  }
   154  func (W _go_ast_Expr) Pos() token.Pos {
   155  	return W.WPos()
   156  }
   157  
   158  // _go_ast_Node is an interface wrapper for Node type
   159  type _go_ast_Node struct {
   160  	IValue interface{}
   161  	WEnd   func() token.Pos
   162  	WPos   func() token.Pos
   163  }
   164  
   165  func (W _go_ast_Node) End() token.Pos {
   166  	return W.WEnd()
   167  }
   168  func (W _go_ast_Node) Pos() token.Pos {
   169  	return W.WPos()
   170  }
   171  
   172  // _go_ast_Spec is an interface wrapper for Spec type
   173  type _go_ast_Spec struct {
   174  	IValue interface{}
   175  	WEnd   func() token.Pos
   176  	WPos   func() token.Pos
   177  }
   178  
   179  func (W _go_ast_Spec) End() token.Pos {
   180  	return W.WEnd()
   181  }
   182  func (W _go_ast_Spec) Pos() token.Pos {
   183  	return W.WPos()
   184  }
   185  
   186  // _go_ast_Stmt is an interface wrapper for Stmt type
   187  type _go_ast_Stmt struct {
   188  	IValue interface{}
   189  	WEnd   func() token.Pos
   190  	WPos   func() token.Pos
   191  }
   192  
   193  func (W _go_ast_Stmt) End() token.Pos {
   194  	return W.WEnd()
   195  }
   196  func (W _go_ast_Stmt) Pos() token.Pos {
   197  	return W.WPos()
   198  }
   199  
   200  // _go_ast_Visitor is an interface wrapper for Visitor type
   201  type _go_ast_Visitor struct {
   202  	IValue interface{}
   203  	WVisit func(node ast.Node) (w ast.Visitor)
   204  }
   205  
   206  func (W _go_ast_Visitor) Visit(node ast.Node) (w ast.Visitor) {
   207  	return W.WVisit(node)
   208  }