Buckets:
| import {TokenType as tt} from "../parser/tokenizer/types"; | |
| /** | |
| * Get all identifier names in the code, in order, including duplicates. | |
| */ | |
| export default function getIdentifierNames(code, tokens) { | |
| const names = []; | |
| for (const token of tokens) { | |
| if (token.type === tt.name) { | |
| names.push(code.slice(token.start, token.end)); | |
| } | |
| } | |
| return names; | |
| } | |
Xet Storage Details
- Size:
- 369 Bytes
- Xet hash:
- 91c38d877dea70cd7f93adb376a715504dd403989e758689d7064d92154e9540
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.