(start, end)
| 907 | |
| 908 | // Iterates over all functions and tries to find matching ones. |
| 909 | lookupFunktionsByRange(start, end) { |
| 910 | let results = []; |
| 911 | this.idToScript.forEach(script => { |
| 912 | script.forEach(funktion => { |
| 913 | if (funktion.startPosition == start && funktion.endPosition == end) { |
| 914 | results.push(funktion); |
| 915 | } |
| 916 | }); |
| 917 | }); |
| 918 | return results; |
| 919 | } |
| 920 | lookupFunktionByRange(start, end) { |
| 921 | let results = this.lookupFunktionsByRange(start, end); |
| 922 | if (results.length != 1) throw "Could not find unique function by range"; |
no test coverage detected