Update babylon beta 3 (#5394)

* Update babylon to v7-beta.3

* convert RestProperty/SpreadProperty to RestElement/SpreadElement

* add virtual types to make it easier to upgrade
This commit is contained in:
Henry Zhu
2017-02-28 16:58:19 -05:00
committed by GitHub
parent 6d6cdf6baf
commit 3ff77a61e4
17 changed files with 181 additions and 176 deletions

View File

@@ -161,13 +161,12 @@ export const nodes = {
};
/**
* Test if Property or SpreadProperty needs whitespace.
* Test if Property needs whitespace.
*/
nodes.ObjectProperty =
nodes.ObjectTypeProperty =
nodes.ObjectMethod =
nodes.SpreadProperty = function (node: Object, parent): ?WhitespaceObject {
nodes.ObjectMethod = function (node: Object, parent): ?WhitespaceObject {
if (parent.properties[0] === node) {
return {
before: true