fix linting errors

This commit is contained in:
Sebastian McKenzie 2015-01-22 01:47:13 +11:00
parent 48cebd5e30
commit 9cdbb99eb9
6 changed files with 6 additions and 8 deletions

View File

@ -78,14 +78,14 @@ var go = function (getBody, node, scope) {
}
};
exports.Program = function (node, parent, scope, context, file) {
exports.Program = function (node, parent, scope) {
go(function () {
return node.body;
}, node, scope);
};
exports.FunctionDeclaration =
exports.FunctionExpression = function (node, parent, scope, context, file) {
exports.FunctionExpression = function (node, parent, scope) {
go(function () {
t.ensureBlock(node);
return node.body.body;

View File

@ -145,7 +145,6 @@ LetScoping.prototype.remap = function () {
var hasRemaps = false;
var letRefs = this.letReferences;
var scope = this.scope;
var file = this.file;
// alright, so since we aren't wrapping this block in a closure
// we have to check if any of our let variables collide with

View File

@ -145,7 +145,6 @@ var pushPattern = function (opts) {
var nodes = opts.nodes;
var pattern = opts.pattern;
var parentId = opts.id;
var file = opts.file;
var scope = opts.scope;
if (!t.isArrayExpression(parentId) && !t.isMemberExpression(parentId) && !t.isIdentifier(parentId)) {

View File

@ -3,7 +3,7 @@
var util = require("../../../util");
var t = require("../../../types");
exports.Function = function (node, parent, scope, context, file) {
exports.Function = function (node, parent, scope) {
if (!node.rest) return;
var rest = node.rest;

View File

@ -23,7 +23,7 @@ var container = function (parent, call, ret) {
}
};
exports.AssignmentExpression = function (node, parent, scope, context, file) {
exports.AssignmentExpression = function (node, parent, scope) {
var left = node.left;
if (!t.isVirtualPropertyExpression(left)) return;
@ -76,7 +76,7 @@ exports.UnaryExpression = function (node, parent) {
return container(parent, call, t.literal(true));
};
exports.CallExpression = function (node, parent, scope, context, file) {
exports.CallExpression = function (node, parent, scope) {
var callee = node.callee;
if (!t.isVirtualPropertyExpression(callee)) return;

View File

@ -2,7 +2,7 @@
var t = require("../../../types");
exports.BindMemberExpression = function (node, parent, scope, context, file) {
exports.BindMemberExpression = function (node, parent, scope) {
var object = node.object;
var prop = node.property;