Home
last modified time | relevance | path

Searched refs:make_source_range (Results 1 – 3 of 3) sorted by relevance

/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/
H A D_doc_str.py664 def make_source_range(self, token: str, string: str, lineno: int, offset: int = 0) -> SourceRange: member in PetscDocString
852 begin_sowing_range = self.make_source_range(line, line, self.extent.start.line)
900 self.make_source_range(begin_sowing, line, begin_sowing_range.start.line), expected
917 begin_sowing_range = self.make_source_range(begin_sowing, line, begin_sowing_range.start.line)
930 restloc = self.make_source_range(rest, line, self.extent.start.line)
969 eloc = self.make_source_range('', '', end_line)
993 loc = self.make_source_range(' ' * indent, line, lineno)
1029 loc = self.make_source_range('', '', lineno)
1068 self.make_source_range(name, line, lineno)
1104 eloc = self.make_source_range(':', line, lineno, offset=line.rfind(':'))
[all …]
H A D_doc_section_base.py354 docstring.make_source_range(possible_header, line, loc.start.line)
501 heading_loc = docstring.make_source_range(heading, text, loc.start.line)
598 … Diagnostic.Kind.ERROR, diag, mess, docstring.make_source_range(after, text, loc.start.line)
692 self.items['name'] = (ds.make_source_range(item, line, startline), item)
693 self.items['blurb'].append((ds.make_source_range(rest, line, startline), rest))
698 self.items['blurb'].append((ds.make_source_range(item, line, startline), item))
913 eloc = ds.make_source_range(text[diff_index:], text, loc.end.line)
974 eloc = docstring.make_source_range(pre, descr_item.text, loc.start.line)
1054 (ds.make_source_range(head, line, start_line), head),
1055 [(ds.make_source_range(rest, line, start_line), rest)] if rest else []
[all …]
H A D_doc_section.py97 self.synopsis_items.append((ds.make_source_range(lstrp, line, loc.start.line), line))
176 macro_ident = docstring.make_source_range('M', extent[0], extent.start.line)
338 (ds.make_source_range(name, line, loc.start.line), line, Verdict.NOT_HEADING)
641 docstring.make_source_range(arg, descr_item.text, loc.start.line)
659 … not_found.append((sub, docstring.make_source_range(sub, descr_item.text, loc.start.line)))
1065 … return docstring.make_source_range(substr, loc.raw(), loc.start.line, offset=loc.start.column - 1)