type_bool.go 563 Bytes
Newer Older
1 2 3
package schema

import (
tavit ohanian's avatar
tavit ohanian committed
4 5
	"gitlab.dms3.io/ld/go-ld-prime"
	schemadmt "gitlab.dms3.io/ld/go-ld-prime/schema/dmt"
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
)

type TypeBool struct {
	name TypeName
	dmt  schemadmt.TypeBool
	ts   *TypeSystem
}

// -- schema.Type interface satisfaction -->

var _ Type = (*TypeBool)(nil)

func (t *TypeBool) _Type() {}

func (t *TypeBool) TypeSystem() *TypeSystem {
	return t.ts
}

24 25
func (TypeBool) TypeKind() TypeKind {
	return TypeKind_Bool
26 27 28 29 30 31
}

func (t *TypeBool) Name() TypeName {
	return t.name
}

tavit ohanian's avatar
tavit ohanian committed
32 33
func (t TypeBool) RepresentationBehavior() ld.Kind {
	return ld.Kind_Bool
34
}