def InnermostClass(self):
for i in range(len(self.stack), <NUM_LIT:0>, -<NUM_LIT:1>):<EOL><INDENT>classinfo = self.stack[i - <NUM_LIT:1>]<EOL>if isinstance(classinfo, _ClassInfo):<EOL><INDENT>return classinfo<EOL><DEDENT><DEDENT>return None<EOL>
Get class info on the top of the stack.

        Returns:
          A _ClassInfo object if we are inside a class, or None otherwise.