Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alangpierce/sucrase
/ functions
Functions
904 in github.com/alangpierce/sucrase
⨍
Functions
904
◇
Types & classes
118
↓ 3 callers
Function
parseSubscripts
(startPos: number, noCalls: boolean | null = null)
benchmark/sample/expression.ts:251
↓ 3 callers
Function
parseSubscripts
(startTokenIndex: number, noCalls: boolean = false)
src/parser/traverser/expression.ts:289
↓ 3 callers
Function
parseTemplate
()
src/parser/traverser/expression.ts:730
↓ 3 callers
Function
postMessage
(message: WorkerMessage)
website/src/worker/Worker.worker.ts:18
↓ 3 callers
Method
processJSXTag
()
src/transformers/JSXTransformer.ts:83
↓ 3 callers
Method
processPossibleTypeRange
()
src/transformers/RootTransformer.ts:439
↓ 3 callers
Function
profile
(asyncFn: () => Promise<number | null>)
website/src/WorkerClient.ts:166
↓ 3 callers
Function
readInt
* 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 callers
Function
removeTransform
(transforms: Array<Transform>, transform: Transform)
website/src/SucraseOptionsBox.tsx:26
↓ 3 callers
Function
runAndProfile
(runOperation: () => string)
website/src/worker/Worker.worker.ts:269
↓ 3 callers
Function
skipToNextClassElement
* 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 callers
Method
stringValue
()
src/TokenProcessor.ts:103
↓ 3 callers
Method
stringValueAtIndex
(index: number)
src/TokenProcessor.ts:99
↓ 3 callers
Method
stringValueForToken
(token: Token)
src/TokenProcessor.ts:107
↓ 3 callers
Function
tsFillSignature
(returnToken: TokenType)
src/parser/plugins/typescript.ts:243
↓ 3 callers
Function
tsIsIdentifier
()
src/parser/plugins/typescript.ts:57
↓ 3 callers
Function
tsParseEnumDeclaration
()
src/parser/plugins/typescript.ts:863
↓ 3 callers
Function
tsParseFunctionOrConstructorType
(type: FunctionType)
src/parser/plugins/typescript.ts:469
↓ 3 callers
Function
tsParseImportEqualsDeclaration
()
src/parser/plugins/typescript.ts:902
↓ 3 callers
Function
tsParseModifiers
(allowedModifiers: Array<ContextualKeyword>)
src/parser/plugins/typescript.ts:99
↓ 3 callers
Function
tsParseModuleBlock
()
src/parser/plugins/typescript.ts:872
↓ 3 callers
Function
tsParseTypeArgumentsWithPossibleBitshift
* 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 callers
Function
assertESMResult
(code: string, expectedResult: string)
test/jest-test.ts:14
↓ 2 callers
Function
assertImportResult
( code: string, {expectedCJSResult, expectedESMResult}: {expectedCJSResult: string; expectedESMResult: str
test/jest-test.ts:18
↓ 2 callers
Function
assertTypeScriptAndFlowExpectations
(code: string, expectations: Expectations)
test/types-test.ts:4
↓ 2 callers
Function
atPossibleAsync
()
src/parser/traverser/expression.ts:390
↓ 2 callers
Function
baseParseConditional
(noIn: boolean)
src/parser/traverser/expression.ts:173
↓ 2 callers
Function
baseParseMaybeDecoratorArguments
()
src/parser/traverser/statement.ts:332
↓ 2 callers
Function
baseParseSubscripts
(startTokenIndex: number, noCalls: boolean = false)
src/parser/traverser/expression.ts:297
↓ 2 callers
Method
claimAutoImportedName
(funcName: string, importPathSuffix: string)
src/transformers/JSXTransformer.ts:298
↓ 2 callers
Method
copyDecorators
()
src/transformers/CJSImportTransformer.ts:586
↓ 2 callers
Function
eatTypeToken
(tokenType: TokenType)
src/parser/tokenizer/index.ts:214
↓ 2 callers
Function
elideImportEquals
(tokens: TokenProcessor)
src/util/elideImportEquals.ts:4
↓ 2 callers
Function
finishEndMessage
()
website/src/WorkerClient.ts:69
↓ 2 callers
Function
flowParseAnonFunctionWithoutParens
()
src/parser/plugins/flow.ts:667
↓ 2 callers
Function
flowParseArrow
()
src/parser/plugins/flow.ts:1022
↓ 2 callers
Function
flowParseEnumDeclaration
()
src/parser/plugins/flow.ts:1071
↓ 2 callers
Function
flowParseFunctionBodyAndFinish
(funcContextId: number)
src/parser/plugins/flow.ts:716
↓ 2 callers
Function
flowParseIntersectionType
()
src/parser/plugins/flow.ts:674
↓ 2 callers
Function
flowParseMaybeAssign
(noIn: boolean, isWithinParens: boolean)
src/parser/plugins/flow.ts:997
↓ 2 callers
Function
flowParsePredicate
()
src/parser/plugins/flow.ts:64
↓ 2 callers
Function
flowParsePrimaryType
()
src/parser/plugins/flow.ts:540
↓ 2 callers
Function
flowParseQualifiedTypeIdentifier
(initialIdAlreadyParsed: boolean)
src/parser/plugins/flow.ts:480
↓ 2 callers
Function
flowParseSubscripts
(startTokenIndex: number, noCalls: boolean = false)
src/parser/plugins/flow.ts:1043
↓ 2 callers
Function
flowParseTypeAnnotatableIdentifier
()
src/parser/plugins/flow.ts:698
↓ 2 callers
Function
flowStartParseAsyncArrowFromCallExpression
()
src/parser/plugins/flow.ts:978
↓ 2 callers
Function
flowStartParseObjPropValue
()
src/parser/plugins/flow.ts:903
↓ 2 callers
Function
formatJSXTextReplacement
* 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 callers
Function
formatPos
(pos: number)
src/util/formatTokens.ts:58
↓ 2 callers
Function
formatSpeed
(speed: number)
benchmark/compare-performance.ts:99
↓ 2 callers
Function
formatTokenType
(tokenType: TokenType)
src/parser/tokenizer/types.ts:130
↓ 2 callers
Function
formatValue
(value: any, key: string)
src/util/formatTokens.ts:44
↓ 2 callers
Function
getBranchRef
()
benchmark/compare-performance.ts:52
↓ 2 callers
Function
getClientEnvironment
(publicUrl)
website/config/env.js:11
↓ 2 callers
Function
getDeclarationInfo
(tokens: TokenProcessor)
src/util/getDeclarationInfo.ts:26
↓ 2 callers
Method
getDevSource
(elementLocationCode: string)
src/transformers/JSXTransformer.ts:550
↓ 2 callers
Function
getFormattedTokens
(code: string, options: Options)
src/index.ts:76
↓ 2 callers
Method
getFragmentCode
* 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 callers
Function
getJSXPragmaInfo
(options: Options)
src/util/getJSXPragmaInfo.ts:10
↓ 2 callers
Method
getNamedImports
(index: number)
src/CJSImportProcessor.ts:360
↓ 2 callers
Function
getNonTypeIdentifiers
(tokens: TokenProcessor, options: Options)
src/util/getNonTypeIdentifiers.ts:8
↓ 2 callers
Function
getSucraseContext
* 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 callers
Function
getTokenFromCode
(code: number)
src/parser/tokenizer/index.ts:640
↓ 2 callers
Function
h
(tag)
integration-test/test-cases/ts-node-cases/jsx-cases/jsx-factory-config-is-respected/main.tsx:5
↓ 2 callers
Function
hasFollowingLineBreak
()
src/parser/traverser/util.ts:53
↓ 2 callers
Function
hasShadowedGlobals
(tokens: TokenProcessor, globalNames: Set<string>)
src/identifyShadowedGlobals.ts:30
↓ 2 callers
Function
identifyShadowedGlobals
( tokens: TokenProcessor, scopes: Array<Scope>, globalNames: Set<string>, )
src/identifyShadowedGlobals.ts:14
↓ 2 callers
Function
initParser
( inputCode: string, isJSXEnabledArg: boolean, isTypeScriptEnabledArg: boolean, isFlowEnabledArg: bool
src/parser/traverser/base.ts:48
↓ 2 callers
Function
initWorker
()
website/src/WorkerClient.ts:46
↓ 2 callers
Method
isAtEnd
()
src/TokenProcessor.ts:354
↓ 2 callers
Function
isClassMethod
()
src/parser/traverser/statement.ts:754
↓ 2 callers
Function
isClassProperty
()
src/parser/traverser/statement.ts:750
↓ 2 callers
Function
isDeclaration
(token: Token)
src/parser/tokenizer/index.ts:50
↓ 2 callers
Function
isExportFrom
(tokens: TokenProcessor)
src/util/isExportFrom.ts:9
↓ 2 callers
Function
isFix
()
script/lint.ts:10
↓ 2 callers
Function
isIdentifier
(name: string)
src/util/isIdentifier.ts:68
↓ 2 callers
Function
isTopLevelDeclaration
(token: Token)
src/parser/tokenizer/index.ts:72
↓ 2 callers
Function
jsxParseElementName
()
src/parser/plugins/jsx/index.ts:131
↓ 2 callers
Function
jsxParseNamespacedName
(identifierRole: IdentifierRole)
src/parser/plugins/jsx/index.ts:118
↓ 2 callers
Method
justSkippedSuper
* 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 callers
Function
loadProjectFiles
(projectPath: string)
benchmark/loadProjectFiles.ts:9
↓ 2 callers
Function
lookaheadCharCode
()
src/parser/tokenizer/index.ts:261
↓ 2 callers
Method
makeConstructorInitCode
( constructorInitializerStatements: Array<string>, instanceInitializerNames: Array<string>, classN
src/transformers/RootTransformer.ts:359
↓ 2 callers
Function
markShadowedForScope
(scope: Scope, tokens: TokenProcessor, name: string)
src/identifyShadowedGlobals.ts:88
↓ 2 callers
Function
maybeParseImportAttributes
* 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 callers
Function
nextToken
()
src/parser/tokenizer/index.ts:267
↓ 2 callers
Function
nextTokenStartSince
(pos: number)
src/parser/tokenizer/index.ts:255
↓ 2 callers
Function
parseArrow
()
benchmark/sample/expression.ts:615
↓ 2 callers
Function
parseAssignableListItemTypes
()
src/parser/traverser/lval.ts:140
↓ 2 callers
Function
parseCallExpressionArguments
(close: TokenType)
benchmark/sample/expression.ts:347
↓ 2 callers
Function
parseDecorator
()
src/parser/traverser/statement.ts:310
↓ 2 callers
Function
parseExport
()
src/parser/traverser/statement.ts:964
↓ 2 callers
Function
parseExportSpecifiersMaybe
()
src/parser/traverser/statement.ts:1068
↓ 2 callers
Function
parseExprList
(close: TokenType, allowEmpty: boolean | null = null)
benchmark/sample/expression.ts:917
↓ 2 callers
Function
parseExprList
(close: TokenType, allowEmpty: boolean = false)
src/parser/traverser/expression.ts:967
↓ 2 callers
Function
parseExprListItem
(allowEmpty: boolean | null)
benchmark/sample/expression.ts:930
↓ 2 callers
Function
parseExprListItem
(allowEmpty: boolean)
src/parser/traverser/expression.ts:980
↓ 2 callers
Function
parseExprSubscripts
()
src/parser/traverser/expression.ts:274
↓ 2 callers
Function
parseForIn
(forAwait: boolean)
src/parser/traverser/statement.ts:610
↓ 2 callers
Function
parseFunctionBody
( functionStart: number, isGenerator: boolean, allowExpression: boolean | null, funcContextId?: number
benchmark/sample/expression.ts:896
← previous
next →
201–300 of 904, ranked by callers