Lines Matching refs:linenr
444 def warn_override(filename, linenr, name, old_user_val, new_user_val): argument
448 filename, linenr)
475 line_feeder.filename, line_feeder.linenr)
484 warn_override(line_feeder.filename, line_feeder.linenr,
494 line_feeder.linenr)
502 line_feeder.filename, line_feeder.linenr)
511 line_feeder.linenr,
666 line_feeder.linenr)
703 line_feeder.linenr,
720 line_feeder.linenr)
731 comment.linenr = line_feeder.linenr
745 menu.linenr = line_feeder.linenr
780 line_feeder.linenr))
812 line_feeder.filename, line_feeder.linenr)
817 line_feeder.filename, line_feeder.linenr)
823 def parse_val_and_cond(tokens, line, filename, linenr): argument
827 return (self._parse_expr(tokens, stmt, line, filename, linenr,
829 self._parse_expr(tokens, stmt, line, filename, linenr)
850 linenr = line_feeder.linenr
852 tokens = self._tokenize(line, False, filename, linenr)
864 filename, linenr)
867 linenr)
913 self._parse_expr(tokens, stmt, line, filename, linenr)
924 self._parse_expr(tokens, stmt, line, filename, linenr)
931 linenr)
935 linenr))
941 filename, linenr))
948 new_prompt = parse_val_and_cond(tokens, line, filename, linenr)
958 self._parse_expr(tokens, stmt, line, filename, linenr)
965 filename, linenr))
985 filename, linenr)
1009 filename, linenr)
1016 filename, linenr)
1020 _parse_error(line, "unrecognized option", filename, linenr)
1025 filename, linenr)
1029 filename, linenr)
1032 linenr)
1041 linenr)
1114 def _parse_expr(self, feed, cur_item, line, filename=None, linenr=None, argument
1155 self._linenr = linenr
1216 def _tokenize(self, s, for_eval, filename=None, linenr=None): argument
1253 _tokenization_error(s, filename, linenr)
1296 sym.def_locations.append((filename, linenr))
1299 sym.ref_locations.append((filename, linenr))
1322 _tokenization_error(s, filename, linenr)
1328 _tokenization_error(s, filename, linenr)
1342 _tokenization_error(s, filename, linenr)
1656 " ".join(["{0}:{1}".format(filename, linenr) for
1657 filename, linenr in sc.def_locations])
1799 def _warn(self, msg, filename=None, linenr=None): argument
1801 msg = _build_msg("warning: " + msg, filename, linenr)
2468 filename, linenr = self.ref_locations[0]
2473 .format(v, self.name, filename, linenr))
2610 return (self.filename, self.linenr)
2675 "Location: {0}:{1}".format(self.filename, self.linenr))
2706 self.linenr = None
3029 return (self.filename, self.linenr)
3057 "Location: {0}:{1}".format(self.filename, self.linenr))
3086 self.linenr = None
3179 self.linenr = 0
3182 if self.linenr >= self.length:
3184 line = self.lines[self.linenr]
3185 self.linenr += 1
3187 line = line[:-2] + self.lines[self.linenr]
3188 self.linenr += 1
3192 linenr = self.linenr
3193 if linenr >= self.length:
3195 line = self.lines[linenr]
3197 linenr += 1
3198 line = line[:-2] + self.lines[linenr]
3202 self.linenr -= 1
3203 while self.lines[self.linenr].endswith("\\\n"):
3204 self.linenr -= 1
3435 def _build_msg(msg, filename, linenr): argument
3437 msg = "{0}:{1}: ".format(_clean_up_path(filename), linenr) + msg
3440 def _stderr_msg(msg, filename, linenr): argument
3441 sys.stderr.write(_build_msg(msg, filename, linenr) + "\n")
3443 def _tokenization_error(s, filename, linenr): argument
3444 loc = "" if filename is None else "{0}:{1}: ".format(filename, linenr)
3448 def _parse_error(s, msg, filename, linenr): argument
3449 loc = "" if filename is None else "{0}:{1}: ".format(filename, linenr)