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

13
LINES

< > BotCompany Repo | #1021662 // codeAnalysis_getUnknownIdentifiers

JavaX fragment (include)

1  
static Set<S> codeAnalysis_getUnknownIdentifiers(S code) {
2  
  SS map = codeAnalysis_identifierSafetyMap();
3  
  Set<S> identifiers = tok_allIdentifiers(code);
4  
  
5  
  new TreeSet<S> set;
6  
  for (S id : identifiers) {
7  
    if (!codeAnalysis_isSafeIdentifier(id)
8  
      && (!map.containsKey(id) || contains(map.get(id), "?")))
9  
        set.add(id);
10  
  }
11  
  
12  
  ret set;
13  
}

Author comment

Began life as a copy of #1018160

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: #1021662
Snippet name: codeAnalysis_getUnknownIdentifiers
Eternal ID of this version: #1021662/5
Text MD5: 5594a5c9eff7aa5853b4a665b3d52cff
Author: stefan
Category: javax / code analysis
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-23 17:42:58
Source code size: 367 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 242 / 291
Version history: 4 change(s)
Referenced in: [show references]