(scope: Scope | undefined, captureContext: CaptureContext | undefined)
| 295 | } |
| 296 | |
| 297 | function getFinalScope(scope: Scope | undefined, captureContext: CaptureContext | undefined): Scope | undefined { |
| 298 | if (!captureContext) { |
| 299 | return scope; |
| 300 | } |
| 301 | |
| 302 | const finalScope = scope ? scope.clone() : new Scope(); |
| 303 | finalScope.update(captureContext); |
| 304 | return finalScope; |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * Parse either an `EventHint` directly, or convert a `CaptureContext` to an `EventHint`. |
no test coverage detected