MCPcopy Create free account
hub / github.com/goadesign/goa / unalias

Function unalias

expr/attribute.go:494–502  ·  view source on GitHub ↗
(dt DataType)

Source from the content-addressed store, hash-verified

492}
493
494func 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.

Callers 2

IsPrimitivePointerMethod · 0.70
byLengthFunction · 0.70

Calls 1

AttributeMethod · 0.65

Tested by

no test coverage detected