1 | static L<S> getSupportedQuestions_functionNames = litlist("match", "match3", "flexmatch"); |
2 | |
3 | static L<S> getSupportedQuestions(S programIDOrSrc) ctex { |
4 | S src = isSnippetID(programIDOrSrc) ? loadSnippet(programIDOrSrc) : programIDOrSrc; |
5 | new TreeSet<S> questions; |
6 | L<S> tok = javaTok(src); |
7 | for (int i = 1; i+4 < tok.size(); i += 2) |
8 | if (getSupportedQuestions_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 | } |
13 | |
14 | static L<S> getSupportedQuestions() { |
15 | ret getSupportedQuestions(myJavaSource()); |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001395 |
Snippet name: | getSupportedQuestions - superceded by findSupportedQuestionsInFunctions_impl |
Eternal ID of this version: | #1001395/5 |
Text MD5: | 74d280f63fda54c46589d9a4e61ba9ac |
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:38 |
Source code size: | 633 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 706 / 985 |
Version history: | 4 change(s) |
Referenced in: | [show references] |