GetMetaTypeImports parses the attribute for all user defined imports
(att *expr.AttributeExpr)
| 121 | |
| 122 | // GetMetaTypeImports parses the attribute for all user defined imports |
| 123 | func 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 |
| 128 | func safelyGetMetaTypeImports(att *expr.AttributeExpr, seen map[string]struct{}) []*ImportSpec { |