Extract Method

From RadPHP XE2 Documentation
Jump to: navigation, search

Turns a selected code fragment into a method. RadPHP moves the extracted code outside of the current method, determines the needed parameters, generates local variables if necessary, determines the return type, and replaces the code fragment with a call to the new method.

Item Description

Current Method

Displays the name of the method in which the code fragment currently resides.

New method name

Specifies the name to be used for the newly extracted method. ExtractedMethod is displayed by default, but you can overtype it.

Sample extracted code

Displays the code that will be generated for the newly extracted method.

Personal tools