MCPcopy Create free account

hub / github.com/alangpierce/sucrase / functions

Functions904 in github.com/alangpierce/sucrase

↓ 1 callersFunctionparseWhileStatement
()
src/parser/traverser/statement.ts:539
↓ 1 callersFunctionparseYield
()
benchmark/sample/expression.ts:955
↓ 1 callersFunctionparseYield
()
src/parser/traverser/expression.ts:1006
↓ 1 callersMethodpreprocessExportAtIndex
(index: number)
src/CJSImportProcessor.ts:251
↓ 1 callersMethodpreprocessExportStarAtIndex
(index: number)
src/CJSImportProcessor.ts:336
↓ 1 callersMethodpreprocessImportAtIndex
(index: number)
src/CJSImportProcessor.ts:184
↓ 1 callersMethodpreprocessNamedExportAtIndex
* Walk this export statement just in case it's an export...from statement. * If it is, combine it into the import info for that path. Otherwise, ju
src/CJSImportProcessor.ts:312
↓ 1 callersMethodpreprocessVarExportAtIndex
(index: number)
src/CJSImportProcessor.ts:274
↓ 1 callersMethodpreviousToken
()
src/TokenProcessor.ts:342
↓ 1 callersMethodprocess
()
src/transformers/JSXTransformer.ts:44
↓ 1 callersMethodprocessAssignment
()
src/transformers/CJSImportTransformer.ts:396
↓ 1 callersMethodprocessChildTextElement
* Turn a JSX text element into a string literal, or nothing at all if the JSX * text resolves to the empty string. * * Returns true if a stri
src/transformers/JSXTransformer.ts:536
↓ 1 callersMethodprocessClassBody
* We want to just handle class fields in all contexts, since TypeScript supports them. Later, * when some JS implementations support class fields,
src/transformers/RootTransformer.ts:269
↓ 1 callersFunctionprocessClassHeader
(tokens: TokenProcessor)
src/util/getClassInfo.ts:214
↓ 1 callersMethodprocessComplexAssignment
* Process something like `a += 3`, where `a` might be an exported value.
src/transformers/CJSImportTransformer.ts:430
↓ 1 callersMethodprocessComplexExportVar
* Transform normal declaration exports, including handling destructuring. * For example, this: * export const {x: [a = 2, b], c} = d; * becom
src/transformers/CJSImportTransformer.ts:683
↓ 1 callersMethodprocessDefaultExportEnum
* Handle a declaration like: * export default enum E * * With the imports transform, this becomes: * const E = [[enum]]; exports.default =
src/transformers/FlowTransformer.ts:72
↓ 1 callersMethodprocessEnumBody
* Transform an enum into equivalent JS. This has complexity in a few places: * - TS allows string enums, numeric enums, and a mix of the two styles
src/transformers/TypeScriptTransformer.ts:80
↓ 1 callersMethodprocessEnumElement
* Process an individual enum element, producing either an array element or an * object element based on what type of enum this is.
src/transformers/FlowTransformer.ts:163
↓ 1 callersFunctionprocessEvent
(data: Message)
website/src/worker/Worker.worker.ts:72
↓ 1 callersMethodprocessExplicitValueEnumMember
* Handle an enum member initialized with an expression on the right-hand side (other than a * string literal). In these cases, we should transform
src/transformers/TypeScriptTransformer.ts:220
↓ 1 callersMethodprocessExport
()
src/transformers/CJSImportTransformer.ts:308
↓ 1 callersMethodprocessExportBindings
* Transform this: * export {a, b as c}; * into this: * exports.a = a; exports.c = b; * * OR * * Transform this: * export {a, b
src/transformers/CJSImportTransformer.ts:830
↓ 1 callersMethodprocessExportClass
* Transform this: * export class A {} * into this: * class A {} exports.A = A;
src/transformers/CJSImportTransformer.ts:805
↓ 1 callersMethodprocessExportDefault
()
src/transformers/CJSImportTransformer.ts:521
↓ 1 callersMethodprocessExportDefault
()
src/transformers/ESMImportTransformer.ts:304
↓ 1 callersMethodprocessExportFunction
* Transform this: * export function foo() {} * into this: * function foo() {} exports.foo = foo;
src/transformers/CJSImportTransformer.ts:756
↓ 1 callersMethodprocessExportStar
()
src/transformers/CJSImportTransformer.ts:896
↓ 1 callersMethodprocessExportVar
* Transform a declaration like `export var`, `export let`, or `export const`.
src/transformers/CJSImportTransformer.ts:611
↓ 1 callersMethodprocessIdentifier
()
src/transformers/CJSImportTransformer.ts:245
↓ 1 callersMethodprocessImplicitValueEnumMember
* Handle an enum member with no right-hand side expression. In this case, the value is the * previous value plus 1, or 0 if there was no previous v
src/transformers/TypeScriptTransformer.ts:264
↓ 1 callersMethodprocessImport
* Transform this: * import foo, {bar} from 'baz'; * into * var _baz = require('baz'); var _baz2 = _interopRequireDefault(_baz); * * The
src/transformers/CJSImportTransformer.ts:124
↓ 1 callersMethodprocessImport
()
src/transformers/ESMImportTransformer.ts:156
↓ 1 callersMethodprocessImportEquals
()
src/transformers/CJSImportTransformer.ts:103
↓ 1 callersMethodprocessImportEquals
()
src/transformers/ESMImportTransformer.ts:133
↓ 1 callersMethodprocessNamedExportEnum
* Handle a declaration like: * export enum E ... * * With this imports transform, this becomes: * const E = [[enum]]; exports.E = E; *
src/transformers/FlowTransformer.ts:49
↓ 1 callersMethodprocessNamedExports
* Handle a statement with one of these forms: * export {a, type b}; * export {c, type d} from 'foo'; * * In both cases, any explicit type
src/transformers/ESMImportTransformer.ts:356
↓ 1 callersMethodprocessObjectShorthand
()
src/transformers/CJSImportTransformer.ts:298
↓ 1 callersMethodprocessPostIncDec
* Process something like `a++`, where `a` might be an exported value. * This starts at the `a`, not at the `++`.
src/transformers/CJSImportTransformer.ts:488
↓ 1 callersMethodprocessPreIncDec
* Process something like `++a`, where `a` might be an exported value.
src/transformers/CJSImportTransformer.ts:456
↓ 1 callersMethodprocessPropsObjectWithDevInfo
* Starting at the beginning of the props, add the props argument to * React.createElement, including the comma before it.
src/transformers/JSXTransformer.ts:355
↓ 1 callersMethodprocessSimpleExportVar
* Transform an `export var` declaration initializing a single variable. * * For example, this: * export const f = () => {}; * becomes this
src/transformers/CJSImportTransformer.ts:656
↓ 1 callersMethodprocessStringLiteralEnumMember
* Handle an enum member where the RHS is just a string literal (not omitted, not a number, and * not a complex expression). This is the typical for
src/transformers/TypeScriptTransformer.ts:173
↓ 1 callersMethodprocessStringPropValue
()
src/transformers/JSXTransformer.ts:459
↓ 1 callersMethodpruneTypeOnlyImports
* In TypeScript, import statements that only import types should be removed. * This includes `import {} from 'foo';`, but not `import 'foo';`.
src/CJSImportProcessor.ts:72
↓ 1 callersMethodrawCodeForToken
(token: Token)
src/TokenProcessor.ts:95
↓ 1 callersFunctionreadRadixNumber
()
src/parser/tokenizer/index.ts:855
↓ 1 callersFunctionreadRegexp
()
src/parser/tokenizer/index.ts:808
↓ 1 callersFunctionreadString
(quote: number)
src/parser/tokenizer/index.ts:928
↓ 1 callersFunctionreadTmplToken
()
src/parser/tokenizer/index.ts:948
↓ 1 callersFunctionreadToken
(code: number)
src/parser/tokenizer/index.ts:288
↓ 1 callersFunctionreadToken_caret
()
src/parser/tokenizer/index.ts:478
↓ 1 callersFunctionreadToken_dot
()
src/parser/tokenizer/index.ts:393
↓ 1 callersFunctionreadToken_eq_excl
(code: number)
src/parser/tokenizer/index.ts:594
↓ 1 callersFunctionreadToken_lt
()
src/parser/tokenizer/index.ts:507
↓ 1 callersFunctionreadToken_mult_modulo
(code: number)
src/parser/tokenizer/index.ts:418
↓ 1 callersFunctionreadToken_pipe_amp
(code: number)
src/parser/tokenizer/index.ts:443
↓ 1 callersFunctionreadToken_plus_min
(code: number)
src/parser/tokenizer/index.ts:488
↓ 1 callersFunctionreadToken_question
()
src/parser/tokenizer/index.ts:610
↓ 1 callersFunctionreadToken_slash
()
src/parser/tokenizer/index.ts:409
↓ 1 callersFunctionreadWord
()
src/parser/tokenizer/readWord.ts:14
↓ 1 callersFunctionregisterJS
(hookOptions?: HookOptions)
src/register.ts:37
↓ 1 callersFunctionregisterJSX
(hookOptions?: HookOptions)
src/register.ts:41
↓ 1 callersFunctionregisterTS
(hookOptions?: HookOptions)
src/register.ts:45
↓ 1 callersFunctionregisterTSX
(hookOptions?: HookOptions)
src/register.ts:49
↓ 1 callersMethodremoveBalancedCode
* Remove all code until the next }, accounting for balanced braces.
src/TokenProcessor.ts:213
↓ 1 callersMethodremoveImportAndDetectIfShouldElide
* Erase this import (since any CJS output would be completely different), and * return true if this import is should be elided due to being a type-
src/transformers/CJSImportTransformer.ts:178
↓ 1 callersMethodremoveImportTypeBindings
* Remove type bindings from this import, leaving the rest of the import intact. * * Return true if this import was ONLY types, and thus is eligi
src/transformers/ESMImportTransformer.ts:184
↓ 1 callersFunctionreportSummary
({numPassed, numFailed, numSkipped, failures}: ResultSummary)
spec-compliance-tests/babel-tests/check-babel-tests.ts:137
↓ 1 callersMethodreset
()
src/TokenProcessor.ts:64
↓ 1 callersFunctionrunBabel
(code: string, babelPlugins: Array<string>)
spec-compliance-tests/babel-tests/check-babel-tests.ts:258
↓ 1 callersFunctionrunBabel
()
website/src/WorkerClient.ts:108
↓ 1 callersFunctionrunBenchmarkComparison
(baseRef: string, branchRef: string)
benchmark/compare-performance.ts:60
↓ 1 callersFunctionrunGlob
(options: CLIOptions)
src/cli.ts:164
↓ 1 callersFunctionrunMicrobenchmark
(name: string, runTrial: () => void, times: number = 100)
benchmark/microbenchmark.ts:29
↓ 1 callersFunctionrunProject
(project: string, shouldSave: boolean)
example-runner/example-runner.ts:62
↓ 1 callersFunctionrunSucrase
(code: string, babelPlugins: Array<string>)
spec-compliance-tests/babel-tests/check-babel-tests.ts:250
↓ 1 callersFunctionrunSucrase
()
website/src/WorkerClient.ts:104
↓ 1 callersFunctionrunTypeScript
()
website/src/WorkerClient.ts:112
↓ 1 callersFunctionsaveHashState
({ code, compressedCode, sucraseOptions, compareOptions, debugOptions, }: HashState)
website/src/URLHashState.ts:26
↓ 1 callersFunctionsetConfig
(config: WorkerConfig)
website/src/WorkerClient.ts:100
↓ 1 callersMethodshouldAutomaticallyElideImportedName
(name: string)
src/CJSImportProcessor.ts:94
↓ 1 callersMethodshouldElideExportedIdentifier
(name: string)
src/transformers/CJSImportTransformer.ts:909
↓ 1 callersMethodshouldElideExportedName
* ESM elides all imports with the rule that we only elide if we see that it's * a type and never see it as a value. This is in contrast to CJS, whi
src/transformers/ESMImportTransformer.ts:407
↓ 1 callersFunctionshouldParseArrow
()
benchmark/sample/expression.ts:610
↓ 1 callersFunctionshouldParseArrow
()
src/parser/traverser/expression.ts:683
↓ 1 callersFunctionshouldParseAsyncArrow
()
benchmark/sample/expression.ts:361
↓ 1 callersFunctionshouldParseAsyncArrow
()
src/parser/traverser/expression.ts:415
↓ 1 callersFunctionshouldParseDefaultImport
()
src/parser/traverser/statement.ts:1250
↓ 1 callersFunctionshouldParseExportDeclaration
()
src/parser/traverser/statement.ts:1116
↓ 1 callersFunctionshouldParseExportStar
()
src/parser/traverser/statement.ts:1082
↓ 1 callersFunctionskipBlockComment
()
src/parser/tokenizer/index.ts:302
↓ 1 callersFunctionskipFieldName
* The next token or set of tokens is either an identifier or an expression in square brackets, for * a method or field name.
src/util/getClassInfo.ts:338
↓ 1 callersFunctionskipWord
()
src/parser/tokenizer/index.ts:983
↓ 1 callersFunctionsleep
(timeMs: number)
script/sleep.ts:1
↓ 1 callersFunctionsummarizeChange
( pessimisticComparison: Comparison, optimisticComparison: Comparison, )
benchmark/compare-performance.ts:116
↓ 1 callersMethodtransformTagToCreateElement
* Convert the current JSX element to a createElement call. In the classic * runtime, this is the only case. In the automatic runtime, this is calle
src/transformers/JSXTransformer.ts:185
↓ 1 callersMethodtransformTagToJSXFunc
* Convert the current JSX element to a call to jsx, jsxs, or jsxDEV. This is * the primary transformation for the automatic transform. * * Ex
src/transformers/JSXTransformer.ts:124
↓ 1 callersFunctiontruncate
(s: string, length: number)
src/util/formatTokens.ts:68
↓ 1 callersFunctiontsAfterParseClassSuper
(hasSuper: boolean)
src/parser/plugins/typescript.ts:1505
← previousnext →601–700 of 904, ranked by callers