IsCompatible returns true if u describes the (Go) type of val.
(val any)
| 49 | |
| 50 | // IsCompatible returns true if u describes the (Go) type of val. |
| 51 | func (u *UserTypeExpr) IsCompatible(val any) bool { |
| 52 | return u.Type == nil || u.Type.IsCompatible(val) |
| 53 | } |
| 54 | |
| 55 | // Attribute returns the embedded attribute. |
| 56 | func (u *UserTypeExpr) Attribute() *AttributeExpr { |