Home
last modified time | relevance | path

Searched refs:refactor (Results 1 – 25 of 142) sorted by relevance

123456

/external/python/cpython2/Lib/lib2to3/tests/
Dtest_refactor.py18 from lib2to3 import refactor, pygram, fixer_base
29 _DEFAULT_FIXERS = refactor.get_fixers_from_package("myfixes")
33 _2TO3_FIXERS = refactor.get_fixers_from_package("lib2to3.fixes")
49 return refactor.RefactoringTool(fixers, options, explicit)
65 non_prefixed = refactor.get_all_fix_names("myfixes")
66 prefixed = refactor.get_all_fix_names("myfixes", False)
67 full_names = refactor.get_fixers_from_package("myfixes")
74 run = refactor._detect_future_features
131 d = refactor._get_headnode_dict([no_head, with_head, simple])
153 self.assertRaises(refactor.FixerError, self.rt, fixers=["no_fixer_cls"])
[all …]
Dtest_all_fixers.py12 from lib2to3 import refactor
19 self.refactor = support.get_refactorer()
23 self.refactor.refactor_file(filepath)
Dsupport.py13 from lib2to3 import pytree, refactor
44 fixers = refactor.get_fixers_from_package(fixer_pkg + ".fixes")
46 return refactor.RefactoringTool(fixers, options, explicit=True)
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_refactor.py14 from lib2to3 import refactor, pygram, fixer_base
23 _DEFAULT_FIXERS = refactor.get_fixers_from_package("myfixes")
27 _2TO3_FIXERS = refactor.get_fixers_from_package("lib2to3.fixes")
43 return refactor.RefactoringTool(fixers, options, explicit)
63 non_prefixed = refactor.get_all_fix_names("myfixes")
64 prefixed = refactor.get_all_fix_names("myfixes", False)
65 full_names = refactor.get_fixers_from_package("myfixes")
72 run = refactor._detect_future_features
129 d = refactor._get_headnode_dict([no_head, with_head, simple])
151 self.assertRaises(refactor.FixerError, self.rt, fixers=["no_fixer_cls"])
[all …]
Dtest_all_fixers.py22 self.refactor = support.get_refactorer()
32 self.refactor.refactor_file(filepath)
34 self.refactor.refactor_file(filepath)
Dsupport.py11 from lib2to3 import pytree, refactor
48 fixers = refactor.get_fixers_from_package(fixer_pkg + ".fixes")
50 return refactor.RefactoringTool(fixers, options, explicit=True)
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor/annotated_symbol/
D__init__.py6 from py_utils.refactor.annotated_symbol.class_definition import *
7 from py_utils.refactor.annotated_symbol.function_definition import *
8 from py_utils.refactor.annotated_symbol.import_statement import *
9 from py_utils.refactor.annotated_symbol.reference import * # pylint: disable=redefined-builtin
10 from py_utils.refactor import snippet
Dreference.py15 from py_utils.refactor.annotated_symbol import base_symbol
16 from py_utils.refactor import snippet
Dfunction_definition.py7 from py_utils.refactor.annotated_symbol import base_symbol
Dclass_definition.py7 from py_utils.refactor.annotated_symbol import base_symbol
Dbase_symbol.py11 from py_utils.refactor import snippet
Dimport_statement.py15 from py_utils.refactor import snippet
16 from py_utils.refactor.annotated_symbol import base_symbol
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor_util/
Dmove.py11 from py_utils import refactor
26 refactor.Transform(functools.partial(_Update, moves), files_to_update)
34 for import_statement in module.FindAll(refactor.Import):
93 for reference in module.FindAll(refactor.Reference):
/external/python/cpython2/Lib/lib2to3/
Dmain.py14 from . import refactor
26 class StdoutRefactoringTool(refactor.MultiprocessRefactoringTool):
199 for fixname in refactor.get_all_fix_names(fixer_pkg):
221 avail_fixes = set(refactor.get_fixers_from_package(fixer_pkg))
259 rt.refactor(args, options.write, options.doctests_only,
261 except refactor.MultiprocessingUnsupported:
Drefactor.py294 def refactor(self, items, write=False, doctests_only=False): member in RefactoringTool
702 def refactor(self, items, write=False, doctests_only=False, member in MultiprocessRefactoringTool
705 return super(MultiprocessRefactoringTool, self).refactor(
720 super(MultiprocessRefactoringTool, self).refactor(items, write,
/external/python/cpython3/Lib/lib2to3/
Dmain.py14 from . import refactor
26 class StdoutRefactoringTool(refactor.MultiprocessRefactoringTool):
200 for fixname in refactor.get_all_fix_names(fixer_pkg):
225 avail_fixes = set(refactor.get_fixers_from_package(fixer_pkg))
263 rt.refactor(args, options.write, options.doctests_only,
265 except refactor.MultiprocessingUnsupported:
Drefactor.py279 def refactor(self, items, write=False, doctests_only=False): member in RefactoringTool
687 def refactor(self, items, write=False, doctests_only=False, member in MultiprocessRefactoringTool
690 return super(MultiprocessRefactoringTool, self).refactor(
705 super(MultiprocessRefactoringTool, self).refactor(items, write,
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor/
D__init__.py15 from py_utils.refactor.annotated_symbol import * # pylint: disable=redefined-builtin
16 from py_utils.refactor.module import Module
Dmodule.py5 from py_utils.refactor import annotated_symbol
/external/angle/build/gn_ast/
Djni_refactor.py87 def refactor(lib_target, jni_target): function
120 refactor(lib_targets[0], jni_targets[0])
132 refactor(lib_target, jni_target)
DREADME.md7 This library was originally created to perform the refactor within
/external/tensorflow/tensorflow/core/example/
DBUILD27 # after stage 4 of the TF build refactor is complete:
60 # after stage 4 of the TF build refactor is complete:
159 # TF refactor: https://github.com/tensorflow/community/pull/179
/external/oss-fuzz/infra/base-images/base-clang/
Dcheckout_build_install_llvm.sh220 /usr/local/bin/clang-refactor \
224 /usr/local/bin/clang-refactor \
/external/arm-trusted-firmware/docs/process/
Dcommit-style.rst40 ``refactor`` type and the ``amu`` scope:
44 refactor(amu): factor out register accesses
69 | ``refactor`` | A code change that neither fixes a bug nor adds a feature |
/external/llvm/test/CodeGen/X86/
Dvbinop-simplify-bug.ll4 ; DAGCombiner::SimplifyVBinOp in an attempt to refactor some code

123456