Helper function for result types with views
(id string, att *expr.AttributeExpr, view string)
| 670 | |
| 671 | // Helper function for result types with views |
| 672 | func newRTWithView(id string, att *expr.AttributeExpr, view string) *expr.AttributeExpr { |
| 673 | rt := newRT(id, att) |
| 674 | rt.Type.(*expr.ResultTypeExpr).Meta = expr.MetaExpr{ |
| 675 | expr.ViewMetaKey: []string{view}, |
| 676 | } |
| 677 | return rt |
| 678 | } |
| 679 | |
| 680 | // Helper function for user types |
| 681 | func newUserType(name string, att *expr.AttributeExpr) *expr.AttributeExpr { |
no test coverage detected