Get class info on the top of the stack. Returns: A _ClassInfo object if we are inside a class, or None otherwise.
(self)
| 2747 | line = matched.group(2) |
| 2748 | |
| 2749 | def InnermostClass(self): |
| 2750 | """Get class info on the top of the stack. |
| 2751 | |
| 2752 | Returns: |
| 2753 | A _ClassInfo object if we are inside a class, or None otherwise. |
| 2754 | """ |
| 2755 | for i in range(len(self.stack), 0, -1): |
| 2756 | classinfo = self.stack[i - 1] |
| 2757 | if isinstance(classinfo, _ClassInfo): |
| 2758 | return classinfo |
| 2759 | return None |
| 2760 | |
| 2761 | def CheckCompletedBlocks(self, filename, error): |
| 2762 | """Checks that all classes and namespaces have been completely parsed. |
no outgoing calls
no test coverage detected