MCPcopy Index your code
hub / github.com/prettier/prettier / print

Function print

tests/integration/__tests__/plugin-api-embed.js:30–39  ·  view source on GitHub ↗
(path, options, print)

Source from the content-addressed store, hash-verified

28 printers: {
29 "baz-ast": {
30 print(path, options, print) {
31 const { type, text } = path.getValue();
32 switch (type) {
33 case "root":
34 return path.map(print, "lines");
35 case "json":
36 case "plain":
37 return [text, hardline];
38 }
39 },
40 embed: withOutdatedApi
41 ? (path, print, textToDoc) => {
42 const { type, text } = path.getValue();

Callers

nothing calls this directly

Calls 2

getValueMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…