(fn)
| 210 | } |
| 211 | |
| 212 | addFunktion(fn) { |
| 213 | if (this.finalized) throw 'script is finalized!'; |
| 214 | if (fn.start === undefined) throw "Funktion has no start position"; |
| 215 | if (this.funktions[fn.start] !== undefined) { |
| 216 | fn.print(); |
| 217 | throw "adding same function twice to script"; |
| 218 | } |
| 219 | this.funktions[fn.start] = fn; |
| 220 | } |
| 221 | |
| 222 | finalize() { |
| 223 | this.finalized = true; |
no test coverage detected