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:
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…
Reference in New Issue
Block a user