Skip to content

Commit

Permalink
Merge pull request #30 from fink-lang/partial
Browse files Browse the repository at this point in the history
partial
  • Loading branch information
kollhof authored Apr 7, 2020
2 parents a54d510 + 981cb22 commit 19a137b
Show file tree
Hide file tree
Showing 29 changed files with 504 additions and 432 deletions.
84 changes: 42 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
"devDependencies": {
"@fink/cli": "^2.3.0",
"@fink/jest": "^1.1.0",
"@fink/larix": "^4.8.0",
"@fink/larix": "^4.8.1",
"commitizen": "^4.0.3",
"cz-conventional-changelog": "^3.1.0",
"jest-cli": "^25.2.7",
"jest-cli": "^25.2.4",
"npx-run": "^2.1.2",
"semantic-release": "^17.0.4"
},
Expand Down
2 changes: 0 additions & 2 deletions src/index.test.fnk
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,3 @@ describe:: 'errors', fn:
Unable to transform 'test'.

Unknown expression`


12 changes: 6 additions & 6 deletions src/js/async.fnk
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@

assign = Object.assign


transform_async = fn path:
# TODO: should avoid mutating nodes
match true:
path.isArrowFunctionExpression():
match path:
?.isArrowFunctionExpression():
path.node assign {async: true}

path.isFunctionExpression():
?.isFunctionExpression():
path.node assign {async: true}

!!path.parentPath:
transform_async(path.parentPath)

{parentPath: {}}:
transform_async:: path.parentPath
null
Loading

0 comments on commit 19a137b

Please sign in to comment.