File: go1_21_go_parser.go

package info (click to toggle)
golang-github-traefik-yaegi 0.16.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 24,608 kB
  • sloc: sh: 457; makefile: 39
file content (32 lines) | stat: -rw-r--r-- 1,134 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Code generated by 'yaegi extract go/parser'. DO NOT EDIT.

//go:build go1.21 && !go1.22
// +build go1.21,!go1.22

package stdlib

import (
	"go/parser"
	"reflect"
)

func init() {
	Symbols["go/parser/parser"] = map[string]reflect.Value{
		// function, constant and variable definitions
		"AllErrors":            reflect.ValueOf(parser.AllErrors),
		"DeclarationErrors":    reflect.ValueOf(parser.DeclarationErrors),
		"ImportsOnly":          reflect.ValueOf(parser.ImportsOnly),
		"PackageClauseOnly":    reflect.ValueOf(parser.PackageClauseOnly),
		"ParseComments":        reflect.ValueOf(parser.ParseComments),
		"ParseDir":             reflect.ValueOf(parser.ParseDir),
		"ParseExpr":            reflect.ValueOf(parser.ParseExpr),
		"ParseExprFrom":        reflect.ValueOf(parser.ParseExprFrom),
		"ParseFile":            reflect.ValueOf(parser.ParseFile),
		"SkipObjectResolution": reflect.ValueOf(parser.SkipObjectResolution),
		"SpuriousErrors":       reflect.ValueOf(parser.SpuriousErrors),
		"Trace":                reflect.ValueOf(parser.Trace),

		// type definitions
		"Mode": reflect.ValueOf((*parser.Mode)(nil)),
	}
}