Home
last modified time | relevance | path

Searched refs:lno (Results 1 – 25 of 26) sorted by relevance

12

/third_party/python/Doc/tools/
Drstlint.py85 for lno, line in enumerate(lines):
87 yield lno+1, 'comment seems to be intended as a directive'
91 yield lno+1, 'default role used'
99 for lno, line in enumerate(lines):
101 yield lno+1, '\\r in line'
103 yield lno+1, 'OMG TABS!!!1'
105 yield lno+1, 'trailing whitespace'
111 for lno, line in enumerate(lines):
119 yield lno+1, "line too long"
127 for lno, line in enumerate(lines):
[all …]
/third_party/python/Tools/c-analyzer/c_parser/parser/
D_info.py27 def add_line(self, line, lno=None): argument
28 if lno is None:
29 lno = self.end + 1
31 if isinstance(lno, FileInfo):
32 fileinfo = lno
35 lno = fileinfo.lno
42 self.end = lno
170 def _add_line(self, line, lno=None): argument
175 self._start = lno
176 self._current = TextInfo(line, lno)
[all …]
D__init__.py185 srcinfo._add_line(line, fileinfo.lno)
209 filename, lno, text = srcinfo.filename, srcinfo._start, srcinfo.text
/third_party/toybox/toys/pending/
Dcrontab.c120 int lno; in parse_crontab() local
122 for (lno = 1; (len = getline(&line, &allocated_length, fp)) > 0; lno++) { in parse_crontab()
128 snprintf(toybuf, sizeof(toybuf), "'%d': premature EOF\n", lno); in parse_crontab()
148 snprintf(toybuf, sizeof(toybuf), "'%d': %s\n", lno, line); in parse_crontab()
159 snprintf(toybuf, sizeof(toybuf), "'%d': %s\n", lno, line); in parse_crontab()
165 snprintf(toybuf, sizeof(toybuf), "'%d': %s\n", lno, line); in parse_crontab()
173 snprintf(toybuf, sizeof(toybuf), "'%d': %s\n", lno, line); in parse_crontab()
179 snprintf(toybuf, sizeof(toybuf), "'%d': bad minute\n", lno); in parse_crontab()
183 snprintf(toybuf, sizeof(toybuf), "'%d': bad hour\n", lno); in parse_crontab()
187 snprintf(toybuf, sizeof(toybuf), "'%d': bad day-of-month\n", lno); in parse_crontab()
[all …]
/third_party/python/Lib/idlelib/
Dpyparse.py230 level = lno = 0 # level is nesting level; lno is line number
243 lno = lno + 1
245 push_good(lno)
264 firstlno = lno
279 lno = lno + 1
283 push_good(lno)
290 lno = lno + 1
299 if (lno - 1) == firstlno:
316 lno = lno + 1
331 assert (continuation == C_NONE) == (goodlines[-1] == lno)
[all …]
Dhyperparser.py36 lno = index2line(text.index(index))
40 startat = max(lno - context, 1)
42 stopatindex = "%d.end" % lno
59 stopatindex = "%d.end" % lno
Deditor.py1399 lno = index2line(text.index('insert'))
1403 startat = max(lno - context, 1)
/third_party/python/Tools/c-analyzer/c_parser/preprocessor/
Dgcc.py66 lno, origfile = m.groups()
67 lno = int(lno)
77 _common.FileInfo(filename, lno),
82 lno += 1
Dpure.py14 for lno, line in enumerate(lines, 1):
19 _common.FileInfo(filename, lno),
/third_party/python/Tools/i18n/
Dmsgfmt.py127 lno = 0
130 lno += 1
165 print('msgid_plural not preceded by msgid on %s:%d' % (infile, lno),
176 print('plural without msgid_plural on %s:%d' % (infile, lno),
184 print('indexed msgstr required for plural on %s:%d' % (infile, lno),
200 print('Syntax error on %s:%d' % (infile, lno), \
/third_party/mksh/
Dhistrap.c591 int lno = hist_source->line; in histsync() local
597 if (lno != hist_source->line) in histsync()
915 int lno = 0, lines = 0; in histload() local
929 lno = ((base[0] & 0xFF) << 24) | ((base[1] & 0xFF) << 16) | in histload()
933 if (histptr >= history && lno - 1 != s->line) { in histload()
937 if (lno >= s->line - (histptr - history) && lno <= s->line) { in histload()
938 hp = &histptr[lno - s->line]; in histload()
943 s->line = lno--; in histload()
944 histsave(&lno, (char *)(base + 4), HIST_NOTE, false); in histload()
962 writehistfile(int lno, const char *cmd) in writehistfile() argument
[all …]
Dsyn.c270 int c, iopn = 0, syniocf, lno; in get_command() local
401 lno = source->line; in get_command()
413 t->lineno = lno; in get_command()
/third_party/selinux/checkpolicy/
Dpolicy_scan.l38 static unsigned int lno = 0; variable
67 strncpy(linebuf[lno], yytext+1, 255);
71 linebuf[lno][254] = 0;
72 lno = 1 - lno;
/third_party/python/Tools/c-analyzer/cpython/
D_capi.py184 def from_line(cls, line, filename, lno, prev=None): argument
193 self = cls(filename, lno, name, kind, level)
319 for lno, line in enumerate(lines, 1):
320 parsed, prev = CAPIItem.from_line(line, filename, lno, prev)
324 parsed, prev = CAPIItem.from_line('', filename, lno, prev)
617 for lno, line in enumerate(item.text, item.lno):
/third_party/python/Tools/c-analyzer/c_parser/
D__main__.py75 lno = kind = funcname = fwd = name = data = ''
79 lno = fileinfo.lno if fileinfo and fileinfo.lno >= 0 else ''
Dinfo.py198 def lno(self): member in SourceLine
199 return self.file.lno
308 def lno(self): member in ParsedItem
311 return self.file.lno
672 value = self.file.lno if self.file else None
1322 file.lno,
/third_party/python/Lib/test/
Dtest_bdb.py559 lno = 2
562 lno = 5
563 lno = 6
564 lno = 7
567 lno = 2
568 lno = 3
569 lno = 4
572 lno = 2
Dtest_zipimport.py715 f,lno,n,line = extract_tb(tb, 1)[0]
718 f,lno,n,line = extract_stack(tb.tb_frame, 1)[0]
Dtest_logging.py5018 fn = lno = msg = args = exc_info = func = sinfo = None
5019 rv = logging._logRecordFactory(name, level, fn, lno, msg, args,
5025 fn, lno, msg, args, exc_info,
5031 fn = lno = msg = args = exc_info = func = sinfo = None
5033 result = self.logger.makeRecord(name, level, fn, lno, msg, args,
/third_party/python/Lib/
Dtraceback.py512 lno = exc_value.lineno
513 self.lineno = str(lno) if lno is not None else None
/third_party/python/Lib/logging/
D__init__.py1585 def makeRecord(self, name, level, fn, lno, msg, args, exc_info, argument
1591 rv = _logRecordFactory(name, level, fn, lno, msg, args, exc_info, func,
1612 fn, lno, func, sinfo = self.findCaller(stack_info, stacklevel)
1614 fn, lno, func = "(unknown file)", 0, "(unknown function)"
1616 fn, lno, func = "(unknown file)", 0, "(unknown function)"
1622 record = self.makeRecord(self.name, level, fn, lno, msg, args,
/third_party/freetype/src/bdf/
Dbdflib.c521 unsigned long *lno ) in _bdf_readstream() argument
661 *lno = lineno; in _bdf_readstream()
/third_party/flutter/skia/third_party/externals/freetype/src/bdf/
Dbdflib.c522 unsigned long *lno ) in _bdf_readstream() argument
652 *lno = lineno; in _bdf_readstream()
/third_party/skia/third_party/externals/freetype/src/bdf/
Dbdflib.c521 unsigned long *lno ) in _bdf_readstream() argument
662 *lno = lineno; in _bdf_readstream()
/third_party/python/Doc/library/
Dlogging.rst346 ….. method:: Logger.makeRecord(name, level, fn, lno, msg, args, exc_info, func=None, extra=None, si…
1304 ``factory(name, level, fn, lno, msg, args, exc_info, func=None, sinfo=None, **kwargs)``
1309 :lno: The line number in the file where the logging call was made.

12