From af8c50f3e527e187961a77e25f908ee76afd40e9 Mon Sep 17 00:00:00 2001 From: Fedor Isakov Date: Wed, 3 Nov 2021 16:04:21 +0100 Subject: [PATCH] Refactor TypecheckingService: parameterize Request with Query --- ...ains.mps.coderules.testhelper.testutil.mps | 36 + ...rains.mps.coderules.typechecking@tests.mps | 6 + ...s.mps.coderules.typechecking.ui.plugin.mps | 22 + ...ins.mps.coderules.typechecking.service.mps | 1268 ++++++++++++----- 4 files changed, 970 insertions(+), 362 deletions(-) diff --git a/coderules/solutions/jetbrains.mps.coderules.testhelper/models/jetbrains.mps.coderules.testhelper.testutil.mps b/coderules/solutions/jetbrains.mps.coderules.testhelper/models/jetbrains.mps.coderules.testhelper.testutil.mps index 4655c4c3..07b7e4a1 100644 --- a/coderules/solutions/jetbrains.mps.coderules.testhelper/models/jetbrains.mps.coderules.testhelper.testutil.mps +++ b/coderules/solutions/jetbrains.mps.coderules.testhelper/models/jetbrains.mps.coderules.testhelper.testutil.mps @@ -516,6 +516,9 @@ + + + @@ -739,6 +742,19 @@ + + + + + + + + + + + + + @@ -831,6 +847,19 @@ + + + + + + + + + + + + + @@ -2823,6 +2852,13 @@ + + + + + + + diff --git a/coderules/solutions/jetbrains.mps.coderules.typechecking.test/models/jetbrains.mps.coderules.typechecking@tests.mps b/coderules/solutions/jetbrains.mps.coderules.typechecking.test/models/jetbrains.mps.coderules.typechecking@tests.mps index 0c10cb03..3302fad5 100644 --- a/coderules/solutions/jetbrains.mps.coderules.typechecking.test/models/jetbrains.mps.coderules.typechecking@tests.mps +++ b/coderules/solutions/jetbrains.mps.coderules.typechecking.test/models/jetbrains.mps.coderules.typechecking@tests.mps @@ -3516,6 +3516,12 @@ + + + + + + diff --git a/coderules/solutions/jetbrains.mps.coderules.typechecking.ui/models/jetbrains.mps.coderules.typechecking.ui.plugin.mps b/coderules/solutions/jetbrains.mps.coderules.typechecking.ui/models/jetbrains.mps.coderules.typechecking.ui.plugin.mps index 929f3453..457567c8 100644 --- a/coderules/solutions/jetbrains.mps.coderules.typechecking.ui/models/jetbrains.mps.coderules.typechecking.ui.plugin.mps +++ b/coderules/solutions/jetbrains.mps.coderules.typechecking.ui/models/jetbrains.mps.coderules.typechecking.ui.plugin.mps @@ -3837,6 +3837,17 @@ + + + + + + + + + + + @@ -3962,6 +3973,17 @@ + + + + + + + + + + + diff --git a/coderules/solutions/jetbrains.mps.coderules.typechecking/models/jetbrains.mps.coderules.typechecking.service.mps b/coderules/solutions/jetbrains.mps.coderules.typechecking/models/jetbrains.mps.coderules.typechecking.service.mps index fa599f2d..7926406c 100644 --- a/coderules/solutions/jetbrains.mps.coderules.typechecking/models/jetbrains.mps.coderules.typechecking.service.mps +++ b/coderules/solutions/jetbrains.mps.coderules.typechecking/models/jetbrains.mps.coderules.typechecking.service.mps @@ -108,10 +108,15 @@ + + + + + @@ -184,7 +189,9 @@ - + + + @@ -7354,6 +7361,12 @@ + + + + + + @@ -7391,6 +7404,19 @@ + + + + + + + + + + + + + @@ -7438,6 +7464,9 @@ + + + @@ -7458,6 +7487,9 @@ + + + @@ -7493,6 +7525,21 @@ + + + + + + + + + + + + + + + @@ -7508,16 +7555,6 @@ - - - - - - - - - - @@ -7580,31 +7617,15 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + @@ -7630,6 +7651,15 @@ + + + + + + + + + @@ -7778,6 +7808,12 @@ + + + + + + @@ -7789,11 +7825,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7805,9 +7872,15 @@ + + + + + + @@ -7860,11 +7933,13 @@ - - - + + + + + + - @@ -8119,27 +8194,6 @@ - - - - - - - - - - - - - - - - - - - - - @@ -8178,6 +8232,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -8186,11 +8311,13 @@ - - - + + + + + + - @@ -8212,10 +8339,12 @@ - - + + + + + - @@ -8232,11 +8361,13 @@ - + + + @@ -8259,6 +8390,29 @@ + + + + + + + + + + + + + + + + + + + + + + + @@ -8270,9 +8424,15 @@ + + + + + + @@ -8321,11 +8481,13 @@ - - - + + + + + + - @@ -8588,8 +8750,13 @@ - - + + + + + + + @@ -8606,27 +8773,6 @@ - - - - - - - - - - - - - - - - - - - - - @@ -8665,6 +8811,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -8673,11 +8890,13 @@ - - - + + + + + + - @@ -8698,11 +8917,13 @@ - - - + + + + + + - @@ -8719,11 +8940,13 @@ - + + + @@ -8749,6 +8972,29 @@ + + + + + + + + + + + + + + + + + + + + + + + @@ -8760,9 +9006,15 @@ + + + + + + @@ -8830,11 +9082,16 @@ - - - + + + + + + + + + - @@ -8930,10 +9187,15 @@ - - - + + + + + + + + @@ -8943,30 +9205,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -9012,13 +9250,8 @@ - - - - - - - + + @@ -9037,8 +9270,13 @@ - - + + + + + + + @@ -9055,11 +9293,13 @@ - + + + @@ -9080,6 +9320,27 @@ + + + + + + + + + + + + + + + + + + + + + @@ -9091,12 +9352,18 @@ + + + + + + @@ -9161,11 +9428,21 @@ - - + + + + + + + - - + + + + + + + @@ -9216,11 +9493,21 @@ - - + + + + + + + - - + + + + + + + @@ -9266,33 +9553,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -9338,16 +9598,8 @@ - - - - - - - - - - + + @@ -9366,11 +9618,21 @@ - - + + + + + + + - - + + + + + + + @@ -9387,21 +9649,21 @@ - - - + + + @@ -9429,6 +9691,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -9436,35 +9743,23 @@ - - - - - - - - - - - - - - - - - - + + + + + + @@ -9534,11 +9829,21 @@ - - + + + + + + + - - + + + + + + + @@ -9623,11 +9928,21 @@ - - + + + + + + + - - + + + + + + + @@ -9680,36 +9995,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -9741,7 +10026,7 @@ - + @@ -9764,7 +10049,7 @@ - + @@ -9821,16 +10106,8 @@ - - - - - - - - - - + + @@ -9849,12 +10126,22 @@ - - + + + + + + + - - + + + + + + + @@ -9873,21 +10160,21 @@ - - - + + + @@ -9913,6 +10200,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -9920,35 +10252,22 @@ - - - - - - - - - - - - - - - - - - - + + + + + + @@ -10018,11 +10337,21 @@ - - + + + + + + + - - + + + + + + + @@ -10107,11 +10436,21 @@ - - + + + + + + + - - + + + + + + + @@ -10163,36 +10502,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -10224,7 +10533,7 @@ - + @@ -10247,7 +10556,7 @@ - + @@ -10304,13 +10613,8 @@ - - - - - - - + + @@ -10329,11 +10633,21 @@ - - + + + + + + + - - + + + + + + + @@ -10350,21 +10664,21 @@ - - - + + + @@ -10396,6 +10710,9 @@ + + + @@ -10413,6 +10730,7 @@ + @@ -10484,24 +10802,12 @@ + + + - - - - - - - - - - - - - - - @@ -10992,6 +11298,11 @@ + + + + + @@ -11130,6 +11441,11 @@ + + + + + @@ -11148,6 +11464,11 @@ + + + + + @@ -11599,6 +11920,11 @@ + + + + + @@ -11752,6 +12078,11 @@ + + + + + @@ -15230,6 +15561,11 @@ + + + + + @@ -15267,6 +15603,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -15278,6 +15644,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -15337,6 +15792,24 @@ + + + + + + + + + + + + + + + + + + @@ -15708,7 +16181,7 @@ - + @@ -15764,7 +16237,7 @@ - + @@ -15811,7 +16284,7 @@ - + @@ -15858,7 +16331,7 @@ - + @@ -15928,7 +16401,7 @@ - + @@ -15959,8 +16432,31 @@ + + + + + + + + + + + + + + + + + + + + + + + @@ -16287,6 +16783,11 @@ + + + + + @@ -17019,6 +17520,11 @@ + + + + + @@ -17038,6 +17544,11 @@ + + + + + @@ -17441,6 +17952,11 @@ + + + + + @@ -18269,6 +18785,11 @@ + + + + + @@ -18879,6 +19400,11 @@ + + + + + @@ -19222,6 +19748,11 @@ + + + + + @@ -20265,6 +20796,11 @@ + + + + + @@ -21395,6 +21931,11 @@ + + + + + @@ -21666,6 +22207,9 @@ + + +