@samitouri / QOS-React / commits / 5c8195aec7

[prettier] Fix linting

Sathya Gunasekaran committed May 15, 2023 at 14:43 UTC 5c8195aec7d16e19eed6d83f61f7d3acdd79db35
1 file changed +5 -2
compiler/forget/src/ReactiveScopes/PropagateScopeDependencies.ts
+5 -2
@@ -538,12 +538,15 @@ class PropagationVisitor extends ReactiveFunctionVisitor<Context> {
538 id,
539 scope: context.currentScope,
540 });
541 - } else if (value.kind === "DeclareLocal" || value.kind === "DeclareContext") {
541 + } else if (
542 + value.kind === "DeclareLocal" ||
543 + value.kind === "DeclareContext"
544 + ) {
545 // Some variables may be declared and never initialized. We need
546 // to retain (and hoist) these declarations if they are included
547 // in a reactive scope. One approach is to simply add all `DeclareLocal`s
548 // as scope declarations.
546 -
549 +
550 // We add context variable declarations here, not at `StoreContext`, since
551 // context Store / Loads are modeled as reads and mutates to the underlying
552 // variable reference (instead of through intermediate / inlined temporaries)