View unanswered posts | View active topics


Reply to topic  [ 2 posts ] 
Haxe code generator and snippets 
Author Message
Member

Joined: Wed Mar 25, 2009 11:09 am
Posts: 11
Post 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:
Code:
private var i1:Int;
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.:
Code:
array<int> arr1
or
Code:
Array<Int> arr1
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


Sat Apr 04, 2009 12:05 pm
Profile
Member

Joined: Wed Sep 28, 2011 6:00 pm
Posts: 2
Post Re: Haxe code generator and snippets
The download link appears to be broken. Can someone repost this useful plugin?


Wed Sep 28, 2011 6:05 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.