/third_party/python/Lib/test/test_importlib/source/ |
D | test_finder.py | 49 finder = self.get_finder(root) 50 return self._find(finder, module, loader_only=True) 128 finder = self.machinery.FileFinder('', (self.machinery.SourceFileLoader, 133 loader = self._find(finder, 'mod', loader_only=True) 140 finder = self.machinery.FileFinder('', (self.machinery.SourceFileLoader, 142 finder._path_mtime = 42 143 finder.invalidate_caches() 144 self.assertEqual(finder._path_mtime, -1) 150 finder = self.get_finder(mapping['.root']) 151 found = self._find(finder, 'mod', loader_only=True) [all …]
|
D | test_case_sensitivity.py | 25 def finder(self, path): member in CaseSensitivityTest 40 sensitive_finder = self.finder(sensitive_path) 41 insensitive_finder = self.finder(insensitive_path) 67 def find(self, finder): argument 70 return finder.find_module(self.name) 80 def find(self, finder): argument 81 found = finder.find_spec(self.name)
|
/third_party/rust/crates/memchr/bench/src/memmem/ |
D | imp.rs | 36 let finder = memmem::Finder::new(needle).into_owned(); in prebuilt() localVariable 37 move |h| finder.find(h.as_bytes()).is_some() in prebuilt() 74 let finder = memmem::FinderRev::new(needle).into_owned(); in prebuilt() localVariable 75 move |h| finder.rfind(h.as_bytes()).is_some() in prebuilt() 115 fn finder(needle: &[u8]) -> memmem::Finder<'_> { in finder() function 122 finder(needle.as_bytes()).find(haystack.as_bytes()).is_some() in oneshot() 128 let finder = finder(needle.as_bytes()).into_owned(); in prebuilt() localVariable 129 move |h| finder.find(h.as_bytes()).is_some() in prebuilt() 139 |h, n| finder(n).find(h), in oneshotiter() 144 PrebuiltIter(finder(needle.as_bytes()).into_owned()) in prebuiltiter() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/reduce/ |
D | remove_unused_instruction_test.cpp | 32 RemoveUnusedInstructionReductionOpportunityFinder finder(true); in TEST() local 75 auto ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 111 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 140 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 168 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 195 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 221 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 230 RemoveUnusedInstructionReductionOpportunityFinder finder(true); in TEST() local 261 auto ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 292 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/test/reduce/ |
D | remove_unused_instruction_test.cpp | 32 RemoveUnusedInstructionReductionOpportunityFinder finder(true); in TEST() local 75 auto ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 111 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 140 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 168 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 195 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 221 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 230 RemoveUnusedInstructionReductionOpportunityFinder finder(true); in TEST() local 261 auto ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 292 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() [all …]
|
/third_party/spirv-tools/test/reduce/ |
D | remove_unused_instruction_test.cpp | 32 RemoveUnusedInstructionReductionOpportunityFinder finder(true); in TEST() local 75 auto ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 111 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 140 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 168 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 195 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 221 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 230 RemoveUnusedInstructionReductionOpportunityFinder finder(true); in TEST() local 261 auto ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() 292 ops = finder.GetAvailableOpportunities(context.get(), 0); in TEST() [all …]
|
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/ |
D | ConstantFoldingTest.h | 146 ConstantFinder<T> finder(constant); in constantFoundInAST() 147 mASTRoot->traverse(&finder); in constantFoundInAST() 148 return finder.found(); in constantFoundInAST() 154 ConstantFinder<T> finder(constantVector); in constantVectorFoundInAST() 155 mASTRoot->traverse(&finder); in constantVectorFoundInAST() 156 return finder.found(); in constantVectorFoundInAST() 168 ConstantFinder<T> finder(constantVector, faultTolerance); in constantVectorNearFoundInAST() 169 mASTRoot->traverse(&finder); in constantVectorNearFoundInAST() 170 return finder.found(); in constantVectorNearFoundInAST()
|
/third_party/python/Lib/test/test_importlib/ |
D | test_threaded_import.py | 146 finder = Finder() 147 sys.meta_path.insert(0, finder) 150 self.assertGreater(finder.numcalls, 0) 151 self.assertEqual(finder.x, finder.numcalls) 153 sys.meta_path.remove(finder) 158 finder = Finder() 164 finder.find_spec('') 172 self.assertGreater(finder.numcalls, 0) 173 self.assertEqual(finder.x, finder.numcalls)
|
D | test_abc.py | 356 def finder(cls, spec): member in MetaPathFinderFindModuleTests 366 finder = self.finder(None) 370 found = finder.find_module(name, path) 376 finder = self.finder(spec) 377 found = finder.find_spec('blah', 'blah', None) 381 finder = self.finder(None) 384 found = finder.find_spec(name, path, None) 386 self.assertEqual(name, finder.called_for[0]) 387 self.assertEqual(path, finder.called_for[1]) 392 finder = self.finder(spec) [all …]
|
/third_party/rust/crates/which-rs/src/ |
D | lib.rs | 19 mod finder; module 33 use crate::finder::Finder; 90 let finder = Finder::new(); in which_all() localVariable 92 finder.find(binary_name, env::var_os("PATH"), cwd, binary_checker) in which_all() 101 let finder = Finder::new(); in which_all_global() localVariable 103 finder.find( in which_all_global() 192 let finder = Finder::new(); in which_re_in() localVariable 194 finder.find_re(regex, paths, binary_checker) in which_re_in() 210 let finder = Finder::new(); in which_in_all() localVariable 212 finder.find(binary_name, paths, Some(cwd), binary_checker) in which_in_all() [all …]
|
/third_party/protobuf/src/google/protobuf/ |
D | extension_set_heavy.cc | 327 GeneratedExtensionFinder finder(containing_type); in FindExtension() local 328 if (!FindExtensionInfoFromFieldNumber(wire_type, field, &finder, extension, in FindExtension() 333 DescriptorPoolExtensionFinder finder(ctx->data().pool, ctx->data().factory, in FindExtension() local 335 if (!FindExtensionInfoFromFieldNumber(wire_type, field, &finder, extension, in FindExtension() 377 GeneratedExtensionFinder finder(containing_type); in ParseField() local 378 return ParseField(tag, input, &finder, &skipper); in ParseField() 380 DescriptorPoolExtensionFinder finder(input->GetExtensionPool(), in ParseField() local 383 return ParseField(tag, input, &finder, &skipper); in ParseField() 392 GeneratedExtensionFinder finder(containing_type); in ParseMessageSet() local 393 return ParseMessageSet(input, &finder, &skipper); in ParseMessageSet() [all …]
|
/third_party/python/Lib/test/test_importlib/frozen/ |
D | test_finder.py | 15 finder = self.machinery.FrozenImporter 16 return finder.find_spec(name, path) 52 finder = self.machinery.FrozenImporter 55 return finder.find_module(name, path)
|
/third_party/python/Lib/ |
D | pkgutil.py | 26 def _get_spec(finder, name): argument 30 find_spec = finder.find_spec 32 loader = finder.find_module(name) 355 finder = ImpImporter(self.filename) 356 spec = _get_spec(finder, '__init__') 562 finder = get_importer(dir) 563 if finder is not None: 565 if hasattr(finder, 'find_spec'): 566 spec = finder.find_spec(final_name) 570 elif hasattr(finder, 'find_loader'): [all …]
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/ |
D | FindSymbolNode.cpp | 48 SymbolFinder finder(symbolName); in FindSymbolNode() local 49 root->traverse(&finder); in FindSymbolNode() 50 return finder.getNode(); in FindSymbolNode()
|
/third_party/python/Doc/reference/ |
D | import.rst | 211 single: finder 217 two conceptual objects, :term:`finders <finder>` and :term:`loaders <loader>`. 218 A finder's job is to determine whether it can find the named module using 225 frozen modules. A third default finder searches an :term:`import path` 265 finder objects to :data:`sys.meta_path`, as described below. 278 pair: finder; find_spec 281 searches :data:`sys.meta_path`, which contains a list of meta path finder 286 finder can use any strategy it wants to determine whether it can handle 289 If the meta path finder knows how to handle the named module, it returns a 309 ``mpf.find_spec("foo", None, None)`` on each meta path finder (``mpf``). After [all …]
|
/third_party/rust/crates/memchr/src/memmem/ |
D | mod.rs | 314 finder: Finder<'n>, field 322 finder: Finder<'n>, in new() 324 let prestate = finder.searcher.prefilter_state(); in new() 325 FindIter { haystack, prestate, finder, pos: 0 } in new() 341 finder: self.finder.into_owned(), in into_owned() 355 .finder in next() 362 self.pos = pos + core::cmp::max(1, self.finder.needle().len()); in next() 378 finder: FinderRev<'n>, field 388 finder: FinderRev<'n>, in new() 391 FindRevIter { haystack, finder, pos } in new() [all …]
|
/third_party/rust/crates/regex/src/literal/ |
D | imp.rs | 125 Matcher::Memmem(ref s) => LiteralIter::Single(&s.finder.needle()), in iter() 362 finder: memmem::Finder<'static>, field 369 finder: memmem::Finder::new(pat).into_owned(), in new() 376 self.finder.find(haystack) in find() 384 &text[text.len() - self.len()..] == self.finder.needle() in is_suffix() 388 self.finder.needle().len() in len() 396 self.finder.needle().len() * mem::size_of::<u8>() in approximate_size()
|
/third_party/python/Lib/importlib/ |
D | _bootstrap_external.py | 1328 for name, finder in list(sys.path_importer_cache.items()): 1329 if finder is None: 1331 elif hasattr(finder, 'invalidate_caches'): 1332 finder.invalidate_caches() 1363 finder = sys.path_importer_cache[path] 1365 finder = cls._path_hooks(path) 1366 sys.path_importer_cache[path] = finder 1367 return finder 1370 def _legacy_get_spec(cls, fullname, finder): argument 1373 if hasattr(finder, 'find_loader'): [all …]
|
D | __init__.py | 68 for finder in sys.meta_path: 69 if hasattr(finder, 'invalidate_caches'): 70 finder.invalidate_caches()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/reduce/ |
D | reducer.cpp | 144 std::unique_ptr<ReductionOpportunityFinder> finder) { in AddReductionPass() argument 146 spvtools::MakeUnique<ReductionPass>(target_env_, std::move(finder))); in AddReductionPass() 150 std::unique_ptr<ReductionOpportunityFinder> finder) { in AddCleanupReductionPass() argument 152 spvtools::MakeUnique<ReductionPass>(target_env_, std::move(finder))); in AddCleanupReductionPass()
|
D | reduction_pass.h | 39 std::unique_ptr<ReductionOpportunityFinder> finder) in ReductionPass() argument 41 finder_(std::move(finder)), in ReductionPass()
|
/third_party/skia/third_party/externals/spirv-tools/source/reduce/ |
D | reducer.cpp | 144 std::unique_ptr<ReductionOpportunityFinder> finder) { in AddReductionPass() argument 146 spvtools::MakeUnique<ReductionPass>(target_env_, std::move(finder))); in AddReductionPass() 150 std::unique_ptr<ReductionOpportunityFinder> finder) { in AddCleanupReductionPass() argument 152 spvtools::MakeUnique<ReductionPass>(target_env_, std::move(finder))); in AddCleanupReductionPass()
|
/third_party/spirv-tools/source/reduce/ |
D | reducer.cpp | 144 std::unique_ptr<ReductionOpportunityFinder> finder) { in AddReductionPass() argument 146 spvtools::MakeUnique<ReductionPass>(target_env_, std::move(finder))); in AddReductionPass() 150 std::unique_ptr<ReductionOpportunityFinder> finder) { in AddCleanupReductionPass() argument 152 spvtools::MakeUnique<ReductionPass>(target_env_, std::move(finder))); in AddCleanupReductionPass()
|
D | reduction_pass.h | 39 std::unique_ptr<ReductionOpportunityFinder> finder) in ReductionPass() argument 41 finder_(std::move(finder)), in ReductionPass()
|
/third_party/python/Doc/library/ |
D | modulefinder.rst | 82 finder = ModuleFinder() 83 finder.run_script('bacon.py') 86 for name, mod in finder.modules.items(): 92 print('\n'.join(finder.badmodules.keys()))
|