MCPcopy Index your code
hub / github.com/nodejs/node / FindNextMultiLineCommentStart

Function FindNextMultiLineCommentStart

tools/cpplint.py:2057–2065  ·  view source on GitHub ↗

Find the beginning marker for a multiline comment.

(lines, lineix)

Source from the content-addressed store, hash-verified

2055
2056
2057def FindNextMultiLineCommentStart(lines, lineix):
2058 """Find the beginning marker for a multiline comment."""
2059 while lineix < len(lines):
2060 if lines[lineix].strip().startswith("/*"):
2061 # Only return this marker if the comment goes beyond this line
2062 if lines[lineix].strip().find("*/", 2) < 0:
2063 return lineix
2064 lineix += 1
2065 return len(lines)
2066
2067
2068def FindNextMultiLineCommentEnd(lines, lineix):

Callers 1

RemoveMultiLineCommentsFunction · 0.85

Calls 1

findMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…