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

5
LINES

< > BotCompany Repo | #1003913 // containsReturn - does Java code contain a return statement?

JavaX fragment (include)

// We'd be really fancy if we filtered out return statements in
// inner blocks.
static bool containsReturn(S code) {
  ret containsOneOf(javaTok(code), "ret", "return");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003913
Snippet name: containsReturn - does Java code contain a return statement?
Eternal ID of this version: #1003913/1
Text MD5: 211472201389de052f0a300a998387ca
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-30 16:47:57
Source code size: 176 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 532 / 521
Referenced in: [show references]