-
Notifications
You must be signed in to change notification settings - Fork 14
/
go119_export.go
executable file
·66 lines (60 loc) · 2.08 KB
/
go119_export.go
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// export by github.com/goplus/igop/cmd/qexp
//go:build go1.19
// +build go1.19
package doc
import (
q "go/doc"
"go/constant"
"reflect"
"github.com/goplus/igop"
)
func init() {
igop.RegisterPackage(&igop.Package{
Name: "doc",
Path: "go/doc",
Deps: map[string]string{
"fmt": "fmt",
"go/ast": "ast",
"go/doc/comment": "comment",
"go/token": "token",
"internal/lazyregexp": "lazyregexp",
"io": "io",
"path": "path",
"sort": "sort",
"strconv": "strconv",
"strings": "strings",
"unicode": "unicode",
"unicode/utf8": "utf8",
},
Interfaces: map[string]reflect.Type{},
NamedTypes: map[string]reflect.Type{
"Example": reflect.TypeOf((*q.Example)(nil)).Elem(),
"Filter": reflect.TypeOf((*q.Filter)(nil)).Elem(),
"Func": reflect.TypeOf((*q.Func)(nil)).Elem(),
"Mode": reflect.TypeOf((*q.Mode)(nil)).Elem(),
"Note": reflect.TypeOf((*q.Note)(nil)).Elem(),
"Package": reflect.TypeOf((*q.Package)(nil)).Elem(),
"Type": reflect.TypeOf((*q.Type)(nil)).Elem(),
"Value": reflect.TypeOf((*q.Value)(nil)).Elem(),
},
AliasTypes: map[string]reflect.Type{},
Vars: map[string]reflect.Value{
"IllegalPrefixes": reflect.ValueOf(&q.IllegalPrefixes),
},
Funcs: map[string]reflect.Value{
"Examples": reflect.ValueOf(q.Examples),
"IsPredeclared": reflect.ValueOf(q.IsPredeclared),
"New": reflect.ValueOf(q.New),
"NewFromFiles": reflect.ValueOf(q.NewFromFiles),
"Synopsis": reflect.ValueOf(q.Synopsis),
"ToHTML": reflect.ValueOf(q.ToHTML),
"ToText": reflect.ValueOf(q.ToText),
},
TypedConsts: map[string]igop.TypedConst{
"AllDecls": {reflect.TypeOf(q.AllDecls), constant.MakeInt64(int64(q.AllDecls))},
"AllMethods": {reflect.TypeOf(q.AllMethods), constant.MakeInt64(int64(q.AllMethods))},
"PreserveAST": {reflect.TypeOf(q.PreserveAST), constant.MakeInt64(int64(q.PreserveAST))},
},
UntypedConsts: map[string]igop.UntypedConst{},
})
}