New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

decaffeinate-parser

Package Overview
Dependencies
Maintainers
1
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decaffeinate-parser - npm Package Compare versions

Comparing version 19.0.0 to 19.1.0

118

dist/nodes.d.ts
import SourceToken from 'coffee-lex/dist/SourceToken';
import ParseContext from './util/ParseContext';
export declare type ChildField = Node | Array<Node | null> | null;
export declare abstract class Node {

@@ -14,3 +13,8 @@ readonly type: string;

getChildren(): Array<Node>;
abstract getChildFields(): Array<ChildField>;
getChildFields(): Array<Node | Array<Node | null> | null>;
/**
* Return the names of the properties container child nodes, in traversal
* order.
*/
abstract getChildNames(): Array<string>;
}

@@ -20,3 +24,3 @@ export declare class Identifier extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, data: string);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -28,3 +32,3 @@ export declare class Bool extends Node {

static false(): Bool;
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -34,3 +38,3 @@ export declare class JavaScript extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, data: string);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -40,3 +44,3 @@ export declare class Number extends Node {

constructor(type: string, line: number, column: number, start: number, end: number, raw: string, data: number);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -56,7 +60,7 @@ export declare class Float extends Number {

constructor(line: number, column: number, start: number, end: number, raw: string, expression: Node, member: Identifier);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}
export declare class ProtoMemberAccessOp extends AccessOp {
constructor(line: number, column: number, start: number, end: number, raw: string, expression: Node);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -66,7 +70,7 @@ export declare class SoakedMemberAccessOp extends AccessOp {

constructor(line: number, column: number, start: number, end: number, raw: string, expression: Node, member: Identifier);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}
export declare class SoakedProtoMemberAccessOp extends AccessOp {
constructor(line: number, column: number, start: number, end: number, raw: string, expression: Node);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -76,3 +80,3 @@ export declare class DynamicMemberAccessOp extends AccessOp {

constructor(line: number, column: number, start: number, end: number, raw: string, expression: Node, indexingExpr: Node);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -82,3 +86,3 @@ export declare class SoakedDynamicMemberAccessOp extends AccessOp {

constructor(line: number, column: number, start: number, end: number, raw: string, expression: Node, indexingExpr: Node);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -88,3 +92,3 @@ export declare class Quasi extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, data: string);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -95,3 +99,3 @@ export declare class String extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, quasis: Array<Quasi>, expressions: Array<Node | null>);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -101,3 +105,3 @@ export declare class ObjectInitialiser extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, members: Array<ObjectInitialiserMember | AssignOp>);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -108,3 +112,3 @@ export declare class ObjectInitialiserMember extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, key: Node, expression: Node | null);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -117,3 +121,3 @@ export declare class Conditional extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, condition: Node, consequent: Block | null, alternate: Block | null, isUnless: boolean);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -124,3 +128,3 @@ export declare class Program extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, body: Block | null, context: ParseContext);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -131,3 +135,3 @@ export declare class Block extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, statements: Array<Node>, inline: boolean);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
withInline(inline: boolean): Block;

@@ -138,3 +142,3 @@ }

