HaxeCheckstyle / haxe-rename

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

[canRename] error: could not find identifier to rename #11

Closed Jarrio closed 1 week ago

Jarrio commented 1 week ago

When trying to rename a local variable, I get the following error: "could not find identifier to rename". Structure:

enum Foo {
    Value(data: String);
    Option(value:String, callback: Foo -> Void);
}

var other = 43; //works here
var e = Foo.Option('something', (resp) -> {
    resp.extract(Value(data) => {
        var x = 4; //fails here
    })
});

May have to do with the expression macro

https://github.com/user-attachments/assets/3b00c63b-e21d-496d-afd4-307dd4ca1ea8

AlexHaxe commented 1 week ago

thanks!