UNPKG

sequelize

Version:

Multi dialect ORM for Node.JS/io.js

2,206 lines 64.2 kB
{ "type": "File", "start": 0, "end": 450, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 18, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 450, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 18, "column": 0 } }, "sourceType": "module", "body": [ { "type": "VariableDeclaration", "start": 15, "end": 44, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 29 } }, "declarations": [ { "type": "VariableDeclarator", "start": 21, "end": 43, "loc": { "start": { "line": 3, "column": 6 }, "end": { "line": 3, "column": 28 } }, "id": { "type": "Identifier", "start": 21, "end": 25, "loc": { "start": { "line": 3, "column": 6 }, "end": { "line": 3, "column": 10 }, "identifierName": "util" }, "name": "util" }, "init": { "type": "CallExpression", "start": 28, "end": 43, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 28 } }, "callee": { "type": "Identifier", "start": 28, "end": 35, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 20 }, "identifierName": "require" }, "name": "require" }, "arguments": [ { "type": "StringLiteral", "start": 36, "end": 42, "loc": { "start": { "line": 3, "column": 21 }, "end": { "line": 3, "column": 27 } }, "extra": { "rawValue": "util", "raw": "'util'" }, "value": "util" } ] } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 45, "end": 73, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 28 } }, "declarations": [ { "type": "VariableDeclarator", "start": 51, "end": 72, "loc": { "start": { "line": 4, "column": 6 }, "end": { "line": 4, "column": 27 } }, "id": { "type": "Identifier", "start": 51, "end": 52, "loc": { "start": { "line": 4, "column": 6 }, "end": { "line": 4, "column": 7 }, "identifierName": "_" }, "name": "_" }, "init": { "type": "CallExpression", "start": 55, "end": 72, "loc": { "start": { "line": 4, "column": 10 }, "end": { "line": 4, "column": 27 } }, "callee": { "type": "Identifier", "start": 55, "end": 62, "loc": { "start": { "line": 4, "column": 10 }, "end": { "line": 4, "column": 17 }, "identifierName": "require" }, "name": "require" }, "arguments": [ { "type": "StringLiteral", "start": 63, "end": 71, "loc": { "start": { "line": 4, "column": 18 }, "end": { "line": 4, "column": 26 } }, "extra": { "rawValue": "lodash", "raw": "'lodash'" }, "value": "lodash" } ] } } ], "kind": "const", "trailingComments": [ { "type": "CommentBlock", "value": "*\n * like util.inherits, but also copies over static properties\n * @private\n ", "start": 75, "end": 156, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 9, "column": 3 } } } ] }, { "type": "FunctionDeclaration", "start": 157, "end": 350, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 13, "column": 1 } }, "id": { "type": "Identifier", "start": 166, "end": 174, "loc": { "start": { "line": 10, "column": 9 }, "end": { "line": 10, "column": 17 }, "identifierName": "inherits" }, "name": "inherits", "leadingComments": null }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 175, "end": 186, "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 29 }, "identifierName": "constructor" }, "name": "constructor" }, { "type": "Identifier", "start": 188, "end": 204, "loc": { "start": { "line": 10, "column": 31 }, "end": { "line": 10, "column": 47 }, "identifierName": "superConstructor" }, "name": "superConstructor" } ], "body": { "type": "BlockStatement", "start": 206, "end": 350, "loc": { "start": { "line": 10, "column": 49 }, "end": { "line": 13, "column": 1 } }, "body": [ { "type": "ExpressionStatement", "start": 210, "end": 255, "loc": { "start": { "line": 11, "column": 2 }, "end": { "line": 11, "column": 47 } }, "expression": { "type": "CallExpression", "start": 210, "end": 254, "loc": { "start": { "line": 11, "column": 2 }, "end": { "line": 11, "column": 46 } }, "callee": { "type": "MemberExpression", "start": 210, "end": 223, "loc": { "start": { "line": 11, "column": 2 }, "end": { "line": 11, "column": 15 } }, "object": { "type": "Identifier", "start": 210, "end": 214, "loc": { "start": { "line": 11, "column": 2 }, "end": { "line": 11, "column": 6 }, "identifierName": "util" }, "name": "util" }, "property": { "type": "Identifier", "start": 215, "end": 223, "loc": { "start": { "line": 11, "column": 7 }, "end": { "line": 11, "column": 15 }, "identifierName": "inherits" }, "name": "inherits" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 224, "end": 235, "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 27 }, "identifierName": "constructor" }, "name": "constructor" }, { "type": "Identifier", "start": 237, "end": 253, "loc": { "start": { "line": 11, "column": 29 }, "end": { "line": 11, "column": 45 }, "identifierName": "superConstructor" }, "name": "superConstructor" } ] }, "trailingComments": [ { "type": "CommentLine", "value": " Instance (prototype) methods", "start": 256, "end": 287, "loc": { "start": { "line": 11, "column": 48 }, "end": { "line": 11, "column": 79 } } } ] }, { "type": "ExpressionStatement", "start": 290, "end": 330, "loc": { "start": { "line": 12, "column": 2 }, "end": { "line": 12, "column": 42 } }, "expression": { "type": "CallExpression", "start": 290, "end": 329, "loc": { "start": { "line": 12, "column": 2 }, "end": { "line": 12, "column": 41 } }, "callee": { "type": "MemberExpression", "start": 290, "end": 298, "loc": { "start": { "line": 12, "column": 2 }, "end": { "line": 12, "column": 10 } }, "object": { "type": "Identifier", "start": 290, "end": 291, "loc": { "start": { "line": 12, "column": 2 }, "end": { "line": 12, "column": 3 }, "identifierName": "_" }, "name": "_", "leadingComments": null }, "property": { "type": "Identifier", "start": 292, "end": 298, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 10 }, "identifierName": "extend" }, "name": "extend" }, "computed": false, "leadingComments": null }, "arguments": [ { "type": "Identifier", "start": 299, "end": 310, "loc": { "start": { "line": 12, "column": 11 }, "end": { "line": 12, "column": 22 }, "identifierName": "constructor" }, "name": "constructor" }, { "type": "Identifier", "start": 312, "end": 328, "loc": { "start": { "line": 12, "column": 24 }, "end": { "line": 12, "column": 40 }, "identifierName": "superConstructor" }, "name": "superConstructor" } ], "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Instance (prototype) methods", "start": 256, "end": 287, "loc": { "start": { "line": 11, "column": 48 }, "end": { "line": 11, "column": 79 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " Static methods", "start": 331, "end": 348, "loc": { "start": { "line": 12, "column": 43 }, "end": { "line": 12, "column": 60 } } } ] } ], "directives": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * like util.inherits, but also copies over static properties\n * @private\n ", "start": 75, "end": 156, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 9, "column": 3 } } } ] }, { "type": "ExpressionStatement", "start": 352, "end": 378, "loc": { "start": { "line": 15, "column": 0 }, "end": { "line": 15, "column": 26 } }, "expression": { "type": "AssignmentExpression", "start": 352, "end": 377, "loc": { "start": { "line": 15, "column": 0 }, "end": { "line": 15, "column": 25 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 352, "end": 366, "loc": { "start": { "line": 15, "column": 0 }, "end": { "line": 15, "column": 14 } }, "object": { "type": "Identifier", "start": 352, "end": 358, "loc": { "start": { "line": 15, "column": 0 }, "end": { "line": 15, "column": 6 }, "identifierName": "module" }, "name": "module" }, "property": { "type": "Identifier", "start": 359, "end": 366, "loc": { "start": { "line": 15, "column": 7 }, "end": { "line": 15, "column": 14 }, "identifierName": "exports" }, "name": "exports" }, "computed": false }, "right": { "type": "Identifier", "start": 369, "end": 377, "loc": { "start": { "line": 15, "column": 17 }, "end": { "line": 15, "column": 25 }, "identifierName": "inherits" }, "name": "inherits" } } }, { "type": "ExpressionStatement", "start": 379, "end": 414, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 16, "column": 35 } }, "expression": { "type": "AssignmentExpression", "start": 379, "end": 413, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 16, "column": 34 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 379, "end": 402, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 16, "column": 23 } }, "object": { "type": "MemberExpression", "start": 379, "end": 393, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 16, "column": 14 } }, "object": { "type": "Identifier", "start": 379, "end": 385, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 16, "column": 6 }, "identifierName": "module" }, "name": "module" }, "property": { "type": "Identifier", "start": 386, "end": 393, "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 16, "column": 14 }, "identifierName": "exports" }, "name": "exports" }, "computed": false }, "property": { "type": "Identifier", "start": 394, "end": 402, "loc": { "start": { "line": 16, "column": 15 }, "end": { "line": 16, "column": 23 }, "identifierName": "inherits" }, "name": "inherits" }, "computed": false }, "right": { "type": "Identifier", "start": 405, "end": 413, "loc": { "start": { "line": 16, "column": 26 }, "end": { "line": 16, "column": 34 }, "identifierName": "inherits" }, "name": "inherits" } } }, { "type": "ExpressionStatement", "start": 415, "end": 449, "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 17, "column": 34 } }, "expression": { "type": "AssignmentExpression", "start": 415, "end": 448, "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 17, "column": 33 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 415, "end": 437, "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 17, "column": 22 } }, "object": { "type": "MemberExpression", "start": 415, "end": 429, "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 17, "column": 14 } }, "object": { "type": "Identifier", "start": 415, "end": 421, "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 17, "column": 6 }, "identifierName": "module" }, "name": "module" }, "property": { "type": "Identifier", "start": 422, "end": 429, "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 14 }, "identifierName": "exports" }, "name": "exports" }, "computed": false }, "property": { "type": "Identifier", "start": 430, "end": 437, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 22 }, "identifierName": "default" }, "name": "default" }, "computed": false }, "right": { "type": "Identifier", "start": 440, "end": 448, "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 33 }, "identifierName": "inherits" }, "name": "inherits" } } } ], "directives": [ { "type": "Directive", "start": 0, "end": 13, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 13 } }, "value": { "type": "DirectiveLiteral", "start": 0, "end": 12, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 12 } }, "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" } } } ] }, "comments": [ { "type": "CommentBlock", "value": "*\n * like util.inherits, but also copies over static properties\n * @private\n ", "start": 75, "end": 156, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 9, "column": 3 } } }, { "type": "CommentLine", "value": " Instance (prototype) methods", "start": 256, "end": 287, "loc": { "start": { "line": 11, "column": 48 }, "end": { "line": 11, "column": 79 } } }, { "type": "CommentLine", "value": " Static methods", "start": 331, "end": 348, "loc": { "start": { "line": 12, "column": 43 }, "end": { "line": 12, "column": 60 } } } ], "tokens": [ { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "use strict", "start": 0, "end": 12, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 12 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12, "end": 13, "loc": { "start": { "line": 1, "column": 12 }, "end": { "line": 1, "column": 13 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 15, "end": 20, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "util", "start": 21, "end": 25, "loc": { "start": { "line": 3, "column": 6 }, "end": { "line": 3, "column": 10 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 26, "end": 27, "loc": { "start": { "line": 3, "column": 11 }, "end": { "line": 3, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "require", "start": 28, "end": 35, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 20 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 35, "end": 36, "loc": { "start": { "line": 3, "column": 20 }, "end": { "line": 3, "column": 21 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "util", "start": 36, "end": 42, "loc": { "start": { "line": 3, "column": 21 }, "end": { "line": 3, "column": 27 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 42, "end": 43, "loc": { "start": { "line": 3, "column": 27 }, "end": { "line": 3, "column": 28 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 43, "end": 44, "loc": { "start": { "line": 3, "column": 28 }, "end": { "line": 3, "column": 29 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 45, "end": 50, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_", "start": 51, "end": 52, "loc": { "start": { "line": 4, "column": 6 }, "end": { "line": 4, "column": 7 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 53, "end": 54, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "require", "start": 55, "end": 62, "loc": { "start": { "line": 4, "column": 10 }, "end": { "line": 4, "column": 17 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 62, "end": 63, "loc": { "start": { "line": 4, "column": 17 }, "end": { "line": 4, "column": 18 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "lodash", "start": 63, "end": 71, "loc": { "start": { "line": 4, "column": 18 }, "end": { "line": 4, "column": 26 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 71, "end": 72, "loc": { "start": { "line": 4, "column": 26 }, "end": { "line": 4, "column": 27 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 72, "end": 73, "loc": { "start": { "line": 4, "column": 27 }, "end": { "line": 4, "column": 28 } } }, { "type": "CommentBlock", "value": "*\n * like util.inherits, but also copies over static properties\n * @private\n ", "start": 75, "end": 156, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 9, "column": 3 } } }, { "type": { "label": "function", "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "function", "start": 157, "end": 165, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "inherits", "start": 166, "end": 174, "loc": { "start": { "line": 10, "column": 9 }, "end": { "line": 10, "column": 17 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 174, "end": 175, "loc": { "start": { "line": 10, "column": 17 }, "end": { "line": 10, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 175, "end": 186, "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 29 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 186, "end": 187, "loc": { "start": { "line": 10, "column": 29 }, "end": { "line": 10, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "superConstructor", "start": 188, "end": 204, "loc": { "start": { "line": 10, "column": 31 }, "end": { "line": 10, "column": 47 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 204, "end": 205, "loc": { "start": { "line": 10, "column": 47 }, "end": { "line": 10, "column": 48 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 206, "end": 207, "loc": { "start": { "line": 10, "column": 49 }, "end": { "line": 10, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "util", "start": 210, "end": 214, "loc": { "start": { "line": 11, "column": 2 }, "end": { "line": 11, "column": 6 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 214, "end": 215, "loc": { "start": { "line": 11, "column": 6 }, "end": { "line": 11, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "inherits", "start": 215, "end": 223, "loc": { "start": { "line": 11, "column": 7 }, "end": { "line": 11, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 223, "end": 224, "loc": { "start": { "line": 11, "column": 15 }, "end": { "line": 11, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 224, "end": 235, "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 27 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 235, "end": 236, "loc": { "start": { "line": 11, "column": 27 }, "end": { "line": 11, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "superConstructor", "start": 237, "end": 253, "loc": { "start": { "line": 11, "column": 29 }, "end": { "line": 11, "column": 45 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 253, "end": 254, "loc": { "start": { "line": 11, "column": 45 }, "end": { "line": 11, "column": 46 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 254, "end": 255, "loc": { "start": { "line": 11, "column": 46 }, "end": { "line": 11, "column": 47 } } }, { "type": "CommentLine", "value": " Instance (prototype) methods", "start": 256, "end": 287, "loc": { "start": { "line": 11, "column": 48 }, "end": { "line": 11, "column": 79 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_", "start": 290, "end": 291, "loc": { "start": { "line": 12, "column": 2 }, "end": { "line": 12, "column": 3 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 291, "end": 292, "loc": { "start": { "line": 12, "column": 3 }, "end": { "line": 12, "column": 4 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "extend", "start": 292, "end": 298, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 298, "end": 299, "loc": { "start": { "line": 12, "column": 10 }, "end": { "line": 12, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 299, "end": 310, "loc": { "start": { "line": 12, "column": 11 }, "end": { "line": 12, "column": 22 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 310, "end": 311, "loc": { "start": { "line": 12, "column": 22 }, "end": { "line": 12, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "sta