(line, pos, sctx)
| 1587 | }; |
| 1588 | |
| 1589 | var completeExpr = function(line, pos, sctx){ |
| 1590 | var identifier = retrievePrecedingIdentifier(line, pos.col, nameCharRegExp); |
| 1591 | var before = line.substring(0, pos.col - (identifier.length === 0 ? 0 : identifier.length)); |
| 1592 | var isVar = before[before.length - 1] === '$'; |
| 1593 | if(isVar) { |
| 1594 | return completeVariable(identifier, pos, sctx); |
| 1595 | } else if(identifier !== '') { |
| 1596 | return completeFunction(identifier, pos, sctx).concat(completePrefix(identifier, pos, sctx)); |
| 1597 | } else { |
| 1598 | return completeVariable(identifier, pos, sctx).concat(completeFunction(identifier, pos, sctx)).concat(completePrefix(identifier, pos, sctx)); |
| 1599 | } |
| 1600 | }; |
| 1601 | |
| 1602 | var completeModuleUri = function(line, pos, sctx){ |
| 1603 | var identifier = retrievePrecedingIdentifier(line, pos.col, uriRegex); |
no test coverage detected
searching dependent graphs…