MCPcopy
hub / github.com/google/mangle / IsRelTypeExpression

Function IsRelTypeExpression

symbols/typeexprs.go:157–160  ·  view source on GitHub ↗

IsRelTypeExpression returns true if tpe is a RelType.

(tpe ast.BaseTerm)

Source from the content-addressed store, hash-verified

155
156// IsRelTypeExpression returns true if tpe is a RelType.
157func IsRelTypeExpression(tpe ast.BaseTerm) bool {
158 op := typeOp(tpe)
159 return op != nil && op.Symbol == RelType.Symbol
160}
161
162// ListTypeArg returns the type argument of a ListType.
163func ListTypeArg(tpe ast.BaseTerm) (ast.BaseTerm, error) {

Callers 1

RelTypeArgsFunction · 0.85

Calls 1

typeOpFunction · 0.85

Tested by

no test coverage detected