mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
Comment adjustments.
This commit is contained in:
parent
a0f44dc7cd
commit
c57e4131c7
3 changed files with 4 additions and 6 deletions
|
@ -22,7 +22,6 @@ import org.eclipse.cdt.core.model.ITranslationUnit;
|
|||
/**
|
||||
* Is returned when using the find method of the MethodDefinitionInsertLocationFinder.
|
||||
* Contains all the information needed to insert at the correct position.
|
||||
* This class is intended as a replacement for InsertLocation.
|
||||
*
|
||||
* @author Lukas Felber
|
||||
*/
|
||||
|
|
|
@ -41,15 +41,14 @@ import org.eclipse.cdt.internal.ui.refactoring.utils.NodeHelper;
|
|||
/**
|
||||
* Finds the information that are needed to tell where a method definition of a certain
|
||||
* method declaration should be inserted.
|
||||
* This class is intended as a replacement for MethodDefinitionInsertLocationFinder.
|
||||
*
|
||||
* @author Mirko Stocker, Lukas Felber
|
||||
*/
|
||||
public class MethodDefinitionInsertLocationFinder {
|
||||
// We cache DefinitionFinder2.getDefinition results because refactorings like Implement Method
|
||||
// We cache DefinitionFinder.getDefinition results because refactorings like Implement Method
|
||||
// might want to find multiple insert locations in the same translation unit. This prevents
|
||||
// many redundant calls to DefinitionFinder2.getDefinition and speeds up the process quite
|
||||
//a bit. Unfortunately, this has the minor side-effect or having to instantiate this class.
|
||||
// many redundant calls to DefinitionFinder.getDefinition and speeds up the process quite
|
||||
// a bit. Unfortunately, this has the minor side-effect or having to instantiate this class.
|
||||
Map<IASTSimpleDeclaration, IASTName> cachedDeclarationToDefinition =
|
||||
new HashMap<IASTSimpleDeclaration, IASTName>();
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ import org.eclipse.cdt.internal.ui.refactoring.RefactoringASTCache;
|
|||
import org.eclipse.cdt.internal.ui.util.EditorUtility;
|
||||
|
||||
/**
|
||||
* Helper class to find definitions. This class is intended as a replacement for DefinitionFinder.
|
||||
* Helper class for finding definitions.
|
||||
*/
|
||||
public class DefinitionFinder {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue