Hello, I'm using a build macro for rewriting classes, and have noticed there are some autocompletion problems in FlashDevelop when using a syntax like this:
class Test {
var testVar = {
function innerFunction() {
// Indentation in here doesn't work properly.
}
}
}
What happens behind the scenes is that testVar and innerFunction are replaced by a method, "testVar_innerFunction", with the function body of innerFunction. This seems to confuse either the Haxe compiler or the FD autocompletion. When entering code inside innerFunction, the indentation resets to the level of the function definition (not indented as the comment).
Perhaps the compiler reports the nesting level incorrectly somehow when autocompleting because of the macro rewrite? This is how to reproduce:
- Install haxedci from command line: haxelib install haxedci
- Download this repository: https://github.com/ciscoheat/haxedci-example
- Open the project and and a context class, for example dci.examples.moneytransfer.contexts.MoneyTransfer
- Add code to the function transfer, or add a new function in a role and test there.