(file: string)
| 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) { |
no test coverage detected