MCPcopy
hub / github.com/google/mtail / Type

Interface Type

internal/runtime/compiler/types/types.go:17–25  ·  view source on GitHub ↗

Type represents a type in the mtail program.

Source from the content-addressed store, hash-verified

15
16// Type represents a type in the mtail program.
17type Type interface {
18 // Root returns an exemplar Type after unification occurs. If the type
19 // system is complete after unification, Root will be a TypeOperator. Root
20 // is the equivalent of Find in the union-find algorithm.
21 Root() Type
22
23 // String returns a string representation of a Type.
24 String() string
25}
26
27// TypeError describes an error in which a type was expected, but another was encountered.
28type TypeError struct {

Callers 1

InferCaprefTypeFunction · 0.70

Implementers 3

TypeErrorinternal/runtime/compiler/types/types.
Variableinternal/runtime/compiler/types/types.
Operatorinternal/runtime/compiler/types/types.

Calls

no outgoing calls

Tested by

no test coverage detected