MCPcopy
hub / github.com/prettier/prettier / printCloseBlock

Function printCloseBlock

src/language-handlebars/printer-glimmer.js:607–628  ·  view source on GitHub ↗
(path, options, print)

Source from the content-addressed store, hash-verified

605}
606
607function printCloseBlock(path, options, print) {
608 const { node } = path;
609
610 if (options.htmlWhitespaceSensitivity === "ignore") {
611 const escape = blockStatementHasOnlyWhitespaceInProgram(node)
612 ? softline
613 : hardline;
614
615 return [
616 escape,
617 printClosingBlockOpeningMustache(node),
618 print("path"),
619 printClosingBlockClosingMustache(node),
620 ];
621 }
622
623 return [
624 printClosingBlockOpeningMustache(node),
625 print("path"),
626 printClosingBlockClosingMustache(node),
627 ];
628}
629
630function blockStatementHasOnlyWhitespaceInProgram(node) {
631 return (

Callers 1

printFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…