mirror of
https://github.com/mblanke/ThreatHunt.git
synced 2026-03-02 06:10:21 -05:00
CLAUDE branch
i made have screwed the pooch with this
This commit is contained in:
15
frontend/node_modules/sucrase/dist/esm/util/getIdentifierNames.js
generated
vendored
Normal file
15
frontend/node_modules/sucrase/dist/esm/util/getIdentifierNames.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user