dillon1000/react

Commit

Visitor extension for transforming ReactiveFunction

Adds a subclass of ReactiveFunctionVisitor, ReactiveFunctionTransform, which 
makes it easier to write passes that change the shape of a ReactiveFunction. The 
two use-cases converted so far are both flattening away certain categories of 
reactive scopes — this will make it easier to add a similar pass to prune scopes 
that contain hook calls.
Browse files
Changed paths3 files
First-parent comparison
M compiler/forget/src/ReactiveScopes/FlattenReactiveLoops.ts ModifiedM compiler/forget/src/ReactiveScopes/PruneUnusedScopes.ts ModifiedM compiler/forget/src/ReactiveScopes/visitors.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…