MCPcopy Create free account

hub / github.com/alangpierce/sucrase / functions

Functions904 in github.com/alangpierce/sucrase

↓ 6 callersFunctiontsParseTypeArguments
()
src/parser/plugins/typescript.ts:1154
↓ 6 callersFunctiontsTryParseTypeAnnotation
()
src/parser/plugins/typescript.ts:690
↓ 5 callersFunctionassertESMResult
( code: string, expectedResult: string, extraTransforms: Array<Transform> = [], )
test/react-hot-loader-test.ts:18
↓ 5 callersFunctionassertScopes
(code: string, expectedScopes: Array<Scope>)
test/scopes-test.ts:6
↓ 5 callersFunctioncheckProject
(path: string)
script/lint.ts:50
↓ 5 callersFunctiongetImportExportSpecifierInfo
( tokens: TokenProcessor, index: number = tokens.currentIndex(), )
src/util/getImportExportSpecifierInfo.ts:41
↓ 5 callersFunctionlookaheadTypeAndKeyword
()
src/parser/tokenizer/index.ts:242
↓ 5 callersMethodmatches5
(t1: TokenType, t2: TokenType, t3: TokenType, t4: TokenType, t5: TokenType)
src/TokenProcessor.ts:155
↓ 5 callersFunctionparse
( input: string, isJSXEnabled: boolean, isTypeScriptEnabled: boolean, isFlowEnabled: boolean, )
src/parser/index.ts:16
↓ 5 callersFunctionparseArrowExpression
(startTokenIndex: number)
src/parser/traverser/expression.ts:934
↓ 5 callersFunctionparseClassMethod
(functionStart: number, isConstructor: boolean)
src/parser/traverser/statement.ts:881
↓ 5 callersFunctionparseClassPropertyName
(classContextId: number)
src/parser/traverser/statement.ts:893
↓ 5 callersFunctionparseExportFrom
()
src/parser/traverser/statement.ts:1074
↓ 5 callersFunctionparseFunctionBody
(allowExpression: boolean, funcContextId: number = 0)
src/parser/traverser/expression.ts:951
↓ 5 callersFunctionparsePropertyName
(objectContextId: number)
src/parser/traverser/expression.ts:896
↓ 5 callersMethodpreviousWhitespaceAndComments
()
src/TokenProcessor.ts:173
↓ 5 callersFunctionreadFileContents
(path: string)
script/util/readFileContents.ts:3
↓ 5 callersFunctionrunBenchmark
( name: string, benchmarkOptions: BenchmarkOptions, runTrial: (code: string, path: string) => Promise<st
benchmark/benchmark.ts:301
↓ 5 callersMethodshouldAutomaticallyElideImportedName
(name: string)
src/transformers/ESMImportTransformer.ts:296
↓ 5 callersFunctiontsParseEntityName
()
src/parser/plugins/typescript.ts:151
↓ 5 callersFunctiontsParseTypeAnnotation
()
src/parser/plugins/typescript.ts:747
↓ 5 callersFunctiontsParseTypeOrTypePredicateAnnotation
(returnToken: TokenType)
src/parser/plugins/typescript.ts:674
↓ 4 callersMethodappendTokenPrefix
()
src/TokenProcessor.ts:260
↓ 4 callersMethodappendTokenSuffix
()
src/TokenProcessor.ts:298
↓ 4 callersFunctionassertExpectations
( code: string, expectations: Expectations, options: Options, message?: string, )
test/util.ts:11
↓ 4 callersFunctionbuildIntegration
(path: string)
script/build.ts:70
↓ 4 callersMethodclaimAutoImportedFuncInvocation
* 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 callersMethodclaimImportCode
* 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 callersFunctiondiscoverTests
* 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 callersFunctionflowParseFunctionTypeParam
()
src/parser/plugins/flow.ts:514
↓ 4 callersFunctionflowParseInterfaceExtends
()
src/parser/plugins/flow.ts:246
↓ 4 callersFunctionflowParseObjectType
(allowStatic: boolean, allowExact: boolean, allowProto: boolean)
src/parser/plugins/flow.ts:399
↓ 4 callersFunctionflowParseRestrictedIdentifier
()
src/parser/plugins/flow.ts:257
↓ 4 callersFunctionflowParseVariance
()
src/parser/plugins/flow.ts:705
↓ 4 callersFunctiongetFilePath
()
website/src/worker/Worker.worker.ts:100
↓ 4 callersFunctionhashState
()
website/src/App.tsx:23
↓ 4 callersFunctionisAccessModifier
* Determine if this is any token that can go before the name in a method/field.
src/util/getClassInfo.ts:314
↓ 4 callersFunctionisSpecifierEnd
(tokens: TokenProcessor, index: number)
src/util/getImportExportSpecifierInfo.ts:89
↓ 4 callersMethodmatches3AtIndex
(index: number, t1: TokenType, t2: TokenType, t3: TokenType)
src/TokenProcessor.ts:122
↓ 4 callersFunctionnumLines
(benchmarkOptions: BenchmarkOptions)
benchmark/benchmark.ts:367
↓ 4 callersFunctionparseArrowExpression
(functionStart: number, startTokenIndex: number)
benchmark/sample/expression.ts:874
↓ 4 callersFunctionparseBindingAtom
(isBlockScope: boolean)
src/parser/traverser/lval.ts:50
↓ 4 callersFunctionparseBlockBody
(end: TokenType)
src/parser/traverser/statement.ts:584
↓ 4 callersFunctionparseClassProperty
()
src/parser/traverser/statement.ts:905
↓ 4 callersFunctionparseDecorators
()
src/parser/traverser/statement.ts:304
↓ 4 callersFunctionparseExpression
(noIn?: boolean)
benchmark/sample/expression.ts:88
↓ 4 callersFunctionparseImportedIdentifier
()
src/parser/traverser/lval.ts:32
↓ 4 callersFunctionparseMaybePrivateName
()
src/parser/traverser/expression.ts:599
↓ 4 callersFunctionparseMaybeUnary
()
src/parser/traverser/expression.ts:238
↓ 4 callersFunctionparseParenExpression
()
src/parser/traverser/expression.ts:618
↓ 4 callersFunctionparseSpread
()
src/parser/traverser/lval.ts:17
↓ 4 callersFunctionparseVarStatement
(isBlockScope: boolean)
src/parser/traverser/statement.ts:533
↓ 4 callersMethodprocessChildren
* 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 callersMethodprocessEnum
* 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 callersMethodresolveExportBinding
* Return a string like `exports.foo = exports.bar`.
src/CJSImportProcessor.ts:438
↓ 4 callersFunctiontsParseDeclaration
* 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 callersFunctiontsParseTypeMemberSemicolon
()
src/parser/plugins/typescript.ts:264
↓ 4 callersFunctiontsParseTypeParameters
()
src/parser/plugins/typescript.ts:226
↓ 3 callersMethodaddExportBinding
(localName: string, exportedName: string)
src/CJSImportProcessor.ts:414
↓ 3 callersFunctionassertCJSResult
(code: string, expectedResult: string)
test/jest-test.ts:10
↓ 3 callersFunctionassertHasShadowedGlobals
(code: string, expected: boolean)
test/identifyShadowedGlobals-test.ts:10
↓ 3 callersFunctionbaseParseExportStar
()
src/parser/traverser/statement.ts:1098
↓ 3 callersFunctionbaseParseSubscript
( startTokenIndex: number, noCalls: boolean, stopState: StopState, )
src/parser/traverser/expression.ts:315
↓ 3 callersMethodcopyTokenWithPrefix
(prefix: string)
src/TokenProcessor.ts:247
↓ 3 callersFunctiondescribeDifference
({before, after}: Comparison)
benchmark/compare-performance.ts:104
↓ 3 callersFunctionentriesExact
(obj: T)
website/src/Util.ts:4
↓ 3 callersFunctionflowParseDeclare
()
src/parser/plugins/flow.ts:109
↓ 3 callersFunctionflowParseFunctionTypeParams
()
src/parser/plugins/flow.ts:525
↓ 3 callersFunctionflowParseInterface
()
src/parser/plugins/flow.ts:253
↓ 3 callersFunctionflowParseInterfaceish
(isClass: boolean = false)
src/parser/plugins/flow.ts:216
↓ 3 callersFunctionflowParseObjectPropertyKey
()
src/parser/plugins/flow.ts:342
↓ 3 callersFunctionflowParseObjectTypeMethodish
()
src/parser/plugins/flow.ts:375
↓ 3 callersFunctionflowParseOpaqueType
(declare: boolean)
src/parser/plugins/flow.ts:272
↓ 3 callersFunctionflowParseTypeAlias
()
src/parser/plugins/flow.ts:261
↓ 3 callersFunctionflowParseTypeAndPredicateInitialiser
()
src/parser/plugins/flow.ts:73
↓ 3 callersMethodgetFreeIdentifierForPath
(path: string)
src/CJSImportProcessor.ts:177
↓ 3 callersMethodgetGlobalNames
* Return all imported/exported names where we might be interested in whether usages of those * names are shadowed.
src/CJSImportProcessor.ts:450
↓ 3 callersMethodgetImportInfo
* Get a mutable import info object for this path, creating one if it doesn't * exist yet.
src/CJSImportProcessor.ts:396
↓ 3 callersFunctiongetJestFiles
()
benchmark/benchmark.ts:88
↓ 3 callersFunctionhasKeyExact
(obj: T, key: string | number | symbol)
website/src/Util.ts:11
↓ 3 callersMethodidentifierNameAtRelativeIndex
(relativeIndex: number)
src/TokenProcessor.ts:83
↓ 3 callersFunctionisLookaheadContextual
(contextualKeyword: ContextualKeyword)
src/parser/traverser/util.ts:14
↓ 3 callersFunctionjsxParseElement
()
src/parser/plugins/jsx/index.ts:313
↓ 3 callersFunctionjsxParseIdentifier
()
src/parser/plugins/jsx/index.ts:113
↓ 3 callersFunctionmarkPriorBindingIdentifier
(isBlockScope: boolean)
src/parser/traverser/lval.ts:37
↓ 3 callersFunctionnextTokenStart
()
src/parser/tokenizer/index.ts:251
↓ 3 callersFunctionparseArrow
()
src/parser/traverser/expression.ts:688
↓ 3 callersFunctionparseBindingList
( close: TokenType, isBlockScope: boolean, allowEmpty: boolean = false, allowModifiers: boolean = fals
src/parser/traverser/lval.ts:82
↓ 3 callersFunctionparseExportSpecifiers
()
src/parser/traverser/statement.ts:1131
↓ 3 callersFunctionparseExprAtom
()
benchmark/sample/expression.ts:388
↓ 3 callersFunctionparseFor
()
src/parser/traverser/statement.ts:594
↓ 3 callersFunctionparseMaybeUnary
()
benchmark/sample/expression.ts:217
↓ 3 callersFunctionparseMetaProperty
()
benchmark/sample/expression.ts:526
↓ 3 callersFunctionparseMethod
(functionStart: number, isConstructor: boolean)
src/parser/traverser/expression.ts:918
↓ 3 callersFunctionparseNoCallExpr
()
benchmark/sample/expression.ts:377
↓ 3 callersFunctionparseNoCallExpr
()
src/parser/traverser/expression.ts:431
↓ 3 callersFunctionparseObj
(isPattern: boolean, isBlockScope: boolean)
src/parser/traverser/expression.ts:747
↓ 3 callersFunctionparseParenItem
()
src/parser/traverser/expression.ts:698
↓ 3 callersFunctionparsePropertyName
(objectContextId: number)
benchmark/sample/expression.ts:829
↓ 3 callersFunctionparseRest
(isBlockScope: boolean)
src/parser/traverser/lval.ts:22
← previousnext →101–200 of 904, ranked by callers