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

Function typeOp

symbols/typeexprs.go:50–55  ·  view source on GitHub ↗
(typeExpr ast.BaseTerm)

Source from the content-addressed store, hash-verified

48}
49
50func typeOp(typeExpr ast.BaseTerm) *ast.FunctionSym {
51 if expr, ok := typeExpr.(ast.ApplyFn); ok {
52 return &expr.Function
53 }
54 return nil
55}
56
57func typeArgs(typeExpr ast.BaseTerm) []ast.BaseTerm {
58 if expr, ok := typeExpr.(ast.ApplyFn); ok {

Callers 6

IsListTypeExpressionFunction · 0.85
IsMapTypeExpressionFunction · 0.85
IsStructTypeExpressionFunction · 0.85
IsFunTypeExpressionFunction · 0.85
IsUnionTypeExpressionFunction · 0.85
IsRelTypeExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected