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

16
LINES

< > BotCompany Repo | #1030111 // tok_allIdentifiersWithoutColonEquals

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

Transpiled version (2612L) is out of date.

1  
static Set<S> tok_allIdentifiersWithoutColonEquals(S s) {
2  
  new HashSet<S> set;
3  
  ret tok_allIdentifiersWithoutColonEquals(javaTok(s));
4  
}
5  
  
6  
static Set<S> tok_allIdentifiersWithoutColonEquals(LS tok) {
7  
  new HashSet<S> set;
8  
  tok = codeTokens(tok);
9  
  for i over tok: {
10  
    S t = tok.get(i);
11  
    if (isIdentifier(t) && !
12  
      (eqGet(tok, i+1, ":") && eqGet(tok, i+2, "=")))
13  
      set.add(t);
14  
  }
15  
  ret set;
16  
}

Author comment

Began life as a copy of #1015746

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030111
Snippet name: tok_allIdentifiersWithoutColonEquals
Eternal ID of this version: #1030111/2
Text MD5: 8ea294df78106681a099349d1c44408d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-13 11:59:56
Source code size: 423 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 131 / 199
Version history: 1 change(s)
Referenced in: [show references]