typesystem.go 490 Bytes
Newer Older
Eric Myhre's avatar
Eric Myhre committed
1
package schema
2

Eric Myhre's avatar
Eric Myhre committed
3
type TypeSystem struct {
4 5 6 7 8 9 10 11 12 13 14
	// namedTypes is the set of all named types in this universe.
	// The map's key is the value's Name() property and must be unique.
	//
	// The IsAnonymous property is false for all values in this map that
	// support the IsAnonymous property.
	//
	// Each Type in the universe may only refer to other types in their
	// definition if those type are either A) in this namedTypes map,
	// or B) are IsAnonymous==true.
	namedTypes map[TypeName]Type
}