| 279 | const frameIdCounter = posInt32Counter(); |
| 280 | |
| 281 | export class AsyncSeparator implements IFrameElement { |
| 282 | public readonly frameId = frameIdCounter(); |
| 283 | |
| 284 | constructor(private readonly label = 'async') {} |
| 285 | |
| 286 | public async toDap(): Promise<Dap.StackFrame> { |
| 287 | return { name: this.label, id: this.frameId, line: 0, column: 0, presentationHint: 'label' }; |
| 288 | } |
| 289 | |
| 290 | public async formatAsNative(): Promise<string> { |
| 291 | return ` --- ${this.label} ---`; |
| 292 | } |
| 293 | |
| 294 | public async format(): Promise<string> { |
| 295 | return `◀ ${this.label} ▶`; |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | const fallbackName = '<anonymous>'; |
| 300 | const CLASS_CTOR_RE = /^class\s+(.+) {($|\n)/; |
nothing calls this directly
no outgoing calls
no test coverage detected