REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.21 KB
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@jridgewell/trace-mapping/src/by-source.ts
Text
Base64
import { COLUMN, SOURCES_INDEX, SOURCE_LINE, SOURCE_COLUMN } from './sourcemap-segment'; import { sortComparator } from './sort'; import type { ReverseSegment, SourceMapSegment } from './sourcemap-segment'; export type Source = ReverseSegment[][]; // Rebuilds the original source files, with mappings that are ordered by source line/column instead // of generated line/column. export default function buildBySources( decoded: readonly SourceMapSegment[][], memos: unknown[], ): Source[] { const sources: Source[] = memos.map(() => []); for (let i = 0; i < decoded.length; i++) { const line = decoded[i]; for (let j = 0; j < line.length; j++) { const seg = line[j]; if (seg.length === 1) continue; const sourceIndex = seg[SOURCES_INDEX]; const sourceLine = seg[SOURCE_LINE]; const sourceColumn = seg[SOURCE_COLUMN]; const source = sources[sourceIndex]; const segs = (source[sourceLine] ||= []); segs.push([sourceColumn, i, seg[COLUMN]]); } } for (let i = 0; i < sources.length; i++) { const source = sources[i]; for (let j = 0; j < source.length; j++) { const line = source[j]; if (line) line.sort(sortComparator); } } return sources; }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
binary-search.ts
2.73 KB
lrw-r--r--
2026-02-28 00:29:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
by-source.ts
1.21 KB
lrw-r--r--
2026-02-28 00:29:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
flatten-map.ts
5.29 KB
lrw-r--r--
2026-02-28 00:29:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
resolve.ts
699 B
lrw-r--r--
2026-02-28 00:29:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
sort.ts
1.41 KB
lrw-r--r--
2026-02-28 00:29:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
sourcemap-segment.ts
665 B
lrw-r--r--
2026-02-28 00:29:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
strip-filename.ts
253 B
lrw-r--r--
2026-02-28 00:29:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
trace-mapping.ts
15.05 KB
lrw-r--r--
2026-02-28 00:29:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
types.ts
3.09 KB
lrw-r--r--
2026-02-28 00:29:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).