• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

eclipse-aascw / aas-core-codegen / 36476001595
90%

Build:
DEFAULT BRANCH: main
Ran 28 Sep 2026 08:06PM UTC
Jobs 3
Files 302
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Sep 2026 07:59PM UTC coverage: 88.592% (+0.009%) from 88.583%
36476001595

push

github

web-flow
Transpile ``break`` in for statements (#791)

We transpile the ``break`` statement in the bodies of for-loops,
including in the branches of the switches and if-statements nested in
the loops. The parse tree gets a ``Break`` statement which, like
``Continue``, can not complete normally, and the type inference refuses
a ``break`` outside of a for-loop.

A ``break`` in a native switch exits the switch instead of the loop in
C++, C#, Java, TypeScript and Go. Hence, we parse a chain which would be
a switch, but whose branches break the enclosing loop, as an
if-statement comparing the subject explicitly:

    if number == 3:
        ...
    elif number in (-50, -51):
        break

becomes ``else if (number == -50 || number == -51) { break; }``.

The common meta-model ``for_statements`` covers a ``break`` in such
a chain, in a switch followed by statements, and in the nested branches
of a switch in a nested for-range.

78 of 84 new or added lines in 12 files covered. (92.86%)

42231 of 47669 relevant lines covered (88.59%)

2.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
88.06
-0.01% aas_core_codegen/parse/_rules.py
2
89.13
-0.02% aas_core_codegen/parse/tree.py
Jobs
ID Job ID Ran Files Coverage
1 3.12 - 36476001595.1 28 Sep 2026 08:08PM UTC 302
88.59
GitHub Action Run
2 3.11 - 36476001595.2 28 Sep 2026 08:08PM UTC 302
88.59
GitHub Action Run
3 3.10 - 36476001595.3 28 Sep 2026 08:08PM UTC 302
88.59
GitHub Action Run
Source Files on build 36476001595
  • Tree
  • List 302
  • Changed 12
  • Source Changed 0
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 60b3df7a on github
  • Prev Build on main (#36473525556)
  • Next Build on main (#36536520391)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc