From 9cdbb99eb93ddbaae4c16ba4d1d0a52b75c9c005 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 22 Jan 2015 01:47:13 +1100 Subject: [PATCH] fix linting errors --- lib/6to5/transformation/transformers/_alias-functions.js | 4 ++-- lib/6to5/transformation/transformers/es6/block-scoping.js | 1 - lib/6to5/transformation/transformers/es6/destructuring.js | 1 - lib/6to5/transformation/transformers/es6/parameters.rest.js | 2 +- .../transformation/transformers/es7/abstract-references.js | 4 ++-- .../transformation/transformers/playground/method-binding.js | 2 +- 6 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/6to5/transformation/transformers/_alias-functions.js b/lib/6to5/transformation/transformers/_alias-functions.js index 60269762e1..a642563946 100644 --- a/lib/6to5/transformation/transformers/_alias-functions.js +++ b/lib/6to5/transformation/transformers/_alias-functions.js @@ -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; diff --git a/lib/6to5/transformation/transformers/es6/block-scoping.js b/lib/6to5/transformation/transformers/es6/block-scoping.js index 491c0474be..023120b268 100644 --- a/lib/6to5/transformation/transformers/es6/block-scoping.js +++ b/lib/6to5/transformation/transformers/es6/block-scoping.js @@ -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 diff --git a/lib/6to5/transformation/transformers/es6/destructuring.js b/lib/6to5/transformation/transformers/es6/destructuring.js index 18e70db922..b13f188e44 100644 --- a/lib/6to5/transformation/transformers/es6/destructuring.js +++ b/lib/6to5/transformation/transformers/es6/destructuring.js @@ -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)) { diff --git a/lib/6to5/transformation/transformers/es6/parameters.rest.js b/lib/6to5/transformation/transformers/es6/parameters.rest.js index f9b7c2c79e..f2519d2e70 100644 --- a/lib/6to5/transformation/transformers/es6/parameters.rest.js +++ b/lib/6to5/transformation/transformers/es6/parameters.rest.js @@ -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; diff --git a/lib/6to5/transformation/transformers/es7/abstract-references.js b/lib/6to5/transformation/transformers/es7/abstract-references.js index 12819f7a1b..3de864c58e 100644 --- a/lib/6to5/transformation/transformers/es7/abstract-references.js +++ b/lib/6to5/transformation/transformers/es7/abstract-references.js @@ -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; diff --git a/lib/6to5/transformation/transformers/playground/method-binding.js b/lib/6to5/transformation/transformers/playground/method-binding.js index a94cd42319..5cbc092943 100644 --- a/lib/6to5/transformation/transformers/playground/method-binding.js +++ b/lib/6to5/transformation/transformers/playground/method-binding.js @@ -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;