(
scriptId, startPosition, endPosition, duration, timestamp, functionName)
| 893 | } |
| 894 | |
| 895 | getOrCreateFunction( |
| 896 | scriptId, startPosition, endPosition, duration, timestamp, functionName) { |
| 897 | if (scriptId == -1) { |
| 898 | return this.lookupFunktionByRange(startPosition, endPosition); |
| 899 | } |
| 900 | let script = this.lookupScript(scriptId); |
| 901 | let funktion = script.getFunktionAtStartPosition(startPosition); |
| 902 | if (funktion === undefined) { |
| 903 | funktion = new Funktion(functionName, startPosition, endPosition, script); |
| 904 | } |
| 905 | return funktion; |
| 906 | } |
| 907 | |
| 908 | // Iterates over all functions and tries to find matching ones. |
| 909 | lookupFunktionsByRange(start, end) { |
no test coverage detected