259 return |
259 return |
260 |
260 |
261 if code and (self.counters[code] == 1 or self.__repeat): |
261 if code and (self.counters[code] == 1 or self.__repeat): |
262 # record the issue with one based line number |
262 # record the issue with one based line number |
263 self.errors.append( |
263 self.errors.append( |
264 (self.__filename, lineNumber + 1, offset, (code, args))) |
264 { |
|
265 "file": self.__filename, |
|
266 "line": lineNumber + 1, |
|
267 "offset": offset, |
|
268 "code": code, |
|
269 "args": args, |
|
270 } |
|
271 ) |
265 |
272 |
266 def __reportInvalidSyntax(self): |
273 def __reportInvalidSyntax(self): |
267 """ |
274 """ |
268 Private method to report a syntax error. |
275 Private method to report a syntax error. |
269 """ |
276 """ |