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