Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
433 bytes
|
Line | |
---|
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;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.