MCPcopy Create free account
hub / github.com/ZeroIntensity/pointers.py / dereference

Method dereference

src/pointers/var_pointer.py:87–91  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

85 return f"VarPointer(name={self.name!r})"
86
87 def dereference(self) -> T:
88 if not self.name:
89 raise NullPointerError("pointer is NULL")
90
91 return self._get_scope()[self.name]
92
93 def assign(self, value: Nullable[Union["VarPointer[T]", T]], *, frame: int = 2) -> None:
94 if value is NULL:

Callers

nothing calls this directly

Calls 2

_get_scopeMethod · 0.95
NullPointerErrorClass · 0.85

Tested by

no test coverage detected