Check if we are currently one level inside a namespace body. Returns: True if top of the stack is a namespace block, False otherwise.
(self)
| 3316 | return (not self.stack) or self.stack[-1].seen_open_brace |
| 3317 | |
| 3318 | def InNamespaceBody(self): |
| 3319 | """Check if we are currently one level inside a namespace body. |
| 3320 | |
| 3321 | Returns: |
| 3322 | True if top of the stack is a namespace block, False otherwise. |
| 3323 | """ |
| 3324 | return self.stack and isinstance(self.stack[-1], _NamespaceInfo) |
| 3325 | |
| 3326 | def InExternC(self): |
| 3327 | """Check if we are currently one level inside an 'extern "C"' block. |