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)
| 1517 | return (not self.stack) or self.stack[-1].seen_open_brace |
| 1518 | |
| 1519 | def InNamespaceBody(self): |
| 1520 | """Check if we are currently one level inside a namespace body. |
| 1521 | |
| 1522 | Returns: |
| 1523 | True if top of the stack is a namespace block, False otherwise. |
| 1524 | """ |
| 1525 | return self.stack and isinstance(self.stack[-1], _NamespaceInfo) |
| 1526 | |
| 1527 | def UpdatePreprocessor(self, line): |
| 1528 | """Update preprocessor stack. |