def get_filters(self, origin_scope=None): yield MergedFilter( ParserTreeFilter(parent_context=self.as_context(), origin_scope=origin_scope), GlobalNameFilter(self.as_context(), self.tree_node), ) yield DictFilter(self.sub_modules_dict()) yield DictFilter(self._module_attributes_dict()) yield from self.iter_star_filters()
def get_filters(self, until_position=None, origin_scope=None): yield MergedFilter( MixedParserTreeFilter(parent_context=self, until_position=until_position, origin_scope=origin_scope), self.get_global_filter(), ) for mixed_object in self.mixed_values: yield from mixed_object.get_filters(until_position, origin_scope)
def get_filters(self, until_position=None, origin_scope=None): filters = self._value.get_filters(origin_scope) # Skip the first filter and replace it. next(filters, None) yield MergedFilter( ParserTreeFilter(parent_context=self, until_position=until_position, origin_scope=origin_scope), self.get_global_filter(), ) yield from filters
def get_filters(self, until_position=None, origin_scope=None): filters = self._value.get_filters(origin_scope) # Skip the first filter and replace it. next(filters) yield MergedFilter( ParserTreeFilter(parent_context=self, until_position=until_position, origin_scope=origin_scope), GlobalNameFilter(self, self.tree_node), ) for f in filters: # Python 2... yield f