Skip to content

Order templates and system types by Modelica package order - #661

Merged
JayHuLBL merged 1 commit into
mainfrom
ag/660-template-order
Oct 15, 2026
Merged

JayHuLBL merged 1 commit into
mainfrom
ag/660-template-order

Conversation

@AntoineGautier

Copy link
Copy Markdown
Collaborator

Description

This addresses #660.

Testing

Regression: the regenerated templates.json is unchanged, and the existing server, client and golden tests pass.

template-order.test.ts (new)

  • Order: templates and system types follow package.order and declaration order. The OrderPackage fixture covers an order that isn't alphabetical, a nested system type, and a package stored in a single file.
  • Errors: a package with no template, and a package.order that is missing, leaves out a template, or lists one twice.
  • No false error: a class missing from package.order but not on the path to any template raises none.

unicode.test.ts: a template declared inside its package's file is found, with the right system type.

quoted-identifiers.test.ts: the client fixture it writes no longer depends on test order.

@JayHuLBL
JayHuLBL merged commit 90a9145 into main Oct 15, 2026
2 checks passed
JayHuLBL added a commit that referenced this pull request Oct 15, 2026
@AntoineGautier
AntoineGautier deleted the ag/660-template-order branch October 16, 2026 09:14
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.

2 participants