-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from fink-lang/partial
partial
- Loading branch information
Showing
29 changed files
with
504 additions
and
432 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,5 +34,3 @@ describe:: 'errors', fn: | |
Unable to transform 'test'. | ||
|
||
Unknown expression` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.