UNPKG

ast-parentchild

Version:

Convert your JavaScript file to acron AST format and then output a json file whihc have parent-child realtionship between nodes

17 lines (11 loc) 316 B
const Node = require('./node.js'); const ArrayLayout = require('../layout/array.js'); const defaultLayout = new ArrayLayout(); const MARGIN = 10; module.exports = class ArrayNode extends Node { constructor(nodes, layout, options={}) { super(null, nodes, layout); } _render() { } }