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

Method CheckBegin

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

Run checks that applies to text up to the opening brace. This is mostly for checking the text after the class identifier and the "{", usually where the base class is specified. For other blocks, there isn't much to check, so we always pass. Args: filename: The name of the cu

(self, filename, clean_lines, linenum, error)

Source from the content-addressed store, hash-verified

2213 self.check_namespace_indentation = False
2214
2215 def CheckBegin(self, filename, clean_lines, linenum, error):
2216 """Run checks that applies to text up to the opening brace.
2217
2218 This is mostly for checking the text after the class identifier
2219 and the "{", usually where the base class is specified. For other
2220 blocks, there isn't much to check, so we always pass.
2221
2222 Args:
2223 filename: The name of the current file.
2224 clean_lines: A CleansedLines instance containing the file.
2225 linenum: The number of the line to check.
2226 error: The function to call with any errors found.
2227 """
2228 pass
2229
2230 def CheckEnd(self, filename, clean_lines, linenum, error):
2231 """Run checks that applies to text after the closing brace.

Callers 1

UpdateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected