MCPcopy Create free account
hub / github.com/CheckPointSW/Karta / addXref

Method addXref

src/function_context.py:43–49  ·  view source on GitHub ↗

Add an xref to the function. Args: xref (CodeContext): code context that calls (xrefs) our function

(self, xref)

Source from the content-addressed store, hash-verified

41 return True
42
43 def addXref(self, xref):
44 """Add an xref to the function.
45
46 Args:
47 xref (CodeContext): code context that calls (xrefs) our function
48 """
49 self.xrefs.add(xref)
50
51 def removeXref(self, xref):
52 """Remove an xref from the function (the caller was probably found irrelevant for our search).

Callers 1

loadAndPrepareSourceMethod · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected