Comparing version 0.5.5 to 0.5.6
{ | ||
"name": "jsdc", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"description": "compiler ecmascript6 to ecmascript5", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
@@ -50,2 +50,18 @@ var homunculus = require('homunculus'); | ||
} | ||
else if(prmr.name() == JsNode.PRMREXPR | ||
&& (parent.name() == JsNode.RETSTMT | ||
|| parent.name() == JsNode.ARGLIST)) { | ||
if(node.size() == 1) { | ||
var first = node.first(); | ||
if(first.name() == JsNode.TOKEN) { | ||
if(!start) { | ||
this.jsdc.appendBefore(':' + first.token().content()); | ||
} | ||
} | ||
else if(first.name() == JsNode.METHOD) { | ||
first = first.first(); | ||
this.method[first.nid()] = true; | ||
} | ||
} | ||
} | ||
} | ||
@@ -52,0 +68,0 @@ }, |
@@ -50,2 +50,18 @@ define(function(require, exports, module){var homunculus = require('homunculus'); | ||
} | ||
else if(prmr.name() == JsNode.PRMREXPR | ||
&& (parent.name() == JsNode.RETSTMT | ||
|| parent.name() == JsNode.ARGLIST)) { | ||
if(node.size() == 1) { | ||
var first = node.first(); | ||
if(first.name() == JsNode.TOKEN) { | ||
if(!start) { | ||
this.jsdc.appendBefore(':' + first.token().content()); | ||
} | ||
} | ||
else if(first.name() == JsNode.METHOD) { | ||
first = first.first(); | ||
this.method[first.nid()] = true; | ||
} | ||
} | ||
} | ||
} | ||
@@ -52,0 +68,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
341222
7965