MCPcopy Create free account
hub / github.com/angular/angular / withSpan

Function withSpan

packages/compiler-cli/preprocessor/src/output_ast_printer.ts:479–490  ·  view source on GitHub ↗
(
  ctx: EmitterVisitorContext,
  span: ParseSourceSpan | null,
  fn: () => void,
  suppressChildSpan = false,
)

Source from the content-addressed store, hash-verified

477}
478
479function 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
492class EmitterVisitor extends AbstractEmitterVisitor {
493 suppressLeadingColon = false;

Calls 2

withSpanMethod · 0.80
fnFunction · 0.50

Tested by

no test coverage detected