(_input, _options)
| 2767 | exports.parse = parse; |
| 2768 | |
| 2769 | function parse(_input, _options) { |
| 2770 | if ('undefined' === typeof _options && 'object' === typeof _input) { |
| 2771 | _options = _input; |
| 2772 | _input = undefined; |
| 2773 | } |
| 2774 | if (!_options) _options = {}; |
| 2775 | |
| 2776 | input = _input || ''; |
| 2777 | options = extend(defaultOptions, _options); |
| 2778 | index = 0; |
| 2779 | line = 1; |
| 2780 | lineStart = 0; |
| 2781 | length = input.length; |
| 2782 | scopes = [[]]; |
| 2783 | scopeDepth = 0; |
| 2784 | globals = []; |
| 2785 | locations = []; |
| 2786 | |
| 2787 | if (options.comments) comments = []; |
| 2788 | if (!options.wait) return end(); |
| 2789 | return exports; |
| 2790 | } |
| 2791 | exports.write = write; |
| 2792 | |
| 2793 | function write(_input) { |
no test coverage detected