102 self.counters[code] = 1 |
102 self.counters[code] = 1 |
103 |
103 |
104 if code: |
104 if code: |
105 # record the issue with one based line number |
105 # record the issue with one based line number |
106 self.errors.append( |
106 self.errors.append( |
107 (self.__filename, lineNumber, offset, (code, args))) |
107 { |
|
108 "file": self.__filename, |
|
109 "line": lineNumber, |
|
110 "offset": offset, |
|
111 "code": code, |
|
112 "args": args, |
|
113 } |
|
114 ) |
108 |
115 |
109 def __reportInvalidSyntax(self): |
116 def __reportInvalidSyntax(self): |
110 """ |
117 """ |
111 Private method to report a syntax error. |
118 Private method to report a syntax error. |
112 """ |
119 """ |