source: frontend/node_modules/sucrase/dist/parser/traverser/index.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 655 bytes
Line 
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;
Note: See TracBrowser for help on using the repository browser.