| 388 | return options; |
| 389 | } |
| 390 | function pushComment(options, array) { |
| 391 | return function(block, text2, start, end, startLoc, endLoc) { |
| 392 | var comment = { |
| 393 | type: block ? "Block" : "Line", |
| 394 | value: text2, |
| 395 | start, |
| 396 | end |
| 397 | }; |
| 398 | if (options.locations) { |
| 399 | comment.loc = new SourceLocation(this, startLoc, endLoc); |
| 400 | } |
| 401 | if (options.ranges) { |
| 402 | comment.range = [start, end]; |
| 403 | } |
| 404 | array.push(comment); |
| 405 | }; |
| 406 | } |
| 407 | var SCOPE_TOP = 1; |
| 408 | var SCOPE_FUNCTION = 2; |
| 409 | var SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION; |