From 404587d99148160fe2890c34659d90476dbb20e9 Mon Sep 17 00:00:00 2001 From: James Birtles Date: Tue, 21 Aug 2018 21:08:46 +0100 Subject: [PATCH] add some missing ObjectPattern properties --- src/parse/read/context.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parse/read/context.ts b/src/parse/read/context.ts index 77fd2cbf68..51bce0a754 100644 --- a/src/parse/read/context.ts +++ b/src/parse/read/context.ts @@ -11,6 +11,8 @@ type Property = { start: number; end: number; type: 'Property'; + kind: string; + shorthand: boolean; key: Identifier; value: Context; }; @@ -84,6 +86,8 @@ export default function readContext(parser: Parser) { start, end: value.end, type: 'Property', + kind: 'init', + shorthand: key === value, key, value };