(str)
| 92 | function getCompletions(token, context, keywords) { |
| 93 | var found = [], start = token.string; |
| 94 | function maybeAdd(str) { |
| 95 | if (str.indexOf(start) == 0 && !arrayContains(found, str)) found.push(str); |
| 96 | } |
| 97 | function gatherCompletions(obj) { |
| 98 | if (typeof obj == "string") forEach(stringProps, maybeAdd); |
| 99 | else if (obj instanceof Array) forEach(arrayProps, maybeAdd); |
no test coverage detected