Buckets:
| ;Object.defineProperty(exports, "__esModule", {value: true}); | |
| var _types = require('../parser/tokenizer/types'); | |
| /** | |
| * Get all identifier names in the code, in order, including duplicates. | |
| */ | |
| function getIdentifierNames(code, tokens) { | |
| const names = []; | |
| for (const token of tokens) { | |
| if (token.type === _types.TokenType.name) { | |
| names.push(code.slice(token.start, token.end)); | |
| } | |
| } | |
| return names; | |
| } exports.default = getIdentifierNames; | |
Xet Storage Details
- Size:
- 472 Bytes
- Xet hash:
- 279b588b820728fb045d45b839552fe45a88ad42736d0933c5a17db79f7049bf
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.