FuncDeclaration.getLevel

Determine lexical level difference from 'this' to nested function 'fd'. Error if this cannot call fd.

class FuncDeclaration
final
int
getLevel

Return Value

Type: int

0 same level >0 decrease nesting by number -1 increase nesting by 1 (fd is nested within 'this') -2 error

Meta