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

Function FindNextMultiLineCommentStart

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

Find the beginning marker for a multiline comment.

(lines, lineix)

Source from the content-addressed store, hash-verified

1362
1363
1364def FindNextMultiLineCommentStart(lines, lineix):
1365 """Find the beginning marker for a multiline comment."""
1366 while lineix < len(lines):
1367 if lines[lineix].strip().startswith('/*'):
1368 # Only return this marker if the comment goes beyond this line
1369 if lines[lineix].strip().find('*/', 2) < 0:
1370 return lineix
1371 lineix += 1
1372 return len(lines)
1373
1374
1375def FindNextMultiLineCommentEnd(lines, lineix):

Callers 1

RemoveMultiLineCommentsFunction · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…