RFC: label doc (#10275)

* RFC: label doc

* Update functions in doc-utils
This commit is contained in:
Georgii Dolzhykov authored and GitHub committed 2021-02-10 17:08:54 +02:00
1 parent 91c0d58c4a
commit 662cdb04db
7 files changed
+57 -10

No files matched your search

+4
View File
@@ -173,6 +173,10 @@ function printDocToDebug(doc) {
return "lineSuffixBoundary";
}
if (doc.type === "label") {
return `label(${JSON.stringify(doc.label)}, ${printDoc(doc.contents)})`;
}
throw new Error("Unknown doc type " + doc.type);
}