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

Function IsFunTypeExpression

symbols/typeexprs.go:145–148  ·  view source on GitHub ↗

IsFunTypeExpression returns true if tpe is a UnionType.

(tpe ast.BaseTerm)

Source from the content-addressed store, hash-verified

143
144// IsFunTypeExpression returns true if tpe is a UnionType.
145func IsFunTypeExpression(tpe ast.BaseTerm) bool {
146 op := typeOp(tpe)
147 return op != nil && op.Symbol == FunType.Symbol
148}
149
150// IsUnionTypeExpression returns true if tpe is a UnionType.
151func IsUnionTypeExpression(tpe ast.BaseTerm) bool {

Callers 2

FunTypeResultFunction · 0.85
FunTypeArgsFunction · 0.85

Calls 1

typeOpFunction · 0.85

Tested by

no test coverage detected