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)
| 3247 | self.pp_stack = [] |
| 3248 | |
| 3249 | def SeenOpenBrace(self): |
| 3250 | """Check if we have seen the opening brace for the innermost block. |
| 3251 | |
| 3252 | Returns: |
| 3253 | True if we have seen the opening brace, False if the innermost |
| 3254 | block is still expecting an opening brace. |
| 3255 | """ |
| 3256 | return (not self.stack) or self.stack[-1].seen_open_brace |
| 3257 | |
| 3258 | def InNamespaceBody(self): |
| 3259 | """Check if we are currently one level inside a namespace body. |