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