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

Function typeContext

codegen/service/service_data.go:1008–1010  ·  view source on GitHub ↗

typeContext returns a contextual attribute for service types. Service types are Go types and uses non-pointers to hold attributes having default values.

(scope *codegen.NameScope)

Source from the content-addressed store, hash-verified

1006// typeContext returns a contextual attribute for service types. Service types
1007// are Go types and uses non-pointers to hold attributes having default values.
1008func typeContext(scope *codegen.NameScope) *codegen.AttributeContext {
1009 return codegen.NewAttributeContext(false, false, true, "", scope)
1010}
1011
1012// projectedTypeContext returns a contextual attribute for a projected type.
1013// Projected types are Go types that uses pointers for all attributes (even the

Callers 4

ConvertFileFunction · 0.85
buildTypeInitsFunction · 0.85
buildProjectionsFunction · 0.85

Calls 1

NewAttributeContextFunction · 0.92

Tested by

no test coverage detected