summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/src/actions/source-tree.js
blob: b2cfa0c44b2c4f865f11025091d572d739f51d22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
// @flow

import type { TreeNode } from "../utils/sources-tree/types";

export function setExpandedState(expanded: Set<string>) {
  return { type: "SET_EXPANDED_STATE", expanded };
}

export function focusItem(item: TreeNode) {
  return { type: "SET_FOCUSED_SOURCE_ITEM", item };
}