Skip to content

Annotation printers that work, componentGraphics; remove never-included files (1.8.2) - #109

Merged
JKRT merged 1 commit into
masterfrom
annotations-and-cleanup
Oct 29, 2026
Merged

JKRT merged 1 commit into
masterfrom
annotations-and-cleanup

Conversation

@JKRT

@JKRT JKRT commented Oct 29, 2026

Copy link
Copy Markdown
Member
  • AbsynUtil: crefString, typeSpecString, printExp and two error messages called a Dump module that does not exist (only the never-included template files imported one); they now use Absyn.jl's printers. importString written; the partial printExp (strings and arrays only) replaced.
  • SCodeDump: printModStr, dumpModifier (it wrote Icon=coordinateSystem=...), dumpAnnotation, printAnnotationStr write Modelica; unparseElementStr without templates. Removed the functions that called the unported Tpl and that nothing calls.
  • componentGraphics(fm, component) / classGraphics(cls, connectors): a component class's icon (its base classes' items first) and its connectors' placements as Modelica text, for tools that write a replacement (a surrogate) that looks like the component. To be exposed through OM.jl's componentInterface.
  • Deleted files no include reaches: SCodeDumpTpl.jl, AbsynDumpTpl.jl, stale top-level copies of Util/ files, test.jl, formatGeneratedJuliaCode.jl, mosScript.jl, example.mo, mechanicsEval.mos, NFUnit/NFUnitCheck/NFHashTableCrToUnit (-16k lines).

Tests: test/componentGraphicsTests.jl (18); full suite 688/688 locally. Expression parentheses come from OpenModelica/Absyn.jl#6 (merge first); this PR's tests do not depend on it.

🤖 Generated with Claude Code

…ed files (1.8.2)

- AbsynUtil: crefString, typeSpecString, printExp and two error messages called a Dump module that
  does not exist; they use Absyn.jl's printers. importString written; the partial printExp replaced.
- SCodeDump: printModStr, dumpModifier, dumpAnnotation, printAnnotationStr write Modelica;
  unparseElementStr without templates. Removed the functions that called the unported Tpl and
  that nothing calls.
- componentGraphics(fm, component), classGraphics(cls, connectors): a component class's icon (its
  base classes' items first) and its connectors' placements as Modelica text.
- Deleted files no include reaches: SCodeDumpTpl.jl, AbsynDumpTpl.jl, stale top-level copies of
  Util/ files, test.jl, formatGeneratedJuliaCode.jl, mosScript.jl, example.mo, mechanicsEval.mos,
  NFUnit/NFUnitCheck/NFHashTableCrToUnit.

Assisted-by: Claude Opus 5.5
@JKRT
JKRT merged commit b174eae into master Oct 29, 2026
12 checks passed
@JKRT
JKRT deleted the annotations-and-cleanup branch October 29, 2026 14:15
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