Get class info on the top of the stack. Returns: A _ClassInfo object if we are inside a class, or None otherwise.
(self)
| 3705 | line = matched.group(2) |
| 3706 | |
| 3707 | def InnermostClass(self): |
| 3708 | """Get class info on the top of the stack. |
| 3709 | |
| 3710 | Returns: |
| 3711 | A _ClassInfo object if we are inside a class, or None otherwise. |
| 3712 | """ |
| 3713 | for i in range(len(self.stack), 0, -1): |
| 3714 | classinfo = self.stack[i - 1] |
| 3715 | if isinstance(classinfo, _ClassInfo): |
| 3716 | return classinfo |
| 3717 | return None |
| 3718 | |
| 3719 | |
| 3720 | def CheckForNonStandardConstructs(filename, clean_lines, linenum, nesting_state, error): |
no test coverage detected