From 0e4132733a3c3b3e24935f6d9cab96e83e5bbac3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Christophe=20Beaupr=C3=A9?= Date: Mon, 15 May 2017 10:57:16 -0400 Subject: [PATCH] =?utf8?q?model:=20Specify=20`MClassDef`s=E2=80=99=20order=20?= =?utf8?q?once?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jean-Christophe Beaupré --- src/model/model.nit | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/model/model.nit b/src/model/model.nit index 8c09dfe..8fb09ee 100644 --- a/src/model/model.nit +++ b/src/model/model.nit @@ -361,14 +361,12 @@ private class MPropDefSorter super Comparator redef type COMPARED: MPropDef var mmodule: MModule + redef fun compare(pa, pb) do var a = pa.mclassdef var b = pb.mclassdef - var ca = a.mclass - var cb = b.mclass - if ca != cb then return mmodule.flatten_mclass_hierarchy.compare(ca, cb) - return mmodule.model.mclassdef_hierarchy.compare(a, b) + return mmodule.mclassdef_sorter.compare(a, b) end end -- 1.7.9.5