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