|
Home >Online Product Documentation >Table of Contents >Working with User-Defined Functions Working with User-Defined FunctionsThe Stylus Studio XQuery Editor provides several useful tools to help you work with user-defined functions in your XQuery code.
l Find all uses
l Go to definition
l Rename
Finding Uses of a User-Defined Function
To identify all uses of a user-defined function:
1. Place the pointer on the user-defined function declaration.
2. Right-click the function declaration.
3. Choose Find Function Use from the short-cut menu.
Stylus Studio displays a teal bookmark adjacent to each occurrence of the user-defined function, including the line on which the user-defined function is declared. Locating a User-Defined Function Declaration
To locate a user-defined function declaration:
1. Place the pointer on an occurrence of the user-defined function.
2. Right-click.
3. Choose Go to Function Definition from the short-cut menu.
Stylus Studio moves the focus to the function declaration and displays the function name in reverse video.
Renaming a User-Defined FunctionWhen you rename a user-defined function, the name is changed throughout the current XQuery.
To rename a user-defined function:
1. Place the pointer on any instance of the user-defined function name.
2. Right-click.
3. Choose Rename from the short-cut menu.
Stylus Studio displays the Rename dialog box.
The current name appears by default.
4. Enter a new name and click OK.
The user-defined function's name is changed throughout the XQuery.
|