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

Function GetMetaTypeImports

codegen/import.go:123–125  ·  view source on GitHub ↗

GetMetaTypeImports parses the attribute for all user defined imports

(att *expr.AttributeExpr)

Source from the content-addressed store, hash-verified

121
122// GetMetaTypeImports parses the attribute for all user defined imports
123func GetMetaTypeImports(att *expr.AttributeExpr) []*ImportSpec {
124 return safelyGetMetaTypeImports(att, nil)
125}
126
127// safelyGetMetaTypeImports parses attributes while keeping track of previous usertypes to avoid infinite recursion
128func safelyGetMetaTypeImports(att *expr.AttributeExpr, seen map[string]struct{}) []*ImportSpec {

Callers 3

metaTypeImportsFunction · 0.92
TestGetMetaTypeImportsFunction · 0.85

Calls 1

safelyGetMetaTypeImportsFunction · 0.85

Tested by 1

TestGetMetaTypeImportsFunction · 0.68