HaxeCheckstyle / haxe-rename

A code renaming tool for Haxe
MIT License
18 stars 1 forks source link

Rename.js crashes on string interpolation #6

Open dubspeed opened 1 month ago

dubspeed commented 1 month ago

👋 Hello,

this code below crashes rename.js parsing:


package src;

abstract TestCrash(String) to String {
    public static inline function fail(data:Dynamic):TestCrash {
        return cast '${data.a}_${data.b}_${data.c}_${false}';
    }
}
AlexHaxe commented 1 month ago

the crash originates from a tokentree issue, where parsing false results in a no more tokens exception. so as soon as I fix tokentree, it should no longer crash haxe-rename's parser.