clemos / haxe-sublime-bundle

Sublime Text bundle for Haxe programming language
Apache License 2.0
235 stars 86 forks source link

callback automatic creation #169

Closed wighawag closed 9 years ago

wighawag commented 9 years ago

Hi, first of all, thanks for this nice plugin. I have started using it and find it quite useful. One thing I would like to see is automatic creation of function from a callback parameter

let say you have this function somewhere

function doSomething(index : Int, callback : String -> Array<String -> Void) : Void

if in another place you type doSomething(1, onDone); and then when your pointer is on top of "onDone" you would do a shortcut and sublime would generate the following function :

function onDone(param1 : String, param2 : String){ | }

is it achieavable ? where should I look in order to implement this ?

Thanks