Lines Matching defs:const
23 const { isFunction, isObject, isUndefined } = require('./lite-utils');
24 const {
34 const parameterArray = [];
38 const ATTRBUTES = 'attrs';
39 const EVENTS_ON_FUNC = 'on';
40 const KEY = 'key';
41 const AST_KEY = {
50 const EVENT_KEY = [
57 const optionRules = {
82 const styleRules = [
139 const ast = Function(`return ${value}`)();
142 const cachedI18nPushStrings = Object.values(i18nMapping);
143 const I18nContect = cachedI18nPushStrings.length === 0 ? '' : ` var i18ns = []; ${cachedI18nPushStrings.join(';')};`;
144 const res = `function (vm) { var _vm = vm || this;${I18nContect} return ${template} }`;
170 const type = node.type;
171 const options = transformOptions(node);
172 const children = transformChildren(node);
173 const render = `_c('${type}'${options ? `, ${options} ` : ``}${children ? `, ${children} ` : ``}),`;
189 for (const key of Object.keys(node)) {
210 const DYNAMIC_CLASS = 'dynamicClass';
211 const STATIC_CLASS = 'staticClass';
212 const value = checkType(classList);
230 const STASTIC_STYLE = 'staticStyle';
231 const DYNAMIC_STYLE = 'dynamicStyle';
232 for (const key of Object.keys(props)) {
233 const value = props[key];
293 const VALUE = 'value';
294 for (const key of Object.keys(props)) {
295 const propValue = props[key];
318 for (const key of Object.keys(props)) {
345 for (const parameter of parameterArray) {
347 const escape = parameter.charAt(0) === '$' ? '\\' : '';
348 const itRE = new RegExp(escape + parameter);
355 const res = forCompiled ? value : '_vm.' + value;
371 const children = transformNode(node).replace(/,$/, '');
374 const comma = parameter1 !== '' && parameter2 !== '' ? ',' : '';
387 const children = transformNode(node).replace(/,$/, '');
399 for (const parameter of parameterArray) {
401 const escape = parameter.charAt(0) === '$' ? '\\' : '';
402 const itRE = new RegExp('this.' + escape + parameter + '\\b', 'g');
426 const cachedI18nPushStrings = Object.values(i18nMapping);
427 const cachedI18nPushString = i18nMapping[i18nExpression];
451 const cachedI18nPushStrings = Object.values(i18nMapping);
452 const cachedI18nPushString = i18nMapping[funcExpression];
457 const i18nExpression = i18nExpressions[i];
460 const cachedI18nPushStrings = Object.values(i18nMapping);
461 const cachedI18nPushString = i18nMapping[i18nExpression];
478 const funcReturnMatches = REGXP_FUNC_RETURN.exec(res);
480 const funcReturnMatch = funcReturnMatches[1].trim();
498 const i18nExpressions = func.match(REGXP_LANGUAGE_KEY);
499 const cachedI18nExpressions = Object.keys(i18nMapping);
500 const funcExpressions = REGXP_FUNC_RETURN.exec(func);
502 const funcExpression = funcExpressions[1].trim();
510 const i18nExpression = i18nExpressions[0];
527 for (const parameter of parameterArray) {
528 const escape = parameter.charAt(0) === '$' ? '\\' : '';
529 const itRE = new RegExp(escape + parameter);
545 const children = node.children;