src/NodeBuilder.js
function fixParagraphNode(node, fullText) {
    const firstNode = node.children[0];
    const lastNode = node.children[node.children.length - 1];
    node.range = [firstNode.range[0], lastNode.range[1]];
    node.raw = fullText.slice(node.range[0], node.range[1]);
    node.loc = {
        start: {
            line: firstNode.loc.start.line,
            column: firstNode.loc.start.column
        },
        end: {
            line: lastNode.loc.end.line,
            column: lastNode.loc.end.column
        }
    };
}
function fixParagraphNode(node, fullText) {
    const firstNode = node.children[0];
    const lastNode = node.children[node.children.length - 1];
    node.range = [firstNode.range[0], lastNode.range[1]];
    node.raw = fullText.slice(node.range[0], node.range[1]);
    node.loc = {
        start: {
            line: firstNode.loc.start.line,
            column: firstNode.loc.start.column
        },
        end: {
            line: lastNode.loc.end.line,
            column: lastNode.loc.end.column
        }
    };
}
function fixParagraphNode ( node , fullText ) { const firstNode = node . children [ 0 ] ; const lastNode = node . children [ node . children . length - 1 ] ; node . range = [ firstNode . range [ 0 ] , lastNode . range [ 1 ] ] ; node . raw = fullText . slice ( node . range [ 0 ] , node . range [ 1 ] ) ; node . loc = { start : { line : firstNode . loc . start . line , column : firstNode . loc . start . column } , end : { line : lastNode . loc . end . line , column : lastNode . loc . end . column } } ; }
fill properties of paragraph node.
@param {TxtNode} node - Paragraph node to modify
@param {string} fullText - Full text of the document
fill properties of paragraph node .