Script

Source line lookup

Maps source offsets to line numbers using a reusable newline index.

The scanner uses this internal helper to attach locations efficiently. Offsets follow JavaScript UTF-16 string indexing, including the documented newline boundary behavior.

Package version 0.1.0-beta.4

Included with Faye UI System Engineer

Technical source

The hosted file belongs to the package version shown on this page.

plugins/faye-ui-system-engineer/scripts/lib/source-locations.mjs

Open source file