Hover at Cursor
Hover card for the symbol under the caret: signature, type, documentation, callers; an interface method also lists its implementers.
Read this to check what a symbol is and who calls it without leaving the line you are on. Caret on it, drag-lint > Hover at Cursor (Ctrl+Alt+H); on the command line hover --qname Foo.Bar gives the same card. The IDE never waits: a busy engine shows 'drag-lint: engine busy' and a late answer is still delivered; with no answer the status strip names what is under the pointer, beside any reindex progress. VS Code 1.6.6 defers the slow part: signature and docs at once with 'computing...', then callers, the Init: verdict and the Set by: writers (cancelled when you move on).
How to run it
Full flag list: hover in the CLI reference.
Flags
| Flag | Argument | Meaning | Default |
|---|---|---|---|
--qname | <Foo.Bar> | ||
--line | N | ||
--db | <file.sqlite> | ||
--format |
Where to click
- RAD Studio main menu: drag-lint > Hover at Cursor
- Needs an index of the project
- Put the editor caret on the symbol
- drag-lint > Hover at Cursor
Details
Shows a hover card for the symbol under the editor caret: signature, documentation, and callers. Reach for it to check what a symbol is and how it is used without leaving the line you are on.
Running it from the CLI
An interface METHOD also gets an Implemented by: TA.Work, TB.Work line (at most six, then (+N more)), in plain, md, json and the LSP hover bundle (since 1.44). It reads the same index as implementors --target IFoo.Bar, which gives the full list.
In the IDE this action is served in-process (the feature map's Mechanism
column marks it "in-process") -- no exe is spawned per hover. The same
capability is also exposed as a standalone CLI verb, and over stdio by the
bundled language server (the Features page lists hover among
the methods drag-lint lsp implements):
drag-lint hover --qname <Foo.Bar> [--db <file.sqlite>] [--format plain|md|json]
--qname is the fully qualified symbol; --format selects plain text,
markdown, or JSON. Hover never writes the index.
What the card says about types
A property, field, var, const, parameter or local variable shows its declared
type (Text: string). A bare re-publication such as property Text; stores no
type in the source, so index fills it in: its last link stage, prop-types,
takes the type from the nearest ancestor that declares it (bridging an unlinked
ancestor by scope, the converter's climb) and stores it on the row as
: <type>, generics intact (TDictionary<string, Integer>); a type it cannot
find is never stored. A run that parsed files re-checks the bare rows of those
files plus every same-named row of the properties they declare, so editing the
ancestor's type updates the re-publications in unchanged units too (renaming or
removing the declaring property, or re-parenting a class, is seen after a
--rebuild); a run that parsed nothing skips the
stage once the index carries its prop_types_filled marker, so an index built
by an older engine is filled by its next plain index run. The card names the
declaring class: Text: string (declared in dxBar.TdxBarWindowItem). The JSON
form carries the same as type and declared_in, and signature holds the
type. Hover and the language server (which opens its indexes read-only) read
the stored type; the ancestor name is found per session and cached.
(hover --write-back, the 2026-10-29 opt-in that stored the type at hover time,
was removed the same day: the index-time fill made it redundant.)
What the card says about effects
A routine the purity analysis PROVED changes nothing outside its own locals
carries the analysis fact Effect-free (proven). The JSON form
(hover --format json) carries the verdict for every routine as
effect_free (1 / 0), effect_summary (tokens: g globals, h heap, s own
fields, p<k> parameter k, ? not analysable) and effect_witness (the first
effect in words, e.g. writes through parameter #1 (AReason)). Every token,
and the difference between an empty summary and a missing one, is spelled out
in the Effect Summary Legend. Older builds
printed Pure; that word is no longer emitted. For the same data as a chart,
see ask effects.
Hovering a forward declaration (TFoo = class;) shows the REAL declaration,
led by forward declaration -> line N.
What the card says about where a property is used
A property or field with resolved uses carries the analysis fact
Used in: Routine (file.pas) [r|w|rw], ...: one entry per routine that reads
(r), writes (w) or does both (rw) with it -- dotted, bare, Self. and
with accesses, all bound by the resolver, never matched by name. It is the
same line document writes into the managed block, in --format md, in the
JSON facts array and in the IDE popup. Capped by docs.max_callers with
(+N more). A getter or setter shows Used in (via property X): ... -- the
property accesses that ran that accessor (wave 148). Hover reads the one
index it was given, so uses recorded only in another project's index appear in
document --db A --db B but not in the card.
Who calls the routine
Hovering a routine names its callers as the first analysis fact, Called from: Unit.TClass.A (a.pas), Unit.TClass.B (b.pas), even when the routine's /// block does not carry the line yet (150 LX2). If the block was written by document --apply and already has <para>Called from: ...</para>, the line appears exactly once (the block's). A routine nobody calls shows no such line. The same fact is in drag-lint hover --qname <name> --db <db> --format md; the RAD Studio popup keeps its CALLED FROM grid and adds no extra row.
When the engine is slow
The IDE never waits for the engine. A hover (the menu command or a mouse dwell) is sent and the card appears when the answer arrives:
- A mouse-dwell card is shown only if the pointer is still over the same editor and the same identifier (anywhere along it, and within about half a line above or below). Otherwise the answer is dropped; pointing back at the identifier shows it at once from the cache.
- Only one dwell hover is asked at a time. Moving to another identifier cancels the previous question.
- If the engine has left a question unanswered for about 3 seconds, the status
strip reads
drag-lint: engine busyand no new hover is asked; findings on the line still show. An engine silent for 60 seconds with questions pending is restarted automatically.
What the status strip says
Resting the mouse on code asks about the place under the pointer; the menu command asks about the caret. When there is nothing to show, the strip at the bottom of the drag-lint window names what is there:
| Under the pointer / caret | Strip |
|---|---|
| an identifier the index does not have | drag-lint: 'DoExport' is not indexed |
| a keyword, directive, number, operator | drag-lint: 'function' (keyword) |
| a word in a comment, string or compiler directive | drag-lint: 'word' (in a comment) |
| white space, past the end of the line or file | drag-lint: <SPACE> is under the cursor |
White space and the gutter are never asked about (a gutter line with findings
shows them). An empty answer is said once; it is asked again when the pointer
comes back or an index job ends. While a job runs the strip shows both: the note,
and next to it reindexing... 42% <phase>. In a narrow window the note is
shortened first. Engine busy or not ready has its own text.
What it needs
The --db flag is optional -- drag-lint auto-resolves the index when
omitted. An index must still exist. In the IDE, it also needs an open
editor with the caret on a symbol.
Example
Illustrative only:
drag-lint hover --qname CustomerOrder.TCustomerOrder.Total --db C:\Projects\MyApp\_D-RAG\MyApp.sqlite --format md
This would print the hover card for the Total member of TCustomerOrder
as markdown.