MCPcopy Create free account
hub / github.com/rollup/plugins / isShorthandProperty

Function isShorthandProperty

packages/commonjs/src/ast-utils.js:126–128  ·  view source on GitHub ↗
(parent)

Source from the content-addressed store, hash-verified

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

Callers 1

enterFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected