class documentation

Track which target we are processing at any given time.

Method __init__ Undocumented
Method class_scope Undocumented
Method current_full_target Return the current target (may be a class).
Method current_function_name Return the current function's short name if it exists
Method current_module_id Undocumented
Method current_target Return the current target (non-class; for a class return enclosing module).
Method current_type_name Return the current type's short name if it exists
Method enter_class Enter a class target scope.
Method function_scope Undocumented
Method leave_class Leave a class target scope.
Method module_scope Undocumented
Method save Produce a saved scope that can be entered with saved_scope()
Method saved_scope Undocumented
Instance Variable classes Undocumented
Instance Variable function Undocumented
Instance Variable ignored Undocumented
Instance Variable module Undocumented
def __init__(self): (source)

Undocumented

@contextmanager
def class_scope(self, info: TypeInfo) -> Iterator[None]: (source)

Undocumented

def current_full_target(self) -> str: (source)

Return the current target (may be a class).

def current_function_name(self) -> str|None: (source)

Return the current function's short name if it exists

def current_module_id(self) -> str: (source)

Undocumented

def current_target(self) -> str: (source)

Return the current target (non-class; for a class return enclosing module).

def current_type_name(self) -> str|None: (source)

Return the current type's short name if it exists

def enter_class(self, info: TypeInfo): (source)

Enter a class target scope.

@contextmanager
def function_scope(self, fdef: FuncBase) -> Iterator[None]: (source)

Undocumented

def leave_class(self): (source)

Leave a class target scope.

@contextmanager
def module_scope(self, prefix: str) -> Iterator[None]: (source)

Undocumented

def save(self) -> SavedScope: (source)

Produce a saved scope that can be entered with saved_scope()

@contextmanager
def saved_scope(self, saved: SavedScope) -> Iterator[None]: (source)

Undocumented

Undocumented

function = (source)

Undocumented

Undocumented

Undocumented