MCPcopy Create free account
hub / github.com/TruthHun/BookStack / generate

Function generate

static/vuejs/vue.common.js:8485–8507  ·  view source on GitHub ↗
(
  ast,
  options
)

Source from the content-addressed store, hash-verified

8483var currentOptions;
8484
8485function 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
8509function genElement (el) {
8510 if (el.staticRoot && !el.staticProcessed) {

Callers 2

genInlineTemplateFunction · 0.70
baseCompileFunction · 0.70

Calls 2

pluckModuleFunctionFunction · 0.70
genElementFunction · 0.70

Tested by

no test coverage detected