def all_needles(self): return iterable_per_line( with_start_and_end( split_into_lines( chain( self.file_needles("function", "functions"), self.file_needles("function_ref", "function_refs"), self.file_needles("var", "variables"), self.file_needles("var_ref", "variable_refs"), self.file_needles("type", "types"), self.file_needles("type_ref", "type_refs"), self.file_needles("module", "modules"), self.file_needles("module_ref", "module_refs"), self.file_needles("module_alias_ref", "module_aliases"), self.alias_needles(), self.module_use_needles(), self.file_needles("extern_ref", "unknown_refs"), self.impl_needles(), self.fn_impls_needles(), self.inherit_needles(self.tree_index.super_traits, "derived"), self.inherit_needles(self.tree_index.sub_traits, "bases"), self.call_needles(self.tree_index.callees, "callers"), ) ) ) )
def all_needles(self): return iterable_per_line( with_start_and_end( split_into_lines( chain( self.file_needles('function', 'functions'), self.file_needles('function_ref', 'function_refs'), self.file_needles('var', 'variables'), self.file_needles('var_ref', 'variable_refs'), self.file_needles('type', 'types'), self.file_needles('type_ref', 'type_refs'), self.file_needles('module', 'modules'), self.file_needles('module_ref', 'module_refs'), self.file_needles('module_alias_ref', 'module_aliases'), self.alias_needles(), self.module_use_needles(), self.file_needles('extern_ref', 'unknown_refs'), self.impl_needles(), self.fn_impls_needles(), self.inherit_needles(self.tree_index.super_traits, 'derived'), self.inherit_needles(self.tree_index.sub_traits, 'bases'), self.call_needles(self.tree_index.callees, 'callers'), ))))
def needles_by_line(self): return iterable_per_line( with_start_and_end( split_into_lines( self.visitor.needles ) ) )
def needles_by_line(self): def all_needles(): for line in self.lines: row, (start, end) = line.loc typ = line.type if line.kind == 'use': typ += '_ref' yield self.build_needle(typ, row, start, end, line.name, line.sym) return iterable_per_line_sorted(with_start_and_end(all_needles()))
def all_needles(self): return iterable_per_line(with_start_and_end(split_into_lines(chain( self.file_needles('function', 'functions'), self.file_needles('function_ref', 'function_refs'), self.file_needles('var', 'variables'), self.file_needles('var_ref', 'variable_refs'), self.file_needles('type', 'types'), self.file_needles('type_ref', 'type_refs'), self.file_needles('module', 'modules'), self.file_needles('module_ref', 'module_refs'), self.file_needles('module_alias_ref', 'module_aliases'), self.alias_needles(), self.module_use_needles(), self.file_needles('extern_ref', 'unknown_refs'), self.impl_needles(), self.fn_impls_needles(), self.inherit_needles(self.tree_index.super_traits, 'derived'), self.inherit_needles(self.tree_index.sub_traits, 'bases'), self.call_needles(self.tree_index.callees, 'callers'), ))))
def all_needles(condensed, overrides, overriddens, parents, children): return iterable_per_line(with_start_and_end(split_into_lines(chain( needles(condensed, 'function', include_typeless_qualname=True), ref_needles(condensed, 'function', include_typeless_qualname=True), # Classes: needles(condensed, 'type'), ref_needles(condensed, 'type'), # Typedefs: needles(condensed, 'type', kind='typedef'), ref_needles(condensed, 'type', subkind='typedef'), needles(condensed, 'var', kind='variable'), ref_needles(condensed, 'var', subkind='variable'), needles(condensed, 'namespace'), ref_needles(condensed, 'namespace'), needles(condensed, 'namespace_alias'), ref_needles(condensed, 'namespace_alias'), macro_needles(condensed), ref_needles(condensed, 'macro', include_qualname=False), decl_needles(condensed, 'var', subkind='variable'), decl_needles(condensed, 'function', include_typeless_qualname=True), decl_needles(condensed, 'type'), warning_needles(condensed), warning_opt_needles(condensed), caller_needles(condensed, overriddens), overrides_needles(condensed, overrides), overridden_needles(condensed, overriddens), member_needles(condensed), inheritance_needles(condensed, parents, children), ))))
def needles_by_line(self): return iterable_per_line( with_start_and_end(split_into_lines(self.idl.needles if self.idl else [])))
def needles_by_line(self): return iterable_per_line( with_start_and_end(split_into_lines(self.visitor.needles)))