Lines Matching refs:line

181     self.line = ''  # original rustc command line parameters
302 def parse(self, line_num, line): argument
305 self.line = line
306 args = line.split() # Loop through every argument of rustc.
425 self.write('\n// Line ' + str(self.line_num) + ' ' + self.line)
634 self.line = ''
643 self.line = args_line
658 self.write('\n// Line ' + str(self.line_num) + ' "ar" ' + self.line)
717 self.line = ''
730 self.line = args_line
785 self.write('\n// Line ' + str(self.line_num) + ' "cc" ' + self.line)
858 for line in inf:
860 if name.match(line):
861 self.root_pkg = name.match(line).group(1)
864 in_pkg = pkg_section.match(line) is not None
992 def rustc_command(self, n, rustc_line, line, outf_name): argument
997 new_rustc = (rustc_line.strip() + line) if rustc_line else line
1000 if not line.endswith('`\n') or (new_rustc.count('`') % 2) != 0:
1011 line = groups.group(3)
1013 self.add_cc_object(CCObject(self, outf_name).parse(pkg, n, line))
1015 self.add_ar_object(ARObject(self, outf_name).parse(pkg, n, line))
1017 def assert_empty_vv_line(self, line): argument
1018 if line: # report error if line is not empty
1021 outf.write('ERROR -vv line: ', line)
1029 for line in inf:
1031 if line.startswith('warning: '):
1036 if RUSTC_PAT.match(line):
1037 args_line = RUSTC_PAT.match(line).group(1)
1040 elif rustc_line or RUSTC_VV_PAT.match(line):
1041 new_rustc = self.rustc_command(n, rustc_line, line, outf_name)
1042 elif CC_AR_VV_PAT.match(line):
1043 self.cc_ar_command(n, CC_AR_VV_PAT.match(line), outf_name)
1044 elif prev_warning and WARNING_FILE_PAT.match(line):
1046 fpath = WARNING_FILE_PAT.match(line).group(1)