( object: DaggerObject, ctx: InvokeCtx, )
| 44 | } |
| 45 | |
| 46 | export function loadInvokedMethod( |
| 47 | object: DaggerObject, |
| 48 | ctx: InvokeCtx, |
| 49 | ): (Method | Constructor) | undefined { |
| 50 | if (ctx.fnName === "") { |
| 51 | return object._constructor |
| 52 | } |
| 53 | |
| 54 | return object.methods[ctx.fnName] |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Load the values of the arguments from the context. |