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)
| 3256 | return (not self.stack) or self.stack[-1].seen_open_brace |
| 3257 | |
| 3258 | def InNamespaceBody(self): |
| 3259 | """Check if we are currently one level inside a namespace body. |
| 3260 | |
| 3261 | Returns: |
| 3262 | True if top of the stack is a namespace block, False otherwise. |
| 3263 | """ |
| 3264 | return self.stack and isinstance(self.stack[-1], _NamespaceInfo) |
| 3265 | |
| 3266 | def InExternC(self): |
| 3267 | """Check if we are currently one level inside an 'extern "C"' block. |