add tion comment to all function visitors

This commit is contained in:
Sebastian McKenzie 2015-05-14 22:37:15 +01:00
parent b02c97af60
commit d4fb924b6a
7 changed files with 7 additions and 7 deletions

View File

@ -55,7 +55,7 @@ export function ForOfStatement(node, parent, scope, file) {
export { ForOfStatement as ForInStatement };
export function Func(node, parent, scope, file) {
export function Func/*tion*/(node, parent, scope, file) {
var nodes = [];
var hasDestructuring = false;

View File

@ -22,7 +22,7 @@ var iifeVisitor = {
}
};
export function Func(node, parent, scope, file) {
export function Func/*tion*/(node, parent, scope, file) {
if (!hasDefaults(node)) return;
t.ensureBlock(node);

View File

@ -53,7 +53,7 @@ var hasRest = function (node) {
return t.isRestElement(node.params[node.params.length - 1]);
};
export function Func(node, parent, scope, file) {
export function Func/*tion*/(node, parent, scope, file) {
if (!hasRest(node)) return;
var restParam = node.params.pop();

View File

@ -10,7 +10,7 @@ export var metadata = {
group: "builtin-trailing"
};
export function Func(node, parent, scope, file) {
export function Func/*tion*/(node, parent, scope, file) {
if (node.generator || node.async) return;
var tailCall = new TailCallTransformer(this, scope, file);
tailCall.run();

View File

@ -7,7 +7,7 @@ export var metadata = {
dependencies: ["es7.asyncFunctions", "es6.classes"]
};
export function Func(node, parent, scope, file) {
export function Func/*tion*/(node, parent, scope, file) {
if (!node.async || node.generator) return;
return remapAsyncToGenerator(node, file.addHelper("async-to-generator"), scope);

View File

@ -10,7 +10,7 @@ export var metadata = {
dependencies: ["es7.asyncFunctions", "es6.classes"]
};
export function Func(node, parent, scope, file) {
export function Func/*tion*/(node, parent, scope, file) {
if (!node.async || node.generator) return;
return remapAsyncToGenerator(

View File

@ -12,7 +12,7 @@ export function Class(node) {
node.implements = null;
}
export function Func(node) {
export function Func/*tion*/(node) {
for (var i = 0; i < node.params.length; i++) {
var param = node.params[i];
param.optional = false;