src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Annotations.AnnotationsChecker.html

branch
eric7
changeset 11301
4404a96762c1
parent 11150
73d80859079c
equal deleted inserted replaced
11300:0119e3818e12 11301:4404a96762c1
266 <h4>AnnotationsChecker.__getAnnotationComplexity</h4> 266 <h4>AnnotationsChecker.__getAnnotationComplexity</h4>
267 <b>__getAnnotationComplexity</b>(<i>annotationNode, defaultComplexity=1</i>) 267 <b>__getAnnotationComplexity</b>(<i>annotationNode, defaultComplexity=1</i>)
268 <p> 268 <p>
269 Private method to determine the annotation complexity. 269 Private method to determine the annotation complexity.
270 </p> 270 </p>
271 <p>
272 It recursively counts the complexity of annotation nodes. When
273 annotations are written as strings, it additionally parses them
274 to 'ast' nodes.
275 </p>
271 276
272 <dl> 277 <dl>
273 278
274 <dt><i>annotationNode</i> (ast.AST)</dt> 279 <dt><i>annotationNode</i> (ast.AST)</dt>
275 <dd> 280 <dd>
276 reference to the node to determine the annotation 281 reference to the node to determine the annotation
277 complexity for 282 complexity for
278 </dd> 283 </dd>
279 <dt><i>defaultComplexity</i> (int)</dt> 284 <dt><i>defaultComplexity</i> (int (optional))</dt>
280 <dd> 285 <dd>
281 default complexity value 286 default complexity value (defaults to 1)
282 </dd> 287 </dd>
283 </dl> 288 </dl>
284 <dl> 289 <dl>
285 <dt>Return:</dt> 290 <dt>Return:</dt>
286 <dd> 291 <dd>
297 <h4>AnnotationsChecker.__getAnnotationLength</h4> 302 <h4>AnnotationsChecker.__getAnnotationLength</h4>
298 <b>__getAnnotationLength</b>(<i>annotationNode</i>) 303 <b>__getAnnotationLength</b>(<i>annotationNode</i>)
299 <p> 304 <p>
300 Private method to determine the annotation length. 305 Private method to determine the annotation length.
301 </p> 306 </p>
307 <p>
308 It recursively counts the length of annotation nodes. When annotations
309 are written as strings, it additionally parses them to 'ast' nodes.
310 </p>
302 311
303 <dl> 312 <dl>
304 313
305 <dt><i>annotationNode</i> (ast.AST)</dt> 314 <dt><i>annotationNode</i> (ast.AST)</dt>
306 <dd> 315 <dd>

eric ide

mercurial