  The Leibler theory [L. Leibler, Macromolecules, v.13, 1602 (1980)] for
microphase separation in AB block copolymer melts is generalized for systems
with arbitrary topology of molecules. A diagrammatic technique for calculation
of the monomeric correlation functions is developed. The free energies of
various mesophases are calculated within the second-harmonic approximation.
Model highly-branched tree-like structures are considered as an example and
their phase diagrams are obtained. The topology of molecules is found to
influence the spinodal temperature and asymmetry of the phase diagrams, but not
the types of phases and their order. We suggest that all model AB
block-copolymer systems will exhibit the typical phase behaviour.
