MCPcopy
hub / github.com/prettier/prettier / markAsRoot

Function markAsRoot

src/document/builders/align.js:43–45  ·  view source on GitHub ↗

@param {Doc} contents @returns {Align & {readonly n: AlignTypeRoot}}

(contents)

Source from the content-addressed store, hash-verified

41@returns {Align & {readonly n: AlignTypeRoot}}
42*/
43function markAsRoot(contents) {
44 return align({ type: "root" }, contents);
45}
46
47/**
48@param {Doc} contents

Callers 7

printBlockFunction · 0.90
printEmbedFrontMatterFunction · 0.90
embedFunction · 0.90
printMdastFunction · 0.90
doc-builders.jsFile · 0.90

Calls 1

alignFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…