* Fork the current session so that a new one with the same stack can be used * in parallel or future resolutions, such as multiple method arguments, * multiple properties, or a getter function * @param session - The current session
(session?: ResolutionSession)
| 86 | * @param session - The current session |
| 87 | */ |
| 88 | static fork(session?: ResolutionSession): ResolutionSession | undefined { |
| 89 | if (session === undefined) return undefined; |
| 90 | const copy = new ResolutionSession(); |
| 91 | copy.stack.push(...session.stack); |
| 92 | return copy; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Run the given action with the given binding and session |
no outgoing calls
no test coverage detected