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

     1  // Code generated by 'yaegi extract go/parser'. DO NOT EDIT.
     2  
     3  // +build go1.16,!go1.17
     4  
     5  package stdlib
     6  
     7  import (
     8  	"go/parser"
     9  	"reflect"
    10  )
    11  
    12  func init() {
    13  	Symbols["go/parser/parser"] = map[string]reflect.Value{
    14  		// function, constant and variable definitions
    15  		"AllErrors":         reflect.ValueOf(parser.AllErrors),
    16  		"DeclarationErrors": reflect.ValueOf(parser.DeclarationErrors),
    17  		"ImportsOnly":       reflect.ValueOf(parser.ImportsOnly),
    18  		"PackageClauseOnly": reflect.ValueOf(parser.PackageClauseOnly),
    19  		"ParseComments":     reflect.ValueOf(parser.ParseComments),
    20  		"ParseDir":          reflect.ValueOf(parser.ParseDir),
    21  		"ParseExpr":         reflect.ValueOf(parser.ParseExpr),
    22  		"ParseExprFrom":     reflect.ValueOf(parser.ParseExprFrom),
    23  		"ParseFile":         reflect.ValueOf(parser.ParseFile),
    24  		"SpuriousErrors":    reflect.ValueOf(parser.SpuriousErrors),
    25  		"Trace":             reflect.ValueOf(parser.Trace),
    26  
    27  		// type definitions
    28  		"Mode": reflect.ValueOf((*parser.Mode)(nil)),
    29  	}
    30  }