MCPcopy Create free account

hub / github.com/alangpierce/sucrase / functions

Functions904 in github.com/alangpierce/sucrase

↓ 3 callersFunctionparseSubscripts
(startPos: number, noCalls: boolean | null = null)
benchmark/sample/expression.ts:251
↓ 3 callersFunctionparseSubscripts
(startTokenIndex: number, noCalls: boolean = false)
src/parser/traverser/expression.ts:289
↓ 3 callersFunctionparseTemplate
()
src/parser/traverser/expression.ts:730
↓ 3 callersFunctionpostMessage
(message: WorkerMessage)
website/src/worker/Worker.worker.ts:18
↓ 3 callersMethodprocessJSXTag
()
src/transformers/JSXTransformer.ts:83
↓ 3 callersMethodprocessPossibleTypeRange
()
src/transformers/RootTransformer.ts:439
↓ 3 callersFunctionprofile
(asyncFn: () => Promise<number | null>)
website/src/WorkerClient.ts:166
↓ 3 callersFunctionreadInt
* Read a decimal integer. Note that this can't be unified with the similar code * in readRadixNumber (which also handles hex digits) because "e" need
src/parser/tokenizer/index.ts:844
↓ 3 callersFunctionremoveTransform
(transforms: Array<Transform>, transform: Transform)
website/src/SucraseOptionsBox.tsx:26
↓ 3 callersFunctionrunAndProfile
(runOperation: () => string)
website/src/worker/Worker.worker.ts:269
↓ 3 callersFunctionskipToNextClassElement
* Move the token processor to the next method/field in the class. * * To do that, we seek forward to the next start of a class name (either an open
src/util/getClassInfo.ts:204
↓ 3 callersMethodstringValue
()
src/TokenProcessor.ts:103
↓ 3 callersMethodstringValueAtIndex
(index: number)
src/TokenProcessor.ts:99
↓ 3 callersMethodstringValueForToken
(token: Token)
src/TokenProcessor.ts:107
↓ 3 callersFunctiontsFillSignature
(returnToken: TokenType)
src/parser/plugins/typescript.ts:243
↓ 3 callersFunctiontsIsIdentifier
()
src/parser/plugins/typescript.ts:57
↓ 3 callersFunctiontsParseEnumDeclaration
()
src/parser/plugins/typescript.ts:863
↓ 3 callersFunctiontsParseFunctionOrConstructorType
(type: FunctionType)
src/parser/plugins/typescript.ts:469
↓ 3 callersFunctiontsParseImportEqualsDeclaration
()
src/parser/plugins/typescript.ts:902
↓ 3 callersFunctiontsParseModifiers
(allowedModifiers: Array<ContextualKeyword>)
src/parser/plugins/typescript.ts:99
↓ 3 callersFunctiontsParseModuleBlock
()
src/parser/plugins/typescript.ts:872
↓ 3 callersFunctiontsParseTypeArgumentsWithPossibleBitshift
* If necessary, hack the tokenizer state so that this bitshift was actually a * less-than token, then keep parsing. This should only be used in situa
src/parser/plugins/typescript.ts:1146
↓ 2 callersFunctionassertESMResult
(code: string, expectedResult: string)
test/jest-test.ts:14
↓ 2 callersFunctionassertImportResult
( code: string, {expectedCJSResult, expectedESMResult}: {expectedCJSResult: string; expectedESMResult: str
test/jest-test.ts:18
↓ 2 callersFunctionassertTypeScriptAndFlowExpectations
(code: string, expectations: Expectations)
test/types-test.ts:4
↓ 2 callersFunctionatPossibleAsync
()
src/parser/traverser/expression.ts:390
↓ 2 callersFunctionbaseParseConditional
(noIn: boolean)
src/parser/traverser/expression.ts:173
↓ 2 callersFunctionbaseParseMaybeDecoratorArguments
()
src/parser/traverser/statement.ts:332
↓ 2 callersFunctionbaseParseSubscripts
(startTokenIndex: number, noCalls: boolean = false)
src/parser/traverser/expression.ts:297
↓ 2 callersMethodclaimAutoImportedName
(funcName: string, importPathSuffix: string)
src/transformers/JSXTransformer.ts:298
↓ 2 callersMethodcopyDecorators
()
src/transformers/CJSImportTransformer.ts:586
↓ 2 callersFunctioneatTypeToken
(tokenType: TokenType)
src/parser/tokenizer/index.ts:214
↓ 2 callersFunctionelideImportEquals
(tokens: TokenProcessor)
src/util/elideImportEquals.ts:4
↓ 2 callersFunctionfinishEndMessage
()
website/src/WorkerClient.ts:69
↓ 2 callersFunctionflowParseAnonFunctionWithoutParens
()
src/parser/plugins/flow.ts:667
↓ 2 callersFunctionflowParseArrow
()
src/parser/plugins/flow.ts:1022
↓ 2 callersFunctionflowParseEnumDeclaration
()
src/parser/plugins/flow.ts:1071
↓ 2 callersFunctionflowParseFunctionBodyAndFinish
(funcContextId: number)
src/parser/plugins/flow.ts:716
↓ 2 callersFunctionflowParseIntersectionType
()
src/parser/plugins/flow.ts:674
↓ 2 callersFunctionflowParseMaybeAssign
(noIn: boolean, isWithinParens: boolean)
src/parser/plugins/flow.ts:997
↓ 2 callersFunctionflowParsePredicate
()
src/parser/plugins/flow.ts:64
↓ 2 callersFunctionflowParsePrimaryType
()
src/parser/plugins/flow.ts:540
↓ 2 callersFunctionflowParseQualifiedTypeIdentifier
(initialIdAlreadyParsed: boolean)
src/parser/plugins/flow.ts:480
↓ 2 callersFunctionflowParseSubscripts
(startTokenIndex: number, noCalls: boolean = false)
src/parser/plugins/flow.ts:1043
↓ 2 callersFunctionflowParseTypeAnnotatableIdentifier
()
src/parser/plugins/flow.ts:698
↓ 2 callersFunctionflowStartParseAsyncArrowFromCallExpression
()
src/parser/plugins/flow.ts:978
↓ 2 callersFunctionflowStartParseObjPropValue
()
src/parser/plugins/flow.ts:903
↓ 2 callersFunctionformatJSXTextReplacement
* Produce the code that should be printed after the JSX text string literal, * with most content removed, but all newlines preserved and all spacing
src/transformers/JSXTransformer.ts:625
↓ 2 callersFunctionformatPos
(pos: number)
src/util/formatTokens.ts:58
↓ 2 callersFunctionformatSpeed
(speed: number)
benchmark/compare-performance.ts:99
↓ 2 callersFunctionformatTokenType
(tokenType: TokenType)
src/parser/tokenizer/types.ts:130
↓ 2 callersFunctionformatValue
(value: any, key: string)
src/util/formatTokens.ts:44
↓ 2 callersFunctiongetBranchRef
()
benchmark/compare-performance.ts:52
↓ 2 callersFunctiongetClientEnvironment
(publicUrl)
website/config/env.js:11
↓ 2 callersFunctiongetDeclarationInfo
(tokens: TokenProcessor)
src/util/getDeclarationInfo.ts:26
↓ 2 callersMethodgetDevSource
(elementLocationCode: string)
src/transformers/JSXTransformer.ts:550
↓ 2 callersFunctiongetFormattedTokens
(code: string, options: Options)
src/index.ts:76
↓ 2 callersMethodgetFragmentCode
* Return the code to use as the component when compiling a shorthand * fragment, e.g. `React.Fragment`. * * This may be called from either th
src/transformers/JSXTransformer.ts:266
↓ 2 callersFunctiongetJSXPragmaInfo
(options: Options)
src/util/getJSXPragmaInfo.ts:10
↓ 2 callersMethodgetNamedImports
(index: number)
src/CJSImportProcessor.ts:360
↓ 2 callersFunctiongetNonTypeIdentifiers
(tokens: TokenProcessor, options: Options)
src/util/getNonTypeIdentifiers.ts:8
↓ 2 callersFunctiongetSucraseContext
* Call into the parser/tokenizer and do some further preprocessing: * - Come up with a set of used names so that we can assign new names. * - Prepro
src/index.ts:90
↓ 2 callersFunctiongetTokenFromCode
(code: number)
src/parser/tokenizer/index.ts:640
↓ 2 callersFunctionh
(tag)
integration-test/test-cases/ts-node-cases/jsx-cases/jsx-factory-config-is-respected/main.tsx:5
↓ 2 callersFunctionhasFollowingLineBreak
()
src/parser/traverser/util.ts:53
↓ 2 callersFunctionhasShadowedGlobals
(tokens: TokenProcessor, globalNames: Set<string>)
src/identifyShadowedGlobals.ts:30
↓ 2 callersFunctionidentifyShadowedGlobals
( tokens: TokenProcessor, scopes: Array<Scope>, globalNames: Set<string>, )
src/identifyShadowedGlobals.ts:14
↓ 2 callersFunctioninitParser
( inputCode: string, isJSXEnabledArg: boolean, isTypeScriptEnabledArg: boolean, isFlowEnabledArg: bool
src/parser/traverser/base.ts:48
↓ 2 callersFunctioninitWorker
()
website/src/WorkerClient.ts:46
↓ 2 callersMethodisAtEnd
()
src/TokenProcessor.ts:354
↓ 2 callersFunctionisClassMethod
()
src/parser/traverser/statement.ts:754
↓ 2 callersFunctionisClassProperty
()
src/parser/traverser/statement.ts:750
↓ 2 callersFunctionisDeclaration
(token: Token)
src/parser/tokenizer/index.ts:50
↓ 2 callersFunctionisExportFrom
(tokens: TokenProcessor)
src/util/isExportFrom.ts:9
↓ 2 callersFunctionisFix
()
script/lint.ts:10
↓ 2 callersFunctionisIdentifier
(name: string)
src/util/isIdentifier.ts:68
↓ 2 callersFunctionisTopLevelDeclaration
(token: Token)
src/parser/tokenizer/index.ts:72
↓ 2 callersFunctionjsxParseElementName
()
src/parser/plugins/jsx/index.ts:131
↓ 2 callersFunctionjsxParseNamespacedName
(identifierRole: IdentifierRole)
src/parser/plugins/jsx/index.ts:118
↓ 2 callersMethodjustSkippedSuper
* Determine if we are the open-paren in an expression like super.a()?.b. * * We can do this by walking backward to find the previous subscript.
src/transformers/OptionalChainingNullishTransformer.ts:130
↓ 2 callersFunctionloadProjectFiles
(projectPath: string)
benchmark/loadProjectFiles.ts:9
↓ 2 callersFunctionlookaheadCharCode
()
src/parser/tokenizer/index.ts:261
↓ 2 callersMethodmakeConstructorInitCode
( constructorInitializerStatements: Array<string>, instanceInitializerNames: Array<string>, classN
src/transformers/RootTransformer.ts:359
↓ 2 callersFunctionmarkShadowedForScope
(scope: Scope, tokens: TokenProcessor, name: string)
src/identifyShadowedGlobals.ts:88
↓ 2 callersFunctionmaybeParseImportAttributes
* Parse import attributes like `with {type: "json"}`, or the legacy form * `assert {type: "json"}`. * * Import attributes technically have their ow
src/parser/traverser/statement.ts:1327
↓ 2 callersFunctionnextToken
()
src/parser/tokenizer/index.ts:267
↓ 2 callersFunctionnextTokenStartSince
(pos: number)
src/parser/tokenizer/index.ts:255
↓ 2 callersFunctionparseArrow
()
benchmark/sample/expression.ts:615
↓ 2 callersFunctionparseAssignableListItemTypes
()
src/parser/traverser/lval.ts:140
↓ 2 callersFunctionparseCallExpressionArguments
(close: TokenType)
benchmark/sample/expression.ts:347
↓ 2 callersFunctionparseDecorator
()
src/parser/traverser/statement.ts:310
↓ 2 callersFunctionparseExport
()
src/parser/traverser/statement.ts:964
↓ 2 callersFunctionparseExportSpecifiersMaybe
()
src/parser/traverser/statement.ts:1068
↓ 2 callersFunctionparseExprList
(close: TokenType, allowEmpty: boolean | null = null)
benchmark/sample/expression.ts:917
↓ 2 callersFunctionparseExprList
(close: TokenType, allowEmpty: boolean = false)
src/parser/traverser/expression.ts:967
↓ 2 callersFunctionparseExprListItem
(allowEmpty: boolean | null)
benchmark/sample/expression.ts:930
↓ 2 callersFunctionparseExprListItem
(allowEmpty: boolean)
src/parser/traverser/expression.ts:980
↓ 2 callersFunctionparseExprSubscripts
()
src/parser/traverser/expression.ts:274
↓ 2 callersFunctionparseForIn
(forAwait: boolean)
src/parser/traverser/statement.ts:610
↓ 2 callersFunctionparseFunctionBody
( functionStart: number, isGenerator: boolean, allowExpression: boolean | null, funcContextId?: number
benchmark/sample/expression.ts:896
← previousnext →201–300 of 904, ranked by callers