Get class info on the top of the stack. Returns: A _ClassInfo object if we are inside a class, or None otherwise.
(self)
| 2162 | line = matched.group(2) |
| 2163 | |
| 2164 | def InnermostClass(self): |
| 2165 | """Get class info on the top of the stack. |
| 2166 | |
| 2167 | Returns: |
| 2168 | A _ClassInfo object if we are inside a class, or None otherwise. |
| 2169 | """ |
| 2170 | for i in range(len(self.stack), 0, -1): |
| 2171 | classinfo = self.stack[i - 1] |
| 2172 | if isinstance(classinfo, _ClassInfo): |
| 2173 | return classinfo |
| 2174 | return None |
| 2175 | |
| 2176 | def CheckCompletedBlocks(self, filename, error): |
| 2177 | """Checks that all classes and namespaces have been completely parsed. |
no outgoing calls
no test coverage detected