Permalink
Browse files

FIX - new 'til' comprehensions were leaking imports

ALL 1360 PASSING
  • Loading branch information...
shanebdavis committed Sep 20, 2018
1 parent 79d6cd5 commit c7d5a93975448dbab3cb0d16f6decffb8719ea55
@@ -13,6 +13,7 @@ class FunctionDefinitionArgStn extends &BaseStn
@getter
argumentName: -> @target.name
isSimpleIdentifier: -> @target.type == :Identifier
explicitIdentifier: -> @target?.explicitIdentifier
propName: -> @target.name
valueStn: -> @target.getValueStn()
@@ -21,6 +21,10 @@ Caf.defMod(module, () => {
isSimpleIdentifier: function() {
return this.target.type === "Identifier";
},
explicitIdentifier: function() {
let base;
return Caf.exists((base = this.target)) && base.explicitIdentifier;
},
propName: function() {
return this.target.name;
},
@@ -295,6 +295,12 @@ module.exports = suite: parseTestSuite
find:
"find v til 10 when v > 4": "let i, into; i = 0; into = null; while (i < 10) {let v = i; if (v > 4) {into = v; break;}; i++;}; into;"
regressions:
"""
import a
array i til 10
""": "(() => {let i1, into; return (i1 = 0, into = [], (() => {while (i1 < 10) {let i = i1; into.push(i); i1++;};})(), into);})();"
multipleArgs:
"""
object myV, myK from mySource

0 comments on commit c7d5a93

Please sign in to comment.