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

Function getCachedNode

packages/compiler-dom/src/transforms/stringifyStatic.ts:174–186  ·  view source on GitHub ↗
(
  node: TemplateChildNode,
)

Source from the content-addressed store, hash-verified

172}
173
174const getCachedNode = (
175 node: TemplateChildNode,
176): CacheExpression | undefined => {
177 if (
178 ((node.type === NodeTypes.ELEMENT &&
179 node.tagType === ElementTypes.ELEMENT) ||
180 node.type === NodeTypes.TEXT_CALL) &&
181 node.codegenNode &&
182 node.codegenNode.type === NodeTypes.JS_CACHE_EXPRESSION
183 ) {
184 return node.codegenNode
185 }
186}
187
188const dataAriaRE = /^(?:data|aria)-/
189const isStringifiableAttr = (name: string, ns: Namespaces) => {

Callers 1

stringifyStaticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected