Skip to content

Commit

Permalink
Object rest & spread: reuse RestElement and SpreadElement (fix #145)
Browse files Browse the repository at this point in the history
  • Loading branch information
ariya authored and RReverser committed Feb 4, 2017
1 parent 8ab6275 commit 996deb6
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions experimental/rest-spread-properties.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,11 @@
# [Rest/Spread Properties](https://github.com/sebmarkbage/ecmascript-rest-spread)

## RestProperty

```js
interface RestProperty <: Node {
type: "RestProperty";
argument: Expression;
}
```

## SpreadProperty

```js
interface SpreadProperty <: Node {
type: "SpreadProperty";
argument: Expression;
}
```

## Used

```js
extend interface ObjectPattern {
properties: [ AssignmentProperty | RestProperty ];
properties: [ AssignmentProperty | RestElement ];
}

extend interface ObjectExpression {
properties: [ Property | SpreadProperty ];
properties: [ Property | SpreadElement ];
}
```

0 comments on commit 996deb6

Please sign in to comment.