Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils/parser/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// @flow

import { workerUtils } from "devtools-utils";
import { getClosestExpression } from "./utils/closest";
const { WorkerDispatcher } = workerUtils;

const dispatcher = new WorkerDispatcher();

const getClosestExpression = dispatcher.task("getClosestExpression");
const getSymbols = dispatcher.task("getSymbols");
const getVariablesInScope = dispatcher.task("getVariablesInScope");
const getOutOfScopeLocations = dispatcher.task("getOutOfScopeLocations");
Expand Down
2 changes: 2 additions & 0 deletions src/utils/parser/worker.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { getClosestExpression } from "./utils/closest";
import { getVariablesInScope } from "./scopes";
import getSymbols from "./getSymbols";
import getOutOfScopeLocations from "./getOutOfScopeLocations";
Expand All @@ -6,6 +7,7 @@ import { workerUtils } from "devtools-utils";
const { workerHandler } = workerUtils;

self.onmessage = workerHandler({
getClosestExpression,
getOutOfScopeLocations,
getSymbols,
getVariablesInScope
Expand Down