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)
| 2930 | return (not self.stack) or self.stack[-1].seen_open_brace |
| 2931 | |
| 2932 | def InNamespaceBody(self): |
| 2933 | """Check if we are currently one level inside a namespace body. |
| 2934 | |
| 2935 | Returns: |
| 2936 | True if top of the stack is a namespace block, False otherwise. |
| 2937 | """ |
| 2938 | return self.stack and isinstance(self.stack[-1], _NamespaceInfo) |
| 2939 | |
| 2940 | def InExternC(self): |
| 2941 | """Check if we are currently one level inside an 'extern "C"' block. |