def __init__(self, scope, direct_visitors, config): ASTWalker.__init__(self, self) BufferedWriter.__init__(self, config["output"], self.walk) self.mod_scope = scope self.curr_scope = None self.lib_name = scope.generate_variable("prambanan", False) self.input_lines = config["input_lines"] self.direct_visitors = direct_visitors self.input_name = config.get("input_name", "") self.input_path = config.get("input_path", self.input_name) self.modname = config.get("modname", "") self.warnings = config.get("warnings", {}) self.bare = config.get("bare", False) self.translator = config.get("translator", gettext.NullTranslations().gettext) self.native = config.get("native", None) self.use_throw_helper = config.get("use_throw_helper", True) self.overridden_types = config.get("overridden_types", {}) self.export_map = {} self.public_identifiers = [] self.translated_names = {} self.util_names = {}
def __init__(self, linter=None): """checker instances should have the linter as argument linter is an object implementing ILinter """ ASTWalker.__init__(self, self) self.name = self.name.lower() OptionsProviderMixIn.__init__(self) self.linter = linter
def __init__(self, linter=None): """checker instances should have the linter as argument linter is an object implementing ILinter """ ASTWalker.__init__(self, self) self.name = self.name.lower() OptionsProviderMixIn.__init__(self) self.linter = linter # messages that are active for the current check self.active_msgs = set()
def __init__(self, modname, node): ASTWalker.__init__(self, self) self.node = node self.stack = [] self.scope = None self.current_scope = None self.root_scope = None self.modname = modname self.visit_if = self.visit_body self.visit_excepthandler = self.visit_body
def __init__(self, modname): ASTWalker.__init__(self, self) self.imports = [] self.modname = modname
def __init__(self): ASTWalker.__init__(self, self) self.templates = []