use of org.eclipse.jdt.ls.core.internal.corext.dom.fragments.IASTFragment in project eclipse.jdt.ls by eclipse.
the class ExtractTempRefactoring method checkMatchingFragments.
private RefactoringStatus checkMatchingFragments() throws JavaModelException {
RefactoringStatus result = new RefactoringStatus();
IASTFragment[] matchingFragments = getMatchingFragments();
for (int i = 0; i < matchingFragments.length; i++) {
ASTNode node = matchingFragments[i].getAssociatedNode();
if (isLeftValue(node) && !isReferringToLocalVariableFromFor((Expression) node)) {
String msg = RefactoringCoreMessages.ExtractTempRefactoring_assigned_to;
result.addWarning(msg, JavaStatusContext.create(fCu, node));
}
}
return result;
}
Aggregations