(node)
| 8319 | } |
| 8320 | |
| 8321 | function isStatic (node) { |
| 8322 | if (node.type === 2) { // expression |
| 8323 | return false |
| 8324 | } |
| 8325 | if (node.type === 3) { // text |
| 8326 | return true |
| 8327 | } |
| 8328 | return !!(node.pre || ( |
| 8329 | !node.hasBindings && // no dynamic bindings |
| 8330 | !node.if && !node.for && // not v-if or v-for or v-else |
| 8331 | !isBuiltInTag(node.tag) && // not a built-in |
| 8332 | isPlatformReservedTag(node.tag) && // not a component |
| 8333 | !isDirectChildOfTemplateFor(node) && |
| 8334 | Object.keys(node).every(isStaticKey) |
| 8335 | )) |
| 8336 | } |
| 8337 | |
| 8338 | function isDirectChildOfTemplateFor (node) { |
| 8339 | while (node.parent) { |
no test coverage detected