MCPcopy
hub / github.com/Yoast/wordpress-seo / buildTree

Function buildTree

packages/yoastseo/spec/specHelpers/parse/buildTree.js:16–20  ·  view source on GitHub ↗
( paper, researcher )

Source from the content-addressed store, hash-verified

14 * @returns {void}
15 */
16export default function buildTree( paper, researcher ) {
17 const languageProcessor = new LanguageProcessor( researcher );
18 const shortcodes = paper._attributes && paper._attributes.shortcodes;
19 paper.setTree( build( paper, languageProcessor, shortcodes ) );
20}
21
22/**
23 * Builds an HTML tree for a given paper and researcher, and adds it to the paper.

Calls 2

buildFunction · 0.90
setTreeMethod · 0.45

Tested by

no test coverage detected