197 <td>Constructor</td> |
200 <td>Constructor</td> |
198 </tr><tr> |
201 </tr><tr> |
199 <td><a href="#Checker.ASSIGN">ASSIGN</a></td> |
202 <td><a href="#Checker.ASSIGN">ASSIGN</a></td> |
200 <td></td> |
203 <td></td> |
201 </tr><tr> |
204 </tr><tr> |
202 <td><a href="#Checker.ASSNAME">ASSNAME</a></td> |
205 <td><a href="#Checker.AUGASSIGN">AUGASSIGN</a></td> |
203 <td></td> |
206 <td></td> |
204 </tr><tr> |
207 </tr><tr> |
205 <td><a href="#Checker.CLASS">CLASS</a></td> |
208 <td><a href="#Checker.CLASSDEF">CLASSDEF</a></td> |
206 <td>Check names used in a class definition, including its decorators, base classes, and the body of its definition.</td> |
209 <td>Check names used in a class definition, including its decorators, base classes, and the body of its definition.</td> |
|
210 </tr><tr> |
|
211 <td><a href="#Checker.DICTCOMP">DICTCOMP</a></td> |
|
212 <td></td> |
207 </tr><tr> |
213 </tr><tr> |
208 <td><a href="#Checker.FOR">FOR</a></td> |
214 <td><a href="#Checker.FOR">FOR</a></td> |
209 <td>Process bindings for loop variables.</td> |
215 <td>Process bindings for loop variables.</td> |
210 </tr><tr> |
216 </tr><tr> |
211 <td><a href="#Checker.FROM">FROM</a></td> |
217 <td><a href="#Checker.FUNCTIONDEF">FUNCTIONDEF</a></td> |
212 <td></td> |
|
213 </tr><tr> |
|
214 <td><a href="#Checker.FUNCTION">FUNCTION</a></td> |
|
215 <td></td> |
218 <td></td> |
216 </tr><tr> |
219 </tr><tr> |
217 <td><a href="#Checker.GLOBAL">GLOBAL</a></td> |
220 <td><a href="#Checker.GLOBAL">GLOBAL</a></td> |
218 <td>Keep track of globals declarations.</td> |
221 <td>Keep track of globals declarations.</td> |
219 </tr><tr> |
222 </tr><tr> |
220 <td><a href="#Checker.IMPORT">IMPORT</a></td> |
223 <td><a href="#Checker.IMPORT">IMPORT</a></td> |
221 <td></td> |
224 <td></td> |
222 </tr><tr> |
225 </tr><tr> |
|
226 <td><a href="#Checker.IMPORTFROM">IMPORTFROM</a></td> |
|
227 <td></td> |
|
228 </tr><tr> |
223 <td><a href="#Checker.LAMBDA">LAMBDA</a></td> |
229 <td><a href="#Checker.LAMBDA">LAMBDA</a></td> |
224 <td></td> |
230 <td></td> |
225 </tr><tr> |
231 </tr><tr> |
226 <td><a href="#Checker.LISTCOMP">LISTCOMP</a></td> |
232 <td><a href="#Checker.LISTCOMP">LISTCOMP</a></td> |
227 <td></td> |
233 <td></td> |
228 </tr><tr> |
234 </tr><tr> |
229 <td><a href="#Checker.NAME">NAME</a></td> |
235 <td><a href="#Checker.NAME">NAME</a></td> |
230 <td>Locate the name in locals / function / globals scopes.</td> |
236 <td>Locate the name in locals / function / globals scopes.</td> |
231 </tr><tr> |
237 </tr><tr> |
232 <td><a href="#Checker.WITH">WITH</a></td> |
|
233 <td>Handle 'with' by checking the target of the statement (which can be an identifier, a list or tuple of targets, an attribute, etc) for undefined names and defining any it adds to the scope and by continuing to process the suite within the statement.</td> |
|
234 </tr><tr> |
|
235 <td><a href="#Checker._runDeferred">_runDeferred</a></td> |
238 <td><a href="#Checker._runDeferred">_runDeferred</a></td> |
236 <td>Run the callables in C{deferred} using their associated scope stack.</td> |
239 <td>Run the callables in C{deferred} using their associated scope stack.</td> |
237 </tr><tr> |
240 </tr><tr> |
238 <td><a href="#Checker.addArgs">addArgs</a></td> |
241 <td><a href="#Checker.addArgs">addArgs</a></td> |
239 <td></td> |
242 <td></td> |
302 name of the module file (string) |
308 name of the module file (string) |
303 </dd> |
309 </dd> |
304 </dl><a NAME="Checker.ASSIGN" ID="Checker.ASSIGN"></a> |
310 </dl><a NAME="Checker.ASSIGN" ID="Checker.ASSIGN"></a> |
305 <h4>Checker.ASSIGN</h4> |
311 <h4>Checker.ASSIGN</h4> |
306 <b>ASSIGN</b>(<i>node</i>) |
312 <b>ASSIGN</b>(<i>node</i>) |
307 <a NAME="Checker.ASSNAME" ID="Checker.ASSNAME"></a> |
313 <a NAME="Checker.AUGASSIGN" ID="Checker.AUGASSIGN"></a> |
308 <h4>Checker.ASSNAME</h4> |
314 <h4>Checker.AUGASSIGN</h4> |
309 <b>ASSNAME</b>(<i>node</i>) |
315 <b>AUGASSIGN</b>(<i>node</i>) |
310 <a NAME="Checker.CLASS" ID="Checker.CLASS"></a> |
316 <a NAME="Checker.CLASSDEF" ID="Checker.CLASSDEF"></a> |
311 <h4>Checker.CLASS</h4> |
317 <h4>Checker.CLASSDEF</h4> |
312 <b>CLASS</b>(<i>node</i>) |
318 <b>CLASSDEF</b>(<i>node</i>) |
313 <p> |
319 <p> |
314 Check names used in a class definition, including its decorators, base |
320 Check names used in a class definition, including its decorators, base |
315 classes, and the body of its definition. Additionally, add its name to |
321 classes, and the body of its definition. Additionally, add its name to |
316 the current scope. |
322 the current scope. |
317 </p><a NAME="Checker.FOR" ID="Checker.FOR"></a> |
323 </p><a NAME="Checker.DICTCOMP" ID="Checker.DICTCOMP"></a> |
|
324 <h4>Checker.DICTCOMP</h4> |
|
325 <b>DICTCOMP</b>(<i>node</i>) |
|
326 <a NAME="Checker.FOR" ID="Checker.FOR"></a> |
318 <h4>Checker.FOR</h4> |
327 <h4>Checker.FOR</h4> |
319 <b>FOR</b>(<i>node</i>) |
328 <b>FOR</b>(<i>node</i>) |
320 <p> |
329 <p> |
321 Process bindings for loop variables. |
330 Process bindings for loop variables. |
322 </p><a NAME="Checker.FROM" ID="Checker.FROM"></a> |
331 </p><a NAME="Checker.FUNCTIONDEF" ID="Checker.FUNCTIONDEF"></a> |
323 <h4>Checker.FROM</h4> |
332 <h4>Checker.FUNCTIONDEF</h4> |
324 <b>FROM</b>(<i>node</i>) |
333 <b>FUNCTIONDEF</b>(<i>node</i>) |
325 <a NAME="Checker.FUNCTION" ID="Checker.FUNCTION"></a> |
|
326 <h4>Checker.FUNCTION</h4> |
|
327 <b>FUNCTION</b>(<i>node</i>) |
|
328 <a NAME="Checker.GLOBAL" ID="Checker.GLOBAL"></a> |
334 <a NAME="Checker.GLOBAL" ID="Checker.GLOBAL"></a> |
329 <h4>Checker.GLOBAL</h4> |
335 <h4>Checker.GLOBAL</h4> |
330 <b>GLOBAL</b>(<i>node</i>) |
336 <b>GLOBAL</b>(<i>node</i>) |
331 <p> |
337 <p> |
332 Keep track of globals declarations. |
338 Keep track of globals declarations. |
333 </p><a NAME="Checker.IMPORT" ID="Checker.IMPORT"></a> |
339 </p><a NAME="Checker.IMPORT" ID="Checker.IMPORT"></a> |
334 <h4>Checker.IMPORT</h4> |
340 <h4>Checker.IMPORT</h4> |
335 <b>IMPORT</b>(<i>node</i>) |
341 <b>IMPORT</b>(<i>node</i>) |
|
342 <a NAME="Checker.IMPORTFROM" ID="Checker.IMPORTFROM"></a> |
|
343 <h4>Checker.IMPORTFROM</h4> |
|
344 <b>IMPORTFROM</b>(<i>node</i>) |
336 <a NAME="Checker.LAMBDA" ID="Checker.LAMBDA"></a> |
345 <a NAME="Checker.LAMBDA" ID="Checker.LAMBDA"></a> |
337 <h4>Checker.LAMBDA</h4> |
346 <h4>Checker.LAMBDA</h4> |
338 <b>LAMBDA</b>(<i>node</i>) |
347 <b>LAMBDA</b>(<i>node</i>) |
339 <a NAME="Checker.LISTCOMP" ID="Checker.LISTCOMP"></a> |
348 <a NAME="Checker.LISTCOMP" ID="Checker.LISTCOMP"></a> |
340 <h4>Checker.LISTCOMP</h4> |
349 <h4>Checker.LISTCOMP</h4> |
342 <a NAME="Checker.NAME" ID="Checker.NAME"></a> |
351 <a NAME="Checker.NAME" ID="Checker.NAME"></a> |
343 <h4>Checker.NAME</h4> |
352 <h4>Checker.NAME</h4> |
344 <b>NAME</b>(<i>node</i>) |
353 <b>NAME</b>(<i>node</i>) |
345 <p> |
354 <p> |
346 Locate the name in locals / function / globals scopes. |
355 Locate the name in locals / function / globals scopes. |
347 </p><a NAME="Checker.WITH" ID="Checker.WITH"></a> |
|
348 <h4>Checker.WITH</h4> |
|
349 <b>WITH</b>(<i>node</i>) |
|
350 <p> |
|
351 Handle 'with' by checking the target of the statement (which can be an |
|
352 identifier, a list or tuple of targets, an attribute, etc) for |
|
353 undefined names and defining any it adds to the scope and by continuing |
|
354 to process the suite within the statement. |
|
355 </p><a NAME="Checker._runDeferred" ID="Checker._runDeferred"></a> |
356 </p><a NAME="Checker._runDeferred" ID="Checker._runDeferred"></a> |
356 <h4>Checker._runDeferred</h4> |
357 <h4>Checker._runDeferred</h4> |
357 <b>_runDeferred</b>(<i>deferred</i>) |
358 <b>_runDeferred</b>(<i>deferred</i>) |
358 <p> |
359 <p> |
359 Run the callables in C{deferred} using their associated scope stack. |
360 Run the callables in C{deferred} using their associated scope stack. |
415 <h4>Checker.handleNode</h4> |
416 <h4>Checker.handleNode</h4> |
416 <b>handleNode</b>(<i>node, parent</i>) |
417 <b>handleNode</b>(<i>node, parent</i>) |
417 <a NAME="Checker.ignore" ID="Checker.ignore"></a> |
418 <a NAME="Checker.ignore" ID="Checker.ignore"></a> |
418 <h4>Checker.ignore</h4> |
419 <h4>Checker.ignore</h4> |
419 <b>ignore</b>(<i>node</i>) |
420 <b>ignore</b>(<i>node</i>) |
420 <a NAME="Checker.popScope" ID="Checker.popScope"></a> |
421 <a NAME="Checker.isDocstring" ID="Checker.isDocstring"></a> |
|
422 <h4>Checker.isDocstring</h4> |
|
423 <b>isDocstring</b>(<i>node</i>) |
|
424 <p> |
|
425 Determine if the given node is a docstring, as long as it is at the |
|
426 correct place in the node tree. |
|
427 </p><a NAME="Checker.popScope" ID="Checker.popScope"></a> |
421 <h4>Checker.popScope</h4> |
428 <h4>Checker.popScope</h4> |
422 <b>popScope</b>(<i></i>) |
429 <b>popScope</b>(<i></i>) |
423 <a NAME="Checker.pushClassScope" ID="Checker.pushClassScope"></a> |
430 <a NAME="Checker.pushClassScope" ID="Checker.pushClassScope"></a> |
424 <h4>Checker.pushClassScope</h4> |
431 <h4>Checker.pushClassScope</h4> |
425 <b>pushClassScope</b>(<i></i>) |
432 <b>pushClassScope</b>(<i></i>) |