Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Add a license header (#4601)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnny Khalil authored and jasonLaster committed Nov 7, 2017
1 parent 6d960c5 commit e12186b
Show file tree
Hide file tree
Showing 245 changed files with 965 additions and 50 deletions.
4 changes: 4 additions & 0 deletions src/actions/ast.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 {
Expand Down
5 changes: 3 additions & 2 deletions src/actions/breakpoints.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// @flow
/* 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/. */
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */

// @flow

/**
* Redux actions for breakpoints
Expand Down
4 changes: 4 additions & 0 deletions src/actions/breakpoints/addBreakpoint.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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/>. */

import {
locationMoved,
breakpointExists,
Expand Down
4 changes: 4 additions & 0 deletions src/actions/breakpoints/remapLocations.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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/>. */

export default function remapLocations(breakpoints, sourceId, sourceMaps) {
const sourceBreakpoints = breakpoints.map(async breakpoint => {
if (breakpoint.location.sourceId !== sourceId) {
Expand Down
4 changes: 4 additions & 0 deletions src/actions/breakpoints/syncBreakpoint.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 {
locationMoved,
Expand Down
4 changes: 4 additions & 0 deletions src/actions/coverage.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 { ThunkArgs } from "./types";
Expand Down
4 changes: 4 additions & 0 deletions src/actions/debuggee.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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/>. */

export function setWorkers(workers) {
return {
type: "SET_WORKERS",
Expand Down
1 change: 1 addition & 0 deletions src/actions/event-listeners.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* 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/. */

/* global window gThreadClient setNamedTimeout services EVENTS */
/* eslint no-shadow: 0 */

Expand Down
4 changes: 4 additions & 0 deletions src/actions/expressions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 {
Expand Down
4 changes: 4 additions & 0 deletions src/actions/file-search.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 { find, findNext, findPrev, removeOverlay } from "../utils/editor";
Expand Down
4 changes: 4 additions & 0 deletions src/actions/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 * as breakpoints from "./breakpoints";
Expand Down
4 changes: 4 additions & 0 deletions src/actions/navigation.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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/>. */

import { clearDocuments } from "../utils/editor";
import { getSources } from "../reducers/sources";
import { waitForMs } from "../utils/utils";
Expand Down
4 changes: 4 additions & 0 deletions src/actions/pause/breakOnNext.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 { ThunkArgs } from "../types";
Expand Down
4 changes: 4 additions & 0 deletions src/actions/pause/commands.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 { getPause, getSelectedSource } from "../../selectors";
Expand Down
4 changes: 4 additions & 0 deletions src/actions/pause/continueToHere.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 { getSelectedSource } from "../../selectors";
Expand Down
4 changes: 4 additions & 0 deletions src/actions/pause/fetchScopes.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 { getSource, getSelectedFrame, getFrameScope } from "../../selectors";
Expand Down
4 changes: 4 additions & 0 deletions src/actions/pause/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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

/**
Expand Down
4 changes: 4 additions & 0 deletions src/actions/pause/loadObjectProperties.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 { PROMISE } from "../utils/middleware/promise";
Expand Down
4 changes: 4 additions & 0 deletions src/actions/pause/pauseOnExceptions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 { PROMISE } from "../utils/middleware/promise";
Expand Down
4 changes: 4 additions & 0 deletions src/actions/pause/paused.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 {
Expand Down
5 changes: 5 additions & 0 deletions src/actions/pause/resumed.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/* 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 { isStepping, getPauseReason } from "../../selectors";
import { evaluateExpressions } from "../expressions";
import { inDebuggerEval } from "../../utils/pause";
Expand Down
4 changes: 4 additions & 0 deletions src/actions/pause/selectFrame.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 { selectSource } from "../sources";
Expand Down
6 changes: 3 additions & 3 deletions src/actions/project-text-search.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @flow

/* 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/. */
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */

// @flow

/**
* Redux actions for the search state
Expand Down
5 changes: 5 additions & 0 deletions src/actions/quick-open.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/* 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 { QuickOpenAction } from "./types";

export function setQuickOpenQuery(query: string): QuickOpenAction {
Expand Down
4 changes: 4 additions & 0 deletions src/actions/source-tree.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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/>. */

import type { ThunkArgs } from "./types";

export function setExpandedState(expanded) {
Expand Down
6 changes: 3 additions & 3 deletions src/actions/sources.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @flow

/* 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/. */
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */

// @flow

/**
* Redux actions for the sources state
Expand Down
4 changes: 4 additions & 0 deletions src/actions/sources/createPrettySource.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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/>. */

import { getFrames, getSource } from "../../selectors";
import { prettyPrint } from "../../workers/pretty-print";
import { updateFrameLocations } from "../../utils/pause";
Expand Down
5 changes: 5 additions & 0 deletions src/actions/sources/loadSourceText.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/* 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 { PROMISE } from "../utils/middleware/promise";
import { setEmptyLines, setSymbols, setSourceMetaData } from "../ast";
import { getSource } from "../../selectors";
Expand Down
7 changes: 4 additions & 3 deletions src/actions/toolbox.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// @flow

/* 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/. */
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */

// @flow

const { isDevelopment } = require("devtools-config");

import type { ThunkArgs } from "./types";
Expand Down
4 changes: 4 additions & 0 deletions src/actions/types.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 {
Expand Down
5 changes: 5 additions & 0 deletions src/actions/ui.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/* 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 { getSource, getActiveSearch, getPaneCollapse } from "../selectors";
import type { ThunkArgs } from "./types";
import type {
Expand Down
7 changes: 4 additions & 3 deletions src/actions/utils/create-store.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// @flow

/* 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/. */
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */

// @flow

/* global window */

/**
Expand Down
6 changes: 3 additions & 3 deletions src/actions/utils/middleware/history.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @flow

/* 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/. */
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */

// @flow
/* global window */

import { isDevelopment } from "devtools-config";
Expand Down
6 changes: 3 additions & 3 deletions src/actions/utils/middleware/promise.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @flow

/* 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/. */
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */

// @flow

import { fromPairs, toPairs } from "lodash";
import { executeSoon } from "../../../utils/DevToolsUtils";
Expand Down
7 changes: 4 additions & 3 deletions src/actions/utils/middleware/thunk.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// @flow

/* 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/. */
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */

// @flow

/* global window */

import type { ThunkArgs, ActionType } from "../../types";
Expand Down
1 change: 1 addition & 0 deletions src/actions/utils/middleware/timing.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* 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/. */

/* global window */

/**
Expand Down
6 changes: 3 additions & 3 deletions src/actions/utils/middleware/wait-service.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @flow

/* 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/. */
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */

// @flow
/* global window */

/**
Expand Down
4 changes: 4 additions & 0 deletions src/client/chrome.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 { setupCommands, clientCommands } from "./chrome/commands";
Expand Down
4 changes: 4 additions & 0 deletions src/client/chrome/commands.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 {
Expand Down
4 changes: 4 additions & 0 deletions src/client/chrome/create.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 { Location, LoadedObject } from "debugger-html";
Expand Down
4 changes: 4 additions & 0 deletions src/client/chrome/events.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 { createFrame, createLoadedObject } from "./create";
Expand Down
4 changes: 4 additions & 0 deletions src/client/chrome/types.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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

export type ServerLocation = {
Expand Down
4 changes: 4 additions & 0 deletions src/client/firefox.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 { setupCommands, clientCommands } from "./firefox/commands";
Expand Down
4 changes: 4 additions & 0 deletions src/client/firefox/commands.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* 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 {
Expand Down
Loading

0 comments on commit e12186b

Please sign in to comment.