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