MCPcopy Create free account

hub / github.com/alangpierce/sucrase / functions

Functions904 in github.com/alangpierce/sucrase

↓ 2 callersFunctionparseFunctionBodyAndFinish
(functionStart: number, funcContextId: number = 0)
src/parser/traverser/expression.ts:941
↓ 2 callersFunctionparseImport
()
src/parser/traverser/statement.ts:1208
↓ 2 callersFunctionparseImportSpecifierLocal
()
src/parser/traverser/statement.ts:1254
↓ 2 callersFunctionparseMaybePrivateName
()
benchmark/sample/expression.ts:511
↓ 2 callersFunctionparseMethod
( functionStart: number, isGenerator: boolean, isConstructor: boolean, )
benchmark/sample/expression.ts:851
↓ 2 callersFunctionparsePostMemberNameModifiers
()
src/parser/traverser/statement.ts:897
↓ 2 callersFunctionparseTemplate
()
benchmark/sample/expression.ts:657
↓ 2 callersFunctionparseVar
(isFor: boolean, isBlockScope: boolean)
src/parser/traverser/statement.ts:623
↓ 2 callersFunctionprefetchChunk
* Hacky workaround for the fact that chunk loading in workers is normally * synchronous (importScripts). We determine the chunk name based on how the
website/src/worker/Worker.worker.ts:33
↓ 2 callersMethodpreprocessTokens
()
src/CJSImportProcessor.ts:50
↓ 2 callersMethodprocessAutomaticChildrenAndEndProps
* Starting in the middle of the props object literal, produce an additional * prop for the children and close the object literal.
src/transformers/JSXTransformer.ts:471
↓ 2 callersMethodprocessClass
()
src/transformers/RootTransformer.ts:225
↓ 2 callersFunctionprocessConstructor
* Extract useful information out of a constructor, starting at the "constructor" name.
src/util/getClassInfo.ts:246
↓ 2 callersFunctionprocessEntity
* Starting at a &, see if there's an HTML entity (specified by name, decimal * char code, or hex char code) and return it if so. * * Modified from
src/transformers/JSXTransformer.ts:675
↓ 2 callersMethodprocessEnum
(isExport: boolean = false)
src/transformers/TypeScriptTransformer.ts:51
↓ 2 callersMethodprocessNamedClass
* Skip past a class with a name and return that name.
src/transformers/RootTransformer.ts:216
↓ 2 callersMethodprocessNamedFunction
* Skip past a function with a name and return that name.
src/transformers/CJSImportTransformer.ts:765
↓ 2 callersMethodprocessPossibleArrowParamEnd
* Normally it's ok to simply remove type tokens, but we need to be more careful when dealing with * arrow function return types since they can conf
src/transformers/RootTransformer.ts:377
↓ 2 callersMethodprocessPossibleAsyncArrowWithTypeParams
* An async arrow function might be of the form: * * async < * T * >() => {} * * in which case, removing the type parameters will c
src/transformers/RootTransformer.ts:406
↓ 2 callersMethodprocessPropName
(propName: string)
src/transformers/JSXTransformer.ts:439
↓ 2 callersMethodprocessPropValue
()
src/transformers/JSXTransformer.ts:447
↓ 2 callersMethodprocessProps
* Transform the core part of the props, assuming that a { has already been * inserted before us and that a } will be inserted after us. * * I
src/transformers/JSXTransformer.ts:386
↓ 2 callersMethodprocessTagIntro
* Process the first part of a tag, before any props.
src/transformers/JSXTransformer.ts:322
↓ 2 callersFunctionreadJSONFileContents
(path: string)
script/util/readFileContents.ts:7
↓ 2 callersFunctionreadJSONFileContentsIfExists
(path: string)
script/util/readFileContents.ts:12
↓ 2 callersFunctionreadNumber
(startsWithDot: boolean)
src/parser/tokenizer/index.ts:883
↓ 2 callersFunctionreadToken_gt
()
src/parser/tokenizer/index.ts:545
↓ 2 callersMethodremoveRemainingImport
()
src/transformers/CJSImportTransformer.ts:239
↓ 2 callersFunctionrescan_gt
()
src/parser/tokenizer/index.ts:587
↓ 2 callersMethodrestoreToSnapshot
(snapshot: TokenProcessorSnapshot)
src/TokenProcessor.ts:46
↓ 2 callersFunctionretokenizeSlashAsRegex
()
src/parser/tokenizer/index.ts:185
↓ 2 callersFunctionrunBabel
()
website/src/worker/Worker.worker.ts:131
↓ 2 callersFunctionrunBenchmark
()
benchmark/compare-performance.ts:129
↓ 2 callersFunctionrunSucrase
()
website/src/worker/Worker.worker.ts:112
↓ 2 callersFunctionrunTypeScript
()
website/src/worker/Worker.worker.ts:219
↓ 2 callersMethodsetExtractedDefaultExportName
(extractedDefaultExportName: string)
src/transformers/ReactHotLoaderTransformer.ts:12
↓ 2 callersMethodshiftMappings
( mappings: Array<number | undefined>, prefixLength: number, )
src/transformers/RootTransformer.ts:450
↓ 2 callersFunctionshouldElideDefaultExport
( isTypeScriptTransformEnabled: boolean, keepUnusedImports: boolean, tokens: TokenProcessor, declarati
src/util/shouldElideDefaultExport.ts:8
↓ 2 callersFunctionskipLineComment
(startSkip: number)
src/parser/tokenizer/index.ts:316
↓ 2 callersFunctionskipSpace
()
src/parser/tokenizer/index.ts:333
↓ 2 callersFunctionsplitPragma
(pragma: string)
src/util/getJSXPragmaInfo.ts:16
↓ 2 callersFunctionstartsAwaitUsing
* Determine if we're positioned at an `await using` declaration. * * Note that this can happen either in place of a regular variable declaration *
src/parser/traverser/statement.ts:283
↓ 2 callersFunctionstartsWithLowerCase
(s: string)
src/transformers/JSXTransformer.ts:568
↓ 2 callersMethodtryProcessCreateClassCall
* This is called with the token position at the open-paren.
src/transformers/ReactDisplayNameTransformer.ts:62
↓ 2 callersFunctiontsIsDeclarationStart
()
src/parser/plugins/typescript.ts:1179
↓ 2 callersFunctiontsNextTokenCanFollowModifier
()
src/parser/plugins/typescript.ts:74
↓ 2 callersFunctiontsParseAmbientExternalModuleDeclaration
()
src/parser/plugins/typescript.ts:886
↓ 2 callersFunctiontsParseArrow
()
src/parser/plugins/typescript.ts:1602
↓ 2 callersFunctiontsParseFunctionBodyAndFinish
(functionStart: number, funcContextId: number)
src/parser/plugins/typescript.ts:1202
↓ 2 callersFunctiontsParseHeritageClause
()
src/parser/plugins/typescript.ts:816
↓ 2 callersFunctiontsParseImportType
()
src/parser/plugins/typescript.ts:186
↓ 2 callersFunctiontsParseIntersectionTypeOrHigher
()
src/parser/plugins/typescript.ts:591
↓ 2 callersFunctiontsParseMaybeAssign
(noIn: boolean, isWithinParens: boolean)
src/parser/plugins/typescript.ts:1543
↓ 2 callersFunctiontsParseModifier
( allowedModifiers: Array<ContextualKeyword>, )
src/parser/plugins/typescript.ts:109
↓ 2 callersFunctiontsParseModuleOrNamespaceDeclaration
()
src/parser/plugins/typescript.ts:877
↓ 2 callersFunctiontsParseNonConditionalType
()
src/parser/plugins/typescript.ts:777
↓ 2 callersFunctiontsParseObjectTypeMembers
()
src/parser/plugins/typescript.ts:351
↓ 2 callersFunctiontsParsePropertyOrMethodSignature
(isReadonly: boolean)
src/parser/plugins/typescript.ts:302
↓ 2 callersFunctiontsParseSignatureMember
()
src/parser/plugins/typescript.ts:270
↓ 2 callersFunctiontsParseSubscript
( startTokenIndex: number, noCalls: boolean, stopState: StopState, )
src/parser/plugins/typescript.ts:1229
↓ 2 callersFunctiontsParseTypeAssertion
()
src/parser/plugins/typescript.ts:794
↓ 2 callersFunctiontsParseTypeOperatorOrHigher
()
src/parser/plugins/typescript.ts:573
↓ 2 callersFunctiontsStartParseAsyncArrowFromCallExpression
()
src/parser/plugins/typescript.ts:1536
↓ 2 callersFunctiontsStartParseObjPropValue
()
src/parser/plugins/typescript.ts:1517
↓ 2 callersFunctiontsTryParseExportDeclaration
()
src/parser/plugins/typescript.ts:995
↓ 2 callersFunctiontsTryParseIndexSignature
()
src/parser/plugins/typescript.ts:283
↓ 2 callersFunctiontypedParseConditional
(noIn: boolean)
src/parser/plugins/types.ts:13
↓ 2 callersFunctiontypedParseParenItem
()
src/parser/plugins/types.ts:28
↓ 1 callersFunction_interopRequireDefault
(obj)
integration-test/test-cases/cli-cases/respects-preserve-dynamic-import/dist-expected/main.js:1
↓ 1 callersFunctionaddTransform
(transforms: Array<Transform>, transform: Transform)
website/src/SucraseOptionsBox.tsx:16
↓ 1 callersFunctionassertCJSResult
( code: string, expectedResult: string, extraTransforms: Array<Transform> = [], )
test/react-hot-loader-test.ts:7
↓ 1 callersFunctionassertDirectoriesEqual
(dir1: string, dir2: string)
integration-test/util/assertDirectoriesEqual.ts:5
↓ 1 callersFunctionassertNever
(value: never)
website/src/worker/Worker.worker.ts:68
↓ 1 callersFunctionatPossibleAsync
()
benchmark/sample/expression.ts:338
↓ 1 callersFunctionaugmentError
(error: any)
src/parser/traverser/base.ts:16
↓ 1 callersFunctionbaseParseConditional
(noIn: boolean | null, startPos: number)
benchmark/sample/expression.ts:158
↓ 1 callersFunctionbaseParseMaybeAssign
( noIn: boolean | null = null, afterLeftParse?: Function, )
benchmark/sample/expression.ts:110
↓ 1 callersFunctionbaseParseSubscript
( startPos: number, noCalls: boolean | null, stopState: {stop: boolean}, )
benchmark/sample/expression.ts:279
↓ 1 callersFunctionbaseParseSubscripts
(startPos: number, noCalls: boolean | null = null)
benchmark/sample/expression.ts:259
↓ 1 callersFunctionbenchmarkJest
* Run a benchmark against similar tools for publishing in the README. This can * be run by running "yarn benchmark" from the root Sucrase directory.
benchmark/benchmark.ts:84
↓ 1 callersFunctionbenchmarkJestForDev
* Run the Jest benchmark many times with warm-up to test Sucrase's performance * in response to code changes.
benchmark/benchmark.ts:128
↓ 1 callersFunctionbenchmarkJestForDiff
* Run the Jest benchmark with JSON stdout so that external tools can read it.
benchmark/benchmark.ts:114
↓ 1 callersFunctionbenchmarkProject
* Given a path to a project directory, discover all JS/TS files and determine * the time needed to transpile them.
benchmark/benchmark.ts:141
↓ 1 callersFunctionbenchmarkSample
* Benchmark 100 iterations of a 1000-line file that tries to be fairly * representative of typical code.
benchmark/benchmark.ts:151
↓ 1 callersFunctionbenchmarkTest
* Run a small code snippet through all compilers and print the output so they * can be spot-checked.
benchmark/benchmark.ts:160
↓ 1 callersFunctionbuild
(previousFileSizes)
website/scripts/build.js:94
↓ 1 callersFunctionbuildBenchmark
()
script/build.ts:33
↓ 1 callersFunctionbuildDirectory
(options: CLIOptions)
src/cli.ts:293
↓ 1 callersFunctionbuildFile
(srcPath: string, outPath: string, options: CLIOptions)
src/cli.ts:310
↓ 1 callersFunctionbuildSucrase
()
script/build.ts:43
↓ 1 callersFunctionbuildWebsite
* Just runs yarn for the website to prepare it for lint.
script/build.ts:98
↓ 1 callersFunctioncheckSucrase
()
script/lint.ts:30
↓ 1 callersFunctioncheckTestForDir
(dir: string, resultSummary: ResultSummary)
spec-compliance-tests/babel-tests/check-babel-tests.ts:175
↓ 1 callersFunctioncheckTests
(dir: string, resultSummary: ResultSummary)
spec-compliance-tests/babel-tests/check-babel-tests.ts:165
↓ 1 callersMethodclassNeedsDisplayName
* We only want to add a display name when this is a function call containing * one argument, which is an object literal without `displayName` as an
src/transformers/ReactDisplayNameTransformer.ts:118
↓ 1 callersFunctioncollectNamesForImport
( tokens: TokenProcessor, index: number, importedNames: Set<string>, )
src/util/getTSImportedNames.ts:25
↓ 1 callersFunctioncollectNamesForNamedImport
( tokens: TokenProcessor, index: number, importedNames: Set<string>, )
src/util/getTSImportedNames.ts:58
↓ 1 callersFunctioncompressCode
()
website/src/WorkerClient.ts:116
↓ 1 callersFunctioncompressCode
(code: string)
website/src/URLHashState.ts:153
↓ 1 callersFunctioncomputeIsIdentifierChar
(code: number)
src/parser/util/identifier.ts:4
← previousnext →301–400 of 904, ranked by callers