Repository navigation
Show anonymous type nesting in "Used by"; add TAF 4.0 and legacy RINF examples - #10
Open
MathiasVDA wants to merge 2 commits into
Open
MathiasVDA wants to merge 2 commits into
MathiasVDA wants to merge 2 commits into
Conversation
An anonymous type has no users of its own, so the diagram of a local element such as TAF's Contacts showed a lone box. The diagram now follows the declaring element up through the containing types to a named type or global element, also for anonymous holders of a named type's users. Fixes #9
TAF TSI 4.0 comes from ERA's telematics TSI repository on GitLab (pinned commit), next to the existing 3.5.0 example. The legacy RINF XSD comes from the ERA website and is left out with a warning when it cannot be downloaded or indexed. Closes #8
This branch has not been deployed
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.
Requested by Mathias · project thread
Fixes #9: "Used by" nesting
An anonymous type has no users of its own, so the diagram of a local element like TAF's
Contactsshowed one box by itself. With "Used by" on,buildNeighborhoodnow follows the declaring element up through the containing types until it reaches a named type or a global element. Each step is a composition edge labelled with the element name and its multiplicity. The same chain is added when a named type's user sits in an anonymous holder.Checked against TAF 3.5 (
taf_cat_complete.xsd):Contacts:Customer«element» →Customer (anonymous)—Contacts→Contacts (anonymous)ConsignmentIdent: the chain now goes up throughControlLabelandConsignmentIdentificationtoWagonStatusMessage«element»Closes #8: new examples
taf-tsi-4), from ERA's telematics TSI repository on GitLab (TD_105_xsd, pinned to commit2daa71c). The old GitHub repoEU-Agency-for-Railways/TSI_TAFis archived and points there. It indexes cleanly: 3 files, 585 global and 1053 local components, 0 unresolved. The 3.5.0 example stays, so the two versions can be compared.rinf-legacy), fromhttps://www.era.europa.eu/system/files?file=2022-11/rinf_schema_en.xsd. ERA's site is blocked from the environment where this was written, so this download and index are not verified. The step is guarded: if the download fails, the file doesn't look like a schema, or indexing fails, the example is left out with a warning.No version bumps.
Generated by Claude Code