Lines Matching refs:linenum
34 def __init__(self, msg, line=None, filename=None, linenum=None):
38 self.linenum = linenum
43 self.filename, self.linenum)
45 return "%s (%s:%s)" % (self.msg, self.filename, self.linenum)
249 filename, linenum, obj = t
258 obj.line, filename, linenum)
263 obj.line, filename, linenum)
289 filename, linenum, filter = t
294 filename, linenum, filter = t
347 for filename, linenum, op in new_content:
397 line, indent, linenum = cr.get_next_line(prev_indent)
405 line, cr.filename, linenum)
409 line, cr.filename, linenum)
438 line, indent, linenum = cr.get_next_line(prev_indent)
451 None, cr.filename, linenum)
459 line, cr.filename, linenum)
466 "regular file", line, cr.filename, linenum)
475 line, cr.filename, linenum)
484 e.linenum = linenum
486 node.content += [(cr.filename, linenum, f)]
497 cr.set_next_line(line[index:], indent, linenum)
507 e.linenum = linenum
510 node.content += [(cr.filename, linenum, cond)]
515 raise ParserError("Syntax error", line, cr.filename, linenum)
516 node.content += [(cr.filename, linenum, Op(line, op_match))]
611 for linenum, line in enumerate(s.splitlines()):
619 self._lines.append((stripped_line, indent, linenum + 1))
627 @return: (line, indent, linenum), where indent is the line's
637 line, indent, linenum = self._lines[self._line_index]
641 return line, indent, linenum
644 def set_next_line(self, line, indent, linenum):
651 self._stored_line = line, indent, linenum