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

Struct Operator

internal/runtime/compiler/types/types.go:138–146  ·  view source on GitHub ↗

Operator represents a type scheme in the type system.

Source from the content-addressed store, hash-verified

136
137// Operator represents a type scheme in the type system.
138type Operator struct {
139 // Name is a common name for this operator
140 Name string
141 // Args is the sequence of types that are parameters to this type. They
142 // may be fully bound type operators, or partially defined (i.e. contain
143 // TypeVariables) in which case they represent polymorphism in the operator
144 // they are arguments to.
145 Args []Type
146}
147
148// Root returns an exemplar of a TypeOperator, i.e. itself.
149func (t *Operator) Root() Type {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected