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

Function IsAlias

expr/types.go:272–275  ·  view source on GitHub ↗

IsAlias returns true if the data type is a user type backed by a primitive type (so call aliased type).

(dt DataType)

Source from the content-addressed store, hash-verified

270// IsAlias returns true if the data type is a user type backed by a primitive
271// type (so call aliased type).
272func IsAlias(dt DataType) bool {
273 _, isut := dt.(UserType)
274 return isut && IsPrimitive(dt)
275}
276
277// Equal compares the types recursively and returns true if they are equal. Two
278// types are equal if:

Callers 15

analyzeMethod · 0.92
buildPayloadDataMethod · 0.92
buildResponsesMethod · 0.92
buildRequestBodyTypeMethod · 0.92
buildResponseBodyTypeMethod · 0.92
extractPathParamsMethod · 0.92
extractQueryParamsMethod · 0.92
extractHeadersMethod · 0.92
extractCookiesMethod · 0.92
attributeTypeDataMethod · 0.92
initWebSocketDataMethod · 0.92
resolvedAliasAttributeFunction · 0.92

Calls 1

IsPrimitiveFunction · 0.85

Tested by 2

TestIsAliasFunction · 0.68