Lines Matching refs:lineno
99 def __init__(self, lineno, message): argument
100 self.lineno = lineno
104 return "On line %d: %s" % (self.lineno, self.message)
197 lineno = 0
207 self.commandArgAssert(linecomps, 1, lineno)
214 self.commandArgAssert(linecomps, 1, lineno)
217 self.commandArgAssert(linecomps, 1, lineno)
220 self.commandArgAssert(linecomps, 1, lineno)
223 self.commandArgAssert(linecomps, 1, lineno)
226 self.commandArgAssert(linecomps, 2, lineno)
235 raise ParseError(lineno, "Unknown field type '%s'!" % typestr)
238 raise ParseError(lineno, "Unknown command: '%s'!" % cmd)
240 lineno = lineno + 1
244 raise ParseError(lineno, "Required field '@name' missing!")
246 raise ParseError(lineno, "Required field '@package' missing!")
248 raise ParseError(lineno, "Required field '@libname' missing!")
254 def commandArgAssert(self, linecomps, expectedcount, lineno): argument
257 raise ParseError(lineno, "Not enough arguments specifed for command '%s'! Expected %d, " \
260 raise ParseError(lineno, "Too many arguments specifed for command '%s'! Expected %d, " \