UNPKG

655 BJavaScriptView Raw
1"use strict";Object.defineProperty(exports, "__esModule", {value: true});
2var _index = require('../tokenizer/index');
3var _charcodes = require('../util/charcodes');
4var _base = require('./base');
5var _statement = require('./statement');
6
7 function parseFile() {
8 // If enabled, skip leading hashbang line.
9 if (
10 _base.state.pos === 0 &&
11 _base.input.charCodeAt(0) === _charcodes.charCodes.numberSign &&
12 _base.input.charCodeAt(1) === _charcodes.charCodes.exclamationMark
13 ) {
14 _index.skipLineComment.call(void 0, 2);
15 }
16 _index.nextToken.call(void 0, );
17 return _statement.parseTopLevel.call(void 0, );
18} exports.parseFile = parseFile;