MCPcopy Create free account
hub / github.com/nodejs/node / account

Method account

deps/v8/tools/locs.py:211–217  ·  view source on GitHub ↗
(self, unit)

Source from the content-addressed store, hash-verified

209 self.regexp = re.compile(regexp_string)
210
211 def account(self, unit):
212 if (self.regexp.match(unit.file)):
213 self.loc += unit.loc
214 self.in_bytes += unit.in_bytes
215 self.expanded += unit.expanded
216 self.expanded_bytes += unit.expanded_bytes
217 self.count += 1
218
219 def to_string(self, name_width):
220 return "{:<{}} ({:>5} files): {}".format(

Callers 1

recordFileMethod · 0.80

Calls 1

matchMethod · 0.65

Tested by

no test coverage detected