scitools.com

← Graph catalog

Parent Declaration is one of the interactive graphs Understand can draw of your code — call trees, dependencies, control flow, and more.

Parent Declaration

Languages: Ada, C++, Fortran, VHDL, Web
Targets: Classes, Functions, Modules, Objects, Packages, Subprograms, Types
Variants: Classic

Show the Declaration graph for the scope a selected entity is declared inside.

For a selected Ada function, procedure, package, task, entry, component, enumeration literal, constant, exception, object, or type, this jumps to its enclosing package, subprogram, task, or protected object. For a selected PHP or JavaScript function, property, parameter, constant, variable, class, or interface, this jumps to the file or class it’s defined in. For a selected parameter, object, subroutine, type, or variable in other languages, this jumps to its enclosing compool, file, function, method, procedure, subroutine, or type. For a selected C or C++ struct, class, or union member, or enum enumerator, this jumps to its enclosing type. In each of these cases, the graph shown is that scope’s own Declaration graph.

For a selected VHDL configuration, entity, function, package, or procedure, this instead jumps to its enclosing package or entity and shows that scope’s Declaration Tree — the same tree shown when browsing that parent directly.

For example, the Parent Declaration graph for Compute (declared inside the Ada package Declarations) is the Declaration graph for Declarations, shown in Declaration - Ada. Likewise, the Parent Declaration graph for area (a method of the PHP class Shape) is the Declaration graph for Shape, shown in Declaration - Web Class.