Repository navigation
feat: extend ._ shorthand to nested aspects - #546
Merged
Merged
Conversation
aspectContentType now synthesizes ._ the same way mergeWithAspectMeta does for root aspects — nested aspects are aspects.
sini
force-pushed
the
feat/nested-include-children
branch
from
May 15, 2026 15:56
1fe6f3c to
675e079
Compare
vic
approved these changes
May 15, 2026
charlesfire
pushed a commit
to charlesfire/den
that referenced
this pull request
May 16, 2026
## Summary - Adds `._` synthesis to `aspectContentType`, matching the existing behavior on root aspects via `mergeWithAspectMeta` - Nested aspects wrapped by `aspectContentType` now collect child keys (excluding class, pipe, structural, and internal keys) into a synthetic `._` with a zero-arg functor - `den.aspects.top.mid._` now works the same as `den.aspects.top._` ## Test plan - [x] `test-include-children-nested` — basic nested `._` with two children - [x] `test-include-children-nested-chained` — `._` at deeper nesting levels - [x] `test-include-children-nested-mixed` — class keys + child aspects on same wrapper - [x] `test-include-children-nested-skips-class-keys` — class keys excluded from nested `._` - [x] `test-include-children-nested-parametric` — parametric children resolve through nested `._` - [x] All 12 include-children tests pass - [x] Full CI: 813/813 passing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
._synthesis toaspectContentType, matching the existing behavior on root aspects viamergeWithAspectMetaaspectContentTypenow collect child keys (excluding class, pipe, structural, and internal keys) into a synthetic._with a zero-arg functorden.aspects.top.mid._now works the same asden.aspects.top._Test plan
test-include-children-nested— basic nested._with two childrentest-include-children-nested-chained—._at deeper nesting levelstest-include-children-nested-mixed— class keys + child aspects on same wrappertest-include-children-nested-skips-class-keys— class keys excluded from nested._test-include-children-nested-parametric— parametric children resolve through nested._