static L getSupportedQuestions_functionNames = litlist("match", "match3", "flexmatch"); static L getSupportedQuestions(S programIDOrSrc) ctex { S src = isSnippetID(programIDOrSrc) ? loadSnippet(programIDOrSrc) : programIDOrSrc; new TreeSet questions; L tok = javaTok(src); for (int i = 1; i+4 < tok.size(); i += 2) if (getSupportedQuestions_functionNames.contains(tok.get(i)) && tok.get(i+2).equals("(") && isQuoted(tok.get(i+4))) questions.add(unquote(tok.get(i+4))); ret asList(questions); } static L getSupportedQuestions() { ret getSupportedQuestions(myJavaSource()); }