Home
last modified time | relevance | path

Searched refs:strobj (Results 1 – 5 of 5) sorted by relevance

/third_party/typescript/tests/ts_extra_tests/test_ts_cases/2.0/dotted_names_in_type_guards/
Ddotted_names_in_type_guards_1.ts26 strobj?: {
34 if (so && so.strobj && so.strobj.str1) {
35 const x: string = so.strobj.str1;
38 } else if (so && so.strobj && so.strobj.str2) {
39 const x: string = so.strobj.str2;
43 if (so && so.strobj && so.strobj.str1 === undefined) {
45 } else if (so && so.strobj && so.strobj.str2 === undefined) {
47 } else if (so !== undefined && so.strobj === undefined) {
59 so = { strobj: {} };
61 so = { strobj: { str1: "str1" } };
[all …]
/third_party/python/Lib/test/
Dtest_marshal.py419 strobj = "abcde"*3
420 self.helper(strobj)
421 self.helper3(strobj)
497 strobj = "this is an interned string" variable in InterningTestCase
498 strobj = sys.intern(strobj) variable in InterningTestCase
501 s = marshal.loads(marshal.dumps(self.strobj))
502 self.assertEqual(s, self.strobj)
503 self.assertEqual(id(s), id(self.strobj))
508 s = marshal.loads(marshal.dumps(self.strobj, 2))
509 self.assertEqual(s, self.strobj)
[all …]
/third_party/python/Modules/cjkcodecs/
Dmultibytecodec.c1743 PyObject *strobj) in _multibytecodec_MultibyteStreamWriter_write() argument
1746 if (mbstreamwriter_iwrite(self, strobj)) in _multibytecodec_MultibyteStreamWriter_write()
1764 PyObject *strobj; in _multibytecodec_MultibyteStreamWriter_writelines() local
1775 strobj = PySequence_GetItem(lines, i); in _multibytecodec_MultibyteStreamWriter_writelines()
1776 if (strobj == NULL) in _multibytecodec_MultibyteStreamWriter_writelines()
1779 r = mbstreamwriter_iwrite(self, strobj); in _multibytecodec_MultibyteStreamWriter_writelines()
1780 Py_DECREF(strobj); in _multibytecodec_MultibyteStreamWriter_writelines()
/third_party/python/Objects/
Dlongobject.c2135 PyObject *strobj; in PyLong_FromString() local
2486 strobj = PyUnicode_FromStringAndSize(orig_str, slen); in PyLong_FromString()
2487 if (strobj == NULL) { in PyLong_FromString()
2492 base, strobj); in PyLong_FromString()
2493 Py_DECREF(strobj); in PyLong_FromString()
2505 PyObject *result, *strobj; in _PyLong_FromBytes() local
2512 strobj = PyBytes_FromStringAndSize(s, Py_MIN(len, 200)); in _PyLong_FromBytes()
2513 if (strobj != NULL) { in _PyLong_FromBytes()
2516 base, strobj); in _PyLong_FromBytes()
2517 Py_DECREF(strobj); in _PyLong_FromBytes()
/third_party/python/Modules/
D_xxsubinterpretersmodule.c11 _copy_raw_string(PyObject *strobj) in _copy_raw_string() argument
13 const char *str = PyUnicode_AsUTF8(strobj); in _copy_raw_string()