Skip to content

feat: extend ._ shorthand to nested aspects - #546

Merged
vic merged 2 commits into
mainfrom
feat/nested-include-children
May 15, 2026
Merged

vic merged 2 commits into
mainfrom
feat/nested-include-children

Conversation

@sini

@sini sini commented May 15, 2026

Copy link
Copy Markdown
Collaborator

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

  • test-include-children-nested — basic nested ._ with two children
  • test-include-children-nested-chained — ._ at deeper nesting levels
  • test-include-children-nested-mixed — class keys + child aspects on same wrapper
  • test-include-children-nested-skips-class-keys — class keys excluded from nested ._
  • test-include-children-nested-parametric — parametric children resolve through nested ._
  • All 12 include-children tests pass
  • Full CI: 813/813 passing

@sini
sini requested a review from vic as a code owner May 15, 2026 15:24
@github-actions github-actions Bot added the allow-ci allow all CI integration tests label May 15, 2026
sini added 2 commits May 15, 2026 08:56
aspectContentType now synthesizes ._ the same way mergeWithAspectMeta
does for root aspects — nested aspects are aspects.
@sini
sini force-pushed the feat/nested-include-children branch from 1fe6f3c to 675e079 Compare May 15, 2026 15:56
@vic
vic merged commit c6ac11a into main May 15, 2026
16 of 17 checks passed
@vic
vic deleted the feat/nested-include-children branch May 15, 2026 22:07
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

allow-ci allow all CI integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants