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

Function IsDecltype

tools/cpplint.py:4717–4730  ·  view source on GitHub ↗

Check if the token ending on (linenum, column) is decltype(). Args: clean_lines: A CleansedLines instance containing the file. linenum: the number of the line to check. column: end column of the token to check. Returns: True if this token is decltype() expression, Fa

(clean_lines, linenum, column)

Source from the content-addressed store, hash-verified

4715
4716
4717def IsDecltype(clean_lines, linenum, column):
4718 """Check if the token ending on (linenum, column) is decltype().
4719
4720 Args:
4721 clean_lines: A CleansedLines instance containing the file.
4722 linenum: the number of the line to check.
4723 column: end column of the token to check.
4724 Returns:
4725 True if this token is decltype() expression, False otherwise.
4726 """
4727 (text, _, start_col) = ReverseCloseExpression(clean_lines, linenum, column)
4728 if start_col < 0:
4729 return False
4730 return bool(re.search(r"\bdecltype\s*$", text[0:start_col]))
4731
4732
4733def CheckSectionSpacing(filename, clean_lines, class_info, linenum, error):

Callers

nothing calls this directly

Calls 2

ReverseCloseExpressionFunction · 0.85
searchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…