MCPcopy Create free account
hub / github.com/alibaba/GraphScope / _PreprocessorInfo

Class _PreprocessorInfo

analytical_engine/misc/cpplint.py:2886–2897  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2884
2885
2886class _PreprocessorInfo(object):
2887 """Stores checkpoints of nesting stacks when #if/#else is seen."""
2888
2889 def __init__(self, stack_before_if):
2890 # The entire nesting stack before #if
2891 self.stack_before_if = stack_before_if
2892
2893 # The entire nesting stack up to #else
2894 self.stack_before_else = []
2895
2896 # Whether we have already seen #else or #elif
2897 self.seen_else = False
2898
2899
2900class NestingState(object):

Callers 1

UpdatePreprocessorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected