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

Method getRegisterNames

src/backend/mi2/mi2.ts:785–794  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

783 }
784
785 async getRegisterNames(): Promise<string[]> {
786 if (trace)
787 this.log("stderr", "getRegisterNames");
788 const result = await this.sendCommand("data-list-register-names");
789 const names = result.result('register-names');
790 if (!Array.isArray(names)) {
791 throw new Error('Failed to retrieve register names.');
792 }
793 return names.map(name => name.toString());
794 }
795
796 async getRegisterValues(): Promise<RegisterValue[]> {
797 if (trace)

Callers 1

getRegistersMethod · 0.95

Calls 4

logMethod · 0.95
sendCommandMethod · 0.95
resultMethod · 0.80
toStringMethod · 0.80

Tested by

no test coverage detected