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)
| 2430 | self.pp_stack = [] |
| 2431 | |
| 2432 | def SeenOpenBrace(self): |
| 2433 | """Check if we have seen the opening brace for the innermost block. |
| 2434 | |
| 2435 | Returns: |
| 2436 | True if we have seen the opening brace, False if the innermost |
| 2437 | block is still expecting an opening brace. |
| 2438 | """ |
| 2439 | return (not self.stack) or self.stack[-1].seen_open_brace |
| 2440 | |
| 2441 | def InNamespaceBody(self): |
| 2442 | """Check if we are currently one level inside a namespace body. |