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)
| 1942 | return (not self.stack) or self.stack[-1].seen_open_brace |
| 1943 | |
| 1944 | def InNamespaceBody(self): |
| 1945 | """Check if we are currently one level inside a namespace body. |
| 1946 | |
| 1947 | Returns: |
| 1948 | True if top of the stack is a namespace block, False otherwise. |
| 1949 | """ |
| 1950 | return self.stack and isinstance(self.stack[-1], _NamespaceInfo) |
| 1951 | |
| 1952 | def UpdatePreprocessor(self, line): |
| 1953 | """Update preprocessor stack. |