Skip to content

Commit

Permalink
Documentation: fix the type of some nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ariya committed Jun 7, 2018
1 parent 1bfd79c commit 347e656
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/syntax-tree-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ where
```js
interface Property {
type: 'Property';
key: Identifier | Literal;
key: Expression;
computed: boolean;
value: AssignmentPattern | Identifier | BindingPattern | FunctionExpression | null;
value: Expression | null;
kind: 'get' | 'set' | 'init';
method: false;
shorthand: boolean;
Expand Down Expand Up @@ -377,8 +377,8 @@ interface LogicalExpression {
interface ConditionalExpression {
type: 'ConditionalExpression';
test: Expression;
consequent: Statement;
alternate?: Statement;
consequent: Expression;
alternate: Expression;
}
```

Expand Down

0 comments on commit 347e656

Please sign in to comment.