Two indexes, plain files, no guessing.
Everything DL answers comes from two indexes it builds on your own machine. This page says what is in them, how they stay current, what the first build costs, and where their blind spots are.
Index once, ask anything
The library index answers “which unit declares this” for everything you did not write; the project index answers “who calls this” for everything you did. The library path comes from the project’s own Delphi version, so a project for an older Delphi is read against its own library.
The project index is the compile closure: the units your .dpr and .dproj bring in. A project is parsed under its active build configuration, include files are indexed under that build, and conditional {$IF} expressions are evaluated; one DL cannot decide is reported, not guessed. A unit your code uses but the project does not list is found and reported too.
Library path of the project’s Delphi · Active build config · Include files and IF · Reconcile project members
One SQLite file you can query yourself
Each index is a single SQLite file with 71 tables (as of 2026-12-04, drag-lint 1.65.0-alpha). They hold:
- files, include files and their build variants;
- symbols, references and the types behind them;
- call edges, virtual dispatch edges and unit uses;
- class ancestry and helpers, attributes;
- form objects, their properties and event bindings;
- string literals, with full-text search;
- doc comments and per-symbol facts;
- data flows and member reads and writes;
- preprocessor directives and regions;
- dependency-injection bindings and initialization order;
- compiler findings and project settings;
- Firebird tables and columns, when you snapshot a database.
Nothing is hidden: schema prints every table with its row count, and sql runs one read-only statement against an index.
Index schema reference · schema · sql · Article: three ways to read Delphi
Incremental, after the first time
After the first build, DL indexes incrementally: it re-reads only the units that changed. In RAD Studio, Rebuild Index for This Project starts a full run when you want one.
After the first install, DL builds the platform library index in the background: it parses every RTL, VCL, FireDAC and component unit on your library and browsing paths. This is heavy, CPU-bound work. On our development machine it took about 2.5 hours for Win32 and about 2.6 hours for Win64; yours may be faster or slower. Windows stays usable meanwhile, just busy.
It is a one-time cost. Afterwards DL indexes incrementally and only re-reads the units that changed. An update that changes how DL reads source code rebuilds the library index once more; the release notes say when that applies.
The Field Repository file
The Field Repository is not an index: it is your data. It lives in one SQLite file per database, apart from the indexes, with a text backup you can keep in version control and diff. An index can always be rebuilt from source; the repository is the file to back up.
Deterministic, offline, and open about blind spots
DL needs no network, no account and no AI model. The same question on the same index gets the same answer every time, because the answer comes from parsed facts.
Where the index is blind. The opt-in rule opaque-to-analysis flags a routine whose calls mostly cannot be resolved, so impact analysis, call trees and dead-code detection are blind inside it. That is a fact about the limits of the index, not a defect in your code.
The right files. A project’s own unit bindings (the .dpr in path, then DCCReference) win over a path search, as in the compiler, so a same-named file elsewhere stays out of the index. Found by an outside user, Jonathas Paiva.
opaque-to-analysis · Article: routines the index cannot see into · Article: which file does the compiler use
DL indexes HTR Micronite, our own production software, every day: a code base that big is where a slow or a wrong index shows first.