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)
| 2944 | return (not self.stack) or self.stack[-1].seen_open_brace |
| 2945 | |
| 2946 | def InNamespaceBody(self): |
| 2947 | """Check if we are currently one level inside a namespace body. |
| 2948 | |
| 2949 | Returns: |
| 2950 | True if top of the stack is a namespace block, False otherwise. |
| 2951 | """ |
| 2952 | return self.stack and isinstance(self.stack[-1], _NamespaceInfo) |
| 2953 | |
| 2954 | def InExternC(self): |
| 2955 | """Check if we are currently one level inside an 'extern "C"' block. |