RelTypeArgs returns type arguments of a RelType.
(tpe ast.BaseTerm)
| 291 | |
| 292 | // RelTypeArgs returns type arguments of a RelType. |
| 293 | func 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. |
| 301 | func relTypesFromDecl(decl ast.Decl) ([]ast.BaseTerm, error) { |
no test coverage detected