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

Function NewAttributeContextForConversion

codegen/transformer.go:106–110  ·  view source on GitHub ↗

NewAttributeContextForConversion initializes an attribute context for same-package conversion.

(pointer, reqIgnore, useDefault bool, pkg string, scope *NameScope)

Source from the content-addressed store, hash-verified

104
105// NewAttributeContextForConversion initializes an attribute context for same-package conversion.
106func NewAttributeContextForConversion(pointer, reqIgnore, useDefault bool, pkg string, scope *NameScope) *AttributeContext {
107 ctx := NewAttributeContext(pointer, reqIgnore, useDefault, pkg, scope)
108 ctx.SamePackageConversion = true
109 return ctx
110}
111
112// NewAttributeScope initializes an attribute scope.
113func NewAttributeScope(scope *NameScope) *AttributeScope {

Callers 1

Calls 1

NewAttributeContextFunction · 0.85

Tested by

no test coverage detected