forked from gnolang/gno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.go
52 lines (47 loc) · 1.08 KB
/
package.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
package gno
import (
"github.com/gnolang/gno/pkgs/amino"
)
var Package = amino.RegisterPackage(amino.NewPackage(
"github.com/gnolang/gno",
"gno",
amino.GetCallersDirname(),
).WithDependencies().WithTypes(
//----------------------------------------
// Values
StringValue(""), "vstr",
BigintValue{}, "vbig",
// DataByteValue{}
PointerValue{}, "vptr",
&ArrayValue{}, "varr",
&SliceValue{}, "vsli",
&StructValue{}, "vstt",
&FuncValue{}, "vfun",
&MapValue{}, "vmap",
&BoundMethodValue{}, "vbnd",
TypeValue{}, "vtyp",
&PackageValue{}, "vpkg",
// &NativeValue{},
&Block{}, "vblk",
RefValue{}, "vref",
//----------------------------------------
// Nodes
RefNode{}, "nref",
//----------------------------------------
// Types
PrimitiveType(0), "tpri",
&PointerType{}, "tptr",
&ArrayType{}, "tarr",
&SliceType{}, "tsli",
&StructType{}, "tstt",
&FuncType{}, "tfun",
&MapType{}, "tmap",
&InterfaceType{}, "tint",
&TypeType{}, "ttyp",
&DeclaredType{}, "tdec",
&PackageType{}, "tpkg",
&ChanType{}, "tchn",
blockType{}, "tblk",
&tupleType{}, "ttup",
RefType{}, "tref",
))