MCPcopy Index your code
hub / github.com/google/mangle / NewFunType

Function NewFunType

symbols/typeexprs.go:102–104  ·  view source on GitHub ↗

NewFunType returns a new function type. Res <- Arg1, ..., ArgN

(res ast.BaseTerm, args ...ast.BaseTerm)

Source from the content-addressed store, hash-verified

100// NewFunType returns a new function type.
101// Res <- Arg1, ..., ArgN
102func NewFunType(res ast.BaseTerm, args ...ast.BaseTerm) ast.ApplyFn {
103 return newTypeExpr(FunType, append([]ast.BaseTerm{res}, args...)...)
104}
105
106// NewRelType returns a new relation type.
107func NewRelType(args ...ast.BaseTerm) ast.ApplyFn {

Callers 5

builtin.goFile · 0.92
TestWellformedBoundFunction · 0.85
TestWellformedTypeFunction · 0.85
TestTypeConformsFunction · 0.85

Calls 1

newTypeExprFunction · 0.85

Tested by 4

TestWellformedBoundFunction · 0.68
TestWellformedTypeFunction · 0.68
TestTypeConformsFunction · 0.68