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

Function InterfaceTypeAnnotation

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

Source from the content-addressed store, hash-verified

442}
443
444export function InterfaceTypeAnnotation(
445 this: Printer,
446 node: t.InterfaceTypeAnnotation,
447) {
448 this.word("interface");
449 if (node.extends?.length) {
450 this.space();
451 this.word("extends");
452 this.space();
453 this.printList(node.extends);
454 }
455 this.space();
456 this.print(node.body);
457}
458
459export function IntersectionTypeAnnotation(
460 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