AppCode 2018.1 Help

Inline Method

Refactor | Inline

Inline Method refactoring places method's body into the body of its caller(s). You can opt to:

  • inline all occurrences of the method, and delete the method
  • inline only a single occurrence, and retain the method

ItemDescription
Inline all invocations and remove the methodSelect this option to replace all the method calls with its code and remove the method.
Inline this invocation only and keep the methodSelect this option to replace only the current method call.
Search in comments and stringsSelect this checkbox to display the usages of methods in comments and strings in the Refactoring Preview tool window.

This option will force the Refactoring Preview tool window to open even if you click the Refactor button instead of the Preview button.

Search for text occurrencesCheck this option to apply the changes to non-java files (such as documentation, HTML, JSP and other files included in the project).
PreviewClick this button to see the expected changes prior to actually performing the refactoring.
RefactorClick this button to perform the refactoring right away.
Last modified: 29 March 2018

See Also

Procedures: