MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / update

Method update

src/licensedcode/match.py:689–702  ·  view source on GitHub ↗

Update self with other match and return the updated self in place.

(self, other)

Source from the content-addressed store, hash-verified

687 return combined
688
689 def update(self, other):
690 """
691 Update self with other match and return the updated self in place.
692 """
693 combined = self.combine(other)
694 self.qspan = combined.qspan
695 self.ispan = combined.ispan
696 self.hispan = combined.hispan
697 self.matcher = combined.matcher
698 self.query_run_start = min(self.query_run_start, other.query_run_start)
699 self.matcher = combined.matcher
700 self.matcher_order = combined.matcher_order
701 self.discard_reason = combined.discard_reason
702 return self
703
704 def is_small(self):
705 """

Callers 1

merge_matchesFunction · 0.45

Calls 1

combineMethod · 0.95

Tested by

no test coverage detected