UserTypeExpr describes user defined types. While a given design must ensure that the names are unique the code used to generate code can create multiple user types that share the same name (for example because generated in different packages). UID is always unique and makes it possible to avoid infi
| 8 | // possible to avoid infinite recursions when traversing the data structures |
| 9 | // described by the attribute expression e.g. when computing example values. |
| 10 | UserTypeExpr struct { |
| 11 | // The embedded attribute expression. |
| 12 | *AttributeExpr |
| 13 | // Name of type |
| 14 | TypeName string |
| 15 | // UID of type |
| 16 | UID string |
| 17 | } |
| 18 | ) |
| 19 | |
| 20 | // ID returns the unique identifier for the user type. |
nothing calls this directly
no outgoing calls
no test coverage detected