eric6/Documentation/Source/eric6.Plugins.CheckerPlugins.CodeStyleChecker.Security.SecurityNodeVisitor.html

changeset 7651
ca87b7490449
parent 7624
6eabbcf3bdf8
child 7989
a21d673a8f99
equal deleted inserted replaced
7650:36c2dc7e3437 7651:ca87b7490449
83 <tr> 83 <tr>
84 <td><a href="#SecurityNodeVisitor.__runChecks">__runChecks</a></td> 84 <td><a href="#SecurityNodeVisitor.__runChecks">__runChecks</a></td>
85 <td>Private method to run all enabled checks for a given check type.</td> 85 <td>Private method to run all enabled checks for a given check type.</td>
86 </tr> 86 </tr>
87 <tr> 87 <tr>
88 <td><a href="#SecurityNodeVisitor.__visitFunctionDefinition">__visitFunctionDefinition</a></td>
89 <td>Private method defining a visitor for AST FunctionDef and AsyncFunctionDef nodes.</td>
90 </tr>
91 <tr>
88 <td><a href="#SecurityNodeVisitor.generic_visit">generic_visit</a></td> 92 <td><a href="#SecurityNodeVisitor.generic_visit">generic_visit</a></td>
89 <td>Public method to drive the node visitor.</td> 93 <td>Public method to drive the node visitor.</td>
90 </tr> 94 </tr>
91 <tr> 95 <tr>
92 <td><a href="#SecurityNodeVisitor.visit">visit</a></td> 96 <td><a href="#SecurityNodeVisitor.visit">visit</a></td>
93 <td>Public method to inspected an AST node.</td> 97 <td>Public method to inspected an AST node.</td>
98 </tr>
99 <tr>
100 <td><a href="#SecurityNodeVisitor.visit_AsyncFunctionDef">visit_AsyncFunctionDef</a></td>
101 <td>Public method defining a visitor for AST AsyncFunctionDef nodes.</td>
94 </tr> 102 </tr>
95 <tr> 103 <tr>
96 <td><a href="#SecurityNodeVisitor.visit_Bytes">visit_Bytes</a></td> 104 <td><a href="#SecurityNodeVisitor.visit_Bytes">visit_Bytes</a></td>
97 <td>Public method defining a visitor for Bytes nodes.</td> 105 <td>Public method defining a visitor for Bytes nodes.</td>
98 </tr> 106 </tr>
205 <dt><i>checkType</i> (str)</dt> 213 <dt><i>checkType</i> (str)</dt>
206 <dd> 214 <dd>
207 type of checks to be run 215 type of checks to be run
208 </dd> 216 </dd>
209 </dl> 217 </dl>
218 <a NAME="SecurityNodeVisitor.__visitFunctionDefinition" ID="SecurityNodeVisitor.__visitFunctionDefinition"></a>
219 <h4>SecurityNodeVisitor.__visitFunctionDefinition</h4>
220 <b>__visitFunctionDefinition</b>(<i>node</i>)
221
222 <p>
223 Private method defining a visitor for AST FunctionDef and
224 AsyncFunctionDef nodes.
225 </p>
226 <p>
227 Add relevant information about the node to the context for use in tests
228 which inspect function definitions. Add the function name to the
229 current namespace for all descendants.
230 </p>
231 <dl>
232
233 <dt><i>node</i> (ast.FunctionDef, ast.AsyncFunctionDef)</dt>
234 <dd>
235 reference to the node being inspected
236 </dd>
237 </dl>
210 <a NAME="SecurityNodeVisitor.generic_visit" ID="SecurityNodeVisitor.generic_visit"></a> 238 <a NAME="SecurityNodeVisitor.generic_visit" ID="SecurityNodeVisitor.generic_visit"></a>
211 <h4>SecurityNodeVisitor.generic_visit</h4> 239 <h4>SecurityNodeVisitor.generic_visit</h4>
212 <b>generic_visit</b>(<i>node</i>) 240 <b>generic_visit</b>(<i>node</i>)
213 241
214 <p> 242 <p>
233 <dt><i>node</i> (ast.AST)</dt> 261 <dt><i>node</i> (ast.AST)</dt>
234 <dd> 262 <dd>
235 AST node to be inspected 263 AST node to be inspected
236 </dd> 264 </dd>
237 </dl> 265 </dl>
266 <a NAME="SecurityNodeVisitor.visit_AsyncFunctionDef" ID="SecurityNodeVisitor.visit_AsyncFunctionDef"></a>
267 <h4>SecurityNodeVisitor.visit_AsyncFunctionDef</h4>
268 <b>visit_AsyncFunctionDef</b>(<i>node</i>)
269
270 <p>
271 Public method defining a visitor for AST AsyncFunctionDef nodes.
272 </p>
273 <dl>
274
275 <dt><i>node</i> (ast.AsyncFunctionDef)</dt>
276 <dd>
277 reference to the node being inspected
278 </dd>
279 </dl>
238 <a NAME="SecurityNodeVisitor.visit_Bytes" ID="SecurityNodeVisitor.visit_Bytes"></a> 280 <a NAME="SecurityNodeVisitor.visit_Bytes" ID="SecurityNodeVisitor.visit_Bytes"></a>
239 <h4>SecurityNodeVisitor.visit_Bytes</h4> 281 <h4>SecurityNodeVisitor.visit_Bytes</h4>
240 <b>visit_Bytes</b>(<i>node</i>) 282 <b>visit_Bytes</b>(<i>node</i>)
241 283
242 <p> 284 <p>
311 <b>visit_FunctionDef</b>(<i>node</i>) 353 <b>visit_FunctionDef</b>(<i>node</i>)
312 354
313 <p> 355 <p>
314 Public method defining a visitor for AST FunctionDef nodes. 356 Public method defining a visitor for AST FunctionDef nodes.
315 </p> 357 </p>
316 <p>
317 Add relevant information about the node to the context for use in tests
318 which inspect function definitions. Add the function name to the
319 current namespace for all descendants.
320 </p>
321 <dl> 358 <dl>
322 359
323 <dt><i>node</i> (ast.FunctionDef)</dt> 360 <dt><i>node</i> (ast.FunctionDef)</dt>
324 <dd> 361 <dd>
325 reference to the node being inspected 362 reference to the node being inspected

eric ide

mercurial