From 6348f89d342496955cb967bd1b70c5b98aa97aec Mon Sep 17 00:00:00 2001 From: Grigorii Kirgizov Date: Wed, 8 Apr 2020 23:41:29 +0300 Subject: [PATCH] Achieve regeneration of rules from deep changes to "imported" data requiredHash of a rule now includes hashes not only of SNode & SNodeRef but also of anything except Coderules rt types (e.g. MetaLogical & DataForm). The motivation is that if something else is used -- then it must come from AST, so the rule must be regenerated on any changes to that data. requiredHash is renamed to usedDataHash to reflect that fact. In particular, fixes dependence of IndexedTupleAccess rule on idx from `idx = tuple.index.getCompileTimeConstant()`. --- .../jetbrains.mps.lang.coderules.template.mps | 946 ++++++++++-------- 1 file changed, 551 insertions(+), 395 deletions(-) diff --git a/coderules/solutions/jetbrains.mps.lang.coderules.template/models/jetbrains.mps.lang.coderules.template.mps b/coderules/solutions/jetbrains.mps.lang.coderules.template/models/jetbrains.mps.lang.coderules.template.mps index cabf966a..c7e3583d 100644 --- a/coderules/solutions/jetbrains.mps.lang.coderules.template/models/jetbrains.mps.lang.coderules.template.mps +++ b/coderules/solutions/jetbrains.mps.lang.coderules.template/models/jetbrains.mps.lang.coderules.template.mps @@ -3305,7 +3305,7 @@ - + @@ -3391,7 +3391,7 @@ - + @@ -3468,7 +3468,7 @@ - + @@ -3553,7 +3553,7 @@ - + @@ -3778,7 +3778,7 @@ - + @@ -3788,7 +3788,7 @@ - + @@ -3960,7 +3960,7 @@ - + @@ -4037,7 +4037,7 @@ - + @@ -4047,7 +4047,7 @@ - + @@ -4084,7 +4084,7 @@ - + @@ -4094,7 +4094,7 @@ - + @@ -4117,7 +4117,7 @@ - + @@ -4127,7 +4127,7 @@ - + @@ -4159,7 +4159,7 @@ - + @@ -4176,7 +4176,7 @@ - + @@ -4218,7 +4218,7 @@ - + @@ -4228,7 +4228,7 @@ - + @@ -4266,7 +4266,7 @@ - + @@ -4276,7 +4276,7 @@ - + @@ -4299,7 +4299,7 @@ - + @@ -4309,7 +4309,7 @@ - + @@ -4346,7 +4346,7 @@ - + @@ -4358,7 +4358,7 @@ - + @@ -4373,7 +4373,7 @@ - + @@ -4386,150 +4386,184 @@ - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + @@ -4549,215 +4583,132 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4766,48 +4717,253 @@ - - - + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - @@ -5178,12 +5334,12 @@ - + - + @@ -5193,7 +5349,7 @@ - + @@ -5525,7 +5681,7 @@ - +