0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

add some missing ObjectPattern properties

This commit is contained in:
James Birtles 2018-08-21 21:08:46 +01:00
parent 9eec6f8c72
commit 404587d991

View File

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