(dts ...DataType)
| 66 | } |
| 67 | |
| 68 | func object(dts ...DataType) *Object { |
| 69 | var obj Object = make([]*NamedAttributeExpr, len(dts)) |
| 70 | for i, dt := range dts { |
| 71 | att := &AttributeExpr{Type: dt} |
| 72 | obj[i] = &NamedAttributeExpr{ |
| 73 | Attribute: att, |
| 74 | Name: fmt.Sprintf("att%d", i), |
| 75 | } |
| 76 | } |
| 77 | return &obj |
| 78 | } |
| 79 | |
| 80 | func userType(name string, dt DataType) *UserTypeExpr { |
| 81 | return &UserTypeExpr{TypeName: name, AttributeExpr: &AttributeExpr{Type: dt}} |
no outgoing calls
no test coverage detected