Helper function for user types
(name string, att *expr.AttributeExpr)
| 679 | |
| 680 | // Helper function for user types |
| 681 | func newUserType(name string, att *expr.AttributeExpr) *expr.AttributeExpr { |
| 682 | return &expr.AttributeExpr{ |
| 683 | Type: &expr.UserTypeExpr{ |
| 684 | AttributeExpr: att, |
| 685 | TypeName: name, |
| 686 | }, |
| 687 | } |
| 688 | } |
| 689 | |
| 690 | // Helper function for recursive types |
| 691 | func newRecursiveType(name string) *expr.AttributeExpr { |