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
$YD
directive 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 |
Get Delphi in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.