projectedTypeContext returns a contextual attribute for a projected type. Projected types are Go types that uses pointers for all attributes (even the required ones).
(pkg string, ptr bool, scope *codegen.NameScope)
| 1013 | // Projected types are Go types that uses pointers for all attributes (even the |
| 1014 | // required ones). |
| 1015 | func projectedTypeContext(pkg string, ptr bool, scope *codegen.NameScope) *codegen.AttributeContext { |
| 1016 | return codegen.NewAttributeContext(ptr, false, true, pkg, scope) |
| 1017 | } |
| 1018 | |
| 1019 | // collectTypes recurses through the attribute to gather all user types and |
| 1020 | // records them in userTypes. |
no test coverage detected