MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / getObjectById

Function getObjectById

packages/debugger/src/main/id.ts:59–62  ·  view source on GitHub ↗
(id: NodeID, objType: T)

Source from the content-addressed store, hash-verified

57export const get_id_custom_value = (o: Solid.SourceMapValue): NodeID => getSdtId(o, ObjectType.CustomValue)
58
59export function getObjectById<T extends ObjectType>(id: NodeID, objType: T): ValueMap[T] | null {
60 const ref = RefMapMap[objType].get(id)
61 return ref?.deref() ?? null
62}
63
64/** Used for testing */
65export function $setSdtId(o: object, id: NodeID): NodeID {

Callers 7

serialize.test.tsFile · 0.90
inspectOwnerIdFunction · 0.90
inspector.test.tsxFile · 0.90
getTreeWalkerOwnerIdFunction · 0.90
setInspectedNodeFunction · 0.90
createLocatorFunction · 0.90
createDependencyGraphFunction · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…