Live template methodName()

Can't seem to get it to work

Doing this in ActionScript,

Trying to make a live template that will trace out the current method name,

Live template as follow...

Tracer.log( 'CL ' + this + ' fn - $CLASS_NAME$ $CN$ - $END$' ,  2);

Varibles are

Name Expression Default Value
Skip if Defined
MN methodName()

CN className()


But it prints out

Tracer.log( 'CL ' + this + ' fn -  - |' ,  2);

Am I doing something wrong?

Thanks guys

- Simon

0

Hello Simon,

The methodName() live template function is specific to Java. In ActionScript,
you need to use jsMethodName() instead.

Can't seem to get it to work

Doing this in ActionScript,

Trying to make a live template that will trace out the current method
name,

Live template as follow...

Tracer.log( 'CL ' + this + ' fn - $CLASS_NAME$ $CN$ - $END$' ,  2);

Varibles are

|| Name || Expression || *Default Value

  • || *Skip if Defined

  • ||

| MN | methodName() |
|
|
| CN | className() |
|
|
But it prints out

Tracer.log( 'CL ' + this + ' fn -  - |' ,  2);

Am I doing something wrong?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Avatar
Permanently deleted user


Oh right, thanks!

0
Avatar
Permanently deleted user

MethodName() seems to work fine when creating a function, but not when your inside the function, that's probarly why i was so confused

Maybe clear that up smoewhere?

Thanks guys

0

请先登录再写评论。