JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "getIdentifierNames.js"

Full Path: /home/u703019046/domains/nawabs.com.au/public_html/node_modules/sucrase/dist/esm/util/getIdentifierNames.js
File size: 369 bytes
MIME-type: text/x-java
Charset: utf-8


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;
}