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

8
LINES

< > BotCompany Repo | #1028898 // codeSafetyCheckResult

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (10702L/76K).

sS codeSafetyCheckResult(S code) {
  S safety = joinWithComma(getCodeFragmentSafety(code));
  if (neq(safety, "safe")) {
    Set<S> unknown = codeAnalysis_getUnknownIdentifiers(code);
    if (nempty(unknown)) safety += ". Unknown identifiers: " + joinWithComma(unknown);
  }
  ret safety;
}

Author comment

Began life as a copy of #1022382

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1028898
Snippet name: codeSafetyCheckResult
Eternal ID of this version: #1028898/1
Text MD5: 8809d14e6e52ece0a50841a788cb681b
Transpilation MD5: 41bcff109133664971413ccea5d680f4
Author: stefan
Category: javax / gazelle
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-11 12:59:11
Source code size: 297 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 225 / 318
Referenced in: [show references]