type_int.go 553 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 TypeInt struct {
	name TypeName
	dmt  schemadmt.TypeInt
	ts   *TypeSystem
}

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

var _ Type = (*TypeInt)(nil)

func (t *TypeInt) _Type() {}

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

24 25
func (TypeInt) TypeKind() TypeKind {
	return TypeKind_Int
26 27 28 29 30 31
}

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

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