
Haxe code generator and snippets
Hi! I'm working now with Haxe, so I changed the AS3 code generator to Haxe code generator. Additionaly I've added a few functions and made snippets to this language.
This plugin worsk fine, but I had no time to write code generator, which will work with AS3 AND Haxe. So If you want to use it, you have to replace the old
ASCompletion.dll with my one.
(
of course make backup copy of the old one and if you'll want to use as3 code generator, replece them again.) Sorry for that. Maybe in next releases I'll fix it.
What it can do?1) It makes haxe getters and setters. So if you'll write:
then ctrl+shift+1 (or your shortcut combination -> Getter ad Setter / Getter / Setter) you'll get:
Code:
private var i1 (_get_i1,_set_i1):Int;
...
private function _set_i1(value:Int):Int
{
i1 = value;
return i1;
}
private function _get_i1():Int { return i1; }
2) It converts variables to haxe style. You can now write in c++ style and what you'll write will be automatic converted to AS3/Haxe. f.e.:
or
or
Code:
private array < int > arr1
and so on...
then (generator -> convert to variable) and you'll get (automatic class uppercase):
in a class, outside functions:Code:
private var arr1:Array<Int>;
In a class, inside function:Code:
var arr1:Array<Int> = new Array<Int>();
(the text = new Array<Int>(); is selected, because you could not want to have constructor attached.). Additional Type like Int, Float, ... wont make constructors.
Thank you

And I hope you'll like it

files:
download