Home
last modified time | relevance | path

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

/third_party/jerryscript/tools/
Dgen-doctest.py69 … self._warning('incorrect parameter list for test (key="value", ...)', fileinput.filelineno())
81 return decl, fileinput.filelineno()
90 … return ['#line %d "%s"\n' % (fileinput.filelineno() + 1, self._infile)], fileinput.filelineno()
Dgen-magic-strings.py138 lnum = fileinput.filelineno()
/third_party/python/Lib/
Dfileinput.py134 def filelineno(): function
142 return _state.filelineno()
397 def filelineno(self): member in FileInput
454 print("%d: %s[%d]%s %s" % (lineno(), filename(), filelineno(),
456 print("%d: %s[%d]" % (lineno(), filename(), filelineno()))
/third_party/python/Lib/test/
Dtest_fileinput.py117 self.assertEqual(fi.filelineno(), 6)
168 self.assertEqual(int(m.group(1)), fi.filelineno())
191 self.assertEqual(fi.filelineno(), 1)
197 self.assertEqual(fi.filelineno(), 0)
207 self.assertEqual(fi.filelineno(), 3)
353 self.assertEqual(fi.filelineno(), 3)
525 self.assertEqual(fi.filelineno(), 1)
569 def filelineno(self): member in MockFileInput
778 fileinput.filelineno()
791 retval = fileinput.filelineno()
/third_party/python/Doc/library/
Dfileinput.rst107 .. function:: filelineno()
147 :meth:`fileno`, :meth:`lineno`, :meth:`filelineno`, :meth:`isfirstline`,