( ast, options )
| 8483 | var currentOptions; |
| 8484 | |
| 8485 | function generate ( |
| 8486 | ast, |
| 8487 | options |
| 8488 | ) { |
| 8489 | // save previous staticRenderFns so generate calls can be nested |
| 8490 | var prevStaticRenderFns = staticRenderFns; |
| 8491 | var currentStaticRenderFns = staticRenderFns = []; |
| 8492 | var prevOnceCount = onceCount; |
| 8493 | onceCount = 0; |
| 8494 | currentOptions = options; |
| 8495 | warn$3 = options.warn || baseWarn; |
| 8496 | transforms$1 = pluckModuleFunction(options.modules, 'transformCode'); |
| 8497 | dataGenFns = pluckModuleFunction(options.modules, 'genData'); |
| 8498 | platformDirectives$1 = options.directives || {}; |
| 8499 | isPlatformReservedTag$1 = options.isReservedTag || no; |
| 8500 | var code = ast ? genElement(ast) : '_c("div")'; |
| 8501 | staticRenderFns = prevStaticRenderFns; |
| 8502 | onceCount = prevOnceCount; |
| 8503 | return { |
| 8504 | render: ("with(this){return " + code + "}"), |
| 8505 | staticRenderFns: currentStaticRenderFns |
| 8506 | } |
| 8507 | } |
| 8508 | |
| 8509 | function genElement (el) { |
| 8510 | if (el.staticRoot && !el.staticProcessed) { |
no test coverage detected