MCPcopy Create free account
hub / github.com/WebFreak001/code-debug / varCreate

Method varCreate

src/backend/mi2/mi2.ts:835–840  ·  view source on GitHub ↗
(expression: string, name: string = "-", frame: string = "@")

Source from the content-addressed store, hash-verified

833 }
834
835 async varCreate(expression: string, name: string = "-", frame: string = "@"): Promise<VariableObject> {
836 if (trace)
837 this.log("stderr", "varCreate");
838 const res = await this.sendCommand(`var-create ${this.quote(name)} ${frame} "${expression}"`);
839 return new VariableObject(res.result(""));
840 }
841
842 async varEvalExpression(name: string): Promise<MINode> {
843 if (trace)

Callers 1

variablesRequestMethod · 0.80

Calls 4

logMethod · 0.95
sendCommandMethod · 0.95
quoteMethod · 0.95
resultMethod · 0.80

Tested by

no test coverage detected