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 (key.type === syntax_1.Syntax.Identifier && key.name === value) ||
[2500] Fix | Delete
(key.type === syntax_1.Syntax.Literal && key.value === value);
[2501] Fix | Delete
};
[2502] Fix | Delete
Parser.prototype.parseObjectProperty = function (hasProto) {
[2503] Fix | Delete
var node = this.createNode();
[2504] Fix | Delete
var token = this.lookahead;
[2505] Fix | Delete
var kind;
[2506] Fix | Delete
var key = null;
[2507] Fix | Delete
var value = null;
[2508] Fix | Delete
var computed = false;
[2509] Fix | Delete
var method = false;
[2510] Fix | Delete
var shorthand = false;
[2511] Fix | Delete
var isAsync = false;
[2512] Fix | Delete
if (token.type === 3 /* Identifier */) {
[2513] Fix | Delete
var id = token.value;
[2514] Fix | Delete
this.nextToken();
[2515] Fix | Delete
computed = this.match('[');
[2516] Fix | Delete
isAsync = !this.hasLineTerminator && (id === 'async') &&
[2517] Fix | Delete
!this.match(':') && !this.match('(') && !this.match('*');
[2518] Fix | Delete
key = isAsync ? this.parseObjectPropertyKey() : this.finalize(node, new Node.Identifier(id));
[2519] Fix | Delete
}
[2520] Fix | Delete
else if (this.match('*')) {
[2521] Fix | Delete
this.nextToken();
[2522] Fix | Delete
}
[2523] Fix | Delete
else {
[2524] Fix | Delete
computed = this.match('[');
[2525] Fix | Delete
key = this.parseObjectPropertyKey();
[2526] Fix | Delete
}
[2527] Fix | Delete
var lookaheadPropertyKey = this.qualifiedPropertyName(this.lookahead);
[2528] Fix | Delete
if (token.type === 3 /* Identifier */ && !isAsync && token.value === 'get' && lookaheadPropertyKey) {
[2529] Fix | Delete
kind = 'get';
[2530] Fix | Delete
computed = this.match('[');
[2531] Fix | Delete
key = this.parseObjectPropertyKey();
[2532] Fix | Delete
this.context.allowYield = false;
[2533] Fix | Delete
value = this.parseGetterMethod();
[2534] Fix | Delete
}
[2535] Fix | Delete
else if (token.type === 3 /* Identifier */ && !isAsync && token.value === 'set' && lookaheadPropertyKey) {
[2536] Fix | Delete
kind = 'set';
[2537] Fix | Delete
computed = this.match('[');
[2538] Fix | Delete
key = this.parseObjectPropertyKey();
[2539] Fix | Delete
value = this.parseSetterMethod();
[2540] Fix | Delete
}
[2541] Fix | Delete
else if (token.type === 7 /* Punctuator */ && token.value === '*' && lookaheadPropertyKey) {
[2542] Fix | Delete
kind = 'init';
[2543] Fix | Delete
computed = this.match('[');
[2544] Fix | Delete
key = this.parseObjectPropertyKey();
[2545] Fix | Delete
value = this.parseGeneratorMethod();
[2546] Fix | Delete
method = true;
[2547] Fix | Delete
}
[2548] Fix | Delete
else {
[2549] Fix | Delete
if (!key) {
[2550] Fix | Delete
this.throwUnexpectedToken(this.lookahead);
[2551] Fix | Delete
}
[2552] Fix | Delete
kind = 'init';
[2553] Fix | Delete
if (this.match(':') && !isAsync) {
[2554] Fix | Delete
if (!computed && this.isPropertyKey(key, '__proto__')) {
[2555] Fix | Delete
if (hasProto.value) {
[2556] Fix | Delete
this.tolerateError(messages_1.Messages.DuplicateProtoProperty);
[2557] Fix | Delete
}
[2558] Fix | Delete
hasProto.value = true;
[2559] Fix | Delete
}
[2560] Fix | Delete
this.nextToken();
[2561] Fix | Delete
value = this.inheritCoverGrammar(this.parseAssignmentExpression);
[2562] Fix | Delete
}
[2563] Fix | Delete
else if (this.match('(')) {
[2564] Fix | Delete
value = isAsync ? this.parsePropertyMethodAsyncFunction() : this.parsePropertyMethodFunction();
[2565] Fix | Delete
method = true;
[2566] Fix | Delete
}
[2567] Fix | Delete
else if (token.type === 3 /* Identifier */) {
[2568] Fix | Delete
var id = this.finalize(node, new Node.Identifier(token.value));
[2569] Fix | Delete
if (this.match('=')) {
[2570] Fix | Delete
this.context.firstCoverInitializedNameError = this.lookahead;
[2571] Fix | Delete
this.nextToken();
[2572] Fix | Delete
shorthand = true;
[2573] Fix | Delete
var init = this.isolateCoverGrammar(this.parseAssignmentExpression);
[2574] Fix | Delete
value = this.finalize(node, new Node.AssignmentPattern(id, init));
[2575] Fix | Delete
}
[2576] Fix | Delete
else {
[2577] Fix | Delete
shorthand = true;
[2578] Fix | Delete
value = id;
[2579] Fix | Delete
}
[2580] Fix | Delete
}
[2581] Fix | Delete
else {
[2582] Fix | Delete
this.throwUnexpectedToken(this.nextToken());
[2583] Fix | Delete
}
[2584] Fix | Delete
}
[2585] Fix | Delete
return this.finalize(node, new Node.Property(kind, key, computed, value, method, shorthand));
[2586] Fix | Delete
};
[2587] Fix | Delete
Parser.prototype.parseObjectInitializer = function () {
[2588] Fix | Delete
var node = this.createNode();
[2589] Fix | Delete
this.expect('{');
[2590] Fix | Delete
var properties = [];
[2591] Fix | Delete
var hasProto = { value: false };
[2592] Fix | Delete
while (!this.match('}')) {
[2593] Fix | Delete
properties.push(this.parseObjectProperty(hasProto));
[2594] Fix | Delete
if (!this.match('}')) {
[2595] Fix | Delete
this.expectCommaSeparator();
[2596] Fix | Delete
}
[2597] Fix | Delete
}
[2598] Fix | Delete
this.expect('}');
[2599] Fix | Delete
return this.finalize(node, new Node.ObjectExpression(properties));
[2600] Fix | Delete
};
[2601] Fix | Delete
// https://tc39.github.io/ecma262/#sec-template-literals
[2602] Fix | Delete
Parser.prototype.parseTemplateHead = function () {
[2603] Fix | Delete
assert_1.assert(this.lookahead.head, 'Template literal must start with a template head');
[2604] Fix | Delete
var node = this.createNode();
[2605] Fix | Delete
var token = this.nextToken();
[2606] Fix | Delete
var raw = token.value;
[2607] Fix | Delete
var cooked = token.cooked;
[2608] Fix | Delete
return this.finalize(node, new Node.TemplateElement({ raw: raw, cooked: cooked }, token.tail));
[2609] Fix | Delete
};
[2610] Fix | Delete
Parser.prototype.parseTemplateElement = function () {
[2611] Fix | Delete
if (this.lookahead.type !== 10 /* Template */) {
[2612] Fix | Delete
this.throwUnexpectedToken();
[2613] Fix | Delete
}
[2614] Fix | Delete
var node = this.createNode();
[2615] Fix | Delete
var token = this.nextToken();
[2616] Fix | Delete
var raw = token.value;
[2617] Fix | Delete
var cooked = token.cooked;
[2618] Fix | Delete
return this.finalize(node, new Node.TemplateElement({ raw: raw, cooked: cooked }, token.tail));
[2619] Fix | Delete
};
[2620] Fix | Delete
Parser.prototype.parseTemplateLiteral = function () {
[2621] Fix | Delete
var node = this.createNode();
[2622] Fix | Delete
var expressions = [];
[2623] Fix | Delete
var quasis = [];
[2624] Fix | Delete
var quasi = this.parseTemplateHead();
[2625] Fix | Delete
quasis.push(quasi);
[2626] Fix | Delete
while (!quasi.tail) {
[2627] Fix | Delete
expressions.push(this.parseExpression());
[2628] Fix | Delete
quasi = this.parseTemplateElement();
[2629] Fix | Delete
quasis.push(quasi);
[2630] Fix | Delete
}
[2631] Fix | Delete
return this.finalize(node, new Node.TemplateLiteral(quasis, expressions));
[2632] Fix | Delete
};
[2633] Fix | Delete
// https://tc39.github.io/ecma262/#sec-grouping-operator
[2634] Fix | Delete
Parser.prototype.reinterpretExpressionAsPattern = function (expr) {
[2635] Fix | Delete
switch (expr.type) {
[2636] Fix | Delete
case syntax_1.Syntax.Identifier:
[2637] Fix | Delete
case syntax_1.Syntax.MemberExpression:
[2638] Fix | Delete
case syntax_1.Syntax.RestElement:
[2639] Fix | Delete
case syntax_1.Syntax.AssignmentPattern:
[2640] Fix | Delete
break;
[2641] Fix | Delete
case syntax_1.Syntax.SpreadElement:
[2642] Fix | Delete
expr.type = syntax_1.Syntax.RestElement;
[2643] Fix | Delete
this.reinterpretExpressionAsPattern(expr.argument);
[2644] Fix | Delete
break;
[2645] Fix | Delete
case syntax_1.Syntax.ArrayExpression:
[2646] Fix | Delete
expr.type = syntax_1.Syntax.ArrayPattern;
[2647] Fix | Delete
for (var i = 0; i < expr.elements.length; i++) {
[2648] Fix | Delete
if (expr.elements[i] !== null) {
[2649] Fix | Delete
this.reinterpretExpressionAsPattern(expr.elements[i]);
[2650] Fix | Delete
}
[2651] Fix | Delete
}
[2652] Fix | Delete
break;
[2653] Fix | Delete
case syntax_1.Syntax.ObjectExpression:
[2654] Fix | Delete
expr.type = syntax_1.Syntax.ObjectPattern;
[2655] Fix | Delete
for (var i = 0; i < expr.properties.length; i++) {
[2656] Fix | Delete
this.reinterpretExpressionAsPattern(expr.properties[i].value);
[2657] Fix | Delete
}
[2658] Fix | Delete
break;
[2659] Fix | Delete
case syntax_1.Syntax.AssignmentExpression:
[2660] Fix | Delete
expr.type = syntax_1.Syntax.AssignmentPattern;
[2661] Fix | Delete
delete expr.operator;
[2662] Fix | Delete
this.reinterpretExpressionAsPattern(expr.left);
[2663] Fix | Delete
break;
[2664] Fix | Delete
default:
[2665] Fix | Delete
// Allow other node type for tolerant parsing.
[2666] Fix | Delete
break;
[2667] Fix | Delete
}
[2668] Fix | Delete
};
[2669] Fix | Delete
Parser.prototype.parseGroupExpression = function () {
[2670] Fix | Delete
var expr;
[2671] Fix | Delete
this.expect('(');
[2672] Fix | Delete
if (this.match(')')) {
[2673] Fix | Delete
this.nextToken();
[2674] Fix | Delete
if (!this.match('=>')) {
[2675] Fix | Delete
this.expect('=>');
[2676] Fix | Delete
}
[2677] Fix | Delete
expr = {
[2678] Fix | Delete
type: ArrowParameterPlaceHolder,
[2679] Fix | Delete
params: [],
[2680] Fix | Delete
async: false
[2681] Fix | Delete
};
[2682] Fix | Delete
}
[2683] Fix | Delete
else {
[2684] Fix | Delete
var startToken = this.lookahead;
[2685] Fix | Delete
var params = [];
[2686] Fix | Delete
if (this.match('...')) {
[2687] Fix | Delete
expr = this.parseRestElement(params);
[2688] Fix | Delete
this.expect(')');
[2689] Fix | Delete
if (!this.match('=>')) {
[2690] Fix | Delete
this.expect('=>');
[2691] Fix | Delete
}
[2692] Fix | Delete
expr = {
[2693] Fix | Delete
type: ArrowParameterPlaceHolder,
[2694] Fix | Delete
params: [expr],
[2695] Fix | Delete
async: false
[2696] Fix | Delete
};
[2697] Fix | Delete
}
[2698] Fix | Delete
else {
[2699] Fix | Delete
var arrow = false;
[2700] Fix | Delete
this.context.isBindingElement = true;
[2701] Fix | Delete
expr = this.inheritCoverGrammar(this.parseAssignmentExpression);
[2702] Fix | Delete
if (this.match(',')) {
[2703] Fix | Delete
var expressions = [];
[2704] Fix | Delete
this.context.isAssignmentTarget = false;
[2705] Fix | Delete
expressions.push(expr);
[2706] Fix | Delete
while (this.lookahead.type !== 2 /* EOF */) {
[2707] Fix | Delete
if (!this.match(',')) {
[2708] Fix | Delete
break;
[2709] Fix | Delete
}
[2710] Fix | Delete
this.nextToken();
[2711] Fix | Delete
if (this.match(')')) {
[2712] Fix | Delete
this.nextToken();
[2713] Fix | Delete
for (var i = 0; i < expressions.length; i++) {
[2714] Fix | Delete
this.reinterpretExpressionAsPattern(expressions[i]);
[2715] Fix | Delete
}
[2716] Fix | Delete
arrow = true;
[2717] Fix | Delete
expr = {
[2718] Fix | Delete
type: ArrowParameterPlaceHolder,
[2719] Fix | Delete
params: expressions,
[2720] Fix | Delete
async: false
[2721] Fix | Delete
};
[2722] Fix | Delete
}
[2723] Fix | Delete
else if (this.match('...')) {
[2724] Fix | Delete
if (!this.context.isBindingElement) {
[2725] Fix | Delete
this.throwUnexpectedToken(this.lookahead);
[2726] Fix | Delete
}
[2727] Fix | Delete
expressions.push(this.parseRestElement(params));
[2728] Fix | Delete
this.expect(')');
[2729] Fix | Delete
if (!this.match('=>')) {
[2730] Fix | Delete
this.expect('=>');
[2731] Fix | Delete
}
[2732] Fix | Delete
this.context.isBindingElement = false;
[2733] Fix | Delete
for (var i = 0; i < expressions.length; i++) {
[2734] Fix | Delete
this.reinterpretExpressionAsPattern(expressions[i]);
[2735] Fix | Delete
}
[2736] Fix | Delete
arrow = true;
[2737] Fix | Delete
expr = {
[2738] Fix | Delete
type: ArrowParameterPlaceHolder,
[2739] Fix | Delete
params: expressions,
[2740] Fix | Delete
async: false
[2741] Fix | Delete
};
[2742] Fix | Delete
}
[2743] Fix | Delete
else {
[2744] Fix | Delete
expressions.push(this.inheritCoverGrammar(this.parseAssignmentExpression));
[2745] Fix | Delete
}
[2746] Fix | Delete
if (arrow) {
[2747] Fix | Delete
break;
[2748] Fix | Delete
}
[2749] Fix | Delete
}
[2750] Fix | Delete
if (!arrow) {
[2751] Fix | Delete
expr = this.finalize(this.startNode(startToken), new Node.SequenceExpression(expressions));
[2752] Fix | Delete
}
[2753] Fix | Delete
}
[2754] Fix | Delete
if (!arrow) {
[2755] Fix | Delete
this.expect(')');
[2756] Fix | Delete
if (this.match('=>')) {
[2757] Fix | Delete
if (expr.type === syntax_1.Syntax.Identifier && expr.name === 'yield') {
[2758] Fix | Delete
arrow = true;
[2759] Fix | Delete
expr = {
[2760] Fix | Delete
type: ArrowParameterPlaceHolder,
[2761] Fix | Delete
params: [expr],
[2762] Fix | Delete
async: false
[2763] Fix | Delete
};
[2764] Fix | Delete
}
[2765] Fix | Delete
if (!arrow) {
[2766] Fix | Delete
if (!this.context.isBindingElement) {
[2767] Fix | Delete
this.throwUnexpectedToken(this.lookahead);
[2768] Fix | Delete
}
[2769] Fix | Delete
if (expr.type === syntax_1.Syntax.SequenceExpression) {
[2770] Fix | Delete
for (var i = 0; i < expr.expressions.length; i++) {
[2771] Fix | Delete
this.reinterpretExpressionAsPattern(expr.expressions[i]);
[2772] Fix | Delete
}
[2773] Fix | Delete
}
[2774] Fix | Delete
else {
[2775] Fix | Delete
this.reinterpretExpressionAsPattern(expr);
[2776] Fix | Delete
}
[2777] Fix | Delete
var parameters = (expr.type === syntax_1.Syntax.SequenceExpression ? expr.expressions : [expr]);
[2778] Fix | Delete
expr = {
[2779] Fix | Delete
type: ArrowParameterPlaceHolder,
[2780] Fix | Delete
params: parameters,
[2781] Fix | Delete
async: false
[2782] Fix | Delete
};
[2783] Fix | Delete
}
[2784] Fix | Delete
}
[2785] Fix | Delete
this.context.isBindingElement = false;
[2786] Fix | Delete
}
[2787] Fix | Delete
}
[2788] Fix | Delete
}
[2789] Fix | Delete
return expr;
[2790] Fix | Delete
};
[2791] Fix | Delete
// https://tc39.github.io/ecma262/#sec-left-hand-side-expressions
[2792] Fix | Delete
Parser.prototype.parseArguments = function () {
[2793] Fix | Delete
this.expect('(');
[2794] Fix | Delete
var args = [];
[2795] Fix | Delete
if (!this.match(')')) {
[2796] Fix | Delete
while (true) {
[2797] Fix | Delete
var expr = this.match('...') ? this.parseSpreadElement() :
[2798] Fix | Delete
this.isolateCoverGrammar(this.parseAssignmentExpression);
[2799] Fix | Delete
args.push(expr);
[2800] Fix | Delete
if (this.match(')')) {
[2801] Fix | Delete
break;
[2802] Fix | Delete
}
[2803] Fix | Delete
this.expectCommaSeparator();
[2804] Fix | Delete
if (this.match(')')) {
[2805] Fix | Delete
break;
[2806] Fix | Delete
}
[2807] Fix | Delete
}
[2808] Fix | Delete
}
[2809] Fix | Delete
this.expect(')');
[2810] Fix | Delete
return args;
[2811] Fix | Delete
};
[2812] Fix | Delete
Parser.prototype.isIdentifierName = function (token) {
[2813] Fix | Delete
return token.type === 3 /* Identifier */ ||
[2814] Fix | Delete
token.type === 4 /* Keyword */ ||
[2815] Fix | Delete
token.type === 1 /* BooleanLiteral */ ||
[2816] Fix | Delete
token.type === 5 /* NullLiteral */;
[2817] Fix | Delete
};
[2818] Fix | Delete
Parser.prototype.parseIdentifierName = function () {
[2819] Fix | Delete
var node = this.createNode();
[2820] Fix | Delete
var token = this.nextToken();
[2821] Fix | Delete
if (!this.isIdentifierName(token)) {
[2822] Fix | Delete
this.throwUnexpectedToken(token);
[2823] Fix | Delete
}
[2824] Fix | Delete
return this.finalize(node, new Node.Identifier(token.value));
[2825] Fix | Delete
};
[2826] Fix | Delete
Parser.prototype.parseNewExpression = function () {
[2827] Fix | Delete
var node = this.createNode();
[2828] Fix | Delete
var id = this.parseIdentifierName();
[2829] Fix | Delete
assert_1.assert(id.name === 'new', 'New expression must start with `new`');
[2830] Fix | Delete
var expr;
[2831] Fix | Delete
if (this.match('.')) {
[2832] Fix | Delete
this.nextToken();
[2833] Fix | Delete
if (this.lookahead.type === 3 /* Identifier */ && this.context.inFunctionBody && this.lookahead.value === 'target') {
[2834] Fix | Delete
var property = this.parseIdentifierName();
[2835] Fix | Delete
expr = new Node.MetaProperty(id, property);
[2836] Fix | Delete
}
[2837] Fix | Delete
else {
[2838] Fix | Delete
this.throwUnexpectedToken(this.lookahead);
[2839] Fix | Delete
}
[2840] Fix | Delete
}
[2841] Fix | Delete
else {
[2842] Fix | Delete
var callee = this.isolateCoverGrammar(this.parseLeftHandSideExpression);
[2843] Fix | Delete
var args = this.match('(') ? this.parseArguments() : [];
[2844] Fix | Delete
expr = new Node.NewExpression(callee, args);
[2845] Fix | Delete
this.context.isAssignmentTarget = false;
[2846] Fix | Delete
this.context.isBindingElement = false;
[2847] Fix | Delete
}
[2848] Fix | Delete
return this.finalize(node, expr);
[2849] Fix | Delete
};
[2850] Fix | Delete
Parser.prototype.parseAsyncArgument = function () {
[2851] Fix | Delete
var arg = this.parseAssignmentExpression();
[2852] Fix | Delete
this.context.firstCoverInitializedNameError = null;
[2853] Fix | Delete
return arg;
[2854] Fix | Delete
};
[2855] Fix | Delete
Parser.prototype.parseAsyncArguments = function () {
[2856] Fix | Delete
this.expect('(');
[2857] Fix | Delete
var args = [];
[2858] Fix | Delete
if (!this.match(')')) {
[2859] Fix | Delete
while (true) {
[2860] Fix | Delete
var expr = this.match('...') ? this.parseSpreadElement() :
[2861] Fix | Delete
this.isolateCoverGrammar(this.parseAsyncArgument);
[2862] Fix | Delete
args.push(expr);
[2863] Fix | Delete
if (this.match(')')) {
[2864] Fix | Delete
break;
[2865] Fix | Delete
}
[2866] Fix | Delete
this.expectCommaSeparator();
[2867] Fix | Delete
if (this.match(')')) {
[2868] Fix | Delete
break;
[2869] Fix | Delete
}
[2870] Fix | Delete
}
[2871] Fix | Delete
}
[2872] Fix | Delete
this.expect(')');
[2873] Fix | Delete
return args;
[2874] Fix | Delete
};
[2875] Fix | Delete
Parser.prototype.parseLeftHandSideExpressionAllowCall = function () {
[2876] Fix | Delete
var startToken = this.lookahead;
[2877] Fix | Delete
var maybeAsync = this.matchContextualKeyword('async');
[2878] Fix | Delete
var previousAllowIn = this.context.allowIn;
[2879] Fix | Delete
this.context.allowIn = true;
[2880] Fix | Delete
var expr;
[2881] Fix | Delete
if (this.matchKeyword('super') && this.context.inFunctionBody) {
[2882] Fix | Delete
expr = this.createNode();
[2883] Fix | Delete
this.nextToken();
[2884] Fix | Delete
expr = this.finalize(expr, new Node.Super());
[2885] Fix | Delete
if (!this.match('(') && !this.match('.') && !this.match('[')) {
[2886] Fix | Delete
this.throwUnexpectedToken(this.lookahead);
[2887] Fix | Delete
}
[2888] Fix | Delete
}
[2889] Fix | Delete
else {
[2890] Fix | Delete
expr = this.inheritCoverGrammar(this.matchKeyword('new') ? this.parseNewExpression : this.parsePrimaryExpression);
[2891] Fix | Delete
}
[2892] Fix | Delete
while (true) {
[2893] Fix | Delete
if (this.match('.')) {
[2894] Fix | Delete
this.context.isBindingElement = false;
[2895] Fix | Delete
this.context.isAssignmentTarget = true;
[2896] Fix | Delete
this.expect('.');
[2897] Fix | Delete
var property = this.parseIdentifierName();
[2898] Fix | Delete
expr = this.finalize(this.startNode(startToken), new Node.StaticMemberExpression(expr, property));
[2899] Fix | Delete
}
[2900] Fix | Delete
else if (this.match('(')) {
[2901] Fix | Delete
var asyncArrow = maybeAsync && (startToken.lineNumber === this.lookahead.lineNumber);
[2902] Fix | Delete
this.context.isBindingElement = false;
[2903] Fix | Delete
this.context.isAssignmentTarget = false;
[2904] Fix | Delete
var args = asyncArrow ? this.parseAsyncArguments() : this.parseArguments();
[2905] Fix | Delete
expr = this.finalize(this.startNode(startToken), new Node.CallExpression(expr, args));
[2906] Fix | Delete
if (asyncArrow && this.match('=>')) {
[2907] Fix | Delete
for (var i = 0; i < args.length; ++i) {
[2908] Fix | Delete
this.reinterpretExpressionAsPattern(args[i]);
[2909] Fix | Delete
}
[2910] Fix | Delete
expr = {
[2911] Fix | Delete
type: ArrowParameterPlaceHolder,
[2912] Fix | Delete
params: args,
[2913] Fix | Delete
async: true
[2914] Fix | Delete
};
[2915] Fix | Delete
}
[2916] Fix | Delete
}
[2917] Fix | Delete
else if (this.match('[')) {
[2918] Fix | Delete
this.context.isBindingElement = false;
[2919] Fix | Delete
this.context.isAssignmentTarget = true;
[2920] Fix | Delete
this.expect('[');
[2921] Fix | Delete
var property = this.isolateCoverGrammar(this.parseExpression);
[2922] Fix | Delete
this.expect(']');
[2923] Fix | Delete
expr = this.finalize(this.startNode(startToken), new Node.ComputedMemberExpression(expr, property));
[2924] Fix | Delete
}
[2925] Fix | Delete
else if (this.lookahead.type === 10 /* Template */ && this.lookahead.head) {
[2926] Fix | Delete
var quasi = this.parseTemplateLiteral();
[2927] Fix | Delete
expr = this.finalize(this.startNode(startToken), new Node.TaggedTemplateExpression(expr, quasi));
[2928] Fix | Delete
}
[2929] Fix | Delete
else {
[2930] Fix | Delete
break;
[2931] Fix | Delete
}
[2932] Fix | Delete
}
[2933] Fix | Delete
this.context.allowIn = previousAllowIn;
[2934] Fix | Delete
return expr;
[2935] Fix | Delete
};
[2936] Fix | Delete
Parser.prototype.parseSuper = function () {
[2937] Fix | Delete
var node = this.createNode();
[2938] Fix | Delete
this.expectKeyword('super');
[2939] Fix | Delete
if (!this.match('[') && !this.match('.')) {
[2940] Fix | Delete
this.throwUnexpectedToken(this.lookahead);
[2941] Fix | Delete
}
[2942] Fix | Delete
return this.finalize(node, new Node.Super());
[2943] Fix | Delete
};
[2944] Fix | Delete
Parser.prototype.parseLeftHandSideExpression = function () {
[2945] Fix | Delete
assert_1.assert(this.context.allowIn, 'callee of new expression always allow in keyword.');
[2946] Fix | Delete
var node = this.startNode(this.lookahead);
[2947] Fix | Delete
var expr = (this.matchKeyword('super') && this.context.inFunctionBody) ? this.parseSuper() :
[2948] Fix | Delete
this.inheritCoverGrammar(this.matchKeyword('new') ? this.parseNewExpression : this.parsePrimaryExpression);
[2949] Fix | Delete
while (true) {
[2950] Fix | Delete
if (this.match('[')) {
[2951] Fix | Delete
this.context.isBindingElement = false;
[2952] Fix | Delete
this.context.isAssignmentTarget = true;
[2953] Fix | Delete
this.expect('[');
[2954] Fix | Delete
var property = this.isolateCoverGrammar(this.parseExpression);
[2955] Fix | Delete
this.expect(']');
[2956] Fix | Delete
expr = this.finalize(node, new Node.ComputedMemberExpression(expr, property));
[2957] Fix | Delete
}
[2958] Fix | Delete
else if (this.match('.')) {
[2959] Fix | Delete
this.context.isBindingElement = false;
[2960] Fix | Delete
this.context.isAssignmentTarget = true;
[2961] Fix | Delete
this.expect('.');
[2962] Fix | Delete
var property = this.parseIdentifierName();
[2963] Fix | Delete
expr = this.finalize(node, new Node.StaticMemberExpression(expr, property));
[2964] Fix | Delete
}
[2965] Fix | Delete
else if (this.lookahead.type === 10 /* Template */ && this.lookahead.head) {
[2966] Fix | Delete
var quasi = this.parseTemplateLiteral();
[2967] Fix | Delete
expr = this.finalize(node, new Node.TaggedTemplateExpression(expr, quasi));
[2968] Fix | Delete
}
[2969] Fix | Delete
else {
[2970] Fix | Delete
break;
[2971] Fix | Delete
}
[2972] Fix | Delete
}
[2973] Fix | Delete
return expr;
[2974] Fix | Delete
};
[2975] Fix | Delete
// https://tc39.github.io/ecma262/#sec-update-expressions
[2976] Fix | Delete
Parser.prototype.parseUpdateExpression = function () {
[2977] Fix | Delete
var expr;
[2978] Fix | Delete
var startToken = this.lookahead;
[2979] Fix | Delete
if (this.match('++') || this.match('--')) {
[2980] Fix | Delete
var node = this.startNode(startToken);
[2981] Fix | Delete
var token = this.nextToken();
[2982] Fix | Delete
expr = this.inheritCoverGrammar(this.parseUnaryExpression);
[2983] Fix | Delete
if (this.context.strict && expr.type === syntax_1.Syntax.Identifier && this.scanner.isRestrictedWord(expr.name)) {
[2984] Fix | Delete
this.tolerateError(messages_1.Messages.StrictLHSPrefix);
[2985] Fix | Delete
}
[2986] Fix | Delete
if (!this.context.isAssignmentTarget) {
[2987] Fix | Delete
this.tolerateError(messages_1.Messages.InvalidLHSInAssignment);
[2988] Fix | Delete
}
[2989] Fix | Delete
var prefix = true;
[2990] Fix | Delete
expr = this.finalize(node, new Node.UpdateExpression(token.value, expr, prefix));
[2991] Fix | Delete
this.context.isAssignmentTarget = false;
[2992] Fix | Delete
this.context.isBindingElement = false;
[2993] Fix | Delete
}
[2994] Fix | Delete
else {
[2995] Fix | Delete
expr = this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall);
[2996] Fix | Delete
if (!this.hasLineTerminator && this.lookahead.type === 7 /* Punctuator */) {
[2997] Fix | Delete
if (this.match('++') || this.match('--')) {
[2998] Fix | Delete
if (this.context.strict && expr.type === syntax_1.Syntax.Identifier && this.scanner.isRestrictedWord(expr.name)) {
[2999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function