(dt DataType)
| 492 | } |
| 493 | |
| 494 | func unalias(dt DataType) DataType { |
| 495 | if ut, ok := dt.(UserType); ok { |
| 496 | if _, ok := ut.Attribute().Type.(Primitive); ok { |
| 497 | return ut.Attribute().Type |
| 498 | } |
| 499 | return unalias(ut.Attribute().Type) |
| 500 | } |
| 501 | return dt |
| 502 | } |
| 503 | |
| 504 | // HasTag returns true if the attribute is an object that has an attribute with |
| 505 | // the given tag. |
no test coverage detected