add some missing ObjectPattern properties

pull/1673/head
James Birtles 6 years ago
parent 9eec6f8c72
commit 404587d991

@ -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
};

Loading…
Cancel
Save