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

Function RelTypeArgs

symbols/typeexprs.go:293–298  ·  view source on GitHub ↗

RelTypeArgs returns type arguments of a RelType.

(tpe ast.BaseTerm)

Source from the content-addressed store, hash-verified

291
292// RelTypeArgs returns type arguments of a RelType.
293func RelTypeArgs(tpe ast.BaseTerm) ([]ast.BaseTerm, error) {
294 if debug && !IsRelTypeExpression(tpe) {
295 return nil, fmt.Errorf("not a relation type expression: %v", tpe)
296 }
297 return typeArgs(tpe), nil
298}
299
300// relTypesFromDecl converts bounds a list of RelTypes.
301func relTypesFromDecl(decl ast.Decl) ([]ast.BaseTerm, error) {

Callers 2

feasibleAlternativesMethod · 0.92

Calls 2

IsRelTypeExpressionFunction · 0.85
typeArgsFunction · 0.85

Tested by

no test coverage detected