* Convert func to PackedFunc * * @param func Input function. * @returns The converted function.
(func: Function)
| 1159 | * @returns The converted function. |
| 1160 | */ |
| 1161 | toPackedFunc(func: Function): PackedFunc { |
| 1162 | return this.toPackedFuncInternal(func, true); |
| 1163 | } |
| 1164 | |
| 1165 | private toPackedFuncInternal(func: Function, autoAttachToScope: boolean): PackedFunc { |
| 1166 | if (this.isPackedFunc(func)) return func as PackedFunc; |
no test coverage detected