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

Method SeenOpenBrace

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

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)

Source from the content-addressed store, hash-verified

2430 self.pp_stack = []
2431
2432 def SeenOpenBrace(self):
2433 """Check if we have seen the opening brace for the innermost block.
2434
2435 Returns:
2436 True if we have seen the opening brace, False if the innermost
2437 block is still expecting an opening brace.
2438 """
2439 return (not self.stack) or self.stack[-1].seen_open_brace
2440
2441 def InNamespaceBody(self):
2442 """Check if we are currently one level inside a namespace body.

Callers 1

UpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected