From 5c8195aec7d16e19eed6d83f61f7d3acdd79db35 Mon Sep 17 00:00:00 2001 From: Sathya Gunasekaran Date: Mon, 15 May 2023 14:43:39 +0100 Subject: [PATCH] [prettier] Fix linting --- .../src/ReactiveScopes/PropagateScopeDependencies.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/compiler/forget/src/ReactiveScopes/PropagateScopeDependencies.ts b/compiler/forget/src/ReactiveScopes/PropagateScopeDependencies.ts index 1ffbd2e22e..3ca893e443 100644 --- a/compiler/forget/src/ReactiveScopes/PropagateScopeDependencies.ts +++ b/compiler/forget/src/ReactiveScopes/PropagateScopeDependencies.ts @@ -538,12 +538,15 @@ class PropagationVisitor extends ReactiveFunctionVisitor { id, scope: context.currentScope, }); - } else if (value.kind === "DeclareLocal" || value.kind === "DeclareContext") { + } else if ( + value.kind === "DeclareLocal" || + value.kind === "DeclareContext" + ) { // Some variables may be declared and never initialized. We need // to retain (and hoist) these declarations if they are included // in a reactive scope. One approach is to simply add all `DeclareLocal`s // as scope declarations. - + // We add context variable declarations here, not at `StoreContext`, since // context Store / Loads are modeled as reads and mutates to the underlying // variable reference (instead of through intermediate / inlined temporaries)