Delphi-RAG-Lint

drag-lint help

query ancestors

Since: 0.1.0-alpha

Resolves the transitive class/interface hierarchy of a type.

Read this to see everything a class or interface descends from, or to check whether it descends from one specific ancestor. The answer comes straight from the index.

How to run it

Full flag list: query in the CLI reference.

Flags

FlagArgumentMeaningDefault
--name<type>
--of<ancestor>
--db
--json

Where to click

  • RAD Studio main menu: drag-lint > Inspect Symbol > Ancestors of Type (full chain)...
    1. Needs an index of the project
    2. drag-lint > Inspect Symbol > Ancestors of Type (full chain)...
    3. Enter the type; its ancestor chain is listed

Details

Resolves the transitive class/interface hierarchy of a type. Reach for it to see everything a type descends from -- or to check whether it descends from one specific ancestor -- read straight from the index.

Running it from the CLI

drag-lint query ancestors --name <type> [--of <ancestor>] [--db ...] [--json]

--name is the type to resolve. --of <ancestor> narrows the query to a specific ancestor.

What it needs

The --db flag is optional -- drag-lint auto-resolves the index when omitted. An index must still exist.

Example

Illustrative:

drag-lint query ancestors --name TMyForm --db C:\Projects\MyApp\_D-RAG\MyApp.sqlite

This would list TMyForm's full transitive ancestor chain.


All features | CLI reference | IDE menus