/ lib / tree.js
tree.js
1  import { streamFromTree } from '@bablr/agast-helpers/tree';
2  
3  import { printPrettyCSTML as printPrettyCSTMLFromStream } from './stream.js';
4  
5  export const printPrettyCSTML = (rootNode, options = {}) => {
6    // i need a context-aware streamFromTree here to build a stream with linked Tags...?
7    return printPrettyCSTMLFromStream(streamFromTree(rootNode), options);
8  };