Name
$ReferenceInfo Compiler Directive
Syntax
{$YD} // default
{$Y+}
{$Y-}
{$ReferenceInfo Off} // default
{$ReferenceInfo On}Scope
Local
Description
By default, the debugging
information for a unit includes the definitions of all symbols
declared in the unit. With the
$ReferenceInfo
directive, you can also store
references to the symbols. With the reference information, the
project browser can show you every use of a type, variable,
subroutine, or other symbol.
You must enable $DefinitionInfo
in order to use
$ReferenceInfo. The
$DefinitionInfo and
$ReferenceInfo directives define three possible
states of browser information. The $Y directive
provides a shortcut for the three states:
The
$YDdirective is equivalent to enabling definitions and disabling references. This is the default.The
$Y+directive is equivalent to enabling definitions and references.The
$Y-directive is equivalent to disabling definitions and references.You cannot enable references without also enabling definitions, so there is no fourth state.
Definitions and references require that $DebugInfo
and $LocalSymbols be enabled.
See Also
| $DebugInfo Compiler Directive, $DefinitionInfo Compiler Directive, $LocalSymbols Compiler Directive |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access