(line, pos, sctx)
| 2750 | }; |
| 2751 | |
| 2752 | var completeExpr = function(line, pos, sctx){ |
| 2753 | var identifier = retrievePrecedingIdentifier(line, pos.col, nameCharRegExp); |
| 2754 | var before = line.substring(0, pos.col - (identifier.length === 0 ? 0 : identifier.length)); |
| 2755 | var isVar = before[before.length - 1] === '$'; |
| 2756 | if(isVar) { |
| 2757 | return completeVariable(identifier, pos, sctx); |
| 2758 | } else if(identifier !== '') { |
| 2759 | return completeFunction(identifier, pos, sctx).concat(completePrefix(identifier, pos, sctx)); |
| 2760 | } else { |
| 2761 | return completeVariable(identifier, pos, sctx).concat(completeFunction(identifier, pos, sctx)).concat(completePrefix(identifier, pos, sctx)); |
| 2762 | } |
| 2763 | }; |
| 2764 | |
| 2765 | var completeModuleUri = function(line, pos, sctx){ |
| 2766 | var identifier = retrievePrecedingIdentifier(line, pos.col, uriRegex); |
no test coverage detected