Home
last modified time | relevance | path

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

/third_party/python/Doc/tools/
H A Drstlint.py175 for lno, line in enumerate(lines, start=1):
177 yield lno, "comment seems to be intended as a directive"
179 yield lno, "directive should start with two dots, not three."
181 yield lno, "role use a single backtick, double backtick found."
183 yield lno, "role use a single backtick, no backtick found."
185 yield lno, "missing space before role"
189 yield lno, "default role used"
197 for lno, line in enumerate(lines):
199 yield lno+1, '\\r in line'
201 yield lno
[all...]
/third_party/python/Tools/c-analyzer/c_parser/parser/
H A D_info.py27 def add_line(self, line, lno=None):
28 if lno is None:
29 lno = self.end + 1
31 if isinstance(lno, FileInfo):
32 fileinfo = lno
35 lno = fileinfo.lno
37 #if lno < self.end:
38 # raise NotImplementedError((lno, self.end))
42 self.end = lno
[all...]
H A D__init__.py187 srcinfo._add_line(line, fileinfo.lno)
211 filename, lno, text = srcinfo.filename, srcinfo._start, srcinfo.text
214 raise Exception(f'unmatched text ({filename} starting at line {lno}):\n{text}')
/third_party/toybox/toys/pending/
H A 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()
[all...]
/third_party/python/Lib/idlelib/
H A Dpyparse.py226 level = lno = 0 # level is nesting level; lno is line number
239 lno = lno + 1
241 push_good(lno)
260 firstlno = lno
275 lno = lno + 1
279 push_good(lno)
286 lno
[all...]
H A Dhyperparser.py36 lno = index2line(text.index(index))
40 startat = max(lno - context, 1)
42 stopatindex = "%d.end" % lno
59 stopatindex = "%d.end" % lno
H A Deditor.py1459 lno = index2line(text.index('insert'))
1463 startat = max(lno - context, 1)
/third_party/python/Tools/c-analyzer/c_parser/preprocessor/
H A Dgcc.py66 lno, origfile = m.groups()
67 lno = int(lno)
77 _common.FileInfo(filename, lno),
82 lno += 1
H A Dpure.py14 for lno, line in enumerate(lines, 1):
19 _common.FileInfo(filename, lno),
/third_party/python/Tools/i18n/
H A 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/
H A 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, (cha in histload()
962 writehistfile(int lno, const char *cmd) writehistfile() argument
1012 writehistline(int fd, int lno, const char *cmd) writehistline() argument
[all...]
H A 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/python/Tools/c-analyzer/cpython/
H A D_capi.py181 class CAPIItem(namedtuple('CAPIItem', 'file lno name kind level')):
184 def from_line(cls, line, filename, lno, prev=None):
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):
618 print(f' | {lno:3} {line}')
/third_party/python/Tools/c-analyzer/c_parser/
H A D__main__.py72 LINE = ' {lno:>5} {kind:10} {funcname:40} {fwd:1} {name:40} {data}'
74 LINE = ' {lno:>5} {kind:10} {funcname:40} {name:40} {data}'
75 lno = kind = funcname = fwd = name = data = ''
79 lno = fileinfo.lno if fileinfo and fileinfo.lno >= 0 else ''
H A Dinfo.py162 class FileInfo(namedtuple('FileInfo', 'filename lno')):
198 def lno(self): member in SourceLine
199 return self.file.lno
308 def lno(self): member in ParsedItem
311 return self.file.lno
529 elif colname == 'lno':
531 colnames['lno'] = 'line'
672 value = self.file.lno if self.file else None
1324 file.lno,
/third_party/python/Lib/test/
H A Dtest_bdb.py475 lno = 3
479 lno = 7
560 lno = 2
563 lno = 5
564 lno = 6
565 lno = 7
568 lno = 2
569 lno = 3
570 lno = 4
573 lno
[all...]
H A Dtest_zipimport.py719 f,lno,n,line = extract_tb(tb, 1)[0]
722 f,lno,n,line = extract_stack(tb.tb_frame, 1)[0]
H A Dtest_logging.py5178 fn = lno = msg = args = exc_info = func = sinfo = None
5179 rv = logging._logRecordFactory(name, level, fn, lno, msg, args,
5185 fn, lno, msg, args, exc_info,
5191 fn = lno = msg = args = exc_info = func = sinfo = None
5193 result = self.logger.makeRecord(name, level, fn, lno, msg, args,
H A Dtest_traceback.py2357 lno = f.__code__.co_firstlineno + 1
2360 f' File "{__file__}", line {lno}, in f\n 1/0\n'
/third_party/python/Tools/scripts/
H A Dgenerate_global_objects.py117 for lno, line in enumerate(infile, 1):
120 yield identifier, None, filename, lno, line
123 yield varname, string, filename, lno, line
/third_party/python/Lib/
H A Dtraceback.py705 lno = exc_value.lineno
706 self.lineno = str(lno) if lno is not None else None
H A Dast.py69 if lno := getattr(node, 'lineno', None):
70 msg += f' on line {lno}'
/third_party/python/Lib/logging/
H A D__init__.py1595 def makeRecord(self, name, level, fn, lno, msg, args, exc_info,
1601 rv = _logRecordFactory(name, level, fn, lno, msg, args, exc_info, func,
1622 fn, lno, func, sinfo = self.findCaller(stack_info, stacklevel)
1624 fn, lno, func = "(unknown file)", 0, "(unknown function)"
1626 fn, lno, func = "(unknown file)", 0, "(unknown function)"
1632 record = self.makeRecord(self.name, level, fn, lno, msg, args,
/third_party/skia/third_party/externals/freetype/src/bdf/
H A Dbdflib.c521 unsigned long *lno ) in _bdf_readstream()
662 *lno = lineno; in _bdf_readstream()
/third_party/astc-encoder/Source/
H A Dtinyexr.h11110 tinyexr_int64 lno = in DecodeChunk()
11113 if (lno > std::numeric_limits<int>::max()) { in DecodeChunk()
11115 } else if (lno < -std::numeric_limits<int>::max()) { in DecodeChunk()

Completed in 54 milliseconds