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

Method shouldInherit

expr/attribute.go:828–831  ·  view source on GitHub ↗
(parent *AttributeExpr)

Source from the content-addressed store, hash-verified

826}
827
828func (a *AttributeExpr) shouldInherit(parent *AttributeExpr) bool {
829 return a != nil && AsObject(a.Type) != nil &&
830 parent != nil && AsObject(parent.Type) != nil
831}
832
833// EvalName returns the name used by the DSL evaluation.
834func (a *ExampleExpr) EvalName() string {

Callers 2

InheritMethod · 0.95
inheritRecursiveMethod · 0.95

Calls 1

AsObjectFunction · 0.85

Tested by

no test coverage detected