MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / InnermostClass

Method InnermostClass

rtpose_wrapper/scripts/cpp_lint.py:2160–2170  ·  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

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

Callers 2

CheckStyleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected