( ast: A, optional = isOptional(ast), mutable = isMutable(ast), constructorDefault = ast.context?.constructorDefault, annotations = ast.context?.annotations )
| 4526 | } |
| 4527 | |
| 4528 | function updateContext<A extends AST>( |
| 4529 | ast: A, |
| 4530 | optional = isOptional(ast), |
| 4531 | mutable = isMutable(ast), |
| 4532 | constructorDefault = ast.context?.constructorDefault, |
| 4533 | annotations = ast.context?.annotations |
| 4534 | ): A { |
| 4535 | return replaceContext(ast, new Context(optional, mutable, constructorDefault, annotations)) |
| 4536 | } |
| 4537 | |
| 4538 | function setContextFlag(key: "isOptional" | "isMutable") { |
| 4539 | const optional = key === "isOptional" ? true : undefined |
no test coverage detected