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)
| 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. |