Return the length of the combined matched rules as the number of all rule tokens. Because of the possible overlap this may be inaccurate.
(self)
| 363 | return start_line, end_line |
| 364 | |
| 365 | def rules_length(self): |
| 366 | """ |
| 367 | Return the length of the combined matched rules as the number |
| 368 | of all rule tokens. |
| 369 | Because of the possible overlap this may be inaccurate. |
| 370 | """ |
| 371 | return sum(m.self.rule.length for m in self.matches) |
| 372 | |
| 373 | def coverage(self): |
| 374 | """ |