MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / normalizeSlashes

Function normalizeSlashes

src/utils.ts:38–38  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

36 createDiagnosticFactoryWithCode(serialDiagnosticCodeCounter++, create);
37
38export const normalizeSlashes = (filePath: string) => filePath.replace(/\\/g, "/");
39export const trimExtension = (filePath: string) => filePath.slice(0, -path.extname(filePath).length);
40
41export function formatPathToLuaPath(filePath: string): string {

Callers 15

addExtraFileFunction · 0.90
getEmitHostFunction · 0.90
getMainLuaFileResultFunction · 0.90
project.spec.tsFile · 0.90
transpileFilesResultFunction · 0.90
snapshotPathsFunction · 0.90
normalizeFunction · 0.90
constructorMethod · 0.90
locateConfigFileFunction · 0.90
createVirtualProgramFunction · 0.90
resolveImportMethod · 0.90
resolveDependencyPathMethod · 0.90

Calls

no outgoing calls

Tested by 2

snapshotPathsFunction · 0.72
normalizeFunction · 0.72