Ends the section of `token`, and any section left open inside it.
(token: number)
| 320 | |
| 321 | /** Ends the section of `token`, and any section left open inside it. */ |
| 322 | private end(token: number): void { |
| 323 | if (token < 1 || token > this.openKind.length) { |
| 324 | return; |
| 325 | } |
| 326 | const now = nowMicros(); |
| 327 | while (this.openKind.length >= token) { |
| 328 | this.close(now); |
| 329 | } |
| 330 | } |
| 331 | |
| 332 | record(kind: SpanKind, startUs: number): void { |
| 333 | if (!AWAITING_KINDS[kind]) { |
no test coverage detected