lib/utils/ast-utils.js
function throwIfInvalidNode(node, functionName) {
    if (!exports.isASTNode(node)) {
        throw new Error(functionName + "(): " + util.inspect(node) + " is not a valid AST node.");
    }
}
function throwIfInvalidNode(node, functionName) {
    if (!exports.isASTNode(node)) {
        throw new Error(functionName + "(): " + util.inspect(node) + " is not a valid AST node.");
    }
}
function throwIfInvalidNode ( node , functionName ) { if ( ! exports . isASTNode ( node ) ) { throw new Error ( functionName + "(): " + util . inspect ( node ) + " is not a valid AST node." ) ; } }
For internal use. Throws if is passed an invalid AST node, else does nothing.
For internal use . Throws if is passed an invalid AST node else does nothing .