Edit File by line
/home/barbar84/www/wp-conte.../plugins/updraftp.../includes/handleba...
File: handlebars.js
}
[1500] Fix | Delete
if (result != null) {
[1501] Fix | Delete
if (options.indent) {
[1502] Fix | Delete
var lines = result.split('\n');
[1503] Fix | Delete
for (var i = 0, l = lines.length; i < l; i++) {
[1504] Fix | Delete
if (!lines[i] && i + 1 === l) {
[1505] Fix | Delete
break;
[1506] Fix | Delete
}
[1507] Fix | Delete
[1508] Fix | Delete
lines[i] = options.indent + lines[i];
[1509] Fix | Delete
}
[1510] Fix | Delete
result = lines.join('\n');
[1511] Fix | Delete
}
[1512] Fix | Delete
return result;
[1513] Fix | Delete
} else {
[1514] Fix | Delete
throw new _exception2['default']('The partial ' + options.name + ' could not be compiled when running in runtime-only mode');
[1515] Fix | Delete
}
[1516] Fix | Delete
}
[1517] Fix | Delete
[1518] Fix | Delete
// Just add water
[1519] Fix | Delete
var container = {
[1520] Fix | Delete
strict: function strict(obj, name, loc) {
[1521] Fix | Delete
if (!obj || !(name in obj)) {
[1522] Fix | Delete
throw new _exception2['default']('"' + name + '" not defined in ' + obj, {
[1523] Fix | Delete
loc: loc
[1524] Fix | Delete
});
[1525] Fix | Delete
}
[1526] Fix | Delete
return container.lookupProperty(obj, name);
[1527] Fix | Delete
},
[1528] Fix | Delete
lookupProperty: function lookupProperty(parent, propertyName) {
[1529] Fix | Delete
var result = parent[propertyName];
[1530] Fix | Delete
if (result == null) {
[1531] Fix | Delete
return result;
[1532] Fix | Delete
}
[1533] Fix | Delete
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
[1534] Fix | Delete
return result;
[1535] Fix | Delete
}
[1536] Fix | Delete
[1537] Fix | Delete
if (_internalProtoAccess.resultIsAllowed(result, container.protoAccessControl, propertyName)) {
[1538] Fix | Delete
return result;
[1539] Fix | Delete
}
[1540] Fix | Delete
return undefined;
[1541] Fix | Delete
},
[1542] Fix | Delete
lookup: function lookup(depths, name) {
[1543] Fix | Delete
var len = depths.length;
[1544] Fix | Delete
for (var i = 0; i < len; i++) {
[1545] Fix | Delete
var result = depths[i] && container.lookupProperty(depths[i], name);
[1546] Fix | Delete
if (result != null) {
[1547] Fix | Delete
return depths[i][name];
[1548] Fix | Delete
}
[1549] Fix | Delete
}
[1550] Fix | Delete
},
[1551] Fix | Delete
lambda: function lambda(current, context) {
[1552] Fix | Delete
return typeof current === 'function' ? current.call(context) : current;
[1553] Fix | Delete
},
[1554] Fix | Delete
[1555] Fix | Delete
escapeExpression: Utils.escapeExpression,
[1556] Fix | Delete
invokePartial: invokePartialWrapper,
[1557] Fix | Delete
[1558] Fix | Delete
fn: function fn(i) {
[1559] Fix | Delete
var ret = templateSpec[i];
[1560] Fix | Delete
ret.decorator = templateSpec[i + '_d'];
[1561] Fix | Delete
return ret;
[1562] Fix | Delete
},
[1563] Fix | Delete
[1564] Fix | Delete
programs: [],
[1565] Fix | Delete
program: function program(i, data, declaredBlockParams, blockParams, depths) {
[1566] Fix | Delete
var programWrapper = this.programs[i],
[1567] Fix | Delete
fn = this.fn(i);
[1568] Fix | Delete
if (data || depths || blockParams || declaredBlockParams) {
[1569] Fix | Delete
programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths);
[1570] Fix | Delete
} else if (!programWrapper) {
[1571] Fix | Delete
programWrapper = this.programs[i] = wrapProgram(this, i, fn);
[1572] Fix | Delete
}
[1573] Fix | Delete
return programWrapper;
[1574] Fix | Delete
},
[1575] Fix | Delete
[1576] Fix | Delete
data: function data(value, depth) {
[1577] Fix | Delete
while (value && depth--) {
[1578] Fix | Delete
value = value._parent;
[1579] Fix | Delete
}
[1580] Fix | Delete
return value;
[1581] Fix | Delete
},
[1582] Fix | Delete
mergeIfNeeded: function mergeIfNeeded(param, common) {
[1583] Fix | Delete
var obj = param || common;
[1584] Fix | Delete
[1585] Fix | Delete
if (param && common && param !== common) {
[1586] Fix | Delete
obj = Utils.extend({}, common, param);
[1587] Fix | Delete
}
[1588] Fix | Delete
[1589] Fix | Delete
return obj;
[1590] Fix | Delete
},
[1591] Fix | Delete
// An empty object to use as replacement for null-contexts
[1592] Fix | Delete
nullContext: _Object$seal({}),
[1593] Fix | Delete
[1594] Fix | Delete
noop: env.VM.noop,
[1595] Fix | Delete
compilerInfo: templateSpec.compiler
[1596] Fix | Delete
};
[1597] Fix | Delete
[1598] Fix | Delete
function ret(context) {
[1599] Fix | Delete
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
[1600] Fix | Delete
[1601] Fix | Delete
var data = options.data;
[1602] Fix | Delete
[1603] Fix | Delete
ret._setup(options);
[1604] Fix | Delete
if (!options.partial && templateSpec.useData) {
[1605] Fix | Delete
data = initData(context, data);
[1606] Fix | Delete
}
[1607] Fix | Delete
var depths = undefined,
[1608] Fix | Delete
blockParams = templateSpec.useBlockParams ? [] : undefined;
[1609] Fix | Delete
if (templateSpec.useDepths) {
[1610] Fix | Delete
if (options.depths) {
[1611] Fix | Delete
depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths;
[1612] Fix | Delete
} else {
[1613] Fix | Delete
depths = [context];
[1614] Fix | Delete
}
[1615] Fix | Delete
}
[1616] Fix | Delete
[1617] Fix | Delete
function main(context /*, options*/) {
[1618] Fix | Delete
return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths);
[1619] Fix | Delete
}
[1620] Fix | Delete
[1621] Fix | Delete
main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);
[1622] Fix | Delete
return main(context, options);
[1623] Fix | Delete
}
[1624] Fix | Delete
[1625] Fix | Delete
ret.isTop = true;
[1626] Fix | Delete
[1627] Fix | Delete
ret._setup = function (options) {
[1628] Fix | Delete
if (!options.partial) {
[1629] Fix | Delete
var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);
[1630] Fix | Delete
wrapHelpersToPassLookupProperty(mergedHelpers, container);
[1631] Fix | Delete
container.helpers = mergedHelpers;
[1632] Fix | Delete
[1633] Fix | Delete
if (templateSpec.usePartial) {
[1634] Fix | Delete
// Use mergeIfNeeded here to prevent compiling global partials multiple times
[1635] Fix | Delete
container.partials = container.mergeIfNeeded(options.partials, env.partials);
[1636] Fix | Delete
}
[1637] Fix | Delete
if (templateSpec.usePartial || templateSpec.useDecorators) {
[1638] Fix | Delete
container.decorators = Utils.extend({}, env.decorators, options.decorators);
[1639] Fix | Delete
}
[1640] Fix | Delete
[1641] Fix | Delete
container.hooks = {};
[1642] Fix | Delete
container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
[1643] Fix | Delete
[1644] Fix | Delete
var keepHelperInHelpers = options.allowCallsToHelperMissing || templateWasPrecompiledWithCompilerV7;
[1645] Fix | Delete
_helpers.moveHelperToHooks(container, 'helperMissing', keepHelperInHelpers);
[1646] Fix | Delete
_helpers.moveHelperToHooks(container, 'blockHelperMissing', keepHelperInHelpers);
[1647] Fix | Delete
} else {
[1648] Fix | Delete
container.protoAccessControl = options.protoAccessControl; // internal option
[1649] Fix | Delete
container.helpers = options.helpers;
[1650] Fix | Delete
container.partials = options.partials;
[1651] Fix | Delete
container.decorators = options.decorators;
[1652] Fix | Delete
container.hooks = options.hooks;
[1653] Fix | Delete
}
[1654] Fix | Delete
};
[1655] Fix | Delete
[1656] Fix | Delete
ret._child = function (i, data, blockParams, depths) {
[1657] Fix | Delete
if (templateSpec.useBlockParams && !blockParams) {
[1658] Fix | Delete
throw new _exception2['default']('must pass block params');
[1659] Fix | Delete
}
[1660] Fix | Delete
if (templateSpec.useDepths && !depths) {
[1661] Fix | Delete
throw new _exception2['default']('must pass parent depths');
[1662] Fix | Delete
}
[1663] Fix | Delete
[1664] Fix | Delete
return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths);
[1665] Fix | Delete
};
[1666] Fix | Delete
return ret;
[1667] Fix | Delete
}
[1668] Fix | Delete
[1669] Fix | Delete
function wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) {
[1670] Fix | Delete
function prog(context) {
[1671] Fix | Delete
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
[1672] Fix | Delete
[1673] Fix | Delete
var currentDepths = depths;
[1674] Fix | Delete
if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) {
[1675] Fix | Delete
currentDepths = [context].concat(depths);
[1676] Fix | Delete
}
[1677] Fix | Delete
[1678] Fix | Delete
return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths);
[1679] Fix | Delete
}
[1680] Fix | Delete
[1681] Fix | Delete
prog = executeDecorators(fn, prog, container, depths, data, blockParams);
[1682] Fix | Delete
[1683] Fix | Delete
prog.program = i;
[1684] Fix | Delete
prog.depth = depths ? depths.length : 0;
[1685] Fix | Delete
prog.blockParams = declaredBlockParams || 0;
[1686] Fix | Delete
return prog;
[1687] Fix | Delete
}
[1688] Fix | Delete
[1689] Fix | Delete
/**
[1690] Fix | Delete
* This is currently part of the official API, therefore implementation details should not be changed.
[1691] Fix | Delete
*/
[1692] Fix | Delete
[1693] Fix | Delete
function resolvePartial(partial, context, options) {
[1694] Fix | Delete
if (!partial) {
[1695] Fix | Delete
if (options.name === '@partial-block') {
[1696] Fix | Delete
partial = options.data['partial-block'];
[1697] Fix | Delete
} else {
[1698] Fix | Delete
partial = options.partials[options.name];
[1699] Fix | Delete
}
[1700] Fix | Delete
} else if (!partial.call && !options.name) {
[1701] Fix | Delete
// This is a dynamic partial that returned a string
[1702] Fix | Delete
options.name = partial;
[1703] Fix | Delete
partial = options.partials[partial];
[1704] Fix | Delete
}
[1705] Fix | Delete
return partial;
[1706] Fix | Delete
}
[1707] Fix | Delete
[1708] Fix | Delete
function invokePartial(partial, context, options) {
[1709] Fix | Delete
// Use the current closure context to save the partial-block if this partial
[1710] Fix | Delete
var currentPartialBlock = options.data && options.data['partial-block'];
[1711] Fix | Delete
options.partial = true;
[1712] Fix | Delete
if (options.ids) {
[1713] Fix | Delete
options.data.contextPath = options.ids[0] || options.data.contextPath;
[1714] Fix | Delete
}
[1715] Fix | Delete
[1716] Fix | Delete
var partialBlock = undefined;
[1717] Fix | Delete
if (options.fn && options.fn !== noop) {
[1718] Fix | Delete
(function () {
[1719] Fix | Delete
options.data = _base.createFrame(options.data);
[1720] Fix | Delete
// Wrapper function to get access to currentPartialBlock from the closure
[1721] Fix | Delete
var fn = options.fn;
[1722] Fix | Delete
partialBlock = options.data['partial-block'] = function partialBlockWrapper(context) {
[1723] Fix | Delete
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
[1724] Fix | Delete
[1725] Fix | Delete
// Restore the partial-block from the closure for the execution of the block
[1726] Fix | Delete
// i.e. the part inside the block of the partial call.
[1727] Fix | Delete
options.data = _base.createFrame(options.data);
[1728] Fix | Delete
options.data['partial-block'] = currentPartialBlock;
[1729] Fix | Delete
return fn(context, options);
[1730] Fix | Delete
};
[1731] Fix | Delete
if (fn.partials) {
[1732] Fix | Delete
options.partials = Utils.extend({}, options.partials, fn.partials);
[1733] Fix | Delete
}
[1734] Fix | Delete
})();
[1735] Fix | Delete
}
[1736] Fix | Delete
[1737] Fix | Delete
if (partial === undefined && partialBlock) {
[1738] Fix | Delete
partial = partialBlock;
[1739] Fix | Delete
}
[1740] Fix | Delete
[1741] Fix | Delete
if (partial === undefined) {
[1742] Fix | Delete
throw new _exception2['default']('The partial ' + options.name + ' could not be found');
[1743] Fix | Delete
} else if (partial instanceof Function) {
[1744] Fix | Delete
return partial(context, options);
[1745] Fix | Delete
}
[1746] Fix | Delete
}
[1747] Fix | Delete
[1748] Fix | Delete
function noop() {
[1749] Fix | Delete
return '';
[1750] Fix | Delete
}
[1751] Fix | Delete
[1752] Fix | Delete
function initData(context, data) {
[1753] Fix | Delete
if (!data || !('root' in data)) {
[1754] Fix | Delete
data = data ? _base.createFrame(data) : {};
[1755] Fix | Delete
data.root = context;
[1756] Fix | Delete
}
[1757] Fix | Delete
return data;
[1758] Fix | Delete
}
[1759] Fix | Delete
[1760] Fix | Delete
function executeDecorators(fn, prog, container, depths, data, blockParams) {
[1761] Fix | Delete
if (fn.decorator) {
[1762] Fix | Delete
var props = {};
[1763] Fix | Delete
prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths);
[1764] Fix | Delete
Utils.extend(prog, props);
[1765] Fix | Delete
}
[1766] Fix | Delete
return prog;
[1767] Fix | Delete
}
[1768] Fix | Delete
[1769] Fix | Delete
function wrapHelpersToPassLookupProperty(mergedHelpers, container) {
[1770] Fix | Delete
_Object$keys(mergedHelpers).forEach(function (helperName) {
[1771] Fix | Delete
var helper = mergedHelpers[helperName];
[1772] Fix | Delete
mergedHelpers[helperName] = passLookupPropertyOption(helper, container);
[1773] Fix | Delete
});
[1774] Fix | Delete
}
[1775] Fix | Delete
[1776] Fix | Delete
function passLookupPropertyOption(helper, container) {
[1777] Fix | Delete
var lookupProperty = container.lookupProperty;
[1778] Fix | Delete
return _internalWrapHelper.wrapHelper(helper, function (options) {
[1779] Fix | Delete
return Utils.extend({ lookupProperty: lookupProperty }, options);
[1780] Fix | Delete
});
[1781] Fix | Delete
}
[1782] Fix | Delete
[1783] Fix | Delete
/***/ }),
[1784] Fix | Delete
/* 39 */
[1785] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[1786] Fix | Delete
[1787] Fix | Delete
module.exports = { "default": __webpack_require__(40), __esModule: true };
[1788] Fix | Delete
[1789] Fix | Delete
/***/ }),
[1790] Fix | Delete
/* 40 */
[1791] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[1792] Fix | Delete
[1793] Fix | Delete
__webpack_require__(41);
[1794] Fix | Delete
module.exports = __webpack_require__(21).Object.seal;
[1795] Fix | Delete
[1796] Fix | Delete
/***/ }),
[1797] Fix | Delete
/* 41 */
[1798] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[1799] Fix | Delete
[1800] Fix | Delete
// 19.1.2.17 Object.seal(O)
[1801] Fix | Delete
var isObject = __webpack_require__(42);
[1802] Fix | Delete
[1803] Fix | Delete
__webpack_require__(18)('seal', function($seal){
[1804] Fix | Delete
return function seal(it){
[1805] Fix | Delete
return $seal && isObject(it) ? $seal(it) : it;
[1806] Fix | Delete
};
[1807] Fix | Delete
});
[1808] Fix | Delete
[1809] Fix | Delete
/***/ }),
[1810] Fix | Delete
/* 42 */
[1811] Fix | Delete
/***/ (function(module, exports) {
[1812] Fix | Delete
[1813] Fix | Delete
module.exports = function(it){
[1814] Fix | Delete
return typeof it === 'object' ? it !== null : typeof it === 'function';
[1815] Fix | Delete
};
[1816] Fix | Delete
[1817] Fix | Delete
/***/ }),
[1818] Fix | Delete
/* 43 */
[1819] Fix | Delete
/***/ (function(module, exports) {
[1820] Fix | Delete
[1821] Fix | Delete
'use strict';
[1822] Fix | Delete
[1823] Fix | Delete
exports.__esModule = true;
[1824] Fix | Delete
exports.wrapHelper = wrapHelper;
[1825] Fix | Delete
[1826] Fix | Delete
function wrapHelper(helper, transformOptionsFn) {
[1827] Fix | Delete
if (typeof helper !== 'function') {
[1828] Fix | Delete
// This should not happen, but apparently it does in https://github.com/wycats/handlebars.js/issues/1639
[1829] Fix | Delete
// We try to make the wrapper least-invasive by not wrapping it, if the helper is not a function.
[1830] Fix | Delete
return helper;
[1831] Fix | Delete
}
[1832] Fix | Delete
var wrapper = function wrapper() /* dynamic arguments */{
[1833] Fix | Delete
var options = arguments[arguments.length - 1];
[1834] Fix | Delete
arguments[arguments.length - 1] = transformOptionsFn(options);
[1835] Fix | Delete
return helper.apply(this, arguments);
[1836] Fix | Delete
};
[1837] Fix | Delete
return wrapper;
[1838] Fix | Delete
}
[1839] Fix | Delete
[1840] Fix | Delete
/***/ }),
[1841] Fix | Delete
/* 44 */
[1842] Fix | Delete
/***/ (function(module, exports) {
[1843] Fix | Delete
[1844] Fix | Delete
/* WEBPACK VAR INJECTION */(function(global) {'use strict';
[1845] Fix | Delete
[1846] Fix | Delete
exports.__esModule = true;
[1847] Fix | Delete
[1848] Fix | Delete
exports['default'] = function (Handlebars) {
[1849] Fix | Delete
/* istanbul ignore next */
[1850] Fix | Delete
var root = typeof global !== 'undefined' ? global : window,
[1851] Fix | Delete
$Handlebars = root.Handlebars;
[1852] Fix | Delete
/* istanbul ignore next */
[1853] Fix | Delete
Handlebars.noConflict = function () {
[1854] Fix | Delete
if (root.Handlebars === Handlebars) {
[1855] Fix | Delete
root.Handlebars = $Handlebars;
[1856] Fix | Delete
}
[1857] Fix | Delete
return Handlebars;
[1858] Fix | Delete
};
[1859] Fix | Delete
};
[1860] Fix | Delete
[1861] Fix | Delete
module.exports = exports['default'];
[1862] Fix | Delete
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
[1863] Fix | Delete
[1864] Fix | Delete
/***/ }),
[1865] Fix | Delete
/* 45 */
[1866] Fix | Delete
/***/ (function(module, exports) {
[1867] Fix | Delete
[1868] Fix | Delete
'use strict';
[1869] Fix | Delete
[1870] Fix | Delete
exports.__esModule = true;
[1871] Fix | Delete
var AST = {
[1872] Fix | Delete
// Public API used to evaluate derived attributes regarding AST nodes
[1873] Fix | Delete
helpers: {
[1874] Fix | Delete
// a mustache is definitely a helper if:
[1875] Fix | Delete
// * it is an eligible helper, and
[1876] Fix | Delete
// * it has at least one parameter or hash segment
[1877] Fix | Delete
helperExpression: function helperExpression(node) {
[1878] Fix | Delete
return node.type === 'SubExpression' || (node.type === 'MustacheStatement' || node.type === 'BlockStatement') && !!(node.params && node.params.length || node.hash);
[1879] Fix | Delete
},
[1880] Fix | Delete
[1881] Fix | Delete
scopedId: function scopedId(path) {
[1882] Fix | Delete
return (/^\.|this\b/.test(path.original)
[1883] Fix | Delete
);
[1884] Fix | Delete
},
[1885] Fix | Delete
[1886] Fix | Delete
// an ID is simple if it only has one part, and that part is not
[1887] Fix | Delete
// `..` or `this`.
[1888] Fix | Delete
simpleId: function simpleId(path) {
[1889] Fix | Delete
return path.parts.length === 1 && !AST.helpers.scopedId(path) && !path.depth;
[1890] Fix | Delete
}
[1891] Fix | Delete
}
[1892] Fix | Delete
};
[1893] Fix | Delete
[1894] Fix | Delete
// Must be exported as an object rather than the root of the module as the jison lexer
[1895] Fix | Delete
// must modify the object to operate properly.
[1896] Fix | Delete
exports['default'] = AST;
[1897] Fix | Delete
module.exports = exports['default'];
[1898] Fix | Delete
[1899] Fix | Delete
/***/ }),
[1900] Fix | Delete
/* 46 */
[1901] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[1902] Fix | Delete
[1903] Fix | Delete
'use strict';
[1904] Fix | Delete
[1905] Fix | Delete
var _interopRequireDefault = __webpack_require__(1)['default'];
[1906] Fix | Delete
[1907] Fix | Delete
var _interopRequireWildcard = __webpack_require__(3)['default'];
[1908] Fix | Delete
[1909] Fix | Delete
exports.__esModule = true;
[1910] Fix | Delete
exports.parseWithoutProcessing = parseWithoutProcessing;
[1911] Fix | Delete
exports.parse = parse;
[1912] Fix | Delete
[1913] Fix | Delete
var _parser = __webpack_require__(47);
[1914] Fix | Delete
[1915] Fix | Delete
var _parser2 = _interopRequireDefault(_parser);
[1916] Fix | Delete
[1917] Fix | Delete
var _whitespaceControl = __webpack_require__(48);
[1918] Fix | Delete
[1919] Fix | Delete
var _whitespaceControl2 = _interopRequireDefault(_whitespaceControl);
[1920] Fix | Delete
[1921] Fix | Delete
var _helpers = __webpack_require__(50);
[1922] Fix | Delete
[1923] Fix | Delete
var Helpers = _interopRequireWildcard(_helpers);
[1924] Fix | Delete
[1925] Fix | Delete
var _utils = __webpack_require__(5);
[1926] Fix | Delete
[1927] Fix | Delete
exports.parser = _parser2['default'];
[1928] Fix | Delete
[1929] Fix | Delete
var yy = {};
[1930] Fix | Delete
_utils.extend(yy, Helpers);
[1931] Fix | Delete
[1932] Fix | Delete
function parseWithoutProcessing(input, options) {
[1933] Fix | Delete
// Just return if an already-compiled AST was passed in.
[1934] Fix | Delete
if (input.type === 'Program') {
[1935] Fix | Delete
return input;
[1936] Fix | Delete
}
[1937] Fix | Delete
[1938] Fix | Delete
_parser2['default'].yy = yy;
[1939] Fix | Delete
[1940] Fix | Delete
// Altering the shared object here, but this is ok as parser is a sync operation
[1941] Fix | Delete
yy.locInfo = function (locInfo) {
[1942] Fix | Delete
return new yy.SourceLocation(options && options.srcName, locInfo);
[1943] Fix | Delete
};
[1944] Fix | Delete
[1945] Fix | Delete
var ast = _parser2['default'].parse(input);
[1946] Fix | Delete
[1947] Fix | Delete
return ast;
[1948] Fix | Delete
}
[1949] Fix | Delete
[1950] Fix | Delete
function parse(input, options) {
[1951] Fix | Delete
var ast = parseWithoutProcessing(input, options);
[1952] Fix | Delete
var strip = new _whitespaceControl2['default'](options);
[1953] Fix | Delete
[1954] Fix | Delete
return strip.accept(ast);
[1955] Fix | Delete
}
[1956] Fix | Delete
[1957] Fix | Delete
/***/ }),
[1958] Fix | Delete
/* 47 */
[1959] Fix | Delete
/***/ (function(module, exports) {
[1960] Fix | Delete
[1961] Fix | Delete
// File ignored in coverage tests via setting in .istanbul.yml
[1962] Fix | Delete
/* Jison generated parser */
[1963] Fix | Delete
"use strict";
[1964] Fix | Delete
[1965] Fix | Delete
exports.__esModule = true;
[1966] Fix | Delete
var handlebars = (function () {
[1967] Fix | Delete
var parser = { trace: function trace() {},
[1968] Fix | Delete
yy: {},
[1969] Fix | Delete
symbols_: { "error": 2, "root": 3, "program": 4, "EOF": 5, "program_repetition0": 6, "statement": 7, "mustache": 8, "block": 9, "rawBlock": 10, "partial": 11, "partialBlock": 12, "content": 13, "COMMENT": 14, "CONTENT": 15, "openRawBlock": 16, "rawBlock_repetition0": 17, "END_RAW_BLOCK": 18, "OPEN_RAW_BLOCK": 19, "helperName": 20, "openRawBlock_repetition0": 21, "openRawBlock_option0": 22, "CLOSE_RAW_BLOCK": 23, "openBlock": 24, "block_option0": 25, "closeBlock": 26, "openInverse": 27, "block_option1": 28, "OPEN_BLOCK": 29, "openBlock_repetition0": 30, "openBlock_option0": 31, "openBlock_option1": 32, "CLOSE": 33, "OPEN_INVERSE": 34, "openInverse_repetition0": 35, "openInverse_option0": 36, "openInverse_option1": 37, "openInverseChain": 38, "OPEN_INVERSE_CHAIN": 39, "openInverseChain_repetition0": 40, "openInverseChain_option0": 41, "openInverseChain_option1": 42, "inverseAndProgram": 43, "INVERSE": 44, "inverseChain": 45, "inverseChain_option0": 46, "OPEN_ENDBLOCK": 47, "OPEN": 48, "mustache_repetition0": 49, "mustache_option0": 50, "OPEN_UNESCAPED": 51, "mustache_repetition1": 52, "mustache_option1": 53, "CLOSE_UNESCAPED": 54, "OPEN_PARTIAL": 55, "partialName": 56, "partial_repetition0": 57, "partial_option0": 58, "openPartialBlock": 59, "OPEN_PARTIAL_BLOCK": 60, "openPartialBlock_repetition0": 61, "openPartialBlock_option0": 62, "param": 63, "sexpr": 64, "OPEN_SEXPR": 65, "sexpr_repetition0": 66, "sexpr_option0": 67, "CLOSE_SEXPR": 68, "hash": 69, "hash_repetition_plus0": 70, "hashSegment": 71, "ID": 72, "EQUALS": 73, "blockParams": 74, "OPEN_BLOCK_PARAMS": 75, "blockParams_repetition_plus0": 76, "CLOSE_BLOCK_PARAMS": 77, "path": 78, "dataName": 79, "STRING": 80, "NUMBER": 81, "BOOLEAN": 82, "UNDEFINED": 83, "NULL": 84, "DATA": 85, "pathSegments": 86, "SEP": 87, "$accept": 0, "$end": 1 },
[1970] Fix | Delete
terminals_: { 2: "error", 5: "EOF", 14: "COMMENT", 15: "CONTENT", 18: "END_RAW_BLOCK", 19: "OPEN_RAW_BLOCK", 23: "CLOSE_RAW_BLOCK", 29: "OPEN_BLOCK", 33: "CLOSE", 34: "OPEN_INVERSE", 39: "OPEN_INVERSE_CHAIN", 44: "INVERSE", 47: "OPEN_ENDBLOCK", 48: "OPEN", 51: "OPEN_UNESCAPED", 54: "CLOSE_UNESCAPED", 55: "OPEN_PARTIAL", 60: "OPEN_PARTIAL_BLOCK", 65: "OPEN_SEXPR", 68: "CLOSE_SEXPR", 72: "ID", 73: "EQUALS", 75: "OPEN_BLOCK_PARAMS", 77: "CLOSE_BLOCK_PARAMS", 80: "STRING", 81: "NUMBER", 82: "BOOLEAN", 83: "UNDEFINED", 84: "NULL", 85: "DATA", 87: "SEP" },
[1971] Fix | Delete
productions_: [0, [3, 2], [4, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [13, 1], [10, 3], [16, 5], [9, 4], [9, 4], [24, 6], [27, 6], [38, 6], [43, 2], [45, 3], [45, 1], [26, 3], [8, 5], [8, 5], [11, 5], [12, 3], [59, 5], [63, 1], [63, 1], [64, 5], [69, 1], [71, 3], [74, 3], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [56, 1], [56, 1], [79, 2], [78, 1], [86, 3], [86, 1], [6, 0], [6, 2], [17, 0], [17, 2], [21, 0], [21, 2], [22, 0], [22, 1], [25, 0], [25, 1], [28, 0], [28, 1], [30, 0], [30, 2], [31, 0], [31, 1], [32, 0], [32, 1], [35, 0], [35, 2], [36, 0], [36, 1], [37, 0], [37, 1], [40, 0], [40, 2], [41, 0], [41, 1], [42, 0], [42, 1], [46, 0], [46, 1], [49, 0], [49, 2], [50, 0], [50, 1], [52, 0], [52, 2], [53, 0], [53, 1], [57, 0], [57, 2], [58, 0], [58, 1], [61, 0], [61, 2], [62, 0], [62, 1], [66, 0], [66, 2], [67, 0], [67, 1], [70, 1], [70, 2], [76, 1], [76, 2]],
[1972] Fix | Delete
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
[1973] Fix | Delete
[1974] Fix | Delete
var $0 = $$.length - 1;
[1975] Fix | Delete
switch (yystate) {
[1976] Fix | Delete
case 1:
[1977] Fix | Delete
return $$[$0 - 1];
[1978] Fix | Delete
break;
[1979] Fix | Delete
case 2:
[1980] Fix | Delete
this.$ = yy.prepareProgram($$[$0]);
[1981] Fix | Delete
break;
[1982] Fix | Delete
case 3:
[1983] Fix | Delete
this.$ = $$[$0];
[1984] Fix | Delete
break;
[1985] Fix | Delete
case 4:
[1986] Fix | Delete
this.$ = $$[$0];
[1987] Fix | Delete
break;
[1988] Fix | Delete
case 5:
[1989] Fix | Delete
this.$ = $$[$0];
[1990] Fix | Delete
break;
[1991] Fix | Delete
case 6:
[1992] Fix | Delete
this.$ = $$[$0];
[1993] Fix | Delete
break;
[1994] Fix | Delete
case 7:
[1995] Fix | Delete
this.$ = $$[$0];
[1996] Fix | Delete
break;
[1997] Fix | Delete
case 8:
[1998] Fix | Delete
this.$ = $$[$0];
[1999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function