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

Function generate

static/vuejs/vue.js:8479–8501  ·  view source on GitHub ↗
(
  ast,
  options
)

Source from the content-addressed store, hash-verified

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