constructor(line: number, column: number, start: number, end: number, raw: string, body: Node | null);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -147,3 +151,3 @@ export declare class While extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, condition: Node, guard: Node | null, body: Node | null, isUntil: boolean);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -161,3 +165,3 @@ export declare abstract class For extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, keyAssignee: Node | null, valAssignee: Node | null, target: Node, filter: Node | null, body: Block | null, isOwn: boolean);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -167,3 +171,3 @@ export declare class ForIn extends For {

constructor(line: number, column: number, start: number, end: number, raw: string, keyAssignee: Node | null, valAssignee: Node | null, target: Node, filter: Node | null, body: Block | null, step: Node | null);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -175,3 +179,3 @@ export declare class Switch extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, expression: Node | null, cases: Array<SwitchCase>, alternate: Block | null);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -182,3 +186,3 @@ export declare class SwitchCase extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, conditions: Array<Node>, consequent: Block | null);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -202,11 +206,11 @@ export declare class RegexFlags {

constructor(line: number, column: number, start: number, end: number, raw: string, quasis: Array<Quasi>, expressions: Array<Node | null>, flags: RegexFlags);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}
export declare class Null extends Node {
constructor(line: number, column: number, start: number, end: number, raw: string);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}
export declare class Undefined extends Node {
constructor(line: number, column: number, start: number, end: number, raw: string);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -217,3 +221,3 @@ export declare class Regex extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, pattern: string, flags: RegexFlags);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -223,3 +227,3 @@ export declare class Return extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, expression: Node | null);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -229,7 +233,7 @@ export declare class YieldReturn extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, expression: Node | null);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}
export declare class This extends Node {
constructor(line: number, column: number, start: number, end: number, raw: string);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -239,3 +243,3 @@ export declare class Throw extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, expression: Node | null);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -245,3 +249,3 @@ export declare class ArrayInitialiser extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, members: Array<Node>);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -252,3 +256,3 @@ export declare class DefaultParam extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, param: Node, defaultValue: Node);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -258,15 +262,15 @@ export declare class Rest extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, expression: Node);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}
export declare class Expansion extends Node {
constructor(line: number, column: number, start: number, end: number, raw: string);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}
export declare class Break extends Node {
constructor(line: number, column: number, start: number, end: number, raw: string);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}
export declare class Continue extends Node {
constructor(line: number, column: number, start: number, end: number, raw: string);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -276,3 +280,3 @@ export declare class Spread extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, expression: Node);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -284,3 +288,3 @@ export declare class Range extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, left: Node, right: Node, isInclusive: boolean);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -291,3 +295,3 @@ export declare abstract class BinaryOp extends Node {

constructor(type: string, line: number, column: number, start: number, end: number, raw: string, left: Node, right: Node);
getChildFields(): Array<ChildField>;
getChildNames(): Array<string>;
}

@@ -297,3 +301,3 @@ export declare abstract class UnaryOp extends Node {

constructor(type: string, line: number, column: number, start: number, end: number, raw: string, expression: Node);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -304,3 +308,3 @@ export declare class ChainedComparisonOp extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, operands: Array<Node>, operators: Array<OperatorInfo>);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -417,3 +421,3 @@ export declare class OperatorInfo {

constructor(type: string, line: number, column: number, start: number, end: number, raw: string, assignee: Node, expression: Node);
getChildFields(): Array<ChildField>;
getChildNames(): Array<string>;
}

@@ -460,3 +464,3 @@ export declare class AssignOp extends BaseAssignOp {

constructor(line: number, column: number, start: number, end: number, raw: string, expression: Node, left: Node | null, right: Node | null, isInclusive: boolean);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -469,3 +473,3 @@ export declare class SoakedSlice extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, expression: Node, left: Node | null, right: Node | null, isInclusive: boolean);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -476,3 +480,3 @@ export declare abstract class BaseFunction extends Node {

constructor(type: string, line: number, column: number, start: number, end: number, raw: string, parameters: Array<Node>, body: Block | null);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
abstract withParameters(parameters: Array<Node>): BaseFunction;

@@ -502,3 +506,3 @@ }

constructor(line: number, column: number, start: number, end: number, raw: string, body: Node | null, catchAssignee: Node | null, catchBody: Node | null, finallyBody: Node | null);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -519,3 +523,3 @@ export declare class Constructor extends BaseAssignOp {

constructor(line: number, column: number, start: number, end: number, raw: string, nameAssignee: Node | null, name: Node | null, body: Block | null, boundMembers: Array<ClassProtoAssignOp>, parent: Node | null, ctor: Constructor | null);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -526,3 +530,3 @@ export declare class FunctionApplication extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, fn: Node, args: Array<Node>);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -533,11 +537,11 @@ export declare class SoakedFunctionApplication extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, fn: Node, args: Array<Node>);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}
export declare class Super extends Node {
constructor(line: number, column: number, start: number, end: number, raw: string);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}
export declare class BareSuperFunctionApplication extends Node {
constructor(line: number, column: number, start: number, end: number, raw: string);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -548,3 +552,3 @@ export declare class NewOp extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, ctor: Node, args: Array<Node>);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -555,3 +559,3 @@ export declare class SoakedNewOp extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, ctor: Node, args: Array<Node>);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -561,3 +565,3 @@ export declare class DoOp extends Node {

constructor(line: number, column: number, start: number, end: number, raw: string, expression: Node);
getChildFields(): Array<ChildField>;
getChildNames(): Array<keyof this>;
}

