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)
| 2444 | return (not self.stack) or self.stack[-1].seen_open_brace |
| 2445 | |
| 2446 | def InNamespaceBody(self): |
| 2447 | """Check if we are currently one level inside a namespace body. |
| 2448 | |
| 2449 | Returns: |
| 2450 | True if top of the stack is a namespace block, False otherwise. |
| 2451 | """ |
| 2452 | return self.stack and isinstance(self.stack[-1], _NamespaceInfo) |
| 2453 | |
| 2454 | def InExternC(self): |
| 2455 | """Check if we are currently one level inside an 'extern "C"' block. |