128 return |
128 return |
129 |
129 |
130 if code and (self.counters[code] == 1 or self.__repeat): |
130 if code and (self.counters[code] == 1 or self.__repeat): |
131 # record the issue with one based line number |
131 # record the issue with one based line number |
132 self.errors.append( |
132 self.errors.append( |
133 (self.__filename, lineNumber + 1, offset, (code, args))) |
133 { |
|
134 "file": self.__filename, |
|
135 "line": lineNumber + 1, |
|
136 "offset": offset, |
|
137 "code": code, |
|
138 "args": args, |
|
139 } |
|
140 ) |
134 |
141 |
135 def __reportInvalidSyntax(self): |
142 def __reportInvalidSyntax(self): |
136 """ |
143 """ |
137 Private method to report a syntax error. |
144 Private method to report a syntax error. |
138 """ |
145 """ |