src/visitor.js
function buildErrorHandler(path) {
    return function(node, text) {
        throw path.hub.file.buildCodeFrameError(node, text);
    }
}
function buildErrorHandler(path) {
    return function(node, text) {
        throw path.hub.file.buildCodeFrameError(node, text);
    }
}
function buildErrorHandler ( path ) { return function ( node , text ) { throw path . hub . file . buildCodeFrameError ( node , text ) ; } }
Builds an error handling function for the given path.
Builds an error handling function for the given path .