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

Function RemoveMultiLineCommentsFromRange

tools/cpplint.py:2077–2082  ·  view source on GitHub ↗

Clears a range of lines for multi-line comments.

(lines, begin, end)

Source from the content-addressed store, hash-verified

2075
2076
2077def RemoveMultiLineCommentsFromRange(lines, begin, end):
2078 """Clears a range of lines for multi-line comments."""
2079 # Having // <empty> comments makes the lines non-empty, so we will not get
2080 # unnecessary blank line warnings later in the code.
2081 for i in range(begin, end):
2082 lines[i] = "/**/"
2083
2084
2085def RemoveMultiLineComments(filename, lines, error):

Callers

nothing calls this directly

Calls 1

rangeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…