/opt/canhelp/node_modules/sucrase/dist/esm/util
NameSizeModeActions
elideImportEquals.js6270644editdlrm
formatTokens.js21380644editdlrm
getClassInfo.js108490644editdlrm
getDeclarationInfo.js13810644editdlrm
getIdentifierNames.js3690644editdlrm
getImportExportSpecifierInfo.js20050644editdlrm
getJSXPragmaInfo.js4940644editdlrm
getNonTypeIdentifiers.js16360644editdlrm
getTSImportedNames.js21590644editdlrm
isAsyncOperation.js12740644editdlrm
isExportFrom.js6280644editdlrm
isIdentifier.js18220644editdlrm
removeMaybeImportAttributes.js5990644editdlrm
shouldElideDefaultExport.js11540644editdlrm
Edit: /opt/canhelp/node_modules/sucrase/dist/esm/util/removeMaybeImportAttributes.js (599B)
import {ContextualKeyword} from "../parser/tokenizer/keywords"; import {TokenType as tt} from "../parser/tokenizer/types"; /** * Starting at a potential `with` or (legacy) `assert` token, remove the import * attributes if they exist. */ export function removeMaybeImportAttributes(tokens) { if ( tokens.matches2(tt._with, tt.braceL) || (tokens.matches2(tt.name, tt.braceL) && tokens.matchesContextual(ContextualKeyword._assert)) ) { // assert tokens.removeToken(); // { tokens.removeToken(); tokens.removeBalancedCode(); // } tokens.removeToken(); } }