Find attribute initializers in a method. Return a list of pairs (attribute name, r.h.s. expression).
(fdef: FuncBase)
| 1529 | |
| 1530 | |
| 1531 | def find_self_initializers(fdef: FuncBase) -> list[tuple[str, Expression, Type | None]]: |
| 1532 | """Find attribute initializers in a method. |
| 1533 | |
| 1534 | Return a list of pairs (attribute name, r.h.s. expression). |
| 1535 | """ |
| 1536 | traverser = SelfTraverser() |
| 1537 | fdef.accept(traverser) |
| 1538 | return traverser.results |
| 1539 | |
| 1540 | |
| 1541 | def get_qualified_name(o: Expression) -> str: |
no test coverage detected
searching dependent graphs…