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

14
LINES

< > BotCompany Repo | #1022476 // gazelle_copyLineToLongAppliedRuleList

JavaX fragment (include)

svoid gazelle_copyLineToLongAppliedRuleList(S context) pcall {
  if (nempty(gazelle_applicationsForContext(context))) ret;
  try {
    S mrStruct = gazelle_matchedRuleStructForContext(context);
    if (mrStruct == null) ret; // with print("Not a Gazelle line or legacy");
    printIndent(shorten(mrStruct, 50));
    // TODO: emojis
    dm_gazelle_saveAppliedRuleToLongList(
      matchedRuleStruct := mrStruct,
      +context);
  } on fail {
    print("Context: " + context);
  }
}

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: 192 / 222
Referenced in: [show references]