Skip to content

way-dsl: typed region accessors for parallel flows #22

Closed

Description

@rinekri

Follow-up to #18.

For each region of a parallel node, codegen emits a named val <child>RegionId: RegionId on the parallel's node builder. In the DSL, a region is found with schema.regionByName("left"), a string, so a typo only fails at runtime.

Proposal: a typed accessor, e.g. ParallelRef.regionId(child: NodeRef): RegionId, or NodeRef.regionId for a region root. It should fail at graph validation time if the child is not a region of that parallel. Additive; about 5 lines plus a test in GraphTest.

Activity

  1. added a commit that references this issue on Nov 9, 2026
  2. rinekri commented on Nov 9, 2026

    @rinekri
    ContributorAuthor

    Fixed in #23 (1d25d49), released in 0.13.0.

  3. rinekri commented on Nov 9, 2026

    @rinekri
    ContributorAuthor

    Fixed in #23, released in 0.13.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions