MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / _brace_delta_raw

Function _brace_delta_raw

scripts/code-verify.py:225–228  ·  view source on GitHub ↗

Signed curly-brace count on a raw string, ignoring strings/comments.

(line: str)

Source from the content-addressed store, hash-verified

223
224
225def _brace_delta_raw(line: str) -> int:
226 """Signed curly-brace count on a raw string, ignoring strings/comments."""
227 sanitized = _strip_strings_and_comments(line)
228 return sanitized.count("{") - sanitized.count("}")
229
230
231def _has_trailing_operator(line: str, is_inner: bool) -> bool:

Callers 2

physical_kindFunction · 0.85
find_property_runsFunction · 0.85

Calls 2

countMethod · 0.45

Tested by

no test coverage detected