Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/codemirr...
File: esprima.js
return ImportDeclaration;
[1500] Fix | Delete
}());
[1501] Fix | Delete
exports.ImportDeclaration = ImportDeclaration;
[1502] Fix | Delete
var ImportDefaultSpecifier = (function () {
[1503] Fix | Delete
function ImportDefaultSpecifier(local) {
[1504] Fix | Delete
this.type = syntax_1.Syntax.ImportDefaultSpecifier;
[1505] Fix | Delete
this.local = local;
[1506] Fix | Delete
}
[1507] Fix | Delete
return ImportDefaultSpecifier;
[1508] Fix | Delete
}());
[1509] Fix | Delete
exports.ImportDefaultSpecifier = ImportDefaultSpecifier;
[1510] Fix | Delete
var ImportNamespaceSpecifier = (function () {
[1511] Fix | Delete
function ImportNamespaceSpecifier(local) {
[1512] Fix | Delete
this.type = syntax_1.Syntax.ImportNamespaceSpecifier;
[1513] Fix | Delete
this.local = local;
[1514] Fix | Delete
}
[1515] Fix | Delete
return ImportNamespaceSpecifier;
[1516] Fix | Delete
}());
[1517] Fix | Delete
exports.ImportNamespaceSpecifier = ImportNamespaceSpecifier;
[1518] Fix | Delete
var ImportSpecifier = (function () {
[1519] Fix | Delete
function ImportSpecifier(local, imported) {
[1520] Fix | Delete
this.type = syntax_1.Syntax.ImportSpecifier;
[1521] Fix | Delete
this.local = local;
[1522] Fix | Delete
this.imported = imported;
[1523] Fix | Delete
}
[1524] Fix | Delete
return ImportSpecifier;
[1525] Fix | Delete
}());
[1526] Fix | Delete
exports.ImportSpecifier = ImportSpecifier;
[1527] Fix | Delete
var LabeledStatement = (function () {
[1528] Fix | Delete
function LabeledStatement(label, body) {
[1529] Fix | Delete
this.type = syntax_1.Syntax.LabeledStatement;
[1530] Fix | Delete
this.label = label;
[1531] Fix | Delete
this.body = body;
[1532] Fix | Delete
}
[1533] Fix | Delete
return LabeledStatement;
[1534] Fix | Delete
}());
[1535] Fix | Delete
exports.LabeledStatement = LabeledStatement;
[1536] Fix | Delete
var Literal = (function () {
[1537] Fix | Delete
function Literal(value, raw) {
[1538] Fix | Delete
this.type = syntax_1.Syntax.Literal;
[1539] Fix | Delete
this.value = value;
[1540] Fix | Delete
this.raw = raw;
[1541] Fix | Delete
}
[1542] Fix | Delete
return Literal;
[1543] Fix | Delete
}());
[1544] Fix | Delete
exports.Literal = Literal;
[1545] Fix | Delete
var MetaProperty = (function () {
[1546] Fix | Delete
function MetaProperty(meta, property) {
[1547] Fix | Delete
this.type = syntax_1.Syntax.MetaProperty;
[1548] Fix | Delete
this.meta = meta;
[1549] Fix | Delete
this.property = property;
[1550] Fix | Delete
}
[1551] Fix | Delete
return MetaProperty;
[1552] Fix | Delete
}());
[1553] Fix | Delete
exports.MetaProperty = MetaProperty;
[1554] Fix | Delete
var MethodDefinition = (function () {
[1555] Fix | Delete
function MethodDefinition(key, computed, value, kind, isStatic) {
[1556] Fix | Delete
this.type = syntax_1.Syntax.MethodDefinition;
[1557] Fix | Delete
this.key = key;
[1558] Fix | Delete
this.computed = computed;
[1559] Fix | Delete
this.value = value;
[1560] Fix | Delete
this.kind = kind;
[1561] Fix | Delete
this.static = isStatic;
[1562] Fix | Delete
}
[1563] Fix | Delete
return MethodDefinition;
[1564] Fix | Delete
}());
[1565] Fix | Delete
exports.MethodDefinition = MethodDefinition;
[1566] Fix | Delete
var Module = (function () {
[1567] Fix | Delete
function Module(body) {
[1568] Fix | Delete
this.type = syntax_1.Syntax.Program;
[1569] Fix | Delete
this.body = body;
[1570] Fix | Delete
this.sourceType = 'module';
[1571] Fix | Delete
}
[1572] Fix | Delete
return Module;
[1573] Fix | Delete
}());
[1574] Fix | Delete
exports.Module = Module;
[1575] Fix | Delete
var NewExpression = (function () {
[1576] Fix | Delete
function NewExpression(callee, args) {
[1577] Fix | Delete
this.type = syntax_1.Syntax.NewExpression;
[1578] Fix | Delete
this.callee = callee;
[1579] Fix | Delete
this.arguments = args;
[1580] Fix | Delete
}
[1581] Fix | Delete
return NewExpression;
[1582] Fix | Delete
}());
[1583] Fix | Delete
exports.NewExpression = NewExpression;
[1584] Fix | Delete
var ObjectExpression = (function () {
[1585] Fix | Delete
function ObjectExpression(properties) {
[1586] Fix | Delete
this.type = syntax_1.Syntax.ObjectExpression;
[1587] Fix | Delete
this.properties = properties;
[1588] Fix | Delete
}
[1589] Fix | Delete
return ObjectExpression;
[1590] Fix | Delete
}());
[1591] Fix | Delete
exports.ObjectExpression = ObjectExpression;
[1592] Fix | Delete
var ObjectPattern = (function () {
[1593] Fix | Delete
function ObjectPattern(properties) {
[1594] Fix | Delete
this.type = syntax_1.Syntax.ObjectPattern;
[1595] Fix | Delete
this.properties = properties;
[1596] Fix | Delete
}
[1597] Fix | Delete
return ObjectPattern;
[1598] Fix | Delete
}());
[1599] Fix | Delete
exports.ObjectPattern = ObjectPattern;
[1600] Fix | Delete
var Property = (function () {
[1601] Fix | Delete
function Property(kind, key, computed, value, method, shorthand) {
[1602] Fix | Delete
this.type = syntax_1.Syntax.Property;
[1603] Fix | Delete
this.key = key;
[1604] Fix | Delete
this.computed = computed;
[1605] Fix | Delete
this.value = value;
[1606] Fix | Delete
this.kind = kind;
[1607] Fix | Delete
this.method = method;
[1608] Fix | Delete
this.shorthand = shorthand;
[1609] Fix | Delete
}
[1610] Fix | Delete
return Property;
[1611] Fix | Delete
}());
[1612] Fix | Delete
exports.Property = Property;
[1613] Fix | Delete
var RegexLiteral = (function () {
[1614] Fix | Delete
function RegexLiteral(value, raw, pattern, flags) {
[1615] Fix | Delete
this.type = syntax_1.Syntax.Literal;
[1616] Fix | Delete
this.value = value;
[1617] Fix | Delete
this.raw = raw;
[1618] Fix | Delete
this.regex = { pattern: pattern, flags: flags };
[1619] Fix | Delete
}
[1620] Fix | Delete
return RegexLiteral;
[1621] Fix | Delete
}());
[1622] Fix | Delete
exports.RegexLiteral = RegexLiteral;
[1623] Fix | Delete
var RestElement = (function () {
[1624] Fix | Delete
function RestElement(argument) {
[1625] Fix | Delete
this.type = syntax_1.Syntax.RestElement;
[1626] Fix | Delete
this.argument = argument;
[1627] Fix | Delete
}
[1628] Fix | Delete
return RestElement;
[1629] Fix | Delete
}());
[1630] Fix | Delete
exports.RestElement = RestElement;
[1631] Fix | Delete
var ReturnStatement = (function () {
[1632] Fix | Delete
function ReturnStatement(argument) {
[1633] Fix | Delete
this.type = syntax_1.Syntax.ReturnStatement;
[1634] Fix | Delete
this.argument = argument;
[1635] Fix | Delete
}
[1636] Fix | Delete
return ReturnStatement;
[1637] Fix | Delete
}());
[1638] Fix | Delete
exports.ReturnStatement = ReturnStatement;
[1639] Fix | Delete
var Script = (function () {
[1640] Fix | Delete
function Script(body) {
[1641] Fix | Delete
this.type = syntax_1.Syntax.Program;
[1642] Fix | Delete
this.body = body;
[1643] Fix | Delete
this.sourceType = 'script';
[1644] Fix | Delete
}
[1645] Fix | Delete
return Script;
[1646] Fix | Delete
}());
[1647] Fix | Delete
exports.Script = Script;
[1648] Fix | Delete
var SequenceExpression = (function () {
[1649] Fix | Delete
function SequenceExpression(expressions) {
[1650] Fix | Delete
this.type = syntax_1.Syntax.SequenceExpression;
[1651] Fix | Delete
this.expressions = expressions;
[1652] Fix | Delete
}
[1653] Fix | Delete
return SequenceExpression;
[1654] Fix | Delete
}());
[1655] Fix | Delete
exports.SequenceExpression = SequenceExpression;
[1656] Fix | Delete
var SpreadElement = (function () {
[1657] Fix | Delete
function SpreadElement(argument) {
[1658] Fix | Delete
this.type = syntax_1.Syntax.SpreadElement;
[1659] Fix | Delete
this.argument = argument;
[1660] Fix | Delete
}
[1661] Fix | Delete
return SpreadElement;
[1662] Fix | Delete
}());
[1663] Fix | Delete
exports.SpreadElement = SpreadElement;
[1664] Fix | Delete
var StaticMemberExpression = (function () {
[1665] Fix | Delete
function StaticMemberExpression(object, property) {
[1666] Fix | Delete
this.type = syntax_1.Syntax.MemberExpression;
[1667] Fix | Delete
this.computed = false;
[1668] Fix | Delete
this.object = object;
[1669] Fix | Delete
this.property = property;
[1670] Fix | Delete
}
[1671] Fix | Delete
return StaticMemberExpression;
[1672] Fix | Delete
}());
[1673] Fix | Delete
exports.StaticMemberExpression = StaticMemberExpression;
[1674] Fix | Delete
var Super = (function () {
[1675] Fix | Delete
function Super() {
[1676] Fix | Delete
this.type = syntax_1.Syntax.Super;
[1677] Fix | Delete
}
[1678] Fix | Delete
return Super;
[1679] Fix | Delete
}());
[1680] Fix | Delete
exports.Super = Super;
[1681] Fix | Delete
var SwitchCase = (function () {
[1682] Fix | Delete
function SwitchCase(test, consequent) {
[1683] Fix | Delete
this.type = syntax_1.Syntax.SwitchCase;
[1684] Fix | Delete
this.test = test;
[1685] Fix | Delete
this.consequent = consequent;
[1686] Fix | Delete
}
[1687] Fix | Delete
return SwitchCase;
[1688] Fix | Delete
}());
[1689] Fix | Delete
exports.SwitchCase = SwitchCase;
[1690] Fix | Delete
var SwitchStatement = (function () {
[1691] Fix | Delete
function SwitchStatement(discriminant, cases) {
[1692] Fix | Delete
this.type = syntax_1.Syntax.SwitchStatement;
[1693] Fix | Delete
this.discriminant = discriminant;
[1694] Fix | Delete
this.cases = cases;
[1695] Fix | Delete
}
[1696] Fix | Delete
return SwitchStatement;
[1697] Fix | Delete
}());
[1698] Fix | Delete
exports.SwitchStatement = SwitchStatement;
[1699] Fix | Delete
var TaggedTemplateExpression = (function () {
[1700] Fix | Delete
function TaggedTemplateExpression(tag, quasi) {
[1701] Fix | Delete
this.type = syntax_1.Syntax.TaggedTemplateExpression;
[1702] Fix | Delete
this.tag = tag;
[1703] Fix | Delete
this.quasi = quasi;
[1704] Fix | Delete
}
[1705] Fix | Delete
return TaggedTemplateExpression;
[1706] Fix | Delete
}());
[1707] Fix | Delete
exports.TaggedTemplateExpression = TaggedTemplateExpression;
[1708] Fix | Delete
var TemplateElement = (function () {
[1709] Fix | Delete
function TemplateElement(value, tail) {
[1710] Fix | Delete
this.type = syntax_1.Syntax.TemplateElement;
[1711] Fix | Delete
this.value = value;
[1712] Fix | Delete
this.tail = tail;
[1713] Fix | Delete
}
[1714] Fix | Delete
return TemplateElement;
[1715] Fix | Delete
}());
[1716] Fix | Delete
exports.TemplateElement = TemplateElement;
[1717] Fix | Delete
var TemplateLiteral = (function () {
[1718] Fix | Delete
function TemplateLiteral(quasis, expressions) {
[1719] Fix | Delete
this.type = syntax_1.Syntax.TemplateLiteral;
[1720] Fix | Delete
this.quasis = quasis;
[1721] Fix | Delete
this.expressions = expressions;
[1722] Fix | Delete
}
[1723] Fix | Delete
return TemplateLiteral;
[1724] Fix | Delete
}());
[1725] Fix | Delete
exports.TemplateLiteral = TemplateLiteral;
[1726] Fix | Delete
var ThisExpression = (function () {
[1727] Fix | Delete
function ThisExpression() {
[1728] Fix | Delete
this.type = syntax_1.Syntax.ThisExpression;
[1729] Fix | Delete
}
[1730] Fix | Delete
return ThisExpression;
[1731] Fix | Delete
}());
[1732] Fix | Delete
exports.ThisExpression = ThisExpression;
[1733] Fix | Delete
var ThrowStatement = (function () {
[1734] Fix | Delete
function ThrowStatement(argument) {
[1735] Fix | Delete
this.type = syntax_1.Syntax.ThrowStatement;
[1736] Fix | Delete
this.argument = argument;
[1737] Fix | Delete
}
[1738] Fix | Delete
return ThrowStatement;
[1739] Fix | Delete
}());
[1740] Fix | Delete
exports.ThrowStatement = ThrowStatement;
[1741] Fix | Delete
var TryStatement = (function () {
[1742] Fix | Delete
function TryStatement(block, handler, finalizer) {
[1743] Fix | Delete
this.type = syntax_1.Syntax.TryStatement;
[1744] Fix | Delete
this.block = block;
[1745] Fix | Delete
this.handler = handler;
[1746] Fix | Delete
this.finalizer = finalizer;
[1747] Fix | Delete
}
[1748] Fix | Delete
return TryStatement;
[1749] Fix | Delete
}());
[1750] Fix | Delete
exports.TryStatement = TryStatement;
[1751] Fix | Delete
var UnaryExpression = (function () {
[1752] Fix | Delete
function UnaryExpression(operator, argument) {
[1753] Fix | Delete
this.type = syntax_1.Syntax.UnaryExpression;
[1754] Fix | Delete
this.operator = operator;
[1755] Fix | Delete
this.argument = argument;
[1756] Fix | Delete
this.prefix = true;
[1757] Fix | Delete
}
[1758] Fix | Delete
return UnaryExpression;
[1759] Fix | Delete
}());
[1760] Fix | Delete
exports.UnaryExpression = UnaryExpression;
[1761] Fix | Delete
var UpdateExpression = (function () {
[1762] Fix | Delete
function UpdateExpression(operator, argument, prefix) {
[1763] Fix | Delete
this.type = syntax_1.Syntax.UpdateExpression;
[1764] Fix | Delete
this.operator = operator;
[1765] Fix | Delete
this.argument = argument;
[1766] Fix | Delete
this.prefix = prefix;
[1767] Fix | Delete
}
[1768] Fix | Delete
return UpdateExpression;
[1769] Fix | Delete
}());
[1770] Fix | Delete
exports.UpdateExpression = UpdateExpression;
[1771] Fix | Delete
var VariableDeclaration = (function () {
[1772] Fix | Delete
function VariableDeclaration(declarations, kind) {
[1773] Fix | Delete
this.type = syntax_1.Syntax.VariableDeclaration;
[1774] Fix | Delete
this.declarations = declarations;
[1775] Fix | Delete
this.kind = kind;
[1776] Fix | Delete
}
[1777] Fix | Delete
return VariableDeclaration;
[1778] Fix | Delete
}());
[1779] Fix | Delete
exports.VariableDeclaration = VariableDeclaration;
[1780] Fix | Delete
var VariableDeclarator = (function () {
[1781] Fix | Delete
function VariableDeclarator(id, init) {
[1782] Fix | Delete
this.type = syntax_1.Syntax.VariableDeclarator;
[1783] Fix | Delete
this.id = id;
[1784] Fix | Delete
this.init = init;
[1785] Fix | Delete
}
[1786] Fix | Delete
return VariableDeclarator;
[1787] Fix | Delete
}());
[1788] Fix | Delete
exports.VariableDeclarator = VariableDeclarator;
[1789] Fix | Delete
var WhileStatement = (function () {
[1790] Fix | Delete
function WhileStatement(test, body) {
[1791] Fix | Delete
this.type = syntax_1.Syntax.WhileStatement;
[1792] Fix | Delete
this.test = test;
[1793] Fix | Delete
this.body = body;
[1794] Fix | Delete
}
[1795] Fix | Delete
return WhileStatement;
[1796] Fix | Delete
}());
[1797] Fix | Delete
exports.WhileStatement = WhileStatement;
[1798] Fix | Delete
var WithStatement = (function () {
[1799] Fix | Delete
function WithStatement(object, body) {
[1800] Fix | Delete
this.type = syntax_1.Syntax.WithStatement;
[1801] Fix | Delete
this.object = object;
[1802] Fix | Delete
this.body = body;
[1803] Fix | Delete
}
[1804] Fix | Delete
return WithStatement;
[1805] Fix | Delete
}());
[1806] Fix | Delete
exports.WithStatement = WithStatement;
[1807] Fix | Delete
var YieldExpression = (function () {
[1808] Fix | Delete
function YieldExpression(argument, delegate) {
[1809] Fix | Delete
this.type = syntax_1.Syntax.YieldExpression;
[1810] Fix | Delete
this.argument = argument;
[1811] Fix | Delete
this.delegate = delegate;
[1812] Fix | Delete
}
[1813] Fix | Delete
return YieldExpression;
[1814] Fix | Delete
}());
[1815] Fix | Delete
exports.YieldExpression = YieldExpression;
[1816] Fix | Delete
[1817] Fix | Delete
[1818] Fix | Delete
/***/ },
[1819] Fix | Delete
/* 8 */
[1820] Fix | Delete
/***/ function(module, exports, __webpack_require__) {
[1821] Fix | Delete
[1822] Fix | Delete
"use strict";
[1823] Fix | Delete
Object.defineProperty(exports, "__esModule", { value: true });
[1824] Fix | Delete
var assert_1 = __webpack_require__(9);
[1825] Fix | Delete
var error_handler_1 = __webpack_require__(10);
[1826] Fix | Delete
var messages_1 = __webpack_require__(11);
[1827] Fix | Delete
var Node = __webpack_require__(7);
[1828] Fix | Delete
var scanner_1 = __webpack_require__(12);
[1829] Fix | Delete
var syntax_1 = __webpack_require__(2);
[1830] Fix | Delete
var token_1 = __webpack_require__(13);
[1831] Fix | Delete
var ArrowParameterPlaceHolder = 'ArrowParameterPlaceHolder';
[1832] Fix | Delete
var Parser = (function () {
[1833] Fix | Delete
function Parser(code, options, delegate) {
[1834] Fix | Delete
if (options === void 0) { options = {}; }
[1835] Fix | Delete
this.config = {
[1836] Fix | Delete
range: (typeof options.range === 'boolean') && options.range,
[1837] Fix | Delete
loc: (typeof options.loc === 'boolean') && options.loc,
[1838] Fix | Delete
source: null,
[1839] Fix | Delete
tokens: (typeof options.tokens === 'boolean') && options.tokens,
[1840] Fix | Delete
comment: (typeof options.comment === 'boolean') && options.comment,
[1841] Fix | Delete
tolerant: (typeof options.tolerant === 'boolean') && options.tolerant
[1842] Fix | Delete
};
[1843] Fix | Delete
if (this.config.loc && options.source && options.source !== null) {
[1844] Fix | Delete
this.config.source = String(options.source);
[1845] Fix | Delete
}
[1846] Fix | Delete
this.delegate = delegate;
[1847] Fix | Delete
this.errorHandler = new error_handler_1.ErrorHandler();
[1848] Fix | Delete
this.errorHandler.tolerant = this.config.tolerant;
[1849] Fix | Delete
this.scanner = new scanner_1.Scanner(code, this.errorHandler);
[1850] Fix | Delete
this.scanner.trackComment = this.config.comment;
[1851] Fix | Delete
this.operatorPrecedence = {
[1852] Fix | Delete
')': 0,
[1853] Fix | Delete
';': 0,
[1854] Fix | Delete
',': 0,
[1855] Fix | Delete
'=': 0,
[1856] Fix | Delete
']': 0,
[1857] Fix | Delete
'||': 1,
[1858] Fix | Delete
'&&': 2,
[1859] Fix | Delete
'|': 3,
[1860] Fix | Delete
'^': 4,
[1861] Fix | Delete
'&': 5,
[1862] Fix | Delete
'==': 6,
[1863] Fix | Delete
'!=': 6,
[1864] Fix | Delete
'===': 6,
[1865] Fix | Delete
'!==': 6,
[1866] Fix | Delete
'<': 7,
[1867] Fix | Delete
'>': 7,
[1868] Fix | Delete
'<=': 7,
[1869] Fix | Delete
'>=': 7,
[1870] Fix | Delete
'<<': 8,
[1871] Fix | Delete
'>>': 8,
[1872] Fix | Delete
'>>>': 8,
[1873] Fix | Delete
'+': 9,
[1874] Fix | Delete
'-': 9,
[1875] Fix | Delete
'*': 11,
[1876] Fix | Delete
'/': 11,
[1877] Fix | Delete
'%': 11
[1878] Fix | Delete
};
[1879] Fix | Delete
this.lookahead = {
[1880] Fix | Delete
type: 2 /* EOF */,
[1881] Fix | Delete
value: '',
[1882] Fix | Delete
lineNumber: this.scanner.lineNumber,
[1883] Fix | Delete
lineStart: 0,
[1884] Fix | Delete
start: 0,
[1885] Fix | Delete
end: 0
[1886] Fix | Delete
};
[1887] Fix | Delete
this.hasLineTerminator = false;
[1888] Fix | Delete
this.context = {
[1889] Fix | Delete
isModule: false,
[1890] Fix | Delete
await: false,
[1891] Fix | Delete
allowIn: true,
[1892] Fix | Delete
allowStrictDirective: true,
[1893] Fix | Delete
allowYield: true,
[1894] Fix | Delete
firstCoverInitializedNameError: null,
[1895] Fix | Delete
isAssignmentTarget: false,
[1896] Fix | Delete
isBindingElement: false,
[1897] Fix | Delete
inFunctionBody: false,
[1898] Fix | Delete
inIteration: false,
[1899] Fix | Delete
inSwitch: false,
[1900] Fix | Delete
labelSet: {},
[1901] Fix | Delete
strict: false
[1902] Fix | Delete
};
[1903] Fix | Delete
this.tokens = [];
[1904] Fix | Delete
this.startMarker = {
[1905] Fix | Delete
index: 0,
[1906] Fix | Delete
line: this.scanner.lineNumber,
[1907] Fix | Delete
column: 0
[1908] Fix | Delete
};
[1909] Fix | Delete
this.lastMarker = {
[1910] Fix | Delete
index: 0,
[1911] Fix | Delete
line: this.scanner.lineNumber,
[1912] Fix | Delete
column: 0
[1913] Fix | Delete
};
[1914] Fix | Delete
this.nextToken();
[1915] Fix | Delete
this.lastMarker = {
[1916] Fix | Delete
index: this.scanner.index,
[1917] Fix | Delete
line: this.scanner.lineNumber,
[1918] Fix | Delete
column: this.scanner.index - this.scanner.lineStart
[1919] Fix | Delete
};
[1920] Fix | Delete
}
[1921] Fix | Delete
Parser.prototype.throwError = function (messageFormat) {
[1922] Fix | Delete
var values = [];
[1923] Fix | Delete
for (var _i = 1; _i < arguments.length; _i++) {
[1924] Fix | Delete
values[_i - 1] = arguments[_i];
[1925] Fix | Delete
}
[1926] Fix | Delete
var args = Array.prototype.slice.call(arguments, 1);
[1927] Fix | Delete
var msg = messageFormat.replace(/%(\d)/g, function (whole, idx) {
[1928] Fix | Delete
assert_1.assert(idx < args.length, 'Message reference must be in range');
[1929] Fix | Delete
return args[idx];
[1930] Fix | Delete
});
[1931] Fix | Delete
var index = this.lastMarker.index;
[1932] Fix | Delete
var line = this.lastMarker.line;
[1933] Fix | Delete
var column = this.lastMarker.column + 1;
[1934] Fix | Delete
throw this.errorHandler.createError(index, line, column, msg);
[1935] Fix | Delete
};
[1936] Fix | Delete
Parser.prototype.tolerateError = function (messageFormat) {
[1937] Fix | Delete
var values = [];
[1938] Fix | Delete
for (var _i = 1; _i < arguments.length; _i++) {
[1939] Fix | Delete
values[_i - 1] = arguments[_i];
[1940] Fix | Delete
}
[1941] Fix | Delete
var args = Array.prototype.slice.call(arguments, 1);
[1942] Fix | Delete
var msg = messageFormat.replace(/%(\d)/g, function (whole, idx) {
[1943] Fix | Delete
assert_1.assert(idx < args.length, 'Message reference must be in range');
[1944] Fix | Delete
return args[idx];
[1945] Fix | Delete
});
[1946] Fix | Delete
var index = this.lastMarker.index;
[1947] Fix | Delete
var line = this.scanner.lineNumber;
[1948] Fix | Delete
var column = this.lastMarker.column + 1;
[1949] Fix | Delete
this.errorHandler.tolerateError(index, line, column, msg);
[1950] Fix | Delete
};
[1951] Fix | Delete
// Throw an exception because of the token.
[1952] Fix | Delete
Parser.prototype.unexpectedTokenError = function (token, message) {
[1953] Fix | Delete
var msg = message || messages_1.Messages.UnexpectedToken;
[1954] Fix | Delete
var value;
[1955] Fix | Delete
if (token) {
[1956] Fix | Delete
if (!message) {
[1957] Fix | Delete
msg = (token.type === 2 /* EOF */) ? messages_1.Messages.UnexpectedEOS :
[1958] Fix | Delete
(token.type === 3 /* Identifier */) ? messages_1.Messages.UnexpectedIdentifier :
[1959] Fix | Delete
(token.type === 6 /* NumericLiteral */) ? messages_1.Messages.UnexpectedNumber :
[1960] Fix | Delete
(token.type === 8 /* StringLiteral */) ? messages_1.Messages.UnexpectedString :
[1961] Fix | Delete
(token.type === 10 /* Template */) ? messages_1.Messages.UnexpectedTemplate :
[1962] Fix | Delete
messages_1.Messages.UnexpectedToken;
[1963] Fix | Delete
if (token.type === 4 /* Keyword */) {
[1964] Fix | Delete
if (this.scanner.isFutureReservedWord(token.value)) {
[1965] Fix | Delete
msg = messages_1.Messages.UnexpectedReserved;
[1966] Fix | Delete
}
[1967] Fix | Delete
else if (this.context.strict && this.scanner.isStrictModeReservedWord(token.value)) {
[1968] Fix | Delete
msg = messages_1.Messages.StrictReservedWord;
[1969] Fix | Delete
}
[1970] Fix | Delete
}
[1971] Fix | Delete
}
[1972] Fix | Delete
value = token.value;
[1973] Fix | Delete
}
[1974] Fix | Delete
else {
[1975] Fix | Delete
value = 'ILLEGAL';
[1976] Fix | Delete
}
[1977] Fix | Delete
msg = msg.replace('%0', value);
[1978] Fix | Delete
if (token && typeof token.lineNumber === 'number') {
[1979] Fix | Delete
var index = token.start;
[1980] Fix | Delete
var line = token.lineNumber;
[1981] Fix | Delete
var lastMarkerLineStart = this.lastMarker.index - this.lastMarker.column;
[1982] Fix | Delete
var column = token.start - lastMarkerLineStart + 1;
[1983] Fix | Delete
return this.errorHandler.createError(index, line, column, msg);
[1984] Fix | Delete
}
[1985] Fix | Delete
else {
[1986] Fix | Delete
var index = this.lastMarker.index;
[1987] Fix | Delete
var line = this.lastMarker.line;
[1988] Fix | Delete
var column = this.lastMarker.column + 1;
[1989] Fix | Delete
return this.errorHandler.createError(index, line, column, msg);
[1990] Fix | Delete
}
[1991] Fix | Delete
};
[1992] Fix | Delete
Parser.prototype.throwUnexpectedToken = function (token, message) {
[1993] Fix | Delete
throw this.unexpectedTokenError(token, message);
[1994] Fix | Delete
};
[1995] Fix | Delete
Parser.prototype.tolerateUnexpectedToken = function (token, message) {
[1996] Fix | Delete
this.errorHandler.tolerate(this.unexpectedTokenError(token, message));
[1997] Fix | Delete
};
[1998] Fix | Delete
Parser.prototype.collectComments = function () {
[1999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function