The Call Hierarchy view provides a tree-structure view
of the procedure and function calls in a PL/I file. This view provides
a way to navigate a large or complex PL/I file that contains many
procedures and assists you with determining the call flow between
the procedures.
Results from Open Call Hierarchy are available
in the Call Hierarchy view. The Call
Hierarchy view is a tree graphic that displays functions
and procedures. The Call Hierarchy view provides
information from both a called and caller perspective.
There are two sections in the
Call Hierarchy view,
- The left column contains the tree structure of the specified function
or procedure
- The right column shows the line number for the code. When you
click on a node in the tree structure, the corresponding line number
displays.
Navigating the Call Hierarchy view
The Call
Hierarchy view contains the following toolbar buttons for
filtering the contents of the view.
- Callee Hierarchy
- Displays in the view only the procedures that called the highlighted
procedure.
- Caller Hierarchy
- Displays in the view only the procedures that are called by the
highlighted procedure.
- View Menu
- Shows a list of functions to perform in the Call Hierarchy view.
In addition to the Caller Hierarchy and Callee Hierarchy view, you
can select to hide or show built in functions.
Limitations
There are several limitations
associated with using the Call Hierarchy function within the editor:
- Only static calls to procedures and functions are supported.
Variable references to function names and procedure names are not
supported.
- Multiple labels for a single procedure or function definition
are not supported.
- Multiple entry points into a procedure are not supported.
- Double clicking on a procedure name when the procedure definition
is located in an expanded macro source results in being taken to the
macro call.