I'm trying to get 2 things:
1) Name of current function
2) Get list of arguments for some arbitrary function
Is this possible?
Here is an example:
someMethod("jack", someCallback);
-------------------------------------
function someMethod(name:String, callback:Function)
{
// from here I'd like to do something like
// this.getFunctionName()
// and also get arguments for my callback function
// so I can inspect them and do something about them
// I'd like to see that someCallback has 2 parameters
// called age and person and get their type
}
function someCallback(age:int, person:Person) {}