Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py

changeset 3591
2f2a4a76dd22
parent 3515
1b8381afe38f
child 3618
49e7fbd66ef9
equal deleted inserted replaced
3590:5280e37405b8 3591:2f2a4a76dd22
172 self.progress = 0 172 self.progress = 0
173 self.check(codestring) 173 self.check(codestring)
174 174
175 def check(self, codestring=''): 175 def check(self, codestring=''):
176 """ 176 """
177 Start a check for one file. 177 Public method to start a check for one file.
178 178
179 The results are reported to the __processResult slot. 179 The results are reported to the __processResult slot.
180 @keyparam codestring optional sourcestring (str) 180 @keyparam codestring optional sourcestring (str)
181 """ 181 """
182 self.filename = self.files.pop(0) 182 self.filename = self.files.pop(0)
209 209
210 self.syntaxCheckService.syntaxCheck(None, self.filename, self.source) 210 self.syntaxCheckService.syntaxCheck(None, self.filename, self.source)
211 211
212 def __processResult(self, fn, problems): 212 def __processResult(self, fn, problems):
213 """ 213 """
214 Slot to display the reported messages. 214 Private slot to display the reported messages.
215 215
216 @param fn filename of the checked file (str) 216 @param fn filename of the checked file (str)
217 @param problems dictionary with the keys 'error' and 'warnings' which 217 @param problems dictionary with the keys 'error' and 'warnings' which
218 hold a list containing details about the error/ warnings 218 hold a list containing details about the error/ warnings
219 (file name, line number, column, codestring (only at syntax 219 (file name, line number, column, codestring (only at syntax

eric ide

mercurial