nav tabs on admin dashboard

This commit is contained in:
2019-03-07 00:20:34 -06:00
parent f73d6ae228
commit e4f473f376
11661 changed files with 216240 additions and 1544253 deletions

View File

@@ -1,20 +1,20 @@
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the BSD-style license found in the
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An
* additional grant of patent rights can be found in the PATENTS file in
* the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import assert from "assert";
let m = require("private").makeAccessor();
import * as t from "babel-types";
import { getTypes } from "./util.js";
import { makeAccessor } from "private";
let m = makeAccessor();
let hasOwn = Object.prototype.hasOwnProperty;
function makePredicate(propertyName, knownTypes) {
function onlyChildren(node) {
const t = getTypes();
t.assertNode(node);
// Assume no side effects until we find out otherwise.
@@ -45,7 +45,7 @@ function makePredicate(propertyName, knownTypes) {
}
function predicate(node) {
t.assertNode(node);
getTypes().assertNode(node);
let meta = m(node);
if (hasOwn.call(meta, propertyName))