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

Function newTypeExpr

symbols/typeexprs.go:46–48  ·  view source on GitHub ↗
(typeOp ast.FunctionSym, typeArgs ...ast.BaseTerm)

Source from the content-addressed store, hash-verified

44}
45
46func newTypeExpr(typeOp ast.FunctionSym, typeArgs ...ast.BaseTerm) ast.ApplyFn {
47 return ast.ApplyFn{typeOp, typeArgs}
48}
49
50func typeOp(typeExpr ast.BaseTerm) *ast.FunctionSym {
51 if expr, ok := typeExpr.(ast.ApplyFn); ok {

Callers 11

NewPairTypeFunction · 0.85
NewTupleTypeFunction · 0.85
NewOptionTypeFunction · 0.85
NewListTypeFunction · 0.85
NewMapTypeFunction · 0.85
NewOptFunction · 0.85
NewStructTypeFunction · 0.85
NewFunTypeFunction · 0.85
NewRelTypeFunction · 0.85
NewUnionTypeFunction · 0.85
NewSingletonTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected