HaxeFoundation / HaxeFoundation/as3hx

Wrong conversion `break label;`

Open
#313 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Haxe
Stars
180
Forks
52
PR merge metrics
No merged PRs in 30d

Description

as3 code for example:
```actionscript
package {
public class Issue313 {
public function Issue313() {
loop: for(var i:int = 0; i < 10; i++) {
for(var j:int = 0; j < 10; j++) {
break loop;
}
}
}
}
}
```
expected result
```haxe

class Issue313
{
public function new()
{
try
{
for(i in 0...10)
{
for(j in 0...10)
{
throw new as3hx.Compat.BreakLabel("break loop");
}
}
} catch(e:as3hx.Compat.BreakLabel) {}
}
}

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the AS3 and Haxe examples in the issue and trace how as3hx converts the labeled `break loop;` statement. Compare the current output with the expected labeled-break behavior, then add a regression case showing the correct conversion and run the relevant converter tests.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.