Check if we have seen the opening brace for the innermost block. Returns: True if we have seen the opening brace, False if the innermost block is still expecting an opening brace.
(self)
| 2924 | self.pp_stack = [] |
| 2925 | |
| 2926 | def SeenOpenBrace(self): |
| 2927 | """Check if we have seen the opening brace for the innermost block. |
| 2928 | |
| 2929 | Returns: |
| 2930 | True if we have seen the opening brace, False if the innermost |
| 2931 | block is still expecting an opening brace. |
| 2932 | """ |
| 2933 | return (not self.stack) or self.stack[-1].seen_open_brace |
| 2934 | |
| 2935 | def InNamespaceBody(self): |
| 2936 | """Check if we are currently one level inside a namespace body. |