( ctx: EmitterVisitorContext, span: ParseSourceSpan | null, fn: () => void, suppressChildSpan = false, )
| 477 | } |
| 478 | |
| 479 | function withSpan( |
| 480 | ctx: EmitterVisitorContext, |
| 481 | span: ParseSourceSpan | null, |
| 482 | fn: () => void, |
| 483 | suppressChildSpan = false, |
| 484 | ): void { |
| 485 | if (ctx instanceof MappingContext) { |
| 486 | ctx.withSpan(span, fn, suppressChildSpan); |
| 487 | } else { |
| 488 | fn(); |
| 489 | } |
| 490 | } |
| 491 | |
| 492 | class EmitterVisitor extends AbstractEmitterVisitor { |
| 493 | suppressLeadingColon = false; |
no test coverage detected