MCPcopy
hub / github.com/prettier/prettier / printOpeningTag

Function printOpeningTag

src/language-html/print/tag.js:339–347  ·  view source on GitHub ↗
(path, options, print)

Source from the content-addressed store, hash-verified

337}
338
339function printOpeningTag(path, options, print) {
340 const { node } = path;
341
342 return [
343 printOpeningTagStart(node, options),
344 printAttributes(path, options, print),
345 node.isSelfClosing ? "" : printOpeningTagEnd(node),
346 ];
347}
348
349function printOpeningTagStart(node, options) {
350 return node.prev && needsToBorrowNextOpeningTagStartMarker(node.prev)

Callers 3

embedFunction · 0.90
printElementFunction · 0.90
printTagFunction · 0.90

Calls 3

printOpeningTagStartFunction · 0.85
printAttributesFunction · 0.85
printOpeningTagEndFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…