(start)
| 181 | } |
| 182 | |
| 183 | getFunktionAtStartPosition(start) { |
| 184 | if (!this.isEval && start === 0) { |
| 185 | throw 'position 0 is reserved for the script'; |
| 186 | } |
| 187 | if (this.finalized) { |
| 188 | return this.funktions.find(funktion => funktion.start == start); |
| 189 | } |
| 190 | return this.funktions[start]; |
| 191 | } |
| 192 | |
| 193 | // Return the innermost function at the given source position. |
| 194 | getFunktionForPosition(position) { |
no test coverage detected