MCPcopy Index your code
hub / github.com/nodejs/node / InnermostClass

Method InnermostClass

tools/cpplint.py:3707–3717  ·  view source on GitHub ↗

Get class info on the top of the stack. Returns: A _ClassInfo object if we are inside a class, or None otherwise.

(self)

Source from the content-addressed store, hash-verified

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
3720def CheckForNonStandardConstructs(filename, clean_lines, linenum, nesting_state, error):

Callers 2

CheckStyleFunction · 0.80

Calls 1

rangeFunction · 0.50

Tested by

no test coverage detected