@@ -36,2 +36,6 @@ "use strict";

};
Node.prototype.getChildFields = function () {
var _this = this;
return this.getChildNames().map(function (name) { return _this[name]; });
};
return Node;

@@ -47,3 +51,3 @@ }());

}
Identifier.prototype.getChildFields = function () {
Identifier.prototype.getChildNames = function () {
return [];

@@ -67,3 +71,3 @@ };

};
Bool.prototype.getChildFields = function () {
Bool.prototype.getChildNames = function () {
return [];

@@ -81,3 +85,3 @@ };

}
JavaScript.prototype.getChildFields = function () {
JavaScript.prototype.getChildNames = function () {
return [];

@@ -95,3 +99,3 @@ };

}
Number.prototype.getChildFields = function () {
Number.prototype.getChildNames = function () {
return [];

@@ -135,4 +139,4 @@ };

}
MemberAccessOp.prototype.getChildFields = function () {
return [this.expression, this.member];
MemberAccessOp.prototype.getChildNames = function () {
return ['expression', 'member'];
};

@@ -147,4 +151,4 @@ return MemberAccessOp;

}
ProtoMemberAccessOp.prototype.getChildFields = function () {
return [this.expression];
ProtoMemberAccessOp.prototype.getChildNames = function () {
return ['expression'];
};

@@ -161,4 +165,4 @@ return ProtoMemberAccessOp;

}
SoakedMemberAccessOp.prototype.getChildFields = function () {
return [this.expression, this.member];
SoakedMemberAccessOp.prototype.getChildNames = function () {
return ['expression', 'member'];
};

@@ -173,4 +177,4 @@ return SoakedMemberAccessOp;

}
SoakedProtoMemberAccessOp.prototype.getChildFields = function () {
return [this.expression];
SoakedProtoMemberAccessOp.prototype.getChildNames = function () {
return ['expression'];
};

@@ -187,4 +191,4 @@ return SoakedProtoMemberAccessOp;

}
DynamicMemberAccessOp.prototype.getChildFields = function () {
return [this.expression, this.indexingExpr];
DynamicMemberAccessOp.prototype.getChildNames = function () {
return ['expression', 'indexingExpr'];
};

@@ -201,4 +205,4 @@ return DynamicMemberAccessOp;

}
SoakedDynamicMemberAccessOp.prototype.getChildFields = function () {
return [this.expression, this.indexingExpr];
SoakedDynamicMemberAccessOp.prototype.getChildNames = function () {
return ['expression', 'indexingExpr'];
};

@@ -215,3 +219,3 @@ return SoakedDynamicMemberAccessOp;

}
Quasi.prototype.getChildFields = function () {
Quasi.prototype.getChildNames = function () {
return [];

@@ -230,4 +234,4 @@ };

}
String.prototype.getChildFields = function () {
return [this.quasis, this.expressions];
String.prototype.getChildNames = function () {
return ['quasis', 'expressions'];
};

@@ -244,4 +248,4 @@ return String;

}
ObjectInitialiser.prototype.getChildFields = function () {
return [this.members];
ObjectInitialiser.prototype.getChildNames = function () {
return ['members'];
};

@@ -261,4 +265,4 @@ return ObjectInitialiser;

}
ObjectInitialiserMember.prototype.getChildFields = function () {
return [this.key, this.expression];
ObjectInitialiserMember.prototype.getChildNames = function () {
return ['key', 'expression'];
};

@@ -278,4 +282,4 @@ return ObjectInitialiserMember;

}
Conditional.prototype.getChildFields = function () {
return [this.condition, this.consequent, this.alternate];
Conditional.prototype.getChildNames = function () {
return ['condition', 'consequent', 'alternate'];
};

@@ -293,4 +297,4 @@ return Conditional;

}
Program.prototype.getChildFields = function () {
return [this.body];
Program.prototype.getChildNames = function () {
return ['body'];
};

@@ -308,4 +312,4 @@ return Program;

}
Block.prototype.getChildFields = function () {
return [this.statements];
Block.prototype.getChildNames = function () {
return ['statements'];
};

@@ -325,4 +329,4 @@ Block.prototype.withInline = function (inline) {

}
Loop.prototype.getChildFields = function () {
return [this.body];
Loop.prototype.getChildNames = function () {
return ['body'];
};

@@ -342,4 +346,4 @@ return Loop;

}
While.prototype.getChildFields = function () {
return [this.condition, this.guard, this.body];
While.prototype.getChildNames = function () {
return ['condition', 'guard', 'body'];
};

@@ -370,4 +374,4 @@ return While;

}
ForOf.prototype.getChildFields = function () {
return [this.keyAssignee, this.valAssignee, this.target, this.filter, this.body];
ForOf.prototype.getChildNames = function () {
return ['keyAssignee', 'valAssignee', 'target', 'filter', 'body'];
};

@@ -384,4 +388,4 @@ return ForOf;

}
ForIn.prototype.getChildFields = function () {
return [this.keyAssignee, this.valAssignee, this.target, this.step, this.filter, this.body];
ForIn.prototype.getChildNames = function () {
return ['keyAssignee', 'valAssignee', 'target', 'step', 'filter', 'body'];
};

@@ -400,4 +404,4 @@ return ForIn;

}
Switch.prototype.getChildFields = function () {
return [this.expression, this.cases, this.alternate];
Switch.prototype.getChildNames = function () {
return ['expression', 'cases', 'alternate'];
};

@@ -415,4 +419,4 @@ return Switch;

}
SwitchCase.prototype.getChildFields = function () {
return [this.conditions, this.consequent];
SwitchCase.prototype.getChildNames = function () {
return ['conditions', 'consequent'];
};

@@ -470,4 +474,4 @@ return SwitchCase;

}
Heregex.prototype.getChildFields = function () {
return [this.quasis, this.expressions];
Heregex.prototype.getChildNames = function () {
return ['quasis', 'expressions'];
};

@@ -482,3 +486,3 @@ return Heregex;

}
Null.prototype.getChildFields = function () {
Null.prototype.getChildNames = function () {
return [];

@@ -494,3 +498,3 @@ };

}
Undefined.prototype.getChildFields = function () {
Undefined.prototype.getChildNames = function () {
return [];

@@ -509,3 +513,3 @@ };

}
Regex.prototype.getChildFields = function () {
Regex.prototype.getChildNames = function () {
return [];

@@ -523,4 +527,4 @@ };

}
Return.prototype.getChildFields = function () {
return [this.expression];
Return.prototype.getChildNames = function () {
return ['expression'];
};

@@ -537,4 +541,4 @@ return Return;

}
YieldReturn.prototype.getChildFields = function () {
return [this.expression];
YieldReturn.prototype.getChildNames = function () {
return ['expression'];
};

@@ -549,3 +553,3 @@ return YieldReturn;

}
This.prototype.getChildFields = function () {
This.prototype.getChildNames = function () {
return [];

@@ -563,4 +567,4 @@ };

}
Throw.prototype.getChildFields = function () {
return [this.expression];
Throw.prototype.getChildNames = function () {
return ['expression'];
};

@@ -577,4 +581,4 @@ return Throw;

}
ArrayInitialiser.prototype.getChildFields = function () {
return [this.members];
ArrayInitialiser.prototype.getChildNames = function () {
return ['members'];
};

@@ -592,4 +596,4 @@ return ArrayInitialiser;

}
DefaultParam.prototype.getChildFields = function () {
return [this.param, this["default"]];
DefaultParam.prototype.getChildNames = function () {
return ['param', 'default'];
};

@@ -606,4 +610,4 @@ return DefaultParam;

}
Rest.prototype.getChildFields = function () {
return [this.expression];
Rest.prototype.getChildNames = function () {
return ['expression'];
};

@@ -618,3 +622,3 @@ return Rest;

}
Expansion.prototype.getChildFields = function () {
Expansion.prototype.getChildNames = function () {
return [];

@@ -630,3 +634,3 @@ };

}
Break.prototype.getChildFields = function () {
Break.prototype.getChildNames = function () {
return [];

@@ -642,3 +646,3 @@ };

}
Continue.prototype.getChildFields = function () {
Continue.prototype.getChildNames = function () {
return [];

@@ -656,4 +660,4 @@ };

}
Spread.prototype.getChildFields = function () {
return [this.expression];
Spread.prototype.getChildNames = function () {
return ['expression'];
};

@@ -672,4 +676,4 @@ return Spread;

}
Range.prototype.getChildFields = function () {
return [this.left, this.right];
Range.prototype.getChildNames = function () {
return ['left', 'right'];
};

@@ -687,4 +691,4 @@ return Range;

}
BinaryOp.prototype.getChildFields = function () {
return [this.left, this.right];
BinaryOp.prototype.getChildNames = function () {
return ['left', 'right'];
};

@@ -701,4 +705,4 @@ return BinaryOp;

}
UnaryOp.prototype.getChildFields = function () {
return [this.expression];
UnaryOp.prototype.getChildNames = function () {
return ['expression'];
};

@@ -716,4 +720,4 @@ return UnaryOp;

}
ChainedComparisonOp.prototype.getChildFields = function () {
return [this.operands];
ChainedComparisonOp.prototype.getChildNames = function () {
return ['operands'];
};

@@ -1005,4 +1009,4 @@ return ChainedComparisonOp;

}
BaseAssignOp.prototype.getChildFields = function () {
return [this.assignee, this.expression];
BaseAssignOp.prototype.getChildNames = function () {
return ['assignee', 'expression'];
};

@@ -1111,4 +1115,4 @@ return BaseAssignOp;

}
Slice.prototype.getChildFields = function () {
return [this.expression, this.left, this.right];
Slice.prototype.getChildNames = function () {
return ['expression', 'left', 'right'];
};

@@ -1128,4 +1132,4 @@ return Slice;

}
SoakedSlice.prototype.getChildFields = function () {
return [this.expression, this.left, this.right];
SoakedSlice.prototype.getChildNames = function () {
return ['expression', 'left', 'right'];
};

@@ -1143,4 +1147,4 @@ return SoakedSlice;

}
BaseFunction.prototype.getChildFields = function () {
return [this.parameters, this.body];
BaseFunction.prototype.getChildNames = function () {
return ['parameters', 'body'];
};

@@ -1204,4 +1208,4 @@ return BaseFunction;

}
Try.prototype.getChildFields = function () {
return [this.body, this.catchAssignee, this.catchBody, this.finallyBody];
Try.prototype.getChildNames = function () {
return ['body', 'catchAssignee', 'catchBody', 'finallyBody'];
};

@@ -1239,4 +1243,4 @@ return Try;

}
Class.prototype.getChildFields = function () {
return [this.nameAssignee, this.parent, this.body];
Class.prototype.getChildNames = function () {
return ['nameAssignee', 'parent', 'body'];
};

@@ -1254,4 +1258,4 @@ return Class;

}
FunctionApplication.prototype.getChildFields = function () {
return [this["function"], this.arguments];
FunctionApplication.prototype.getChildNames = function () {
return ['function', 'arguments'];
};

@@ -1269,4 +1273,4 @@ return FunctionApplication;

}
SoakedFunctionApplication.prototype.getChildFields = function () {
return [this["function"], this.arguments];
SoakedFunctionApplication.prototype.getChildNames = function () {
return ['function', 'arguments'];
};

@@ -1281,3 +1285,3 @@ return SoakedFunctionApplication;

}
Super.prototype.getChildFields = function () {
Super.prototype.getChildNames = function () {
return [];

@@ -1293,3 +1297,3 @@ };

}
BareSuperFunctionApplication.prototype.getChildFields = function () {
BareSuperFunctionApplication.prototype.getChildNames = function () {
return [];

@@ -1308,4 +1312,4 @@ };

}
NewOp.prototype.getChildFields = function () {
return [this.ctor, this.arguments];
NewOp.prototype.getChildNames = function () {
return ['ctor', 'arguments'];
};

@@ -1323,4 +1327,4 @@ return NewOp;

}
SoakedNewOp.prototype.getChildFields = function () {
return [this.ctor, this.arguments];
SoakedNewOp.prototype.getChildNames = function () {
return ['ctor', 'arguments'];
};

@@ -1337,4 +1341,4 @@ return SoakedNewOp;

}
DoOp.prototype.getChildFields = function () {
return [this.expression];
DoOp.prototype.getChildNames = function () {
return ['expression'];
};

@@ -1341,0 +1345,0 @@ return DoOp;

{
"name": "decaffeinate-parser",
"description": "A better AST for CoffeeScript, inspired by CoffeeScriptRedux.",
"version": "19.0.0",
"version": "19.1.0",
"main": "dist/parser.js",

@@ -6,0 +6,0 @@ "module": "dist/parser.mjs",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc