1 | static L<S> findSupportedQuestionsInFunctions_functionNames = litlist("match", "match3", "flexmatch"); |
2 | |
3 | static L<S> findSupportedQuestionsInFunctions_impl(S src, S... functionsToScan) { |
4 | new TreeSet<S> questions; |
5 | if (src != null) |
6 | for (L<S> tok : tok_findMainFunctionsNamed(src, functionsToScan)) |
7 | for (int i = 1; i+4 < tok.size(); i += 2) |
8 | if (findSupportedQuestionsInFunctions_functionNames.contains(tok.get(i)) && tok.get(i+2).equals("(") |
9 | && isQuoted(tok.get(i+4))) |
10 | questions.add(unquote(tok.get(i+4))); |
11 | ret asList(questions); |
12 | } |
Began life as a copy of #1009258
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1009345 |
Snippet name: | findSupportedQuestionsInFunctions_impl |
Eternal ID of this version: | #1009345/4 |
Text MD5: | 4c90a3347239105d18885a2d6abb03e5 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-18 16:19:22 |
Source code size: | 580 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 544 / 566 |
Version history: | 3 change(s) |
Referenced in: | [show references] |