Lines Matching refs:lineNo

223   def __init__(self, content, variant=Variant.InOrder, fileName=None, lineNo=-1):  argument
225 self.lineNo = lineNo
231 Logger.fail("Empty check line", self.fileName, self.lineNo)
236 Logger.fail("CHECK-NOT lines cannot define variables", self.fileName, self.lineNo)
300 self.fileName, self.lineNo)
345 self.fileName, self.lineNo)
359 def __init__(self, name, lines, fileName=None, lineNo=-1): argument
361 self.lineNo = lineNo
364 Logger.fail("Check group does not have a name", self.fileName, self.lineNo)
366 Logger.fail("Check group does not have a body", self.fileName, self.lineNo)
439 self.fileName, checkLine.lineNo)
459 str(matchLineNo), self.fileName, checkLine.lineNo)
468 startLineNo = outputGroup.lineNo
490 def __init__(self, name, body, fileName=None, lineNo=-1): argument
492 Logger.fail("Output group does not have a name", fileName, lineNo)
494 Logger.fail("Output group does not have a body", fileName, lineNo)
498 self.lineNo = lineNo
511 lineNo = 0
516 lineNo += 1
524 processedLine, newGroupName = self._processLine(line, lineNo)
526 currentGroup = (newGroupName, [], lineNo)
532 self._exceptionLineOutsideGroup(line, lineNo)
571 def _processLine(self, line, lineNo): argument
580 return (plainLine, CheckLine.Variant.InOrder, lineNo), None
585 return (dagLine, CheckLine.Variant.DAG, lineNo), None
590 return (notLine, CheckLine.Variant.Not, lineNo), None
595 def _exceptionLineOutsideGroup(self, line, lineNo): argument
596 Logger.fail("Check line not inside a group", self.fileName, lineNo)
599 def _processGroup(self, name, lines, lineNo): argument
601 return CheckGroup(name, checkLines, self.fileName, lineNo)
611 self.fileName, checkGroup.lineNo)
644 def _processLine(self, line, lineNo): argument
654 Logger.fail("Expected output group name", self.fileName, lineNo)
668 Logger.fail("Empty method name in output", self.fileName, lineNo)
680 Logger.fail("Expected method header", self.fileName, lineNo)
687 Logger.fail("Output line not inside a group", self.fileName, lineNo)
690 def _processGroup(self, name, lines, lineNo): argument
691 return OutputGroup(name, lines, self.fileName, lineNo + 1)
727 lineNo = group.lineNo
728 maxLineNo = lineNo + len(group.body)
731 Logger.log((str(lineNo) + ":").ljust(lenLineNo) + line)
732 lineNo += 1