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

Method applyChanges

src/backend/backend.ts:106–120  ·  view source on GitHub ↗
(node: MINode/*, def?: string*/)

Source from the content-addressed store, hash-verified

104 }
105
106 public applyChanges(node: MINode/*, def?: string*/) {
107 this.value = MINode.valueOf(node, 'value');
108 /*
109 if (this.value === undefined) {
110 this.value = def;
111 }
112 */
113 const typeChanged = MINode.valueOf(node, 'type_changed');
114 if (typeChanged === 'true') {
115 this.type = MINode.valueOf(node, 'new_type') || this.type;
116 }
117 this.dynamic = !!MINode.valueOf(node, 'dynamic');
118 this.displayhint = MINode.valueOf(node, 'displayhint');
119 this.hasMore = !!MINode.valueOf(node, 'has_more');
120 }
121
122 public isCompound(): boolean {
123 return this.numchild > 0 ||

Callers 4

doitMethod · 0.80
doitMethod · 0.80

Calls 1

valueOfMethod · 0.80

Tested by

no test coverage detected