MCPcopy Create free account
hub / github.com/alibaba/graph-learn / _PreprocessorInfo

Class _PreprocessorInfo

dynamic_graph_service/ci/cpplint.py:2615–2626  ·  view source on GitHub ↗

Stores checkpoints of nesting stacks when #if/#else is seen.

Source from the content-addressed store, hash-verified

2613
2614
2615class _PreprocessorInfo(object):
2616 """Stores checkpoints of nesting stacks when #if/#else is seen."""
2617
2618 def __init__(self, stack_before_if):
2619 # The entire nesting stack before #if
2620 self.stack_before_if = stack_before_if
2621
2622 # The entire nesting stack up to #else
2623 self.stack_before_else = []
2624
2625 # Whether we have already seen #else or #elif
2626 self.seen_else = False
2627
2628
2629class NestingState(object):

Callers 1

UpdatePreprocessorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected