MCPcopy Create free account

hub / github.com/davidmfoley/node-trucker / functions

Functions92 in github.com/davidmfoley/node-trucker

↓ 35 callersFunctionfindImports
(imports: ImportStatement[], node: ts.SourceFile)
src/analyzeFiles/findImports/typescript/getImportStatements.ts:39
↓ 10 callersFunctionexpectMove
(from: string, toPath: string, toRequire?: string)
test/integration/fileLocationCalculator.test.ts:22
↓ 9 callersFunctionchangedImportsByFile
(job: TruckerMoveJob)
src/findChangedImports/index.ts:8
↓ 8 callersFunctionmoveJob
(from: string, to: string)
test/integration/changedRequiresByFile.test.ts:14
↓ 7 callersFunctiontestFiles
(names: string[])
src/findSourceFiles/filterExcludedFiles.test.ts:75
↓ 7 callersFunctionwhenLocationsAre
(froms: string | string[], to: string)
test/integration/fileLocationCalculator.test.ts:16
↓ 5 callersFunctiongetPathMapper
( { paths, }: { paths: MapperPaths }, resolver: ImportResolver )
src/analyzeFiles/findImports/typescript/pathMapper.ts:45
↓ 4 callersFunctionFindImports
(pathMapper: PathMapper)
src/analyzeFiles/findImports/typescript/index.ts:9
↓ 4 callersFunctionapplyToFile
( filePath: string, changedImports: ChangedImport[], sourceFile = importedSourceFile )
src/handleFileChanges/applyToFile.ts:6
↓ 4 callersFunctionbuildResult
(filePath: string)
src/analyzeFiles/decorateImport.ts:18
↓ 4 callersFunctiontestPath
(p: string)
test/integration/fileLocationCalculator.test.ts:14
↓ 3 callersFunctionapplyAliasMapping
( mapping: { alias: string; destination: string }, absolutePath: string )
src/findChangedImports/applyAliasMapping.ts:3
↓ 3 callersFunctionfindSourceFiles
(job: TruckerJob)
src/findSourceFiles/index.ts:6
↓ 3 callersFunctiongetTsConfig
( { tsconfigPath, base }: TsConfigJob, existsSync = nodeFs.existsSync, readConfigFile = ts.readConfigFil
src/analyzeFiles/findImports/typescript/tsConfig.ts:56
↓ 3 callersFunctionisValidFile
(path: string)
src/analyzeFiles/decorateImport.ts:14
↓ 3 callersFunctionprint
(file, leader)
src/printDependencies/printStandard.ts:46
↓ 2 callersFunctionaddIfMatch
(imports: ImportInfo[], pathToken: BabelToken)
src/analyzeFiles/findImports/javascript.ts:122
↓ 2 callersFunctiondetectBufferEncoding
(buffer: Buffer)
src/sourceFile.ts:4
↓ 2 callersFunctiondigest
(graph, from, to)
src/printDependencies/printStandard.ts:13
↓ 2 callersFunctioneditLine
(contents: string, edits: ChangedImport[])
src/handleFileChanges/editLine.ts:3
↓ 2 callersFunctionexpectNoMove
(from: string)
test/integration/fileLocationCalculator.test.ts:31
↓ 2 callersFunctiongetLineEdits
(requires: ChangedImport[])
src/handleFileChanges/getLineEdits.ts:3
↓ 2 callersFunctionimportResolver
(isFile: (path: string) => boolean)
src/analyzeFiles/findImports/importResolver.ts:14
↓ 2 callersFunctionisString
(token: BabelToken)
src/analyzeFiles/findImports/javascript.ts:94
↓ 2 callersFunctionp
(subPath: string)
test/integration/changedRequiresByFile.test.ts:10
↓ 2 callersFunctionpushImport
(imports: ImportStatement[], statement: ts.Node)
src/analyzeFiles/findImports/typescript/getImportStatements.ts:64
↓ 2 callersFunctionreadIgnores
(base)
src/buildJob/readIgnores.ts:4
↓ 2 callersFunctionrequirePath
(filePath: string)
src/findChangedImports/fileLocationCalculator.ts:74
↓ 1 callersFunctionabsolute
(fullImportPath: string)
src/analyzeFiles/findImports/importResolver.ts:16
↓ 1 callersFunctionapplyEdits
(lines: string[], imports: ChangedImport[])
src/handleFileChanges/applyToFile.ts:17
↓ 1 callersFunctionbabelFinder
(contents: string)
src/analyzeFiles/findImports/javascript.ts:46
↓ 1 callersFunctionbuildConfig
( tsconfigPath: string, readConfigFile: ReadConfigFile )
src/analyzeFiles/findImports/typescript/tsConfig.ts:43
↓ 1 callersFunctionbuildLoc
(node: ts.StringLiteral)
src/analyzeFiles/findImports/typescript/getImportStatements.ts:53
↓ 1 callersFunctionbuildMapper
(pattern: string, destinations: string[], resolver: ImportResolver)
src/analyzeFiles/findImports/typescript/pathMapper.ts:15
↓ 1 callersFunctionfileMapper
(isFile: (name: string) => boolean)
src/findChangedImports/fileLocationCalculator.ts:56
↓ 1 callersFunctiongetAction
(job: TruckerJob)
src/index.ts:23
↓ 1 callersFunctiongetCandidatePaths
(dir: string)
src/analyzeFiles/findImports/typescript/tsConfig.ts:15
↓ 1 callersFunctiongetFileImports
( findImports: FindImports, processImport: ProcessImport, importFilter: ImportFilter )
src/analyzeFiles/getFileImports.ts:14
↓ 1 callersFunctiongetFiletype
(name: string)
src/findSourceFiles/findFiles.ts:42
↓ 1 callersFunctionhandleShebang
(contents: string)
src/analyzeFiles/findImports/javascript.ts:136
↓ 1 callersFunctionisFrom
(token: BabelToken)
src/analyzeFiles/findImports/javascript.ts:90
↓ 1 callersFunctionisImportEquals
( statement: ts.Statement )
src/analyzeFiles/findImports/typescript/getImportStatements.ts:11
↓ 1 callersFunctionisImportOrExport
(statement: ts.Statement)
src/analyzeFiles/findImports/typescript/getImportStatements.ts:7
↓ 1 callersFunctionisStringLiteral
(child: ts.Node)
src/analyzeFiles/findImports/typescript/getImportStatements.ts:4
↓ 1 callersFunctionmessage
(destination: string, sources: string[])
src/handleFileChanges/checkForErrors.ts:21
↓ 1 callersFunctionparseGitignore
(gitignorePath)
src/buildJob/readIgnores.ts:25
↓ 1 callersFunctionparsePaths
( tsconfigPath: string, configPaths: undefined | Record<string, unknown> )
src/analyzeFiles/findImports/typescript/tsConfig.ts:28
↓ 1 callersFunctionprintAnalyzeError
(fileInfo: SourceFile, err: Error)
src/analyzeFiles/sourceFileAnalyzer.ts:35
↓ 1 callersFunctionprintChanges
(job: TruckerJob, changes: FileModification[])
src/handleFileChanges/printChanges.ts:8
↓ 1 callersFunctionprintClusters
( tree: FolderTree, label: string, depth: number, override?: string )
src/printDependencies/printViz.ts:25
↓ 1 callersFunctionprintDependencies
( files: SourceFileWithImports[], job: TruckerJob )
src/printDependencies/index.ts:11
↓ 1 callersFunctionprintUnused
( job: TruckerJob, files: SourceFileWithImports[] )
src/printUnused.ts:5
↓ 1 callersFunctionpushImportEquals
( imports: ImportStatement[], statement: ts.ImportEqualsDeclaration )
src/analyzeFiles/findImports/typescript/getImportStatements.ts:28
↓ 1 callersFunctionreadContents
(filePath: string)
src/sourceFile.ts:16
↓ 1 callersFunctionregexFinder
(contents: string)
src/analyzeFiles/findImports/javascript.ts:19
↓ 1 callersFunctionrelativeImport
( relativePath: string, loc: ImportLocation )
src/analyzeFiles/requireInfo.ts:3
↓ 1 callersFunctionrelativePath
(f: string)
src/handleFileChanges/checkForErrors.ts:30
↓ 1 callersFunctionscan
(tokens: BabelToken[], requires: ImportInfo[])
src/analyzeFiles/findImports/javascript.ts:98
↓ 1 callersFunctionshouldContinue
(current)
src/buildJob/readIgnores.ts:21
↓ 1 callersFunctionsourceFileAnalyzer
(job: TruckerJob)
src/analyzeFiles/sourceFileAnalyzer.ts:9
↓ 1 callersFunctiontraverse
(base: string, current: string, files: SourceFile[])
src/findSourceFiles/findFiles.ts:11
↓ 1 callersFunctionweCareAboutDirectory
(name: string)
src/findSourceFiles/findFiles.ts:34
↓ 1 callersFunctionweCareAboutFile
(name: string)
src/findSourceFiles/findFiles.ts:38
FunctionaliasImport
( text: string, relativePath: string, loc: ImportLocation, mapping: { alias: string; destination: stri
src/analyzeFiles/requireInfo.ts:13
FunctionanalyzeAndTick
(fileInfo: SourceFile)
src/analyzeFiles/index.ts:55
FunctionapplyChanges
(job: TruckerMoveJob, changes: FileModification[])
src/handleFileChanges/applyChanges.ts:9
FunctionblowOutPath
(subPath: string)
src/buildJob/index.ts:41
FunctionbyFullPath
(a, b)
test/integration/fileFinder.test.ts:12
Functioncli
()
src/cli.ts:4
Functiondecorate
(imp: ImportInfo)
src/analyzeFiles/sourceFileAnalyzer.ts:22
FunctiondirectoryMapper
(f, to)
src/findChangedImports/fileLocationCalculator.ts:64
FunctionexistsSync
(path: string)
src/analyzeFiles/findImports/typescript/tsConfig.test.ts:9
FunctionfilterTsImport
(item: ImportInfo)
src/analyzeFiles/findImports/typescript/index.ts:10
FunctiongetEncoding
(filePath: string)
src/sourceFile.ts:11
FunctiongetImportStatements
( contents: string, filePath: string )
src/analyzeFiles/findImports/typescript/getImportStatements.ts:16
FunctiongetMapper
(f: string)
src/findChangedImports/fileLocationCalculator.ts:15
FunctionisLocal
(requirePath)
src/analyzeFiles/findImports/importPathFilter.ts:1
FunctionisMove
(change: FileModification)
src/handleFileChanges/checkForErrors.ts:35
FunctionisValidFile
(path: string)
src/analyzeFiles/findImports/importResolver.ts:9
FunctionmoveFiles
(job: TruckerJob)
src/index.ts:29
FunctionnoBar
(analyzer: SourceFileAnalyzer, fileInfos: SourceFile[])
src/analyzeFiles/index.ts:34
FunctionprintFile
(f)
src/printDependencies/printStandard.ts:34
FunctionprintStandard
( files: SourceFileWithImports[], job: TruckerJob, write = console.log )
src/printDependencies/printStandard.ts:5
FunctionprintViz
( files: SourceFileWithImports[], job: TruckerJob, write = console.log )
src/printDependencies/printViz.ts:10
FunctionremoveEmpties
(line)
src/buildJob/readIgnores.ts:40
FunctionrequireResolve
(path: string, opts: unknown)
src/analyzeFiles/decorateImport.ts:6
FunctionshowInfo
(job: TruckerJob)
src/index.ts:35
FunctionshowUnused
(job: TruckerJob)
src/index.ts:40
FunctionsortByFrom
(a: FileModification, b: FileModification)
test/integration/changedRequiresByFile.test.ts:26
FunctionstripComment
(line)
src/buildJob/readIgnores.ts:35
Functiontrim
(line)
src/buildJob/readIgnores.ts:31
FunctionwithBar
(analyzer: SourceFileAnalyzer, fileInfos: SourceFile[])
src/analyzeFiles/index.ts:38