github.com/switchupcb/yaegi@v0.10.2/stdlib/go1_16_go_ast.go (about)

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