NewAttributeContextForConversion initializes an attribute context for same-package conversion.
(pointer, reqIgnore, useDefault bool, pkg string, scope *NameScope)
| 104 | |
| 105 | // NewAttributeContextForConversion initializes an attribute context for same-package conversion. |
| 106 | func 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. |
| 113 | func NewAttributeScope(scope *NameScope) *AttributeScope { |
no test coverage detected