(parent)
| 124 | } |
| 125 | |
| 126 | export function isShorthandProperty(parent) { |
| 127 | return parent && parent.type === 'Property' && parent.shorthand; |
| 128 | } |
| 129 | |
| 130 | export function isPropertyDefinitionKey(parent, node) { |
| 131 | return parent && parent.type === 'PropertyDefinition' && parent.key === node; |