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

Function CheckForNamespaceIndentation

tfjs-backend-wasm/tools/cpplint.py:3032–3043  ·  view source on GitHub ↗
(filename, nesting_state, clean_lines, line,
                                 error)

Source from the content-addressed store, hash-verified

3030
3031
3032def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line,
3033 error):
3034 is_namespace_indent_item = (
3035 len(nesting_state.stack) > 1 and
3036 nesting_state.stack[-1].check_namespace_indentation and
3037 isinstance(nesting_state.previous_stack_top, _NamespaceInfo) and
3038 nesting_state.previous_stack_top == nesting_state.stack[-2])
3039
3040 if ShouldCheckNamespaceIndentation(nesting_state, is_namespace_indent_item,
3041 clean_lines.elided, line):
3042 CheckItemIndentationInNamespace(filename, clean_lines.elided,
3043 line, error)
3044
3045
3046def CheckForFunctionLengths(filename, clean_lines, linenum,

Callers 1

ProcessLineFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…