This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Spread operator #9
Open
fdecampredon
wants to merge
22
commits into
facebookarchive:master
Choose a base branch
from
fdecampredon:spread-operator
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
557e531
spread operators in arrays
fdecampredon 5d4165d
spread operator in call expression
fdecampredon eea0233
renaming
fdecampredon f624afa
spread in new expression
fdecampredon 4f31127
cleaning and line break respect in new expression
fdecampredon a2491ef
replace spread template
fdecampredon 366b3f4
comment with examples of how the spread operator works
fdecampredon b90ed59
todo comments syntax correction
fdecampredon 7366326
externalize templates in a separate modules
fdecampredon 7d7aeac
fix case of '(' and ')' in comments that was replaced
fdecampredon 7828a12
Fix new expression with function that returns value
fdecampredon 70bafa2
Revert templates extenalizing
fdecampredon ab7c4b4
reformat a little the code source output in tests
fdecampredon 5d4d437
add runtimes inclusion logic
fdecampredon 8615906
fix bad tests
fdecampredon 0aa0ecb
replace spread element check by runtimes call
fdecampredon f15ee21
replace iife by runtimes call to executeNewExpression
fdecampredon 1022d74
Merge branch 'spread-operator-with-runtime' into spread-operator
fdecampredon 2f16f3d
remove loging
fdecampredon 0e94da6
adding failing test case for array elements without spread operator
fdecampredon c941ee0
fix output code source too match the excepted transformation
fdecampredon d12fc1b
remove jshint comments in spread-operator-runtime
fdecampredon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
todo comments syntax correction
- Loading branch information
commit b90ed592550847bed792685f5deda51870762676
There are no files selected for viewing
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically you need to examine the result of
ClassIdent.apply(...)
in case it returns an object, and (if so) replaceresultIdent
with that new value. I realize this is kind of pedantic, but I mention it as another argument in favor of handling logic like this inside some kind of runtime abstraction, rather than generating code that checks this case every time a...
operator is used.