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)
| 2662 | return (not self.stack) or self.stack[-1].seen_open_brace |
| 2663 | |
| 2664 | def InNamespaceBody(self): |
| 2665 | """Check if we are currently one level inside a namespace body. |
| 2666 | |
| 2667 | Returns: |
| 2668 | True if top of the stack is a namespace block, False otherwise. |
| 2669 | """ |
| 2670 | return self.stack and isinstance(self.stack[-1], _NamespaceInfo) |
| 2671 | |
| 2672 | def InExternC(self): |
| 2673 | """Check if we are currently one level inside an 'extern "C"' block. |