1 | var utils = require('../utils')
|
2 | , nodes = require('../nodes');
|
3 |
|
4 | /**
|
5 | * Inspect the given `expr`.
|
6 | *
|
7 | * @param {Expression} expr
|
8 | * @api public
|
9 | */
|
10 |
|
11 | (module.exports = function p(){
|
12 | [].slice.call(arguments).forEach(function(expr){
|
13 | expr = utils.unwrap(expr);
|
14 | if (!expr.nodes.length) return;
|
15 | console.log('\u001b[90minspect:\u001b[0m %s', expr.toString().replace(/^\(|\)$/g, ''));
|
16 | })
|
17 | return nodes.null;
|
18 | }).raw = true;
|