Closed Ambrevar closed 1 year ago
In https://github.com/atlas-engineer/nyxt/pull/2784 we discovered an issue: accessors are generated in the slot package.
This fixes it by having accessors generated in the current package, just as with dwim-accessor-name-transformer.
dwim-accessor-name-transformer
But is it what we want? In practice, it means that it we do not specify :accessor nil, a spurious accessor active-attributes-keys is generated.
:accessor nil
active-attributes-keys
An alternative would be to skip accessor generation if there is no :accessor slot option and if the parent slot has no accessor.
:accessor
In the end I did apply the heuristic, see commit https://github.com/atlas-engineer/nclasses/pull/6/commits/e056b389f0101e6e479b8f408dd3fd278311b079.
@aartaka OK to merge?
In https://github.com/atlas-engineer/nyxt/pull/2784 we discovered an issue: accessors are generated in the slot package.
This fixes it by having accessors generated in the current package, just as with
dwim-accessor-name-transformer
.But is it what we want? In practice, it means that it we do not specify
:accessor nil
, a spurious accessoractive-attributes-keys
is generated.An alternative would be to skip accessor generation if there is no
:accessor
slot option and if the parent slot has no accessor.