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

Function generate

static/vuejs/vue.esm.js:8483–8505  ·  view source on GitHub ↗
(
  ast,
  options
)

Source from the content-addressed store, hash-verified

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