From 49a381936d2a3afd002619a120106b2e80d2d1f1 Mon Sep 17 00:00:00 2001 From: Fedor Isakov Date: Sat, 2 Feb 2019 16:09:39 +0100 Subject: [PATCH] Enable to specify custom matching strategy when asserting that locally inferred types are the same. --- build.xml | 2 + .../jetbrains.mps.typechecking.build.mps | 5 + .../jetbrains.mps.typechecking.msd | 1 + .../models/service.mps | 940 ++++++++++++++---- 4 files changed, 732 insertions(+), 216 deletions(-) diff --git a/build.xml b/build.xml index 46a74457..3a04d824 100644 --- a/build.xml +++ b/build.xml @@ -3172,6 +3172,8 @@ + + diff --git a/coderules/solutions/jetbrains.mps.typechecking.build/models/jetbrains.mps.typechecking.build.mps b/coderules/solutions/jetbrains.mps.typechecking.build/models/jetbrains.mps.typechecking.build.mps index 134dd786..a88d2141 100644 --- a/coderules/solutions/jetbrains.mps.typechecking.build/models/jetbrains.mps.typechecking.build.mps +++ b/coderules/solutions/jetbrains.mps.typechecking.build/models/jetbrains.mps.typechecking.build.mps @@ -944,6 +944,11 @@ + + + + + diff --git a/coderules/solutions/jetbrains.mps.typechecking/jetbrains.mps.typechecking.msd b/coderules/solutions/jetbrains.mps.typechecking/jetbrains.mps.typechecking.msd index 0f1e58b1..10c976c3 100644 --- a/coderules/solutions/jetbrains.mps.typechecking/jetbrains.mps.typechecking.msd +++ b/coderules/solutions/jetbrains.mps.typechecking/jetbrains.mps.typechecking.msd @@ -17,6 +17,7 @@ f486b8aa-5b2d-4ec0-8ef5-8f45d773fb84(jetbrains.mps.lang.typechecking.runtime) 0b80a2e8-f9f1-47b3-823f-56eb115bca42(jetbrains.mps.typechecking.annotation) 7a5dda62-9140-4668-ab76-d5ed1746f2b2(jetbrains.mps.lang.typesystem) + 49808fad-9d41-4b96-83fa-9231640f6b2b(JUnit) diff --git a/coderules/solutions/jetbrains.mps.typechecking/models/service.mps b/coderules/solutions/jetbrains.mps.typechecking/models/service.mps index aa4fa69a..0283fdc3 100644 --- a/coderules/solutions/jetbrains.mps.typechecking/models/service.mps +++ b/coderules/solutions/jetbrains.mps.typechecking/models/service.mps @@ -8,7 +8,7 @@ - + @@ -52,14 +52,24 @@ + + + + + + + + + + @@ -93,9 +103,17 @@ + + + + + + + + @@ -115,8 +133,14 @@ + + + + + + @@ -136,6 +160,7 @@ + @@ -166,6 +191,9 @@ + + + @@ -189,7 +217,9 @@ - + + + @@ -241,6 +271,12 @@ + + + + + + @@ -250,6 +286,7 @@ + @@ -259,10 +296,9 @@ - - - - + + + @@ -277,17 +313,19 @@ + + + - + - @@ -342,6 +380,7 @@ + @@ -385,7 +424,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -512,7 +618,41 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -625,8 +765,13 @@ - - + + + + + + + @@ -680,13 +825,18 @@ - - + + - - - + + + + + + + + @@ -703,19 +853,16 @@ + - + - - - + - - - + @@ -724,21 +871,28 @@ - - - + + + + + + - - - + - + + + + + + + @@ -793,8 +947,8 @@ - - + + @@ -864,24 +1018,16 @@ - - - - - - - - - - - - + + + + + + + - - - - - + + @@ -893,8 +1039,15 @@ - - + + + + + + + + + @@ -908,21 +1061,16 @@ - - + + - - - - - - - + + @@ -952,18 +1100,14 @@ - + - - - - - - - - + + + + @@ -998,12 +1142,10 @@ - - - + - + @@ -1011,9 +1153,14 @@ - - - + + + + + + + + @@ -1023,22 +1170,20 @@ - - - - + + + + + + + + + + - - - - - - - - - + @@ -1063,11 +1208,13 @@ - - - + + + + + + - @@ -1078,7 +1225,7 @@ - + @@ -1086,20 +1233,28 @@ + + + + + + + + + + + + - - - - - + + - - - + + @@ -1131,19 +1286,16 @@ - - + + - + - - - - - + + @@ -1203,105 +1355,73 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + - - - - - - - - - - - - - - + + + + + + + + - - - - + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1309,9 +1429,7 @@ - - - + @@ -1341,6 +1459,395 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1363,6 +1870,15 @@ + + + + + + + + + @@ -1648,9 +2164,7 @@ - - - + @@ -1677,16 +2191,12 @@ - - - + - - - + @@ -1717,9 +2227,7 @@ - - - +