Skip to content

Update inner node builder to require two children#73

Merged
declanvk merged 1 commit into
mainfrom
expand-builder
May 5, 2026
Merged

Update inner node builder to require two children#73
declanvk merged 1 commit into
mainfrom
expand-builder

Conversation

@declanvk

@declanvk declanvk commented May 5, 2026

Copy link
Copy Markdown
Owner

Description
In a prior commit, I added a builder for creating inner nodes that
guaranteed at least a single child. I realized later that I hadn't
gone far enough, all inner nodes actually require at least two children!

This commit updates the builder to add another type-state, modifies tests
to pass this new requirement.

Motivation
In a separate branch I've been experimenting with some optimizations and
one of those optimizations had a requirement that the inner node had at
least two children. That made me remember the builder stuff and I
figured it would be good to actually bring it up the real requirement.

Testing Done
Modified existing tests, no new, all passed.

**Description**
In a prior commit, I added a builder for creating inner nodes that
guaranteed at least a single child. I realized later that I hadn't
gone far enough, all inner nodes actually require at least two children!

This commit updates the builder to add another type-state, modifies tests
to pass this new requirement.

**Motivation**
In a separate branch I've been experimenting with some optimizations and
one of those optimizations had a requirement that the inner node had at
least two children. That made me remember the builder stuff and I
figured it would be good to actually bring it up the real requirement.

**Testing Done**
Modified existing tests, no new, all passed.
@declanvk declanvk merged commit 384f005 into main May 5, 2026
4 checks passed
@declanvk declanvk deleted the expand-builder branch May 5, 2026 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant