{ "type": "File", "start": 0, "end": 1491, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 63, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 1491, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 63, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 23, "end": 68, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 45 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 32, "end": 43, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 20 } }, "imported": { "type": "Identifier", "start": 32, "end": 43, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 20 }, "identifierName": "Application" }, "name": "Application", "leadingComments": null }, "local": { "type": "Identifier", "start": 32, "end": 43, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 20 }, "identifierName": "Application" }, "name": "Application" }, "leadingComments": null } ], "source": { "type": "StringLiteral", "start": 51, "end": 67, "loc": { "start": { "line": 2, "column": 28 }, "end": { "line": 2, "column": 44 } }, "extra": { "rawValue": "../application", "raw": "\"../application\"" }, "value": "../application" }, "leadingComments": [ { "type": "CommentBlock", "value": " typehints:start ", "start": 0, "end": 21, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 21 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": " typehints:end ", "start": 70, "end": 89, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 19 } } } ] }, { "type": "ExportNamedDeclaration", "start": 93, "end": 140, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 47 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 100, "end": 140, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 47 } }, "declarations": [ { "type": "VariableDeclarator", "start": 106, "end": 139, "loc": { "start": { "line": 5, "column": 13 }, "end": { "line": 5, "column": 46 } }, "id": { "type": "Identifier", "start": 106, "end": 120, "loc": { "start": { "line": 5, "column": 13 }, "end": { "line": 5, "column": 27 }, "identifierName": "FILE_NOT_FOUND" }, "name": "FILE_NOT_FOUND", "leadingComments": null }, "init": { "type": "StringLiteral", "start": 123, "end": 139, "loc": { "start": { "line": 5, "column": 30 }, "end": { "line": 5, "column": 46 } }, "extra": { "rawValue": "file_not_found", "raw": "\"file_not_found\"" }, "value": "file_not_found" }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentBlock", "value": " typehints:end ", "start": 70, "end": 89, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 19 } } } ], "trailingComments": [] }, "leadingComments": [ { "type": "CommentBlock", "value": " typehints:end ", "start": 70, "end": 89, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 19 } } } ] }, { "type": "ExportNamedDeclaration", "start": 144, "end": 1489, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 62, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 151, "end": 1489, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 62, "column": 1 } }, "id": { "type": "Identifier", "start": 157, "end": 173, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 29 }, "identifierName": "StorageInterface" }, "name": "StorageInterface" }, "superClass": null, "body": { "type": "ClassBody", "start": 174, "end": 1489, "loc": { "start": { "line": 7, "column": 30 }, "end": { "line": 62, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 181, "end": 267, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 11, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 181, "end": 192, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 193, "end": 196, "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 19 }, "identifierName": "app" }, "name": "app" } ], "body": { "type": "BlockStatement", "start": 198, "end": 267, "loc": { "start": { "line": 8, "column": 21 }, "end": { "line": 11, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 245, "end": 260, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 23 } }, "expression": { "type": "AssignmentExpression", "start": 245, "end": 259, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 22 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 245, "end": 253, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 16 } }, "object": { "type": "ThisExpression", "start": 245, "end": 249, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 250, "end": 253, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 16 }, "identifierName": "app" }, "name": "app" }, "computed": false, "leadingComments": null }, "right": { "type": "Identifier", "start": 256, "end": 259, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 22 }, "identifierName": "app" }, "name": "app" }, "leadingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {Application} ", "start": 209, "end": 235, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 34 } } } ] } ], "directives": [], "trailingComments": null }, "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Initializes the storage\r\n * @returns {Promise}\r\n ", "start": 275, "end": 352, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 16, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 358, "end": 432, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 20, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 358, "end": 368, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 14 }, "identifierName": "initialize" }, "name": "initialize", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 371, "end": 432, "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 20, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 382, "end": 391, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 17 } }, "expression": { "type": "Identifier", "start": 382, "end": 390, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 16 }, "identifierName": "abstract" }, "name": "abstract" } }, { "type": "ReturnStatement", "start": 401, "end": 425, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 32 } }, "argument": { "type": "CallExpression", "start": 408, "end": 424, "loc": { "start": { "line": 19, "column": 15 }, "end": { "line": 19, "column": 31 } }, "callee": { "type": "MemberExpression", "start": 408, "end": 422, "loc": { "start": { "line": 19, "column": 15 }, "end": { "line": 19, "column": 29 } }, "object": { "type": "Identifier", "start": 408, "end": 415, "loc": { "start": { "line": 19, "column": 15 }, "end": { "line": 19, "column": 22 }, "identifierName": "Promise" }, "name": "Promise" }, "property": { "type": "Identifier", "start": 416, "end": 422, "loc": { "start": { "line": 19, "column": 23 }, "end": { "line": 19, "column": 29 }, "identifierName": "reject" }, "name": "reject" }, "computed": false }, "arguments": [] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Initializes the storage\r\n * @returns {Promise}\r\n ", "start": 275, "end": 352, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 16, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Writes a string to a file asynchronously\r\n * @param {string} filename\r\n * @param {string} contents\r\n * @returns {Promise}\r\n ", "start": 440, "end": 600, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 27, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 606, "end": 702, "loc": { "start": { "line": 28, "column": 4 }, "end": { "line": 31, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 606, "end": 620, "loc": { "start": { "line": 28, "column": 4 }, "end": { "line": 28, "column": 18 }, "identifierName": "writeFileAsync" }, "name": "writeFileAsync", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 621, "end": 629, "loc": { "start": { "line": 28, "column": 19 }, "end": { "line": 28, "column": 27 }, "identifierName": "filename" }, "name": "filename" }, { "type": "Identifier", "start": 631, "end": 639, "loc": { "start": { "line": 28, "column": 29 }, "end": { "line": 28, "column": 37 }, "identifierName": "contents" }, "name": "contents" } ], "body": { "type": "BlockStatement", "start": 641, "end": 702, "loc": { "start": { "line": 28, "column": 39 }, "end": { "line": 31, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 652, "end": 661, "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 29, "column": 17 } }, "expression": { "type": "Identifier", "start": 652, "end": 660, "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 29, "column": 16 }, "identifierName": "abstract" }, "name": "abstract" } }, { "type": "ReturnStatement", "start": 671, "end": 695, "loc": { "start": { "line": 30, "column": 8 }, "end": { "line": 30, "column": 32 } }, "argument": { "type": "CallExpression", "start": 678, "end": 694, "loc": { "start": { "line": 30, "column": 15 }, "end": { "line": 30, "column": 31 } }, "callee": { "type": "MemberExpression", "start": 678, "end": 692, "loc": { "start": { "line": 30, "column": 15 }, "end": { "line": 30, "column": 29 } }, "object": { "type": "Identifier", "start": 678, "end": 685, "loc": { "start": { "line": 30, "column": 15 }, "end": { "line": 30, "column": 22 }, "identifierName": "Promise" }, "name": "Promise" }, "property": { "type": "Identifier", "start": 686, "end": 692, "loc": { "start": { "line": 30, "column": 23 }, "end": { "line": 30, "column": 29 }, "identifierName": "reject" }, "name": "reject" }, "computed": false }, "arguments": [] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Writes a string to a file asynchronously\r\n * @param {string} filename\r\n * @param {string} contents\r\n * @returns {Promise}\r\n ", "start": 440, "end": 600, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 27, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Tries to write a file synchronously, used in unload handler\r\n * @param {string} filename\r\n * @param {string} contents\r\n ", "start": 710, "end": 856, "loc": { "start": { "line": 33, "column": 4 }, "end": { "line": 37, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 862, "end": 957, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 41, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 862, "end": 886, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 38, "column": 28 }, "identifierName": "writeFileSyncIfSupported" }, "name": "writeFileSyncIfSupported", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 887, "end": 895, "loc": { "start": { "line": 38, "column": 29 }, "end": { "line": 38, "column": 37 }, "identifierName": "filename" }, "name": "filename" }, { "type": "Identifier", "start": 897, "end": 905, "loc": { "start": { "line": 38, "column": 39 }, "end": { "line": 38, "column": 47 }, "identifierName": "contents" }, "name": "contents" } ], "body": { "type": "BlockStatement", "start": 907, "end": 957, "loc": { "start": { "line": 38, "column": 49 }, "end": { "line": 41, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 918, "end": 927, "loc": { "start": { "line": 39, "column": 8 }, "end": { "line": 39, "column": 17 } }, "expression": { "type": "Identifier", "start": 918, "end": 926, "loc": { "start": { "line": 39, "column": 8 }, "end": { "line": 39, "column": 16 }, "identifierName": "abstract" }, "name": "abstract" } }, { "type": "ReturnStatement", "start": 937, "end": 950, "loc": { "start": { "line": 40, "column": 8 }, "end": { "line": 40, "column": 21 } }, "argument": { "type": "BooleanLiteral", "start": 944, "end": 949, "loc": { "start": { "line": 40, "column": 15 }, "end": { "line": 40, "column": 20 } }, "value": false } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Tries to write a file synchronously, used in unload handler\r\n * @param {string} filename\r\n * @param {string} contents\r\n ", "start": 710, "end": 856, "loc": { "start": { "line": 33, "column": 4 }, "end": { "line": 37, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Reads a string asynchronously. Returns Promise if file was not found.\r\n * @param {string} filename\r\n * @returns {Promise}\r\n ", "start": 965, "end": 1139, "loc": { "start": { "line": 43, "column": 4 }, "end": { "line": 47, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 1145, "end": 1230, "loc": { "start": { "line": 48, "column": 4 }, "end": { "line": 51, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1145, "end": 1158, "loc": { "start": { "line": 48, "column": 4 }, "end": { "line": 48, "column": 17 }, "identifierName": "readFileAsync" }, "name": "readFileAsync", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1159, "end": 1167, "loc": { "start": { "line": 48, "column": 18 }, "end": { "line": 48, "column": 26 }, "identifierName": "filename" }, "name": "filename" } ], "body": { "type": "BlockStatement", "start": 1169, "end": 1230, "loc": { "start": { "line": 48, "column": 28 }, "end": { "line": 51, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 1180, "end": 1189, "loc": { "start": { "line": 49, "column": 8 }, "end": { "line": 49, "column": 17 } }, "expression": { "type": "Identifier", "start": 1180, "end": 1188, "loc": { "start": { "line": 49, "column": 8 }, "end": { "line": 49, "column": 16 }, "identifierName": "abstract" }, "name": "abstract" } }, { "type": "ReturnStatement", "start": 1199, "end": 1223, "loc": { "start": { "line": 50, "column": 8 }, "end": { "line": 50, "column": 32 } }, "argument": { "type": "CallExpression", "start": 1206, "end": 1222, "loc": { "start": { "line": 50, "column": 15 }, "end": { "line": 50, "column": 31 } }, "callee": { "type": "MemberExpression", "start": 1206, "end": 1220, "loc": { "start": { "line": 50, "column": 15 }, "end": { "line": 50, "column": 29 } }, "object": { "type": "Identifier", "start": 1206, "end": 1213, "loc": { "start": { "line": 50, "column": 15 }, "end": { "line": 50, "column": 22 }, "identifierName": "Promise" }, "name": "Promise" }, "property": { "type": "Identifier", "start": 1214, "end": 1220, "loc": { "start": { "line": 50, "column": 23 }, "end": { "line": 50, "column": 29 }, "identifierName": "reject" }, "name": "reject" }, "computed": false }, "arguments": [] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Reads a string asynchronously. Returns Promise if file was not found.\r\n * @param {string} filename\r\n * @returns {Promise}\r\n ", "start": 965, "end": 1139, "loc": { "start": { "line": 43, "column": 4 }, "end": { "line": 47, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Tries to delete a file\r\n * @param {string} filename\r\n * @returns {Promise}\r\n ", "start": 1238, "end": 1347, "loc": { "start": { "line": 53, "column": 4 }, "end": { "line": 57, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 1353, "end": 1486, "loc": { "start": { "line": 58, "column": 4 }, "end": { "line": 61, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1353, "end": 1368, "loc": { "start": { "line": 58, "column": 4 }, "end": { "line": 58, "column": 19 }, "identifierName": "deleteFileAsync" }, "name": "deleteFileAsync", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1369, "end": 1377, "loc": { "start": { "line": 58, "column": 20 }, "end": { "line": 58, "column": 28 }, "identifierName": "filename" }, "name": "filename" } ], "body": { "type": "BlockStatement", "start": 1379, "end": 1486, "loc": { "start": { "line": 58, "column": 30 }, "end": { "line": 61, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 1455, "end": 1479, "loc": { "start": { "line": 60, "column": 8 }, "end": { "line": 60, "column": 32 } }, "argument": { "type": "CallExpression", "start": 1462, "end": 1478, "loc": { "start": { "line": 60, "column": 15 }, "end": { "line": 60, "column": 31 } }, "callee": { "type": "MemberExpression", "start": 1462, "end": 1476, "loc": { "start": { "line": 60, "column": 15 }, "end": { "line": 60, "column": 29 } }, "object": { "type": "Identifier", "start": 1462, "end": 1469, "loc": { "start": { "line": 60, "column": 15 }, "end": { "line": 60, "column": 22 }, "identifierName": "Promise" }, "name": "Promise", "leadingComments": null }, "property": { "type": "Identifier", "start": 1470, "end": 1476, "loc": { "start": { "line": 60, "column": 23 }, "end": { "line": 60, "column": 29 }, "identifierName": "reject" }, "name": "reject" }, "computed": false, "leadingComments": null }, "arguments": [], "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Default implementation does not allow deleting files", "start": 1390, "end": 1445, "loc": { "start": { "line": 59, "column": 8 }, "end": { "line": 59, "column": 63 } } } ] } ], "directives": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Tries to delete a file\r\n * @param {string} filename\r\n * @returns {Promise}\r\n ", "start": 1238, "end": 1347, "loc": { "start": { "line": 53, "column": 4 }, "end": { "line": 57, "column": 7 } } } ] } ] }, "leadingComments": [], "trailingComments": [] } } ], "directives": [] }, "comments": [ { "type": "CommentBlock", "value": " typehints:start ", "start": 0, "end": 21, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 21 } } }, { "type": "CommentBlock", "value": " typehints:end ", "start": 70, "end": 89, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 19 } } }, { "type": "CommentBlock", "value": "* @type {Application} ", "start": 209, "end": 235, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 34 } } }, { "type": "CommentBlock", "value": "*\r\n * Initializes the storage\r\n * @returns {Promise}\r\n ", "start": 275, "end": 352, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 16, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Writes a string to a file asynchronously\r\n * @param {string} filename\r\n * @param {string} contents\r\n * @returns {Promise}\r\n ", "start": 440, "end": 600, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 27, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Tries to write a file synchronously, used in unload handler\r\n * @param {string} filename\r\n * @param {string} contents\r\n ", "start": 710, "end": 856, "loc": { "start": { "line": 33, "column": 4 }, "end": { "line": 37, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Reads a string asynchronously. Returns Promise if file was not found.\r\n * @param {string} filename\r\n * @returns {Promise}\r\n ", "start": 965, "end": 1139, "loc": { "start": { "line": 43, "column": 4 }, "end": { "line": 47, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Tries to delete a file\r\n * @param {string} filename\r\n * @returns {Promise}\r\n ", "start": 1238, "end": 1347, "loc": { "start": { "line": 53, "column": 4 }, "end": { "line": 57, "column": 7 } } }, { "type": "CommentLine", "value": " Default implementation does not allow deleting files", "start": 1390, "end": 1445, "loc": { "start": { "line": 59, "column": 8 }, "end": { "line": 59, "column": 63 } } } ], "tokens": [ { "type": "CommentBlock", "value": " typehints:start ", "start": 0, "end": 21, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 21 } } }, { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 23, "end": 29, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 30, "end": 31, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Application", "start": 32, "end": 43, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 20 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 44, "end": 45, "loc": { "start": { "line": 2, "column": 21 }, "end": { "line": 2, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 46, "end": 50, "loc": { "start": { "line": 2, "column": 23 }, "end": { "line": 2, "column": 27 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../application", "start": 51, "end": 67, "loc": { "start": { "line": 2, "column": 28 }, "end": { "line": 2, "column": 44 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 67, "end": 68, "loc": { "start": { "line": 2, "column": 44 }, "end": { "line": 2, "column": 45 } } }, { "type": "CommentBlock", "value": " typehints:end ", "start": 70, "end": 89, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 19 } } }, { "type": { "label": "export", "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "export", "start": 93, "end": 99, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 6 } } }, { "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": 100, "end": 105, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "FILE_NOT_FOUND", "start": 106, "end": 120, "loc": { "start": { "line": 5, "column": 13 }, "end": { "line": 5, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 121, "end": 122, "loc": { "start": { "line": 5, "column": 28 }, "end": { "line": 5, "column": 29 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "file_not_found", "start": 123, "end": 139, "loc": { "start": { "line": 5, "column": 30 }, "end": { "line": 5, "column": 46 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 139, "end": 140, "loc": { "start": { "line": 5, "column": 46 }, "end": { "line": 5, "column": 47 } } }, { "type": { "label": "export", "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "export", "start": 144, "end": 150, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 6 } } }, { "type": { "label": "class", "keyword": "class", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "class", "start": 151, "end": 156, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "StorageInterface", "start": 157, "end": 173, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 29 } } }, { "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": 7, "column": 30 }, "end": { "line": 7, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 181, "end": 192, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 192, "end": 193, "loc": { "start": { "line": 8, "column": 15 }, "end": { "line": 8, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "app", "start": 193, "end": 196, "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 19 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 196, "end": 197, "loc": { "start": { "line": 8, "column": 19 }, "end": { "line": 8, "column": 20 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 198, "end": 199, "loc": { "start": { "line": 8, "column": 21 }, "end": { "line": 8, "column": 22 } } }, { "type": "CommentBlock", "value": "* @type {Application} ", "start": 209, "end": 235, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 34 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 245, "end": 249, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 249, "end": 250, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "app", "start": 250, "end": 253, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 16 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 254, "end": 255, "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": "app", "start": 256, "end": 259, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 22 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 259, "end": 260, "loc": { "start": { "line": 10, "column": 22 }, "end": { "line": 10, "column": 23 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 266, "end": 267, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Initializes the storage\r\n * @returns {Promise}\r\n ", "start": 275, "end": 352, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 16, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "initialize", "start": 358, "end": 368, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 368, "end": 369, "loc": { "start": { "line": 17, "column": 14 }, "end": { "line": 17, "column": 15 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 369, "end": 370, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 16 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 371, "end": 372, "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "abstract", "start": 382, "end": 390, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 16 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 390, "end": 391, "loc": { "start": { "line": 18, "column": 16 }, "end": { "line": 18, "column": 17 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 401, "end": 407, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Promise", "start": 408, "end": 415, "loc": { "start": { "line": 19, "column": 15 }, "end": { "line": 19, "column": 22 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 415, "end": 416, "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 19, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "reject", "start": 416, "end": 422, "loc": { "start": { "line": 19, "column": 23 }, "end": { "line": 19, "column": 29 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 422, "end": 423, "loc": { "start": { "line": 19, "column": 29 }, "end": { "line": 19, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 423, "end": 424, "loc": { "start": { "line": 19, "column": 30 }, "end": { "line": 19, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 424, "end": 425, "loc": { "start": { "line": 19, "column": 31 }, "end": { "line": 19, "column": 32 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 431, "end": 432, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Writes a string to a file asynchronously\r\n * @param {string} filename\r\n * @param {string} contents\r\n * @returns {Promise}\r\n ", "start": 440, "end": 600, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 27, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "writeFileAsync", "start": 606, "end": 620, "loc": { "start": { "line": 28, "column": 4 }, "end": { "line": 28, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 620, "end": 621, "loc": { "start": { "line": 28, "column": 18 }, "end": { "line": 28, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "filename", "start": 621, "end": 629, "loc": { "start": { "line": 28, "column": 19 }, "end": { "line": 28, "column": 27 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 629, "end": 630, "loc": { "start": { "line": 28, "column": 27 }, "end": { "line": 28, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "contents", "start": 631, "end": 639, "loc": { "start": { "line": 28, "column": 29 }, "end": { "line": 28, "column": 37 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 639, "end": 640, "loc": { "start": { "line": 28, "column": 37 }, "end": { "line": 28, "column": 38 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 641, "end": 642, "loc": { "start": { "line": 28, "column": 39 }, "end": { "line": 28, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "abstract", "start": 652, "end": 660, "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 29, "column": 16 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 660, "end": 661, "loc": { "start": { "line": 29, "column": 16 }, "end": { "line": 29, "column": 17 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 671, "end": 677, "loc": { "start": { "line": 30, "column": 8 }, "end": { "line": 30, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Promise", "start": 678, "end": 685, "loc": { "start": { "line": 30, "column": 15 }, "end": { "line": 30, "column": 22 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 685, "end": 686, "loc": { "start": { "line": 30, "column": 22 }, "end": { "line": 30, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "reject", "start": 686, "end": 692, "loc": { "start": { "line": 30, "column": 23 }, "end": { "line": 30, "column": 29 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 692, "end": 693, "loc": { "start": { "line": 30, "column": 29 }, "end": { "line": 30, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 693, "end": 694, "loc": { "start": { "line": 30, "column": 30 }, "end": { "line": 30, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 694, "end": 695, "loc": { "start": { "line": 30, "column": 31 }, "end": { "line": 30, "column": 32 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 701, "end": 702, "loc": { "start": { "line": 31, "column": 4 }, "end": { "line": 31, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Tries to write a file synchronously, used in unload handler\r\n * @param {string} filename\r\n * @param {string} contents\r\n ", "start": 710, "end": 856, "loc": { "start": { "line": 33, "column": 4 }, "end": { "line": 37, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "writeFileSyncIfSupported", "start": 862, "end": 886, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 38, "column": 28 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 886, "end": 887, "loc": { "start": { "line": 38, "column": 28 }, "end": { "line": 38, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "filename", "start": 887, "end": 895, "loc": { "start": { "line": 38, "column": 29 }, "end": { "line": 38, "column": 37 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 895, "end": 896, "loc": { "start": { "line": 38, "column": 37 }, "end": { "line": 38, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "contents", "start": 897, "end": 905, "loc": { "start": { "line": 38, "column": 39 }, "end": { "line": 38, "column": 47 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 905, "end": 906, "loc": { "start": { "line": 38, "column": 47 }, "end": { "line": 38, "column": 48 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 907, "end": 908, "loc": { "start": { "line": 38, "column": 49 }, "end": { "line": 38, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "abstract", "start": 918, "end": 926, "loc": { "start": { "line": 39, "column": 8 }, "end": { "line": 39, "column": 16 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 926, "end": 927, "loc": { "start": { "line": 39, "column": 16 }, "end": { "line": 39, "column": 17 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 937, "end": 943, "loc": { "start": { "line": 40, "column": 8 }, "end": { "line": 40, "column": 14 } } }, { "type": { "label": "false", "keyword": "false", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "false", "start": 944, "end": 949, "loc": { "start": { "line": 40, "column": 15 }, "end": { "line": 40, "column": 20 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 949, "end": 950, "loc": { "start": { "line": 40, "column": 20 }, "end": { "line": 40, "column": 21 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 956, "end": 957, "loc": { "start": { "line": 41, "column": 4 }, "end": { "line": 41, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Reads a string asynchronously. Returns Promise if file was not found.\r\n * @param {string} filename\r\n * @returns {Promise}\r\n ", "start": 965, "end": 1139, "loc": { "start": { "line": 43, "column": 4 }, "end": { "line": 47, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "readFileAsync", "start": 1145, "end": 1158, "loc": { "start": { "line": 48, "column": 4 }, "end": { "line": 48, "column": 17 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1158, "end": 1159, "loc": { "start": { "line": 48, "column": 17 }, "end": { "line": 48, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "filename", "start": 1159, "end": 1167, "loc": { "start": { "line": 48, "column": 18 }, "end": { "line": 48, "column": 26 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1167, "end": 1168, "loc": { "start": { "line": 48, "column": 26 }, "end": { "line": 48, "column": 27 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1169, "end": 1170, "loc": { "start": { "line": 48, "column": 28 }, "end": { "line": 48, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "abstract", "start": 1180, "end": 1188, "loc": { "start": { "line": 49, "column": 8 }, "end": { "line": 49, "column": 16 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1188, "end": 1189, "loc": { "start": { "line": 49, "column": 16 }, "end": { "line": 49, "column": 17 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 1199, "end": 1205, "loc": { "start": { "line": 50, "column": 8 }, "end": { "line": 50, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Promise", "start": 1206, "end": 1213, "loc": { "start": { "line": 50, "column": 15 }, "end": { "line": 50, "column": 22 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1213, "end": 1214, "loc": { "start": { "line": 50, "column": 22 }, "end": { "line": 50, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "reject", "start": 1214, "end": 1220, "loc": { "start": { "line": 50, "column": 23 }, "end": { "line": 50, "column": 29 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1220, "end": 1221, "loc": { "start": { "line": 50, "column": 29 }, "end": { "line": 50, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1221, "end": 1222, "loc": { "start": { "line": 50, "column": 30 }, "end": { "line": 50, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1222, "end": 1223, "loc": { "start": { "line": 50, "column": 31 }, "end": { "line": 50, "column": 32 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1229, "end": 1230, "loc": { "start": { "line": 51, "column": 4 }, "end": { "line": 51, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Tries to delete a file\r\n * @param {string} filename\r\n * @returns {Promise}\r\n ", "start": 1238, "end": 1347, "loc": { "start": { "line": 53, "column": 4 }, "end": { "line": 57, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "deleteFileAsync", "start": 1353, "end": 1368, "loc": { "start": { "line": 58, "column": 4 }, "end": { "line": 58, "column": 19 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1368, "end": 1369, "loc": { "start": { "line": 58, "column": 19 }, "end": { "line": 58, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "filename", "start": 1369, "end": 1377, "loc": { "start": { "line": 58, "column": 20 }, "end": { "line": 58, "column": 28 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1377, "end": 1378, "loc": { "start": { "line": 58, "column": 28 }, "end": { "line": 58, "column": 29 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1379, "end": 1380, "loc": { "start": { "line": 58, "column": 30 }, "end": { "line": 58, "column": 31 } } }, { "type": "CommentLine", "value": " Default implementation does not allow deleting files", "start": 1390, "end": 1445, "loc": { "start": { "line": 59, "column": 8 }, "end": { "line": 59, "column": 63 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 1455, "end": 1461, "loc": { "start": { "line": 60, "column": 8 }, "end": { "line": 60, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Promise", "start": 1462, "end": 1469, "loc": { "start": { "line": 60, "column": 15 }, "end": { "line": 60, "column": 22 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1469, "end": 1470, "loc": { "start": { "line": 60, "column": 22 }, "end": { "line": 60, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "reject", "start": 1470, "end": 1476, "loc": { "start": { "line": 60, "column": 23 }, "end": { "line": 60, "column": 29 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1476, "end": 1477, "loc": { "start": { "line": 60, "column": 29 }, "end": { "line": 60, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1477, "end": 1478, "loc": { "start": { "line": 60, "column": 30 }, "end": { "line": 60, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1478, "end": 1479, "loc": { "start": { "line": 60, "column": 31 }, "end": { "line": 60, "column": 32 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1485, "end": 1486, "loc": { "start": { "line": 61, "column": 4 }, "end": { "line": 61, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1488, "end": 1489, "loc": { "start": { "line": 62, "column": 0 }, "end": { "line": 62, "column": 1 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1491, "end": 1491, "loc": { "start": { "line": 63, "column": 0 }, "end": { "line": 63, "column": 0 } } } ] }