Get class info on the top of the stack. Returns: A _ClassInfo object if we are inside a class, or None otherwise.
(self)
| 3249 | line = matched.group(2) |
| 3250 | |
| 3251 | def InnermostClass(self): |
| 3252 | """Get class info on the top of the stack. |
| 3253 | |
| 3254 | Returns: |
| 3255 | A _ClassInfo object if we are inside a class, or None otherwise. |
| 3256 | """ |
| 3257 | for i in range(len(self.stack), 0, -1): |
| 3258 | classinfo = self.stack[i - 1] |
| 3259 | if isinstance(classinfo, _ClassInfo): |
| 3260 | return classinfo |
| 3261 | return None |
| 3262 | |
| 3263 | def CheckCompletedBlocks(self, filename, error): |
| 3264 | """Checks that all classes and namespaces have been completely parsed. |
no outgoing calls
no test coverage detected