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)
| 2344 | return (not self.stack) or self.stack[-1].seen_open_brace |
| 2345 | |
| 2346 | def InNamespaceBody(self): |
| 2347 | """Check if we are currently one level inside a namespace body. |
| 2348 | |
| 2349 | Returns: |
| 2350 | True if top of the stack is a namespace block, False otherwise. |
| 2351 | """ |
| 2352 | return self.stack and isinstance(self.stack[-1], _NamespaceInfo) |
| 2353 | |
| 2354 | def InExternC(self): |
| 2355 | """Check if we are currently one level inside an 'extern "C"' block. |