Home
last modified time | relevance | path

Searched refs:importer (Results 1 – 25 of 83) sorted by relevance

1234

/third_party/python/Lib/test/test_importlib/import_/
Dtest_fromlist.py20 with util.mock_spec('pkg.__init__', 'pkg.module') as importer:
21 with util.import_state(meta_path=[importer]):
27 with util.mock_spec('pkg.__init__', 'pkg.module')as importer:
28 with util.import_state(meta_path=[importer]):
55 with util.mock_spec('module') as importer:
56 with util.import_state(meta_path=[importer]):
62 with util.mock_spec('module') as importer:
63 with util.import_state(meta_path=[importer]):
70 with util.mock_spec('pkg.__init__', 'pkg.module') as importer:
71 with util.import_state(meta_path=[importer]):
[all …]
Dtest_path.py33 importer = util.mock_spec(module)
34 with util.import_state(path_importer_cache={path: importer},
37 self.check_found(found, importer)
44 importer = util.mock_spec(module)
45 with util.import_state(path_importer_cache={path: importer}):
47 self.check_found(found, importer)
53 importer = util.mock_spec(module)
54 with util.import_state(path_importer_cache={path: importer},
63 importer = util.mock_spec(module)
64 hook = util.mock_path_hook(path, importer=importer)
[all …]
Dtest_meta_path.py60 def log_finder(self, importer): argument
61 fxn = getattr(importer, self.finder_name)
72 with self.mock_modules(mod_name) as importer:
73 log, wrapped_call = self.log_finder(importer)
74 setattr(importer, self.finder_name, MethodType(wrapped_call, importer))
75 with util.import_state(meta_path=[importer]):
89 with self.mock_modules(pkg_name+'.__init__', mod_name) as importer:
90 importer.modules[pkg_name].__path__ = path
91 log, wrapped_call = self.log_finder(importer)
92 setattr(importer, self.finder_name, MethodType(wrapped_call, importer))
[all …]
Dtest_caching.py79 with self.create_mock('pkg.__init__', 'pkg.module') as importer:
80 with util.import_state(meta_path=[importer]):
91 with self.create_mock('pkg.__init__', 'pkg.module') as importer:
92 with util.import_state(meta_path=[importer]):
Dtest___package__.py38 with self.mock_modules('pkg.__init__', 'pkg.fake') as importer:
39 with util.import_state(meta_path=[importer]):
/third_party/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_bootstrap_unittest.cc141 Importer importer(&source_tree, &error_collector); in TEST() local
146 generate_test.Run(importer.Import("google/protobuf/descriptor.proto"), in TEST()
149 generate_test.Run(importer.Import("google/protobuf/any.proto"), in TEST()
152 generate_test.Run(importer.Import("google/protobuf/api.proto"), in TEST()
155 generate_test.Run(importer.Import("google/protobuf/duration.proto"), in TEST()
158 generate_test.Run(importer.Import("google/protobuf/empty.proto"), in TEST()
161 generate_test.Run(importer.Import("google/protobuf/field_mask.proto"), in TEST()
164 generate_test.Run(importer.Import("google/protobuf/source_context.proto"), in TEST()
167 generate_test.Run(importer.Import("google/protobuf/struct.proto"), in TEST()
170 generate_test.Run(importer.Import("google/protobuf/timestamp.proto"), in TEST()
[all …]
/third_party/python/Lib/test/test_importlib/
Dtest_lazy.py80 importer = TestingImporter()
81 assert importer.loaded is None
82 with test_util.uncache(importer.module_name):
83 with test_util.import_state(meta_path=[importer]):
84 module = importlib.import_module(importer.module_name)
85 self.assertIsNone(importer.loaded)
87 self.assertEqual(module.__loader__, importer)
88 self.assertIsNotNone(importer.loaded)
89 self.assertEqual(module, importer.loaded)
/third_party/typescript/tests/baselines/reference/
DcheckOtherObjectAssignProperty.symbols1 === tests/cases/conformance/jsdoc/importer.js ===
3 >mod : Symbol(mod, Decl(importer.js, 0, 5))
9 >mod : Symbol(mod, Decl(importer.js, 0, 5))
13 >mod : Symbol(mod, Decl(importer.js, 0, 5))
16 >mod : Symbol(mod, Decl(importer.js, 0, 5))
20 >mod : Symbol(mod, Decl(importer.js, 0, 5))
25 >mod : Symbol(mod, Decl(importer.js, 0, 5))
30 >mod : Symbol(mod, Decl(importer.js, 0, 5))
36 >mod : Symbol(mod, Decl(importer.js, 0, 5))
40 >mod : Symbol(mod, Decl(importer.js, 0, 5))
[all …]
DcheckOtherObjectAssignProperty.errors.txt1 tests/cases/conformance/jsdoc/importer.js(3,5): error TS2339: Property 'other' does not exist on ty…
2 tests/cases/conformance/jsdoc/importer.js(4,5): error TS2339: Property 'prop' does not exist on typ…
3 tests/cases/conformance/jsdoc/importer.js(11,5): error TS2339: Property 'other' does not exist on t…
4 tests/cases/conformance/jsdoc/importer.js(12,5): error TS2339: Property 'prop' does not exist on ty…
5 tests/cases/conformance/jsdoc/importer.js(13,5): error TS2540: Cannot assign to 'bad1' because it i…
6 tests/cases/conformance/jsdoc/importer.js(14,5): error TS2540: Cannot assign to 'bad2' because it i…
7 tests/cases/conformance/jsdoc/importer.js(15,5): error TS2540: Cannot assign to 'bad3' because it i…
10 ==== tests/cases/conformance/jsdoc/importer.js (7 errors) ====
DassignmentToVoidZero2.symbols48 === tests/cases/conformance/salsa/importer.js ===
50 >j : Symbol(j, Decl(importer.js, 0, 8))
51 >k : Symbol(k, Decl(importer.js, 0, 11))
54 >j : Symbol(j, Decl(importer.js, 0, 8))
55 >k : Symbol(k, Decl(importer.js, 0, 11))
DassignmentToVoidZero2.errors.txt6 tests/cases/conformance/salsa/importer.js(1,13): error TS2305: Module '"./assignmentToVoidZero2"' h…
34 ==== tests/cases/conformance/salsa/importer.js (1 errors) ====
/third_party/python/Lib/
Dpkgutil.py137 def iter_importer_modules(importer, prefix=''): argument
138 if not hasattr(importer, 'iter_modules'):
140 return importer.iter_modules(prefix)
144 def _iter_file_finder_modules(importer, prefix=''): argument
145 if importer.path is None or not os.path.isdir(importer.path):
151 filenames = os.listdir(importer.path)
162 path = os.path.join(importer.path, fn)
373 def iter_zipimport_modules(importer, prefix=''): argument
374 dirlist = sorted(zipimport._zip_directory_cache[importer.archive])
375 _prefix = importer.prefix
[all …]
Drunpy.py259 importer = get_importer(path_name)
262 if type(importer).__module__ == 'imp':
263 if type(importer).__name__ == 'NullImporter':
265 if isinstance(importer, type(None)) or is_NullImporter:
/third_party/skia/third_party/externals/libwebp/imageio/
Dwicdec.c274 const WICFormatImporter* importer = NULL; in ReadPictureWithWIC() local
337 for (importer = has_alpha ? kAlphaFormatImporters : kNonAlphaFormatImporters; in ReadPictureWithWIC()
338 hr == S_OK && importer->import != NULL; ++importer) { in ReadPictureWithWIC()
343 MAKE_REFGUID(*importer->pixel_format), in ReadPictureWithWIC()
347 if (importer->import == NULL) hr = E_FAIL; in ReadPictureWithWIC()
350 importer->pixel_format, in ReadPictureWithWIC()
356 stride = (int64_t)importer->bytes_per_pixel * width * sizeof(*rgb); in ReadPictureWithWIC()
376 ok = importer->import(pic, rgb, (int)stride); in ReadPictureWithWIC()
/third_party/python/Modules/
Dmain.c127 PyObject *sys_path0 = NULL, *importer; in pymain_get_importer() local
134 importer = PyImport_GetImporter(sys_path0); in pymain_get_importer()
135 if (importer == NULL) { in pymain_get_importer()
139 if (importer == Py_None) { in pymain_get_importer()
141 Py_DECREF(importer); in pymain_get_importer()
145 Py_DECREF(importer); in pymain_get_importer()
/third_party/python/Lib/test/test_importlib/extension/
Dtest_finder.py15 importer = self.machinery.FileFinder(util.EXTENSIONS.path,
19 return importer.find_spec(fullname)
/third_party/typescript/src/services/
DnavigateTo.ts62 …const importer = checker.getSymbolAtLocation((declaration as ImportClause | ImportSpecifier | Impo… constant
63 const imported = checker.getAliasedSymbol(importer);
64 return importer.escapedName !== imported.escapedName;
/third_party/python/Lib/test/
Dtest_fork1.py26 def importer(): function
33 t = threading.Thread(target=importer)
/third_party/node/test/es-module/
Dtest-esm-imports.mjs4 import importer from '../fixtures/es-modules/pkgimports/importer.js';
7 const { requireImport, importImport } = importer;
/third_party/python/Python/
Dimport.c940 PyObject *importer; in get_path_importer() local
951 importer = PyDict_GetItemWithError(path_importer_cache, p); in get_path_importer()
952 if (importer != NULL || _PyErr_Occurred(tstate)) { in get_path_importer()
953 Py_XINCREF(importer); in get_path_importer()
954 return importer; in get_path_importer()
965 importer = PyObject_CallOneArg(hook, p); in get_path_importer()
966 if (importer != NULL) in get_path_importer()
974 if (importer == NULL) { in get_path_importer()
977 if (PyDict_SetItem(path_importer_cache, p, importer) < 0) { in get_path_importer()
978 Py_DECREF(importer); in get_path_importer()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_bootstrap_unittest.cc156 Importer importer(&source_tree, &error_collector); in TEST() local
158 importer.Import(file_parameter[0] + std::string(".proto")); in TEST()
/third_party/openssl/crypto/rsa/
Drsa_ameth.c739 OSSL_FUNC_keymgmt_import_fn *importer, in rsa_int_export_to() argument
785 rv = importer(to_keydata, selection, params); in rsa_int_export_to()
866 OSSL_FUNC_keymgmt_import_fn *importer, in rsa_pkey_export_to() argument
870 importer, libctx, propq); in rsa_pkey_export_to()
874 OSSL_FUNC_keymgmt_import_fn *importer, in rsa_pss_pkey_export_to() argument
878 importer, libctx, propq); in rsa_pss_pkey_export_to()
/third_party/node/deps/icu-small/source/i18n/
Dcollationruleparser.h125 importer = importerAlias; in setImporter()
189 Importer *importer; variable
/third_party/skia/third_party/externals/icu/source/i18n/
Dcollationruleparser.h125 importer = importerAlias; in setImporter()
189 Importer *importer; variable
/third_party/icu/icu4c/source/i18n/
Dcollationruleparser.h125 importer = importerAlias; in setImporter()
189 Importer *importer; variable

1234