Home
last modified time | relevance | path

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

123

/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/jinja/src/jinja2/
Dloaders.py69 def get_source(self, environment, template): member in BaseLoader
113 source, filename, uptodate = self.get_source(environment, name)
174 def get_source(self, environment, template): member in FileSystemLoader
287 def get_source(self, environment, template): member in PackageLoader
365 def get_source(self, environment, template): member in DictLoader
396 def get_source(self, environment, template): member in FunctionLoader
432 def get_source(self, environment, template): member in PrefixLoader
435 return loader.get_source(environment, name)
476 def get_source(self, environment, template): member in ChoiceLoader
479 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/
Dlinecache.py171 get_source = getattr(loader, 'get_source', None)
173 if name and get_source:
174 get_lines = functools.partial(get_source, name)
Dpkgutil.py323 source = self.get_source(fullname)
335 def get_source(self, fullname=None): member in ImpLoader
350 self.source = self._get_delegate().get_source()
Dpyclbr.py170 source = spec.loader.get_source(fullmodule)
/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')
631 def mock_methods(self, *, get_source=False, get_filename=False): argument
633 if get_source:
644 get_source=True, get_filename=True)
657 source_mock_context, _ = self.mock_methods(get_source=True)
674 get_source=True, get_filename=True)
809 self.assertEqual(self.loader.get_source(self.name), expected_source)
814 self.loader.get_source(self.name)
[all …]
/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/llvm-project/llvm/lib/DebugInfo/PDB/DIA/
DDIAInjectedSource.cpp53 if (S_OK != SourceFile->get_source(0, &DataSize, nullptr)) in getCode()
57 if (S_OK != SourceFile->get_source(DataSize, &DataSize, Buffer.data())) in getCode()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/DIA/
DDIAInjectedSource.cpp53 if (S_OK != SourceFile->get_source(0, &DataSize, nullptr)) in getCode()
57 if (S_OK != SourceFile->get_source(DataSize, &DataSize, Buffer.data())) in getCode()
/external/python/cpython3/Lib/importlib/
Dabc.py225 source = self.get_source(fullname)
231 def get_source(self, fullname): member in InspectLoader
277 source = self.get_source(fullname)
D_bootstrap_external.py838 def get_source(self, fullname): member in SourceLoader
1078 def get_source(self, fullname): member in SourcelessFileLoader
1130 def get_source(self, fullname): member in ExtensionFileLoader
1219 def get_source(self, fullname): member in _NamespaceLoader
D_bootstrap.py778 def get_source(cls, fullname): member in BuiltinImporter
857 def get_source(cls, fullname): member in FrozenImporter
/external/python/cpython3/Lib/test/
Dtest_zipimport.py475 self.assertEqual(zi.get_source(TESTPACK), None)
476 self.assertEqual(zi.get_source(mod_path), None)
481 self.assertEqual(loader.get_source(mod_name), None)
529 self.assertEqual(zi.get_source(TESTPACK2), None)
530 self.assertEqual(zi.get_source(mod_path), None)
535 self.assertEqual(loader.get_source(mod_name), None)
752 self.assertRaises(TypeError, z.get_source, None)
760 self.assertRaises(error, z.get_source, 'abc')
Dtest_unparse.py133 def get_source(self, code1, code2=None): member in ASTTestCase
139 code1, code2 = self.get_source(code1, code2)
144 code1, code2 = self.get_source(code1, code2)
/external/python/cpython3/Doc/library/
Dlinecache.rst35 If there is such a loader and it defines a ``get_source`` method,
37 (if ``get_source()`` returns ``None``, then ``''`` is returned).
/external/python/jinja/tests/
Dtest_loader.py70 def get_source(self, environment, template): member in TestLoaders.test_caching.TestLoader
316 source, name, up_to_date = package_dir_loader.get_source(None, template)
340 source, name, up_to_date = package_zip_loader.get_source(None, template)
/external/python/cpython3/Python/
D_warnings.c989 _Py_IDENTIFIER(get_source); in get_source_line()
993 PyObject *get_source; in get_source_line() local
1012 (void)_PyObject_LookupAttrId(loader, &PyId_get_source, &get_source); in get_source_line()
1014 if (!get_source) { in get_source_line()
1019 source = PyObject_CallOneArg(get_source, module_name); in get_source_line()
1020 Py_DECREF(get_source); in get_source_line()
/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()
999 ir_rvalue *cf = get_source(p, TEXENV_SRC_PREVIOUS, 0); in emit_instructions()
/external/pdfium/fxjs/
Dcjs_event.h89 CJS_Result get_source(CJS_Runtime* pRuntime);
Dcjs_event.cpp234 CJS_Result CJS_Event::get_source(CJS_Runtime* pRuntime) { in get_source() function in CJS_Event
/external/python/cpython3/Lib/test/test_importlib/frozen/
Dtest_loader.py200 result = self.machinery.FrozenImporter.get_source('__hello__')
/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

123