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
↓ 6 callers
Function
tsParseTypeArguments
()
src/parser/plugins/typescript.ts:1154
↓ 6 callers
Function
tsTryParseTypeAnnotation
()
src/parser/plugins/typescript.ts:690
↓ 5 callers
Function
assertESMResult
( code: string, expectedResult: string, extraTransforms: Array<Transform> = [], )
test/react-hot-loader-test.ts:18
↓ 5 callers
Function
assertScopes
(code: string, expectedScopes: Array<Scope>)
test/scopes-test.ts:6
↓ 5 callers
Function
checkProject
(path: string)
script/lint.ts:50
↓ 5 callers
Function
getImportExportSpecifierInfo
( tokens: TokenProcessor, index: number = tokens.currentIndex(), )
src/util/getImportExportSpecifierInfo.ts:41
↓ 5 callers
Function
lookaheadTypeAndKeyword
()
src/parser/tokenizer/index.ts:242
↓ 5 callers
Method
matches5
(t1: TokenType, t2: TokenType, t3: TokenType, t4: TokenType, t5: TokenType)
src/TokenProcessor.ts:155
↓ 5 callers
Function
parse
( input: string, isJSXEnabled: boolean, isTypeScriptEnabled: boolean, isFlowEnabled: boolean, )
src/parser/index.ts:16
↓ 5 callers
Function
parseArrowExpression
(startTokenIndex: number)
src/parser/traverser/expression.ts:934
↓ 5 callers
Function
parseClassMethod
(functionStart: number, isConstructor: boolean)
src/parser/traverser/statement.ts:881
↓ 5 callers
Function
parseClassPropertyName
(classContextId: number)
src/parser/traverser/statement.ts:893
↓ 5 callers
Function
parseExportFrom
()
src/parser/traverser/statement.ts:1074
↓ 5 callers
Function
parseFunctionBody
(allowExpression: boolean, funcContextId: number = 0)
src/parser/traverser/expression.ts:951
↓ 5 callers
Function
parsePropertyName
(objectContextId: number)
src/parser/traverser/expression.ts:896
↓ 5 callers
Method
previousWhitespaceAndComments
()
src/TokenProcessor.ts:173
↓ 5 callers
Function
readFileContents
(path: string)
script/util/readFileContents.ts:3
↓ 5 callers
Function
runBenchmark
( name: string, benchmarkOptions: BenchmarkOptions, runTrial: (code: string, path: string) => Promise<st
benchmark/benchmark.ts:301
↓ 5 callers
Method
shouldAutomaticallyElideImportedName
(name: string)
src/transformers/ESMImportTransformer.ts:296
↓ 5 callers
Function
tsParseEntityName
()
src/parser/plugins/typescript.ts:151
↓ 5 callers
Function
tsParseTypeAnnotation
()
src/parser/plugins/typescript.ts:747
↓ 5 callers
Function
tsParseTypeOrTypePredicateAnnotation
(returnToken: TokenType)
src/parser/plugins/typescript.ts:674
↓ 4 callers
Method
appendTokenPrefix
()
src/TokenProcessor.ts:260
↓ 4 callers
Method
appendTokenSuffix
()
src/TokenProcessor.ts:298
↓ 4 callers
Function
assertExpectations
( code: string, expectations: Expectations, options: Options, message?: string, )
test/util.ts:11
↓ 4 callers
Function
buildIntegration
(path: string)
script/build.ts:70
↓ 4 callers
Method
claimAutoImportedFuncInvocation
* Return code that invokes the given function. * * When the imports transform is enabled, use the CJSImportTransformer * strategy of using `.
src/transformers/JSXTransformer.ts:289
↓ 4 callers
Method
claimImportCode
* Return the code to use for the import for this path, or the empty string if * the code has already been "claimed" by a previous import.
src/CJSImportProcessor.ts:425
↓ 4 callers
Function
discoverTests
* Traverse the given directory for all subdirectories containing any file * matching a prefix. We use sync methods here to avoid complexity around
integration-test/integration-tests.ts:28
↓ 4 callers
Function
flowParseFunctionTypeParam
()
src/parser/plugins/flow.ts:514
↓ 4 callers
Function
flowParseInterfaceExtends
()
src/parser/plugins/flow.ts:246
↓ 4 callers
Function
flowParseObjectType
(allowStatic: boolean, allowExact: boolean, allowProto: boolean)
src/parser/plugins/flow.ts:399
↓ 4 callers
Function
flowParseRestrictedIdentifier
()
src/parser/plugins/flow.ts:257
↓ 4 callers
Function
flowParseVariance
()
src/parser/plugins/flow.ts:705
↓ 4 callers
Function
getFilePath
()
website/src/worker/Worker.worker.ts:100
↓ 4 callers
Function
hashState
()
website/src/App.tsx:23
↓ 4 callers
Function
isAccessModifier
* Determine if this is any token that can go before the name in a method/field.
src/util/getClassInfo.ts:314
↓ 4 callers
Function
isSpecifierEnd
(tokens: TokenProcessor, index: number)
src/util/getImportExportSpecifierInfo.ts:89
↓ 4 callers
Method
matches3AtIndex
(index: number, t1: TokenType, t2: TokenType, t3: TokenType)
src/TokenProcessor.ts:122
↓ 4 callers
Function
numLines
(benchmarkOptions: BenchmarkOptions)
benchmark/benchmark.ts:367
↓ 4 callers
Function
parseArrowExpression
(functionStart: number, startTokenIndex: number)
benchmark/sample/expression.ts:874
↓ 4 callers
Function
parseBindingAtom
(isBlockScope: boolean)
src/parser/traverser/lval.ts:50
↓ 4 callers
Function
parseBlockBody
(end: TokenType)
src/parser/traverser/statement.ts:584
↓ 4 callers
Function
parseClassProperty
()
src/parser/traverser/statement.ts:905
↓ 4 callers
Function
parseDecorators
()
src/parser/traverser/statement.ts:304
↓ 4 callers
Function
parseExpression
(noIn?: boolean)
benchmark/sample/expression.ts:88
↓ 4 callers
Function
parseImportedIdentifier
()
src/parser/traverser/lval.ts:32
↓ 4 callers
Function
parseMaybePrivateName
()
src/parser/traverser/expression.ts:599
↓ 4 callers
Function
parseMaybeUnary
()
src/parser/traverser/expression.ts:238
↓ 4 callers
Function
parseParenExpression
()
src/parser/traverser/expression.ts:618
↓ 4 callers
Function
parseSpread
()
src/parser/traverser/lval.ts:17
↓ 4 callers
Function
parseVarStatement
(isBlockScope: boolean)
src/parser/traverser/statement.ts:533
↓ 4 callers
Method
processChildren
* Transform children into a comma-separated list, which will be either * arguments to createElement or array elements of a children prop.
src/transformers/JSXTransformer.ts:493
↓ 4 callers
Method
processEnum
* Transpile flow enums to invoke the "flow-enums-runtime" library. * * Currently, the transpiled code always uses `require("flow-enums-runtime")
src/transformers/FlowTransformer.ts:127
↓ 4 callers
Method
resolveExportBinding
* Return a string like `exports.foo = exports.bar`.
src/CJSImportProcessor.ts:438
↓ 4 callers
Function
tsParseDeclaration
* Common code for parsing a declaration. * * isBeforeToken indicates that the current parser state is at the contextual * keyword (and that it is n
src/parser/plugins/typescript.ts:1038
↓ 4 callers
Function
tsParseTypeMemberSemicolon
()
src/parser/plugins/typescript.ts:264
↓ 4 callers
Function
tsParseTypeParameters
()
src/parser/plugins/typescript.ts:226
↓ 3 callers
Method
addExportBinding
(localName: string, exportedName: string)
src/CJSImportProcessor.ts:414
↓ 3 callers
Function
assertCJSResult
(code: string, expectedResult: string)
test/jest-test.ts:10
↓ 3 callers
Function
assertHasShadowedGlobals
(code: string, expected: boolean)
test/identifyShadowedGlobals-test.ts:10
↓ 3 callers
Function
baseParseExportStar
()
src/parser/traverser/statement.ts:1098
↓ 3 callers
Function
baseParseSubscript
( startTokenIndex: number, noCalls: boolean, stopState: StopState, )
src/parser/traverser/expression.ts:315
↓ 3 callers
Method
copyTokenWithPrefix
(prefix: string)
src/TokenProcessor.ts:247
↓ 3 callers
Function
describeDifference
({before, after}: Comparison)
benchmark/compare-performance.ts:104
↓ 3 callers
Function
entriesExact
(obj: T)
website/src/Util.ts:4
↓ 3 callers
Function
flowParseDeclare
()
src/parser/plugins/flow.ts:109
↓ 3 callers
Function
flowParseFunctionTypeParams
()
src/parser/plugins/flow.ts:525
↓ 3 callers
Function
flowParseInterface
()
src/parser/plugins/flow.ts:253
↓ 3 callers
Function
flowParseInterfaceish
(isClass: boolean = false)
src/parser/plugins/flow.ts:216
↓ 3 callers
Function
flowParseObjectPropertyKey
()
src/parser/plugins/flow.ts:342
↓ 3 callers
Function
flowParseObjectTypeMethodish
()
src/parser/plugins/flow.ts:375
↓ 3 callers
Function
flowParseOpaqueType
(declare: boolean)
src/parser/plugins/flow.ts:272
↓ 3 callers
Function
flowParseTypeAlias
()
src/parser/plugins/flow.ts:261
↓ 3 callers
Function
flowParseTypeAndPredicateInitialiser
()
src/parser/plugins/flow.ts:73
↓ 3 callers
Method
getFreeIdentifierForPath
(path: string)
src/CJSImportProcessor.ts:177
↓ 3 callers
Method
getGlobalNames
* Return all imported/exported names where we might be interested in whether usages of those * names are shadowed.
src/CJSImportProcessor.ts:450
↓ 3 callers
Method
getImportInfo
* Get a mutable import info object for this path, creating one if it doesn't * exist yet.
src/CJSImportProcessor.ts:396
↓ 3 callers
Function
getJestFiles
()
benchmark/benchmark.ts:88
↓ 3 callers
Function
hasKeyExact
(obj: T, key: string | number | symbol)
website/src/Util.ts:11
↓ 3 callers
Method
identifierNameAtRelativeIndex
(relativeIndex: number)
src/TokenProcessor.ts:83
↓ 3 callers
Function
isLookaheadContextual
(contextualKeyword: ContextualKeyword)
src/parser/traverser/util.ts:14
↓ 3 callers
Function
jsxParseElement
()
src/parser/plugins/jsx/index.ts:313
↓ 3 callers
Function
jsxParseIdentifier
()
src/parser/plugins/jsx/index.ts:113
↓ 3 callers
Function
markPriorBindingIdentifier
(isBlockScope: boolean)
src/parser/traverser/lval.ts:37
↓ 3 callers
Function
nextTokenStart
()
src/parser/tokenizer/index.ts:251
↓ 3 callers
Function
parseArrow
()
src/parser/traverser/expression.ts:688
↓ 3 callers
Function
parseBindingList
( close: TokenType, isBlockScope: boolean, allowEmpty: boolean = false, allowModifiers: boolean = fals
src/parser/traverser/lval.ts:82
↓ 3 callers
Function
parseExportSpecifiers
()
src/parser/traverser/statement.ts:1131
↓ 3 callers
Function
parseExprAtom
()
benchmark/sample/expression.ts:388
↓ 3 callers
Function
parseFor
()
src/parser/traverser/statement.ts:594
↓ 3 callers
Function
parseMaybeUnary
()
benchmark/sample/expression.ts:217
↓ 3 callers
Function
parseMetaProperty
()
benchmark/sample/expression.ts:526
↓ 3 callers
Function
parseMethod
(functionStart: number, isConstructor: boolean)
src/parser/traverser/expression.ts:918
↓ 3 callers
Function
parseNoCallExpr
()
benchmark/sample/expression.ts:377
↓ 3 callers
Function
parseNoCallExpr
()
src/parser/traverser/expression.ts:431
↓ 3 callers
Function
parseObj
(isPattern: boolean, isBlockScope: boolean)
src/parser/traverser/expression.ts:747
↓ 3 callers
Function
parseParenItem
()
src/parser/traverser/expression.ts:698
↓ 3 callers
Function
parsePropertyName
(objectContextId: number)
benchmark/sample/expression.ts:829
↓ 3 callers
Function
parseRest
(isBlockScope: boolean)
src/parser/traverser/lval.ts:22
← previous
next →
101–200 of 904, ranked by callers