MCPcopy Create free account
hub / github.com/Marus/cortex-debug / findName

Method findName

src/frontend/views/live-watch.ts:62–69  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

60 }
61
62 public findName(str: string): LiveVariableNode | undefined {
63 for (const child of this.children || []) {
64 if (child.name === str) {
65 return child;
66 }
67 }
68 return undefined;
69 }
70
71 public getTreeItem(): TreeItem | Promise<TreeItem> {
72 const state = this.variablesReference || (this.children?.length > 0) ?

Callers 1

editNodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected