lib/result-builder.js
function getAttribute(path, attrNode) {
    path.forEach(attrName => {
        if (!(attrNode.attributes && attrNode.attributes[attrName])) {
            throw new ImplementationError(`Result-Builder: Unknown attribute "${path.join('.')}"`);
        }
        attrNode = attrNode.attributes[attrName];
    });
    return attrNode;
}
function getAttribute(path, attrNode) {
    path.forEach(attrName => {
        if (!(attrNode.attributes && attrNode.attributes[attrName])) {
            throw new ImplementationError(`Result-Builder: Unknown attribute "${path.join('.')}"`);
        }
        attrNode = attrNode.attributes[attrName];
    });
    return attrNode;
}
function getAttribute ( path , attrNode ) { path . forEach ( attrName => { if ( ! ( attrNode . attributes && attrNode . attributes [ attrName ] ) ) { throw new ImplementationError ( ` ${ path . join ( '.' ) } ` ) ; } attrNode = attrNode . attributes [ attrName ] ; } ) ; return attrNode ; }
Resolve attribute path relative to attrNode and return child attrNode

@param {Array} path Array of attribute-names representing the path
@param {Object} attrNode Root node where to start resolving
@private
Resolve attribute path relative to attrNode and return child attrNode