File: go1_21_text_scanner.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 (42 lines) | stat: -rw-r--r-- 2,030 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
33
34
35
36
37
38
39
40
41
42
// Code generated by 'yaegi extract text/scanner'. DO NOT EDIT.

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

package stdlib

import (
	"go/constant"
	"go/token"
	"reflect"
	"text/scanner"
)

func init() {
	Symbols["text/scanner/scanner"] = map[string]reflect.Value{
		// function, constant and variable definitions
		"Char":           reflect.ValueOf(constant.MakeFromLiteral("-5", token.INT, 0)),
		"Comment":        reflect.ValueOf(constant.MakeFromLiteral("-8", token.INT, 0)),
		"EOF":            reflect.ValueOf(constant.MakeFromLiteral("-1", token.INT, 0)),
		"Float":          reflect.ValueOf(constant.MakeFromLiteral("-4", token.INT, 0)),
		"GoTokens":       reflect.ValueOf(constant.MakeFromLiteral("1012", token.INT, 0)),
		"GoWhitespace":   reflect.ValueOf(constant.MakeFromLiteral("4294977024", token.INT, 0)),
		"Ident":          reflect.ValueOf(constant.MakeFromLiteral("-2", token.INT, 0)),
		"Int":            reflect.ValueOf(constant.MakeFromLiteral("-3", token.INT, 0)),
		"RawString":      reflect.ValueOf(constant.MakeFromLiteral("-7", token.INT, 0)),
		"ScanChars":      reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)),
		"ScanComments":   reflect.ValueOf(constant.MakeFromLiteral("256", token.INT, 0)),
		"ScanFloats":     reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)),
		"ScanIdents":     reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)),
		"ScanInts":       reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)),
		"ScanRawStrings": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)),
		"ScanStrings":    reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
		"SkipComments":   reflect.ValueOf(constant.MakeFromLiteral("512", token.INT, 0)),
		"String":         reflect.ValueOf(constant.MakeFromLiteral("-6", token.INT, 0)),
		"TokenString":    reflect.ValueOf(scanner.TokenString),

		// type definitions
		"Position": reflect.ValueOf((*scanner.Position)(nil)),
		"Scanner":  reflect.ValueOf((*scanner.Scanner)(nil)),
	}
}