Repository navigation
Inherited components are obstacles - #12
Merged
Merged
Conversation
Every inherited component with a place is a fixed node, not only the connected ones. New components go beside them as a block, on the side where the lines to them are shortest; lines are routed around them. The report counts only the class's own components. MSL 4.1.0, all classes: overlaps with inherited components 151 -> 0. Assisted-by: Claude Opus 5.5
Rust 1.100.0 (stable since 2026-11-12) flags 3 loops over token indices. Assisted-by: Claude Opus 5.5
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.
A new component could land on an inherited one: in 0.1.1 an inherited component was a node only when a connect of the class named it.
extends TwoPinstay betweenpandn.--keepis unchanged.test/models/Inheritance.mo, 4 classes laid out without their base: new parts connected to an inherited one, not connected, two levels of extends, inherited border pins.Features.Derivedre-blessed: its parts follow Base'sgainin a row instead of sitting on Base'ssource. 61 tests pass; fmt and clippy clean.--keep: overlaps with inherited components 151 with 0.1.1, 0 with this; none among own components and no line through a component in either. Time 1.6 s → 1.7 s.A connection to an inherited component whose base class has no
Placementstill gets no line (warning); the base needs a layout first.