* * Canonicalize a Block expression * * - Hoist any `Declare` expression to the top of the block * - Add a `Declare` expression for any `Assign` expression * - Error for any `Declare` expression that's an argument to a function *
(
ops: ReadonlyArray<Expression>,
options: { engine: ComputeEngine; scope: Scope | undefined }
)
| 208 | import { isTransitivelyPure } from '../boxed-expression/transitive-purity.js'; |
| 209 | import { |
| 210 | evaluateChainForCondition, |
| 211 | isNearTiePair, |
| 212 | } from './relational-operator.js'; |
| 213 | import { isExactConstantExpression } from '../boxed-expression/compare.js'; |
| 214 | import { |
| 215 | assignLoopIndex, |
| 216 | bindIndexAuthoritatively, |
| 217 | substituteBinderValues, |
| 218 | } from './utils.js'; |
| 219 | import { |
| 220 | markDeclaredLocal, |
| 221 | markSingleFunctionLocal, |
| 222 | } from '../boxed-expression/declared-local.js'; |
| 223 | import { |
| 224 | isImportView, |
| 225 | removeImportView, |
| 226 | settleImportViews, |
| 227 | } from '../import-views.js'; |
| 228 |