Stores checkpoints of nesting stacks when #if/#else is seen.
| 2390 | |
| 2391 | |
| 2392 | class _PreprocessorInfo(object): |
| 2393 | """Stores checkpoints of nesting stacks when #if/#else is seen.""" |
| 2394 | |
| 2395 | def __init__(self, stack_before_if): |
| 2396 | # The entire nesting stack before #if |
| 2397 | self.stack_before_if = stack_before_if |
| 2398 | |
| 2399 | # The entire nesting stack up to #else |
| 2400 | self.stack_before_else = [] |
| 2401 | |
| 2402 | # Whether we have already seen #else or #elif |
| 2403 | self.seen_else = False |
| 2404 | |
| 2405 | |
| 2406 | class NestingState(object): |
no outgoing calls
no test coverage detected
searching dependent graphs…