AppCode 2017.3 Help

Building Hierarchies

AppCode provides facilities for building the following hierarchies:

  • Type hierarchies that show parent and children classes of a class.
  • Method hierarchies that show classes where a method:
    • Is defined.
    • Is not defined.
    • Should be defined if the class is not abstract.
  • Call hierarchies that show callers (supertypes) or callees (subtypes) of a method.
  • Imports hierarchies that where the current file is included and track all files included in the current file.

When built, a hierarchy can be immediately viewed and examined in the Hierarchy tool window. By default, every new built hierarchy overwrites the contents of the current tab. You can retain the current tab and have the next hierarchy built in a new one.

To build a hierarchy of types

  1. Select the desired class in the Project tool window or open it in the editor.
  2. On the main menu, choose Navigate | Type Hierarchy or just press ⌃H.

To build a method hierarchy

  1. Open the file in the editor and place the caret at the declaration of the desired method. Alternatively, select the desired method in the Project view.
  2. On the main menu, choose Navigate | Method Hierarchy or press ⇧⌘H.

To build a hierarchy of method calls

  1. Open the file in the editor and place the caret at the declaration or usage of the desired method. Alternatively, select the desired method in the Project view.
  2. On the main menu, choose Navigate | Call Hierarchy or press ⌃⌥H.

To build a hierarchy of imports

  1. Open the file in the editor or select it in the Project view.
  2. On the main menu, choose Navigate | Imports Hierarchy.

To retain a hierarchy tab

  • In the Hierarchy tool window, click the Pin Tab button pin.png on the toolbar.
Last modified: 27 March 2018

See Also