Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1022476 // gazelle_copyLineToLongAppliedRuleList

JavaX fragment (include)

1  
svoid gazelle_copyLineToLongAppliedRuleList(S context) pcall {
2  
  if (nempty(gazelle_applicationsForContext(context))) ret;
3  
  try {
4  
    S mrStruct = gazelle_matchedRuleStructForContext(context);
5  
    if (mrStruct == null) ret; // with print("Not a Gazelle line or legacy");
6  
    printIndent(shorten(mrStruct, 50));
7  
    // TODO: emojis
8  
    dm_gazelle_saveAppliedRuleToLongList(
9  
      matchedRuleStruct := mrStruct,
10  
      +context);
11  
  } on fail {
12  
    print("Context: " + context);
13  
  }
14  
}

Author comment

Began life as a copy of #1021821

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022476
Snippet name: gazelle_copyLineToLongAppliedRuleList
Eternal ID of this version: #1022476/1
Text MD5: 24d1d12fdf843eb545c502b3a25d04ad
Author: stefan
Category: javax / discord / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-18 12:23:55
Source code size: 494 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 195 / 227
Referenced in: [show references]