MCPcopy Create free account
hub / github.com/tensorflow/tfjs / _PreprocessorInfo

Class _PreprocessorInfo

tfjs-backend-wasm/tools/cpplint.py:2392–2403  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2390
2391
2392class _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
2406class NestingState(object):

Callers 1

UpdatePreprocessorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…