Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix lookahead to not add comments to arrays which are not cloned #76
We do not clone arrays in lookahead() but comments are added to the leading/trailing arrays during lookahead. The next next() call would then add the comments again, leading to this comments being in this arrays twice.
Also extracted parsing of JSXSpreadChild to own parse function.