1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 02:36:01 +02:00

Comment adjustments.

This commit is contained in:
Sergey Prigogin 2011-04-19 04:38:18 +00:00
parent a0f44dc7cd
commit c57e4131c7
3 changed files with 4 additions and 6 deletions

View file

@ -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
*/

View file

@ -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>();

View file

@ -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 {