/external/python/cpython2/Lib/compiler/ |
D | ast.py | 51 return "Expression(%s)" % (repr(self.node)) 66 return "Add((%s, %s))" % (repr(self.left), repr(self.right)) 82 return "And(%s)" % (repr(self.nodes),) 98 return "AssAttr(%s, %s, %s)" % (repr(self.expr), repr(self.attrname), repr(self.flags)) 114 return "AssList(%s)" % (repr(self.nodes),) 129 return "AssName(%s, %s)" % (repr(self.name), repr(self.flags)) 145 return "AssTuple(%s)" % (repr(self.nodes),) 167 return "Assert(%s, %s)" % (repr(self.test), repr(self.fail)) 188 return "Assign(%s, %s)" % (repr(self.nodes), repr(self.expr)) 204 return "AugAssign(%s, %s, %s)" % (repr(self.node), repr(self.op), repr(self.expr)) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_repr.py | 12 from repr import repr as r # Don't shadow builtin repr 13 from repr import Repr 30 expected = repr(s)[:13] + "..." + repr(s)[-14:] 33 eq(r("\"'"), repr("\"'")) 35 expected = repr(s)[:13] + "..." + repr(s)[-14:] 47 expected = repr(t3)[:-2] + "...)" 48 eq(r2.repr(t3), expected) 105 eq(r(123), repr(123)) 106 eq(r(123L), repr(123L)) 107 eq(r(1.0/3), repr(1.0/3)) [all …]
|
D | test_univnewlines2k.py | 53 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE)) 59 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE)) 69 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE)) 110 self.assertEqual(repr(fp.newlines), repr(None)) 113 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
|
/external/python/cpython3/Lib/test/ |
D | test_reprlib.py | 14 from reprlib import repr as r # Don't shadow builtin repr 33 expected = repr(s)[:13] + "..." + repr(s)[-14:] 36 eq(r("\"'"), repr("\"'")) 38 expected = repr(s)[:13] + "..." + repr(s)[-14:] 50 expected = repr(t3)[:-2] + "...)" 51 eq(r2.repr(t3), expected) 122 eq(r(123), repr(123)) 123 eq(r(123), repr(123)) 124 eq(r(1.0/3), repr(1.0/3)) 127 expected = repr(n)[:18] + "..." + repr(n)[-19:] [all …]
|
D | test_module.py | 28 self.fail("__name__ = %s" % repr(s)) 183 self.assertEqual(repr(m), "<module '?'>") 187 self.assertEqual(repr(m), "<module 'foo'>") 192 self.assertEqual(repr(m), "<module 'foo' from '/tmp/foo.py'>") 198 self.assertEqual(repr(m), "<module '?' from '/tmp/foo.py'>") 203 self.assertEqual(repr(m), "<module 'foo'>") 210 loader_repr = repr(BareLoader) 212 repr(m), "<module '?' ({})>".format(loader_repr)) 222 loader_repr = repr(FullLoader) 224 repr(m), "<module '?' ({})>".format(loader_repr)) [all …]
|
/external/rust/crates/libc/src/unix/linux_like/linux/ |
D | align.rs | 11 repr(align(4)))] 19 repr(align(8)))] 26 repr(align(4)))] 29 repr(align(8)))] 35 #[repr(align(4))] 45 repr(align(4)))] 48 repr(align(8)))] 51 repr(align(4)))] 54 repr(align(8)))] 68 repr(align(4)))] [all …]
|
/external/rust/crates/syn/1.0.7/src/ |
D | lit.rs | 71 repr: Box<LitStrRepr>, 117 repr: Box<LitIntRepr>, 136 repr: Box<LitFloatRepr>, 226 repr: Box::new(LitStrRepr { in new() 234 let (value, _) = value::parse_lit_str(&self.repr.token.to_string()); in value() 332 self.repr.token.span() in span() 336 self.repr.token.set_span(span) in set_span() 340 &self.repr.suffix in suffix() 405 pub fn new(repr: &str, span: Span) -> Self { in new() 406 if let Some((digits, suffix)) = value::parse_lit_int(repr) { in new() [all …]
|
/external/crosvm/x86_64/src/ |
D | bootparam.rs | 14 #[repr(C)] 54 #[repr(C, packed)] 94 #[repr(C)] 107 #[repr(C, packed)] 129 #[repr(C)] 140 #[repr(C, packed)] 147 #[repr(C, packed)] 156 #[repr(C, packed)] 161 #[repr(C, packed)] 166 #[repr(C, packed)] [all …]
|
/external/rust/crates/libc/src/unix/uclibc/x86_64/ |
D | align.rs | 5 repr(align(4)))] 7 repr(align(8)))] 21 repr(align(4)))] 28 repr(align(8)))] 33 #[repr(align(4))] 44 repr(align(4)))] 49 repr(align(8)))] 55 #[repr(align(8))] 65 repr(align(4)))] 70 repr(align(8)))]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/ |
D | TwineTest.cpp | 20 std::string repr(const Twine &Value) { in repr() function 60 repr(Twine("hi").concat(Twine::createNull()))); in TEST() 62 repr(Twine::createNull().concat(Twine("hi")))); in TEST() 66 repr(Twine("hi").concat(Twine()))); in TEST() 68 repr(Twine().concat(Twine("hi")))); in TEST() 70 repr(Twine().concat(Twine(SmallString<5>("hi"))))); in TEST() 72 repr(Twine(formatv("howdy")).concat(Twine()))); in TEST() 74 repr(Twine().concat(Twine(formatv("howdy"))))); in TEST() 76 repr(Twine(SmallString<7>("hey")).concat(Twine("there")))); in TEST() 80 repr(Twine("a").concat(Twine("b")))); in TEST() [all …]
|
/external/rust/crates/libc/src/fuchsia/ |
D | align.rs | 9 repr(align(4)))] 15 repr(align(8)))] 21 repr(align(4)))] 23 repr(align(8)))] 28 #[repr(align(4))] 38 repr(align(4)))] 42 repr(align(8)))] 50 repr(align(4)))] 54 repr(align(8)))] 60 repr(align(4)))] [all …]
|
/external/llvm/unittests/ADT/ |
D | TwineTest.cpp | 18 std::string repr(const Twine &Value) { in repr() function 57 repr(Twine("hi").concat(Twine::createNull()))); in TEST() 59 repr(Twine::createNull().concat(Twine("hi")))); in TEST() 63 repr(Twine("hi").concat(Twine()))); in TEST() 65 repr(Twine().concat(Twine("hi")))); in TEST() 67 repr(Twine().concat(Twine(SmallString<5>("hi"))))); in TEST() 69 repr(Twine(SmallString<7>("hey")).concat(Twine("there")))); in TEST() 73 repr(Twine("a").concat(Twine("b")))); in TEST() 77 repr(Twine("a").concat(Twine("b")).concat(Twine("c")))); in TEST() 79 repr(Twine("a").concat(Twine("b").concat(Twine("c"))))); in TEST() [all …]
|
/external/python/cpython2/Modules/ |
D | cgen.py | 238 print 'arg' + repr(i+1) + ket, 255 database[n-1] = b_type, 'i', a_factor, repr(i) 287 print repr(n_in_args) + ',', 288 print repr(in_pos[j]) + ',', 291 print '&arg' + repr(i+1) + '))' 294 print '\targ' + repr(i+1), 295 print '= arg' + repr(i+1), 300 print '\tif ((arg' + repr(i+1), '=', 311 print repr(n_in_args) + ',', 312 print repr(in_pos[i]) + ',', [all …]
|
/external/python/cpython3/Tools/scripts/ |
D | checkpyc.py | 23 print('Using MAGIC word', repr(MAGIC)) 28 print('Cannot list directory', repr(dirname)) 31 print('Checking ', repr(dirname), '...') 38 print('Cannot stat', repr(name)) 41 print('Check', repr(name), '...') 48 print('Cannot open', repr(name_c)) 52 print(repr(name_c)) 56 print('Bad ".pyc" file', repr(name_c)) 59 print(repr(name_c))
|
/external/python/cpython2/Tools/scripts/ |
D | checkpyc.py | 20 print 'Using MAGIC word', repr(MAGIC) 25 print 'Cannot list directory', repr(dirname) 28 print 'Checking ', repr(dirname), '...' 36 print 'Cannot stat', repr(name) 39 print 'Check', repr(name), '...' 44 print 'Cannot open', repr(name_c) 51 print repr(name_c) 55 print 'Bad ".pyc" file', repr(name_c) 58 print repr(name_c)
|
/external/fonttools/Tests/pens/ |
D | pointPen_test.py | 103 self.assertEqual("10 10 moveto 10 20 lineto endpath", repr(pen)) 113 self.assertEqual("10 10 moveto 10 20 lineto 20 20 lineto closepath", repr(pen)) 124 self.assertEqual("10 10 moveto 10 20 20 20 20 40 curveto closepath", repr(pen)) 135 self.assertEqual("10 10 moveto 10 40 40 40 10 40 qcurveto closepath", repr(pen)) 145 self.assertEqual("10 10 10 40 40 40 None qcurveto closepath", repr(pen)) 158 repr(tpen)) 169 repr(tpen)) 181 repr(tpen)) 191 "segmentType='curve') endPath()", repr(tpen)) 202 repr(tpen)) [all …]
|
/external/rust/crates/libc/src/unix/newlib/ |
D | align.rs | 8 repr(align(4)))] 13 repr(align(8)))] 22 repr(align(4)))] 27 repr(align(8)))] 38 repr(align(4)))] 45 repr(align(8)))] 50 #[repr(align(8))] 55 #[repr(align(4))]
|
/external/rust/crates/libc/src/unix/uclibc/ |
D | align.rs | 10 repr(align(4)))] 17 repr(align(8)))] 22 #[repr(align(4))] 29 #[repr(align(8))] 39 repr(align(4)))] 44 repr(align(8)))] 54 repr(align(4)))] 59 repr(align(8)))]
|
/external/rust/crates/libc/src/unix/linux_like/emscripten/ |
D | align.rs | 5 #[repr(align(4))] 10 #[repr(align(4))] 15 #[repr(align(4))] 20 #[repr(align(4))] 25 #[repr(align(4))] 33 repr(align(4)))] 35 repr(align(8)))] 41 #[repr(align(8))]
|
/external/jemalloc_new/include/jemalloc/internal/ |
D | atomic_gcc_sync.h | 87 type volatile repr; \ 96 type result = a->repr; \ 109 a->repr = val; \ 123 type old = a->repr; \ 124 if (__sync_bool_compare_and_swap(&a->repr, old, val)) { \ 134 type prev = __sync_val_compare_and_swap(&a->repr, *expected, \ 147 type prev = __sync_val_compare_and_swap(&a->repr, *expected, \ 164 return __sync_fetch_and_add(&a->repr, val); \ 170 return __sync_fetch_and_sub(&a->repr, val); \ 176 return __sync_fetch_and_and(&a->repr, val); \ [all …]
|
D | atomic_gcc_atomic.h | 42 type repr; \ 49 __atomic_load(&a->repr, &result, atomic_enum_to_builtin(mo)); \ 56 __atomic_store(&a->repr, &val, atomic_enum_to_builtin(mo)); \ 63 __atomic_exchange(&a->repr, &val, &result, \ 72 return __atomic_compare_exchange(&a->repr, expected, &desired, \ 81 return __atomic_compare_exchange(&a->repr, expected, &desired, \ 95 return __atomic_fetch_add(&a->repr, val, \ 102 return __atomic_fetch_sub(&a->repr, val, \ 109 return __atomic_fetch_and(&a->repr, val, \ 116 return __atomic_fetch_or(&a->repr, val, \ [all …]
|
/external/python/cpython2/Doc/library/ |
D | repr.rst | 1 :mod:`repr` --- Alternate :func:`repr` implementation 4 .. module:: repr 5 :synopsis: Alternate repr() implementation with size limits. 10 The :mod:`repr` module has been renamed to :mod:`reprlib` in Python 3. The 14 **Source code:** :source:`Lib/repr.py` 18 The :mod:`repr` module provides a means for producing object representations 28 similar to the built-in :ref:`repr() <func-repr>`; size limits for different 35 This is an instance of :class:`Repr` which is used to provide the :func:`.repr` 37 the size limits used by :func:`.repr` and the Python debugger. 40 .. function:: repr(obj) [all …]
|
/external/libxml2/python/tests/ |
D | outbuf.py | 38 print(' got: %s' % repr(f.getvalue())) 39 print('expected: %s' % repr(expected)) 62 print(' got: %s' % repr(f.getvalue())) 63 print('expected: %s' % repr(expected[i])) 83 print(' got: %s' % repr(f.getvalue())) 84 print('expected: %s' % repr(expected)) 91 print(' got: %s' % repr(f.getvalue())) 92 print('expected: %s' % repr(expected))
|
/external/antlr/runtime/Python/tests/ |
D | t012lexerXML.py | 72 assert exc.unexpectedType == '>', repr(exc.unexpectedType) 73 assert exc.charPositionInLine == 11, repr(exc.charPositionInLine) 74 assert exc.line == 2, repr(exc.line) 96 assert exc.unexpectedType == 't', repr(exc.unexpectedType) 97 assert exc.charPositionInLine == 2, repr(exc.charPositionInLine) 98 assert exc.line == 1, repr(exc.line) 120 assert exc.unexpectedType == 'a', repr(exc.unexpectedType) 121 assert exc.charPositionInLine == 11, repr(exc.charPositionInLine) 122 assert exc.line == 2, repr(exc.line)
|
/external/python/cpython2/Demo/classes/ |
D | Dbm.py | 16 t = repr(key) + ': ' + repr(self[key]) 25 return eval(self.db[repr(key)]) 28 self.db[repr(key)] = repr(value) 31 del self.db[repr(key)] 40 return self.db.has_key(repr(key))
|