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

Method GoFullTypeRef

codegen/scope.go:272–275  ·  view source on GitHub ↗

GoFullTypeRef returns the Go code that refers to the Go type which matches the given attribute type defined in the given package if a user type.

(att *expr.AttributeExpr, pkg string)

Source from the content-addressed store, hash-verified

270// GoFullTypeRef returns the Go code that refers to the Go type which matches
271// the given attribute type defined in the given package if a user type.
272func (s *NameScope) GoFullTypeRef(att *expr.AttributeExpr, pkg string) string {
273 name := s.GoFullTypeName(att, pkg)
274 return goTypeRef(name, att.Type)
275}
276
277// GoTypeName returns the Go type name of the given attribute type.
278func (s *NameScope) GoTypeName(att *expr.AttributeExpr) string {

Callers 15

InitStructFieldsFunction · 0.95
GoFullTypeNameMethod · 0.95
analyzeMethod · 0.80
buildPayloadDataMethod · 0.80
buildResultDataMethod · 0.80
buildResponsesMethod · 0.80
buildErrorsDataMethod · 0.80
buildRequestBodyTypeMethod · 0.80
buildResponseBodyTypeMethod · 0.80
initWebSocketDataMethod · 0.80
initSSEDataFunction · 0.80
analyzeMethod · 0.80

Calls 2

GoFullTypeNameMethod · 0.95
goTypeRefFunction · 0.85

Tested by

no test coverage detected