fix lint errors
This commit is contained in:
parent
bb1703e1a1
commit
0370402a0d
@ -9,7 +9,6 @@ import defaults from "lodash/object/defaults";
|
||||
import * as messages from "babel-messages";
|
||||
import Binding from "./binding";
|
||||
import globals from "globals";
|
||||
import extend from "lodash/object/extend";
|
||||
import * as t from "babel-types";
|
||||
|
||||
//
|
||||
@ -163,7 +162,7 @@ export default class Scope {
|
||||
*/
|
||||
|
||||
constructor(path: NodePath, parentScope?: Scope) {
|
||||
if (parentScope && parent.block === path.node) {
|
||||
if (parentScope && parentScope.block === path.node) {
|
||||
return parentScope;
|
||||
}
|
||||
|
||||
@ -636,11 +635,11 @@ export default class Scope {
|
||||
|
||||
//
|
||||
|
||||
this.references = Object.create(null),
|
||||
this.bindings = Object.create(null),
|
||||
this.globals = Object.create(null),
|
||||
this.uids = Object.create(null),
|
||||
this.data = Object.create(null),
|
||||
this.references = Object.create(null);
|
||||
this.bindings = Object.create(null);
|
||||
this.globals = Object.create(null);
|
||||
this.uids = Object.create(null);
|
||||
this.data = Object.create(null);
|
||||
|
||||
// ForStatement - left, init
|
||||
|
||||
|
||||
@ -399,7 +399,7 @@ export function inherits(child: Object, parent: Object): Object {
|
||||
|
||||
// force inherit "private" properties
|
||||
for (let key in parent) {
|
||||
if (key[0] === "_") node[key] = parent[key];
|
||||
if (key[0] === "_") child[key] = parent[key];
|
||||
}
|
||||
|
||||
// force inherit select properties
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user