1 | "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _types = require('../parser/tokenizer/types');
|
2 |
|
3 |
|
4 | function elideImportEquals(tokens) {
|
5 |
|
6 | tokens.removeInitialToken();
|
7 |
|
8 | tokens.removeToken();
|
9 |
|
10 | tokens.removeToken();
|
11 |
|
12 | tokens.removeToken();
|
13 |
|
14 | if (tokens.matches1(_types.TokenType.parenL)) {
|
15 |
|
16 | tokens.removeToken();
|
17 |
|
18 | tokens.removeToken();
|
19 |
|
20 | tokens.removeToken();
|
21 | } else {
|
22 | while (tokens.matches1(_types.TokenType.dot)) {
|
23 |
|
24 | tokens.removeToken();
|
25 |
|
26 | tokens.removeToken();
|
27 | }
|
28 | }
|
29 | } exports.default = elideImportEquals;
|