github.com/mavryk-network/mvgo@v1.19.9/contract/ast/type.go (about)

     1  package ast
     2  
     3  // Struct is an aggregation of named fields.
     4  // It corresponds to non-top-level `pair` prims, in Michelson.
     5  // It can represent either a parameter's type of entrypoint, or a record in a storage type.
     6  type Struct struct {
     7  	Name          string
     8  	MichelineType string
     9  	Fields        []*Struct
    10  	Type          *Struct
    11  	OriginalType  string
    12  	Key           *Struct
    13  	Value         *Struct
    14  	ParamType     *Struct
    15  	ReturnType    *Struct
    16  	LeftType      *Struct
    17  	RightType     *Struct
    18  	Path          [][]int
    19  	// If true, the expected prim matching to this struct has a flat structure,
    20  	// instead of a tree of pairs.
    21  	Flat bool
    22  }