Member predicate Function::Function::getEnclosingScope

The scope in which this function occurs, will be a class for a method, another function for nested functions, generator expressions or comprehensions, or a module for a plain function.

Scope getEnclosingScope()