github.com/ipld/go-ipld-prime@v0.21.0/schema/typesystem.go (about) 1 package schema 2 3 type TypeSystem struct { 4 // namedTypes is the set of all named types in this universe. 5 // The map's key is the value's Name() property and must be unique. 6 // 7 // The IsAnonymous property is false for all values in this map that 8 // support the IsAnonymous property. 9 // 10 // Each Type in the universe may only refer to other types in their 11 // definition if those type are either A) in this namedTypes map, 12 // or B) are IsAnonymous==true. 13 namedTypes map[TypeName]Type 14 15 // names are the same set of names stored in namedTypes, 16 // but in insertion order. 17 names []TypeName 18 }