Lines Matching defs:self
48 def __init__(self, f: 'FileInfo', m: Match) -> None: argument
53 def name(self) -> str: argument
62 def start(self) -> int: argument
65 def end(self) -> int: argument
68 def line_col(self) -> LineAndColumn: argument
71 def group(self, group: Union[int, str]) -> str: argument
74 def getgroup(self, group: str) -> Optional[str]: argument
79 def log(self, level, fmt, *args) -> None: argument
83 def debug(self, fmt, *args) -> None: argument
86 def info(self, fmt, *args) -> None: argument
89 def warn(self, fmt, *args) -> None: argument
92 def error(self, fmt, *args) -> None: argument
95 def sub(self, original: str, replacement: str) -> str: argument
105 def sanity_check(self) -> None: argument
109 def replacement(self) -> Optional[str]: argument
113 def make_patch(self, replacement: str) -> 'Patch': argument
117 def make_subpatch(self, start: int, end: int, replacement: str) -> 'Patch': argument
120 def make_removal_patch(self) -> 'Patch': argument
124 def append(self, s: str) -> 'Patch': argument
128 def prepend(self, s: str) -> 'Patch': argument
132 def gen_patches(self) -> Iterable['Patch']: argument
143 def contains(self, other: 'FileMatch') -> bool: argument
146 def __repr__(self) -> str: argument
154 def required_identifiers(self) -> Iterable[RequiredIdentifier]: argument
162 def provided_identifiers(self) -> Iterable[RequiredIdentifier]: argument
184 …def group_finditer(self, klass: Type['FileMatch'], group: Union[str, int]) -> Iterable['FileMatch'… argument
191 …def try_group_match(self, klass: Type['FileMatch'], group: Union[str, int]) -> Optional['FileMatch… argument
201 def group_match(self, group: Union[str, int]) -> 'FileMatch': argument
207 def allfiles(self) -> 'FileList': argument
265 def __init__(self) -> None: argument
269 def _matches_of_type(self, klass: Type[Any]) -> Iterable[FileMatch]: argument
272 def matches_of_type(self, t: Type[T]) -> List[T]: argument
277 def find_matches(self, t: Type[T], name: str, group: str='name') -> List[T]: argument
289 def find_match(self, t: Type[T], name: str, group: str='name') -> Optional[T]: argument
298 def reset_index(self) -> None: argument
306 def __init__(self, files: 'FileList', filename: os.PathLike, force:bool=False) -> None: argument
313 def __repr__(self) -> str: argument
316 def filename_matches(self, name: str) -> bool: argument
320 def line_col(self, start: int) -> LineAndColumn: argument
324 def _matches_of_type(self, klass: Type[Any]) -> List[FileMatch]: argument
336 def find_match(self, t: Type[T], name: str, group: str='name') -> Optional[T]: argument
343 def reset_content(self, s:str): argument
349 def load(self) -> None: argument
356 def all_matches(self) -> Iterable[FileMatch]: argument
361 def gen_patches(self, matches: List[FileMatch]) -> None: argument
370 def scan_for_matches(self, class_names: Optional[List[str]]=None) -> Iterable[FileMatch]: argument
384 def apply_patches(self) -> None: argument
388 def get_patched_content(self) -> str: argument
392 def write_to_file(self, f: IO[str]) -> None: argument
395 def write_to_filename(self, filename: os.PathLike) -> None: argument
399 def patch_inplace(self) -> None: argument
404 def show_diff(self) -> None: argument
410 def ref(self): argument
414 def __init__(self): argument
418 def extend(self, *args, **kwargs): argument
421 def __iter__(self): argument
424 def _matches_of_type(self, klass: Type[Any]) -> Iterable[FileMatch]: argument
427 def find_file(self, name: str) -> Optional[FileInfo]: argument
435 def one_pass(self, class_names: List[str]) -> int: argument
451 def patch_content(self, max_passes, class_names: List[str]) -> None: argument