1 | // returns warnings |
2 | static LS gazelle_autoTestRule(S ruleID, O... _) { |
3 | LS comments = gazelle_ruleComments(ruleID); |
4 | new LS warnings; |
5 | |
6 | for (Matches m : getJMatches_all("var * should be in list *", comments)) { |
7 | S var = $1, list = $2; |
8 | if (!mechCISetContains(list, var)) |
9 | warnings.add(quote(var) + " is not in list " + quote(list)); |
10 | } |
11 | |
12 | ret warnings; |
13 | } |
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: | 225 / 271 |
Version history: | 2 change(s) |
Referenced in: | [show references] |