Home
last modified time | relevance | path

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

1234

/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)
59 non_prefixed = refactor.get_all_fix_names("myfixes")
60 prefixed = refactor.get_all_fix_names("myfixes", False)
61 full_names = refactor.get_fixers_from_package("myfixes")
68 run = refactor._detect_future_features
125 d = refactor._get_headnode_dict([no_head, with_head, simple])
147 self.assertRaises(refactor.FixerError, self.rt, fixers=["no_fixer_cls"])
[all …]
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)
Dtest_all_fixers.py20 self.refactor = support.get_refactorer()
24 self.refactor.refactor_file(filepath)
/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 *
10 from py_utils.refactor import snippet
Dreference.py9 from py_utils.refactor.annotated_symbol import base_symbol
10 from py_utils.refactor import snippet
Dfunction_definition.py7 from py_utils.refactor.annotated_symbol import base_symbol
Dbase_symbol.py5 from py_utils.refactor import snippet
Dclass_definition.py7 from py_utils.refactor.annotated_symbol import base_symbol
Dimport_statement.py10 from py_utils.refactor.annotated_symbol import base_symbol
11 from py_utils.refactor import snippet
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor_util/
Dmove.py9 from py_utils import refactor
24 refactor.Transform(functools.partial(_Update, moves), files_to_update)
32 for import_statement in module.FindAll(refactor.Import):
91 for reference in module.FindAll(refactor.Reference):
/external/python/cpython3/Lib/lib2to3/
Dmain.py14 from . import refactor
26 class StdoutRefactoringTool(refactor.MultiprocessRefactoringTool):
198 for fixname in refactor.get_all_fix_names(fixer_pkg):
220 avail_fixes = set(refactor.get_fixers_from_package(fixer_pkg))
258 rt.refactor(args, options.write, options.doctests_only,
260 except refactor.MultiprocessingUnsupported:
Drefactor.py275 def refactor(self, items, write=False, doctests_only=False): member in RefactoringTool
683 def refactor(self, items, write=False, doctests_only=False, member in MultiprocessRefactoringTool
686 return super(MultiprocessRefactoringTool, self).refactor(
701 super(MultiprocessRefactoringTool, self).refactor(items, write,
/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/skqp/modules/sksg/
DBUILD.gn26 "../..:tests_config", # TODO: refactor to make this nicer
33 "../..:gpu_tool_utils", # TODO: refactor to make this nicer
44 "../..:samples_config", # TODO: refactor to make this nicer
/external/skia/modules/sksg/
DBUILD.gn28 "../..:tests_config", # TODO: refactor to make this nicer
35 "../..:gpu_tool_utils", # TODO: refactor to make this nicer
46 "../..:samples_config", # TODO: refactor to make this nicer
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor/
D__init__.py15 from py_utils.refactor.annotated_symbol import *
16 from py_utils.refactor.module import Module
Dmodule.py5 from py_utils.refactor import annotated_symbol
/external/python/setuptools/setuptools/
Dlib2to3_ex.py12 from lib2to3.refactor import RefactoringTool, get_fixers_from_package
42 r.refactor(files, write=True, doctests_only=True)
/external/llvm/test/CodeGen/X86/
Dvbinop-simplify-bug.ll4 ; DAGCombiner::SimplifyVBinOp in an attempt to refactor some code
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
Dvbinop-simplify-bug.ll4 ; DAGCombiner::SimplifyVBinOp in an attempt to refactor some code
/external/python/cpython3/Lib/distutils/
Dutil.py481 from lib2to3.refactor import RefactoringTool, get_fixers_from_package
495 r.refactor(files, write=True)

1234