Using the Code Flow Explorer Tool
The CodeSMART Code Flow Explorer tool can be used as a separate tool,
to parse multiple methods, present inside your code, in the dedicated Flow
pane, or in conjunction with the CodeSMART Project Explorer.
To show code flow in the Code Flow Explorer pane:
-
Open a code window and place the cursor inside a method body.
-
Open the CodeSMART Project Explorer window and click on the Flow pane.
-
Click the Parse the current member button from the Flow pane
toolbar. A member node containing the code flow will be added to the tree.
This node contains all the conditional and code control flow blocks
detected in the parsed method.
Double clicking a node in the tree will jump you to its exact code location.
-
By design most code control blocks are parsed and displayed: conditional blocks, loops,
branches etc. Only in this pane you can parse and display some additional
code statements by checking them in the Code Flow - Options dialog. This can be
accessed through the Options button in the Flow pane toolbar.
-
Assignment Statements ( = operator)
-
Invocation Statements (Call)
-
Control Flow Statements (GoTo,
Exit, Stop,
End, Return)
-
Set Statements (Set)
-
Dimension Statements(Dim)
-
On Error Statements (On Error)
-
Resume Statements (Resume)
To show code flow in the CodeSMART Project Explorer tree:
-
Open the CodeSMART Project Explorer window and click on the Project pane.
-
Select the method node you are interested in.
-
From the node's context menu select the Build Code Flow entry.
A new node (containing the parsed code flow) named Code Flow is added
as child of the method node. To improve readability only default control
statements are displayed.
-
When you lose your interest in a method's code flow you can delete
it using the Remove Code Flow entry in the method node context menu.
Note
-
The CodeSMART Project Explorer can automatically build the code flow
nodes for each method in your project. Just check the
Show each member code flow in a child folder node option in the
Project Explorer - Behavior section of the CodeSMART Control Panel.
The Build Code Flow and Remove Code Flow commands are not
available if you turn this option on.
See Also
Back to top
|