Home
last modified time | relevance | path

Searched refs:get_source (Results 1 – 25 of 41) sorted by relevance

12

/external/libchrome/third_party/jinja2/
Dloaders.py70 def get_source(self, environment, template): member in BaseLoader
113 source, filename, uptodate = self.get_source(environment, name)
167 def get_source(self, environment, template): member in FileSystemLoader
231 def get_source(self, environment, template): member in PackageLoader
282 def get_source(self, environment, template): member in DictLoader
313 def get_source(self, environment, template): member in FunctionLoader
349 def get_source(self, environment, template): member in PrefixLoader
352 return loader.get_source(environment, name)
393 def get_source(self, environment, template): member in ChoiceLoader
396 return loader.get_source(environment, template)
/external/python/cpython2/Lib/
Dlinecache.py92 get_source = getattr(loader, 'get_source', None)
94 if name and get_source:
96 data = get_source(name)
Dpkgutil.py280 source = self.get_source(fullname)
292 def get_source(self, fullname=None): member in ImpLoader
308 self.source = self._get_delegate().get_source()
/external/python/cpython3/Lib/test/test_importlib/
Dtest_abc.py260 def get_source(self, fullname): member in InspectLoader
261 return super().get_source(fullname)
277 self.ins.get_source('blah')
618 def mock_methods(self, *, get_source=False, get_filename=False): argument
620 if get_source:
631 get_source=True, get_filename=True)
644 source_mock_context, _ = self.mock_methods(get_source=True)
661 get_source=True, get_filename=True)
796 self.assertEqual(self.loader.get_source(self.name), expected_source)
801 self.loader.get_source(self.name)
[all …]
/external/python/cpython3/Lib/
Dlinecache.py171 get_source = getattr(loader, 'get_source', None)
173 if name and get_source:
174 get_lines = functools.partial(get_source, name)
Dpkgutil.py322 source = self.get_source(fullname)
334 def get_source(self, fullname=None): member in ImpLoader
349 self.source = self._get_delegate().get_source()
Dpyclbr.py168 source = spec.loader.get_source(fullmodule)
/external/python/cpython2/Lib/test/
Dtest_zipimport.py230 self.assertEqual(zi.get_source(TESTPACK), None)
231 self.assertEqual(zi.get_source(mod_path), None)
235 self.assertEqual(loader.get_source(mod_name), None)
274 self.assertEqual(zi.get_source(TESTPACK2), None)
275 self.assertEqual(zi.get_source(mod_path), None)
279 self.assertEqual(loader.get_source(mod_name), None)
447 self.assertRaises(TypeError, z.get_source, None)
455 self.assertRaises(error, z.get_source, 'abc')
/external/python/cpython3/Lib/importlib/
Dabc.py224 source = self.get_source(fullname)
230 def get_source(self, fullname): member in InspectLoader
276 source = self.get_source(fullname)
D_bootstrap_external.py775 def get_source(self, fullname): member in SourceLoader
1012 def get_source(self, fullname): member in SourcelessFileLoader
1064 def get_source(self, fullname): member in ExtensionFileLoader
1150 def get_source(self, fullname): member in _NamespaceLoader
D_bootstrap.py761 def get_source(cls, fullname): member in BuiltinImporter
838 def get_source(cls, fullname): member in FrozenImporter
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/PDB/DIA/
DDIAInjectedSource.cpp54 if (S_OK != SourceFile->get_source(0, &DataSize, nullptr)) in getCode()
58 if (S_OK != SourceFile->get_source(DataSize, &DataSize, Buffer.data())) in getCode()
/external/python/cpython3/Lib/test/
Dtest_zipimport.py457 self.assertEqual(zi.get_source(TESTPACK), None)
458 self.assertEqual(zi.get_source(mod_path), None)
463 self.assertEqual(loader.get_source(mod_name), None)
515 self.assertEqual(zi.get_source(TESTPACK2), None)
516 self.assertEqual(zi.get_source(mod_path), None)
521 self.assertEqual(loader.get_source(mod_name), None)
697 self.assertRaises(ValueError, zi.get_source, 'foo')
715 self.assertRaises(TypeError, zi.get_source, 'bar')
779 self.assertRaises(TypeError, z.get_source, None)
787 self.assertRaises(error, z.get_source, 'abc')
/external/python/cpython3/Python/
D_warnings.c880 _Py_IDENTIFIER(get_source); in get_source_line()
885 PyObject *get_source; in get_source_line() local
904 (void)_PyObject_LookupAttrId(loader, &PyId_get_source, &get_source); in get_source_line()
906 if (!get_source) { in get_source_line()
911 source = PyObject_CallFunctionObjArgs(get_source, module_name, NULL); in get_source_line()
912 Py_DECREF(get_source); in get_source_line()
/external/v8/tools/testrunner/objects/
Dtestcase.py248 source = source or self.get_source()
257 def get_source(self): member in TestCase
/external/v8/tools/testrunner/local/
Dverbose.py81 print test.get_source()
/external/python/cpython3/Lib/test/test_importlib/builtin/
Dtest_loader.py85 result = self.machinery.BuiltinImporter.get_source(util.BUILTINS.good_name)
/external/mesa3d/src/mesa/main/
Dff_fragment_shader.cpp382 get_source(texenv_fragment_program *p, in get_source() function
443 src = get_source(p, source, unit); in emit_combine_source()
600 return get_source(p, TEXENV_SRC_PREVIOUS, 0); in emit_texenv()
1001 ir_rvalue *cf = get_source(p, TEXENV_SRC_PREVIOUS, 0); in emit_instructions()
/external/pdfium/fxjs/
Dcjs_event.h59 CJS_Return get_source(CJS_Runtime* pRuntime);
Dcjs_event.cpp230 CJS_Return event::get_source(CJS_Runtime* pRuntime) { in get_source() function in event
/external/python/cpython3/Lib/test/test_importlib/frozen/
Dtest_loader.py200 result = self.machinery.FrozenImporter.get_source('__hello__')
/external/mesa3d/src/mesa/state_tracker/
Dst_atifs_to_tgsi.c126 get_source(struct st_translate *t, GLuint src_type) in get_source() function
154 struct ureg_src src = get_source(t, srcReg->Index); in prepare_argument()
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a2.rst68 Fix an assertion failure in `zipimporter.get_source()` in case of a bad
242 of the received loader's get_source() has a bad splitlines() method. Patch
/external/python/cpython3/Lib/test/test_importlib/source/
Dtest_file_loader.py40 def get_source(self, _): return 'attr = 42' member in SimpleTest.test_load_module_API.Tester
53 def get_source(self, _): pass member in SimpleTest.test_get_filename_API.Tester
/external/python/cpython3/Doc/library/
Dzipimport.rst106 .. method:: get_source(fullname)

12