ASTNode[] nodesToReplace= getNodesToReplace(); TextEdit[] result= new TextEdit[nodesToReplace.length]; for (int i= 0; i < nodesToReplace.length; i++) { ASTNode astNode= nodesToReplace[i]; int offset= astNode.getStartPosition(); int length= astNode.getLength();
IASTFragment[] fragmentsToReplace= getFragmentsToReplace(); TextEdit[] result= new TextEdit[fragmentsToReplace.length]; for (int i= 0; i < fragmentsToReplace.length; i++) { IASTFragment fragment= fragmentsToReplace[i]; int offset= fragment.getStartPosition(); int length= fragment.getLength();
	private TextEdit[] createReplaceExpressionWithTempEdits() throws JavaModelException {		ASTNode[] nodesToReplace= getNodesToReplace();		TextEdit[] result= new TextEdit[nodesToReplace.length];		for (int i= 0; i < nodesToReplace.length; i++) {			ASTNode astNode= nodesToReplace[i];			int offset= astNode.getStartPosition();			int length= astNode.getLength();			result[i]= SimpleTextEdit.createReplace(offset, length, fTempName);		}		return result;	}