MCPcopy
hub / github.com/vuejs/core / isStaticProperty

Function isStaticProperty

packages/compiler-core/src/babelUtils.ts:356–359  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

354}
355
356export const isStaticProperty = (node: Node): node is ObjectProperty =>
357 node &&
358 (node.type === 'ObjectProperty' || node.type === 'ObjectMethod') &&
359 !node.computed
360
361export const isStaticPropertyKey = (node: Node, parent: Node): boolean =>
362 isStaticProperty(parent) && parent.key === node

Callers 3

processExpressionFunction · 0.90
rewriteIdFunction · 0.85
isStaticPropertyKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected