From 347e6567e6e9412520e94ab7f66d279c15347c5c Mon Sep 17 00:00:00 2001 From: Ariya Hidayat Date: Wed, 6 Jun 2018 08:40:31 -0700 Subject: [PATCH] Documentation: fix the type of some nodes. Fixes #1910 Fixes #1929 Closes gh-1935 --- docs/syntax-tree-format.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/syntax-tree-format.md b/docs/syntax-tree-format.md index db12c9925..be8fb3a18 100644 --- a/docs/syntax-tree-format.md +++ b/docs/syntax-tree-format.md @@ -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; @@ -377,8 +377,8 @@ interface LogicalExpression { interface ConditionalExpression { type: 'ConditionalExpression'; test: Expression; - consequent: Statement; - alternate?: Statement; + consequent: Expression; + alternate: Expression; } ```