def InTopLevelFunction(self):
    return len(self._function_stack) == 1 and self.InTopLevel()
Returns true if the current token is within a top level function.
dataset/ETHPy150Open google/closure-linter/closure_linter/statetracker.py/StateTracker.InTopLevelFunction