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

Method getStaticVariableNames

src/backend/symbols.ts:811–824  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

809 }
810
811 public async getStaticVariableNames(file: string): Promise<string[]> {
812 if (this.varsByFile) {
813 const nfile = SymbolTable.NormalizePath(file);
814 const obj = this.varsByFile[nfile] || this.varsByFile[file];
815 if (obj) {
816 return obj.staticNames; // Could be empty array
817 }
818 return null;
819 }
820 await this.finishNmSymbols();
821 const syms = this.getStaticVariables(file);
822 const ret = syms.map((s) => s.name);
823 return ret;
824 }
825
826 public getStaticVariables(file: string): SymbolInformation[] {
827 if (!file) {

Callers 1

Calls 3

finishNmSymbolsMethod · 0.95
getStaticVariablesMethod · 0.95
NormalizePathMethod · 0.80

Tested by

no test coverage detected