/third_party/python/Objects/ |
H A D | typeobject.c | 326 type_mro_modified(PyTypeObject *type, PyObject *bases) { in type_mro_modified() argument 363 n = PyTuple_GET_SIZE(bases); in type_mro_modified() 365 PyObject *b = PyTuple_GET_ITEM(bases, i); in type_mro_modified() 400 PyObject *bases = type->tp_bases; in assign_version_tag() local 401 Py_ssize_t n = PyTuple_GET_SIZE(bases); in assign_version_tag() 403 PyObject *b = PyTuple_GET_ITEM(bases, i); in assign_version_tag() 646 static int add_all_subclasses(PyTypeObject *type, PyObject *bases); 648 static void remove_all_subclasses(PyTypeObject *type, PyObject *bases); 1716 No duplicate bases. 1763 assuming that the bases tuple in check_duplicates() 1927 PyObject *bases = type->tp_bases; mro_implementation() local 2173 best_base(PyObject *bases) best_base() argument 2485 _PyType_CalculateMetaclass(PyTypeObject *metatype, PyObject *bases) _PyType_CalculateMetaclass() argument 2530 PyObject *bases; global() member 3296 PyObject *name, *bases, *orig_dict; type_new() local 3371 PyType_FromSpecWithBases(PyType_Spec *spec, PyObject *bases) PyType_FromSpecWithBases() argument 3377 PyType_FromModuleAndSpec(PyObject *module, PyType_Spec *spec, PyObject *bases) PyType_FromModuleAndSpec() argument 4195 PyObject *bases; merge_class_dict() local 6120 PyObject *bases = type->tp_bases; type_ready_set_bases() local 6350 PyObject *bases = type->tp_bases; type_ready_add_subclasses() local 6561 add_all_subclasses(PyTypeObject *type, PyObject *bases) add_all_subclasses() argument 6603 remove_all_subclasses(PyTypeObject *type, PyObject *bases) remove_all_subclasses() argument [all...] |
H A D | abstract.c | 2502 PyObject *bases; in abstract_get_bases() local 2504 (void)_PyObject_LookupAttr(cls, &_Py_ID(__bases__), &bases); in abstract_get_bases() 2505 if (bases != NULL && !PyTuple_Check(bases)) { in abstract_get_bases() 2506 Py_DECREF(bases); in abstract_get_bases() 2509 return bases; in abstract_get_bases() 2516 PyObject *bases = NULL; in abstract_issubclass() local 2522 Py_XDECREF(bases); /* See below comment */ in abstract_issubclass() 2525 /* Use XSETREF to drop bases reference *after* finishing with in abstract_issubclass() 2526 derived; bases migh in abstract_issubclass() 2567 PyObject *bases = abstract_get_bases(cls); check_class() local [all...] |
/third_party/node/tools/inspector_protocol/jinja2/ |
H A D | _compat.py | 85 def with_metaclass(meta, *bases): 92 return meta(name, bases, d)
|
H A D | nodes.py | 64 def __new__(cls, name, bases, d): 67 storage.extend(getattr(bases[0], attr, ())) 69 assert len(bases) == 1, 'multiple inheritance not allowed' 73 return type.__new__(cls, name, bases, d)
|
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/dentry/ |
H A D | dentry_meta_file_clouddisk_test.cpp | 245 std::vector<MetaBase> bases; in HWTEST_F() local 246 bases.push_back(mBase1); in HWTEST_F() 247 int32_t ret = mFile.LoadChildren(bases); in HWTEST_F() 506 std::vector<MetaBase> bases; in HWTEST_F() local 507 bases.push_back(mBase1); in HWTEST_F() 508 int32_t ret = mFile.LoadChildren(bases); in HWTEST_F()
|
H A D | dentry_meta_file_test.cpp | 280 std::vector<MetaBase> bases; in HWTEST_F() local 281 int ret = mFile.LoadChildren(bases); in HWTEST_F() 301 std::vector<MetaBase> bases; in HWTEST_F() local 302 int ret = mFile.LoadChildren(bases); in HWTEST_F()
|
/third_party/python/Lib/test/ |
H A D | test_isinstance.py | 15 # class's bases is masked. This was actually a bug in Python 2.2 and 156 def __init__(self, bases): 157 self.bases = bases 160 return self.bases 175 AbstractSuper = AbstractClass(bases=()) 177 AbstractChild = AbstractClass(bases=(AbstractSuper,)) 295 # peeking in the bases tuple, in the single inheritance case.
|
H A D | test_shelve.py | 204 bases = (TestShelveInMemBase, mapping_tests.BasicTestMappingProtocol) variable in TestShelveFileBase 206 globals()[name] = type(name, bases, 208 bases = (TestShelveFileBase, mapping_tests.BasicTestMappingProtocol) variable in TestShelveFileBase 213 globals()[name] = type(name, bases,
|
/third_party/python/Lib/ |
H A D | typing.py | 452 def __mro_entries__(self, bases): 1268 def __mro_entries__(self, bases): 1270 if self.__origin__ not in bases: 1272 i = bases.index(self) 1273 for b in bases[i+1:]: 1522 def __mro_entries__(self, bases): 1527 return super().__mro_entries__(bases) 1529 if Protocol in bases: 1531 i = bases.index(self) 1532 for b in bases[ [all...] |
H A D | abc.py | 105 def __new__(mcls, name, bases, namespace, /, **kwargs): 106 cls = super().__new__(mcls, name, bases, namespace, **kwargs)
|
/third_party/python/Modules/ |
H A D | _abc.c | 304 PyObject *ns = NULL, *items = NULL, *bases = NULL; // Py_XDECREF()ed on error. in compute_abstract_methods() local 351 bases = PyObject_GetAttr(self, &_Py_ID(__bases__)); in compute_abstract_methods() 352 if (!bases) { in compute_abstract_methods() 355 if (!PyTuple_Check(bases)) { in compute_abstract_methods() 360 for (Py_ssize_t pos = 0; pos < PyTuple_GET_SIZE(bases); pos++) { in compute_abstract_methods() 361 PyObject *item = PyTuple_GET_ITEM(bases, pos); // borrowed in compute_abstract_methods() 414 Py_XDECREF(bases); in compute_abstract_methods()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
H A D | fd4_gmem.c | 61 struct pipe_surface **bufs, const uint32_t *bases, uint32_t bin_w, in emit_mrt() 94 if (bases) in emit_mrt() 95 bases++; in emit_mrt() 114 if (bases) { in emit_mrt() 115 base = bases[i]; in emit_mrt() 120 } else if ((i < nr_bufs) && bases) { in emit_mrt() 121 base = bases[i]; in emit_mrt() 317 emit_mem2gmem_surf(struct fd_batch *batch, const uint32_t *bases, in emit_mem2gmem_surf() argument 323 emit_mrt(ring, nr_bufs, bufs, bases, bin_w, false); in emit_mem2gmem_surf() 60 emit_mrt(struct fd_ringbuffer *ring, unsigned nr_bufs, struct pipe_surface **bufs, const uint32_t *bases, uint32_t bin_w, bool decode_srgb) emit_mrt() argument
|
/kernel/linux/linux-5.10/arch/x86/boot/ |
H A D | early_serial_console.c | 77 static const int bases[] = { 0x3f8, 0x2f8 }; in parse_earlyprintk() local 86 port = bases[idx]; in parse_earlyprintk()
|
/kernel/linux/linux-6.6/arch/x86/boot/ |
H A D | early_serial_console.c | 77 static const int bases[] = { 0x3f8, 0x2f8 }; in parse_earlyprintk() local 86 port = bases[idx]; in parse_earlyprintk()
|
/third_party/jinja2/ |
H A D | _compat.py | 92 def with_metaclass(meta, *bases): 99 return meta(name, bases, d)
|
/third_party/node/deps/v8/third_party/jinja2/ |
H A D | _compat.py | 92 def with_metaclass(meta, *bases): 99 return meta(name, bases, d)
|
H A D | nodes.py | 49 def __new__(mcs, name, bases, d): 52 storage.extend(getattr(bases[0], attr, ())) 54 assert len(bases) == 1, "multiple inheritance not allowed" 58 return type.__new__(mcs, name, bases, d)
|
/third_party/skia/third_party/externals/jinja2/ |
H A D | _compat.py | 92 def with_metaclass(meta, *bases): 99 return meta(name, bases, d)
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
H A D | fd3_gmem.c | 60 struct pipe_surface **bufs, const uint32_t *bases, uint32_t bin_w, in emit_mrt() 93 if (bases) in emit_mrt() 94 bases++; in emit_mrt() 111 if (bases) { in emit_mrt() 112 base = bases[i]; in emit_mrt() 118 } else if (i < nr_bufs && bases) { in emit_mrt() 119 base = bases[i]; in emit_mrt() 504 emit_mem2gmem_surf(struct fd_batch *batch, const uint32_t bases[], in emit_mem2gmem_surf() argument 517 emit_mrt(ring, bufs, psurf, bases, bin_w, false); in emit_mem2gmem_surf() 532 OUT_RING(ring, A3XX_RB_DEPTH_INFO_DEPTH_BASE(bases[ in emit_mem2gmem_surf() 59 emit_mrt(struct fd_ringbuffer *ring, unsigned nr_bufs, struct pipe_surface **bufs, const uint32_t *bases, uint32_t bin_w, bool decode_srgb) emit_mrt() argument [all...] |
/third_party/python/Python/ |
H A D | bltinmodule.c | 17 update_bases(PyObject *bases, PyObject *const *args, Py_ssize_t nargs) in update_bases() argument 21 assert(PyTuple_Check(bases)); in update_bases() 46 new_base = PyObject_CallOneArg(meth, bases); in update_bases() 59 copy previously encountered bases. */ in update_bases() 78 return bases; in update_bases() 96 PyObject *mkw = NULL, *bases = NULL; in builtin___build_class__() local 120 bases = update_bases(orig_bases, args + 2, nargs - 2); in builtin___build_class__() 121 if (bases == NULL) { in builtin___build_class__() 150 /* if there are no bases, use type: */ in builtin___build_class__() 151 if (PyTuple_GET_SIZE(bases) in builtin___build_class__() [all...] |
/third_party/python/Tools/demo/ |
H A D | eiffel.py | 14 def __new__(meta, name, bases, dict): 17 meta, name, bases, dict)
|
/third_party/googletest/googlemock/scripts/generator/cpp/ |
H A D | ast.py | 320 def __init__(self, start, end, name, bases, templated_types, body, namespace): 322 self.bases = bases 327 return self.bases is None and self.body is None 337 if self.bases: 338 for token_list in self.bases: 339 # TODO(nnorwitz): bases are tokens, do name comparison. 350 suffix = '%s, %s, %s' % (name, self.bases, self.body) 1500 bases = [] 1521 bases [all...] |
/third_party/protobuf/python/google/protobuf/internal/ |
H A D | _parameterized.py | 360 def __new__(mcs, class_name, bases, dct): 369 return type.__new__(mcs, class_name, bases, dct)
|
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_scaler.c | 154 static unsigned int bases[] = { in scaler_set_src_base() local 162 scaler_write(src_buf->dma_addr[i], bases[i]); in scaler_set_src_base() 217 static unsigned int bases[] = { in scaler_set_dst_base() local 225 scaler_write(dst_buf->dma_addr[i], bases[i]); in scaler_set_dst_base()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_scaler.c | 155 static unsigned int bases[] = { in scaler_set_src_base() local 163 scaler_write(src_buf->dma_addr[i], bases[i]); in scaler_set_src_base() 218 static unsigned int bases[] = { in scaler_set_dst_base() local 226 scaler_write(dst_buf->dma_addr[i], bases[i]); in scaler_set_dst_base()
|