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.

static Set<S> tok_allIdentifiersWithoutColonEquals(S s) {
  new HashSet<S> set;
  ret tok_allIdentifiersWithoutColonEquals(javaTok(s));
}
  
static Set<S> tok_allIdentifiersWithoutColonEquals(LS tok) {
  new HashSet<S> set;
  tok = codeTokens(tok);
  for i over tok: {
    S t = tok.get(i);
    if (isIdentifier(t) && !
      (eqGet(tok, i+1, ":") && eqGet(tok, i+2, "=")))
      set.add(t);
  }
  ret set;
}

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: 124 / 190
Version history: 1 change(s)
Referenced in: [show references]