class documentation

class _FunctionState(object):

View In Hierarchy

Tracks current function name and the number of lines in its body.

Method __init__ Undocumented
Method Begin Start analyzing function body.
Method Check Report if too many lines in function body.
Method Count Count line in current function body.
Method End Stop analyzing function body.
Instance Variable current_function Undocumented
Instance Variable in_a_function Undocumented
Instance Variable lines_in_function Undocumented
Constant _NORMAL_TRIGGER Undocumented
Constant _TEST_TRIGGER Undocumented
def __init__(self):

Undocumented

def Begin(self, function_name):

Start analyzing function body.

Args:
function_name: The name of the function being tracked.
def Check(self, error, filename, linenum):

Report if too many lines in function body.

Args:
error: The function to call with any errors found. filename: The name of the current file. linenum: The number of the line to check.
def Count(self):

Count line in current function body.

def End(self):

Stop analyzing function body.

current_function =

Undocumented

in_a_function: bool =

Undocumented

lines_in_function: int =

Undocumented

_NORMAL_TRIGGER: int =

Undocumented

Value
250
_TEST_TRIGGER: int =

Undocumented

Value
400