MCPcopy Create free account
hub / github.com/babel/babel / InterfaceTypeAnnotation

Function InterfaceTypeAnnotation

packages/babel-generator/src/generators/flow.ts:448–461  ·  view source on GitHub ↗
(
  this: Printer,
  node: t.InterfaceTypeAnnotation,
)

Source from the content-addressed store, hash-verified

446}
447
448export function InterfaceTypeAnnotation(
449 this: Printer,
450 node: t.InterfaceTypeAnnotation,
451) {
452 this.word("interface");
453 if (node.extends?.length) {
454 this.space();
455 this.word("extends");
456 this.space();
457 this.printList(node.extends);
458 }
459 this.space();
460 this.print(node.body);
461}
462
463export function IntersectionTypeAnnotation(
464 this: Printer,

Callers

nothing calls this directly

Calls 4

wordMethod · 0.45
spaceMethod · 0.45
printListMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected