Home
last modified time | relevance | path

Searched refs:_fields (Results 1 – 25 of 44) sorted by relevance

12

/third_party/protobuf/python/google/protobuf/internal/
Dpython_message.py512 self._fields = {}
554 self._fields[field] = copy
564 self._fields[field] = copy
656 field_value = self._fields.get(field)
667 field_value = self._fields.setdefault(field, field_value)
702 return self._fields.get(field, default_value)
718 self._fields.pop(field, None)
720 self._fields[field] = new_value
758 field_value = self._fields.get(field)
769 field_value = self._fields.setdefault(field, field_value)
[all …]
Dextension_dict.py83 result = self._extended_message._fields.get(extension_handle)
114 result = self._extended_message._fields.setdefault(
165 self._extended_message._fields[extension_handle] = (
202 if extension_handle not in self._extended_message._fields:
206 return bool(self._extended_message._fields.get(extension_handle))
209 value = self._extended_message._fields.get(extension_handle)
Dproto_builder_test.py57 self._fields = dict(self.ordered_fields)
62 self._fields,
85 self._fields,
89 self._fields,
/third_party/node/deps/undici/src/node_modules/busboy/lib/types/
Durlencoded.js42 this._fields = 0;
57 if (this._fields >= this.fieldsLimit)
117 if (++this._fields >= this.fieldsLimit) {
181 if (++this._fields >= this.fieldsLimit) {
/third_party/lzma/CPP/7zip/UI/Console/
DList.cpp363 CObjectVector<CFieldInfo> _fields; member in CFieldPrinter
376 void Clear() { _fields.Clear(); LinesString.Empty(); } in Clear()
394 CFieldInfo &f = _fields.AddNew(); in Init()
452 _fields.Add(f); in AddProp()
486 FOR_VECTOR (i, _fields) in PrintTitle()
488 const CFieldInfo &f = _fields[i]; in PrintTitle()
556 FOR_VECTOR (i, _fields) in PrintItemInfo()
558 const CFieldInfo &f = _fields[i]; in PrintItemInfo()
739 FOR_VECTOR (i, _fields) in PrintSum()
741 const CFieldInfo &f = _fields[i]; in PrintSum()
/third_party/node/deps/v8/tools/
Dgen-inlining-tests.py526 emptyflags = flagtuple(*((False,) * len(flagtuple._fields)))
533 for bools in booltuples(len(flagtuple._fields))
/third_party/python/Lib/test/
Dtest_c_locale_coercion.py98 _fields = "fsencoding stdin_info stdout_info stderr_info lang lc_ctype lc_all" variable
99 _EncodingDetails = namedtuple("EncodingDetails", _fields)
Dtest_collections.py317 self.assertEqual(Point._fields, ('x', 'y'))
333 self.assertNotIn("u'", repr(nt._fields))
335 self.assertNotIn("u'", repr(nt._fields))
456 self.assertEqual(namedtuple('NT', spec, rename=True)._fields, renamed)
479 self.assertEqual(p._fields, ('x', 'y')) # test _fields attribute
529 self.assertEqual(Zero()._fields, ())
538 self.assertEqual(Dot(1)._fields, ('d',))
559 self.assertEqual(b._fields, tuple(names))
569 self.assertEqual(p._fields, q._fields)
577 self.assertEqual(p._fields, q._fields)
[all …]
Dtest_ast.py24 if t._fields is None:
26 for f in t._fields:
260 if not isinstance(ast_node, ast.AST) or ast_node._fields is None:
266 for name in ast_node._fields:
276 self.assertEqual(ast_node._fields, ast_node.__match_args__)
280 self.assertEqual(x._fields, ())
375 self.assertEqual(type(x._fields), tuple)
379 self.assertEqual(x._fields, ('posonlyargs', 'args', 'vararg', 'kwonlyargs',
393 x._fields = 666
394 self.assertEqual(x._fields, 666)
[all …]
Dtest_pydoc.py1115 _fields = None variable in TestDescriptions.test_field_order_for_named_tuples.NonIterableFields
1118 _fields = [[]] variable in TestDescriptions.test_field_order_for_named_tuples.NonHashableFields
Dtest_typing.py4001 self.assertEqual(Emp._fields, ('name', 'id'))
4020 self.assertEqual(CoolEmployee._fields, ('name', 'cool'))
4034 self.assertEqual(CoolEmployeeWithDefault._fields, ('name', 'cool'))
4053 def _fields(self): member in NamedTupleTests.test_annotation_usage_with_methods.XMethBad
4075 self.assertEqual(LocalEmployee._fields, ('name', 'age'))
4085 self.assertEqual(NT._fields, ('cls', 'self', 'typename', 'fields'))
4100 self.assertEqual(struct._fields, ())
4172 …TD = TypedDict("TD", cls=type, self=object, typename=str, _typename=int, fields=list, _fields=dict)
4175 …a = TD(cls=str, self=42, typename='foo', _typename=53, fields=[('bar', tuple)], _fields={'baz', se…
4194 TypedDict('Emp', _fields={'name': str, 'id': int})
/third_party/python/Tools/peg_generator/pegen/
Dast_dump.py24 for name in node._fields:
/third_party/python/Lib/
Dast.py136 for name in node._fields:
252 for field in node._fields:
540 if key not in cls._fields:
543 pos = cls._fields.index(key)
551 _fields = ('n',) variable in Num
555 _fields = ('s',) variable in Str
559 _fields = ('s',) variable in Bytes
566 _fields = () variable in Ellipsis
Dplatform.py792 num_fields = len(cls._fields)
806 return uname_result, tuple(self)[:len(self._fields)]
/third_party/rust/crates/serde/test_suite/tests/
Dtest_ignored_any.rs71 _fields: &'static [&'static str], in struct_variant()
/third_party/vk-gl-cts/external/vulkan-docs/src/config/chunkindex/
Dlunr.js2351 this._fields = Object.create(null)
2419 this._fields[fieldName] = attributes || {}
2470 fields = Object.keys(this._fields)
2477 extractor = this._fields[fieldName].extractor,
2561 var fields = Object.keys(this._fields)
2592 var fieldBoost = this._fields[fieldName].boost || 1,
2656 fields: Object.keys(this._fields),
/third_party/skia/tools/skpbench/
Dsheet.py81 for x in FullConfig._fields))
/third_party/mesa3d/src/compiler/glsl/
Dbuiltin_types.cpp51 glsl_type(NAME##_fields, ARRAY_SIZE(NAME##_fields), #NAME); \
/third_party/python/Include/internal/
Dpycore_ast_state.h152 PyObject *_fields; member
/third_party/skia/third_party/externals/angle2/third_party/logdog/logdog/
Dstream.py54 return cls(**{f: kwargs.get(f) for f in cls._fields})
/third_party/python/Doc/library/
Dcollections.rst973 .. attribute:: somenamedtuple._fields
980 >>> p._fields # view the field names
984 >>> Pixel = namedtuple('Pixel', Point._fields + Color._fields)
1036 create a new named tuple type from the :attr:`~somenamedtuple._fields` attribute:
1038 >>> Point3D = namedtuple('Point3D', Point._fields + ('z',))
/third_party/python/Tools/c-analyzer/c_parser/
Dinfo.py284 elif column in cls._fields:
330 columns = self._fields
/third_party/node/tools/inspector_protocol/
Dcode_generator.py51 keys = list(config_tuple._fields) # pylint: disable=E1101
/third_party/node/deps/v8/third_party/inspector_protocol/
Dcode_generator.py54 keys = list(config_tuple._fields) # pylint: disable=E1101
/third_party/rust/crates/serde/serde/src/private/
Dde.rs1354 _fields: &'static [&'static str], in deserialize_struct()
1552 _fields: &'static [&'static str], in struct_variant()
2074 _fields: &'static [&'static str], in deserialize_struct()
2262 _fields: &'static [&'static str], in struct_variant()

12