MCPcopy Create free account
hub / github.com/alibaba/GraphScope / InnermostClass

Method InnermostClass

analytical_engine/misc/cpplint.py:3240–3250  ·  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

3238 line = matched.group(2)
3239
3240 def InnermostClass(self):
3241 """Get class info on the top of the stack.
3242
3243 Returns:
3244 A _ClassInfo object if we are inside a class, or None otherwise.
3245 """
3246 for i in range(len(self.stack), 0, -1):
3247 classinfo = self.stack[i - 1]
3248 if isinstance(classinfo, _ClassInfo):
3249 return classinfo
3250 return None
3251
3252 def CheckCompletedBlocks(self, filename, error):
3253 """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