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)
| 3307 | self.pp_stack = [] |
| 3308 | |
| 3309 | def SeenOpenBrace(self): |
| 3310 | """Check if we have seen the opening brace for the innermost block. |
| 3311 | |
| 3312 | Returns: |
| 3313 | True if we have seen the opening brace, False if the innermost |
| 3314 | block is still expecting an opening brace. |
| 3315 | """ |
| 3316 | return (not self.stack) or self.stack[-1].seen_open_brace |
| 3317 | |
| 3318 | def InNamespaceBody(self): |
| 3319 | """Check if we are currently one level inside a namespace body. |