| 207 | } |
| 208 | |
| 209 | annotate( |
| 210 | annotations: Context.Context<never>, |
| 211 | options?: { readonly overwrite?: boolean | undefined } |
| 212 | ): this { |
| 213 | if (annotations.mapUnsafe.size === 0) return this |
| 214 | const newAnnotations = new Map(this.annotations) |
| 215 | annotations.mapUnsafe.forEach((value, key) => { |
| 216 | if (options?.overwrite !== true && newAnnotations.has(key)) return |
| 217 | newAnnotations.set(key, value) |
| 218 | }) |
| 219 | const self = Object.assign(Object.create(Object.getPrototypeOf(this)), this) |
| 220 | self.annotations = newAnnotations |
| 221 | return self |
| 222 | } |
| 223 | |
| 224 | pipe() { |
| 225 | return pipeArguments(this, arguments) |