// returns warnings static LS gazelle_autoTestRule(S ruleID, O... _) { LS comments = gazelle_ruleComments(ruleID); new LS warnings; for (Matches m : getJMatches_all("var * should be in list *", comments)) { S var = $1, list = $2; if (!mechCISetContains(list, var)) warnings.add(quote(var) + " is not in list " + quote(list)); } ret warnings; }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1022596 |
Snippet name: | gazelle_autoTestRule - test var discriminators |
Eternal ID of this version: | #1022596/3 |
Text MD5: | 0759675e480dedcc932fe9d3f39fe6b9 |
Author: | stefan |
Category: | javax / gazelle |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-23 16:51:03 |
Source code size: | 385 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 226 / 271 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |