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

Method InBlockScope

tools/cpplint.py:3350–3356  ·  view source on GitHub ↗

Check if we are currently one level inside a block scope. Returns: True if top of the stack is a block scope, False otherwise.

(self)

Source from the content-addressed store, hash-verified

3348 return self.stack and self.stack[-1].inline_asm != _NO_ASM
3349
3350 def InBlockScope(self):
3351 """Check if we are currently one level inside a block scope.
3352
3353 Returns:
3354 True if top of the stack is a block scope, False otherwise.
3355 """
3356 return len(self.stack) > 0 and not isinstance(self.stack[-1], _NamespaceInfo)
3357
3358 def InTemplateArgumentList(self, clean_lines, linenum, pos):
3359 """Check if current position is inside template argument list.

Callers 1

CheckLanguageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected