UNPKG

atom-nuclide

Version:

A unified developer experience for web and mobile development, built as a suite of features on top of Atom to provide hackability and the support of an active community.

1,060 lines (1,050 loc) 23.5 kB
"use strict"; let Observable, trackOperationTiming; module.exports = _client => { const remoteModule = {}; remoteModule.didOpenFile = function (arg0) { return _client.marshalArguments(Array.from(arguments), [{ name: "filename", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 40 }, kind: "named", name: "NuclideUri" } }]).then(args => { return _client.callRemoteFunction("didOpenFile", "void", args); }); }; remoteModule.didChangeFile = function (arg0, arg1, arg2) { return _client.marshalArguments(Array.from(arguments), [{ name: "filename", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 47 }, kind: "named", name: "NuclideUri" } }, { name: "version", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 48 }, kind: "number" } }, { name: "changes", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 49 }, kind: "array", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 49 }, kind: "named", name: "TextEdit" } } }]).then(args => { return _client.callRemoteFunction("didChangeFile", "void", args); }); }; remoteModule.didCloseFile = function (arg0) { return _client.marshalArguments(Array.from(arguments), [{ name: "filename", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 56 }, kind: "named", name: "NuclideUri" } }]).then(args => { return _client.callRemoteFunction("didCloseFile", "void", args); }); }; remoteModule.didChangeWatchedFiles = function (arg0) { return _client.marshalArguments(Array.from(arguments), [{ name: "changes", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 83 }, kind: "array", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 83 }, kind: "named", name: "FileEvent" } } }]).then(args => { return _client.callRemoteFunction("didChangeWatchedFiles", "void", args); }); }; remoteModule.getCompletions = function (arg0, arg1) { return _client.marshalArguments(Array.from(arguments), [{ name: "filename", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 88 }, kind: "named", name: "NuclideUri" } }, { name: "position", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 89 }, kind: "named", name: "Position" } }]).then(args => { return _client.callRemoteFunction("getCompletions", "promise", args); }).then(value => { return _client.unmarshal(value, { location: { type: "source", fileName: "HackConnectionService.js", line: 90 }, kind: "array", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 90 }, kind: "named", name: "HackCompletion" } }); }); }; remoteModule.disconnect = function () { return _client.marshalArguments(Array.from(arguments), []).then(args => { return _client.callRemoteFunction("disconnect", "void", args); }); }; return remoteModule; }; Object.defineProperty(module.exports, "inject", { value: function () { Observable = arguments[0]; trackOperationTiming = arguments[1]; } }); Object.defineProperty(module.exports, "defs", { value: new Map([["Object", { kind: "alias", name: "Object", location: { type: "builtin" } }], ["Date", { kind: "alias", name: "Date", location: { type: "builtin" } }], ["RegExp", { kind: "alias", name: "RegExp", location: { type: "builtin" } }], ["Buffer", { kind: "alias", name: "Buffer", location: { type: "builtin" } }], ["fs.Stats", { kind: "alias", name: "fs.Stats", location: { type: "builtin" } }], ["NuclideUri", { kind: "alias", name: "NuclideUri", location: { type: "builtin" } }], ["Position", { kind: "alias", location: { type: "source", fileName: "HackConnectionService.js", line: 16 }, name: "Position", definition: { location: { type: "source", fileName: "HackConnectionService.js", line: 16 }, kind: "object", fields: [{ location: { type: "source", fileName: "HackConnectionService.js", line: 17 }, name: "line", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 17 }, kind: "number" }, optional: false }, { location: { type: "source", fileName: "HackConnectionService.js", line: 18 }, name: "column", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 18 }, kind: "number" }, optional: false }] } }], ["Range", { kind: "alias", location: { type: "source", fileName: "HackConnectionService.js", line: 23 }, name: "Range", definition: { location: { type: "source", fileName: "HackConnectionService.js", line: 23 }, kind: "object", fields: [{ location: { type: "source", fileName: "HackConnectionService.js", line: 24 }, name: "start", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 24 }, kind: "named", name: "Position" }, optional: false }, { location: { type: "source", fileName: "HackConnectionService.js", line: 25 }, name: "end", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 25 }, kind: "named", name: "Position" }, optional: false }] } }], ["TextEdit", { kind: "alias", location: { type: "source", fileName: "HackConnectionService.js", line: 32 }, name: "TextEdit", definition: { location: { type: "source", fileName: "HackConnectionService.js", line: 32 }, kind: "object", fields: [{ location: { type: "source", fileName: "HackConnectionService.js", line: 33 }, name: "range", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 33 }, kind: "named", name: "Range" }, optional: true }, { location: { type: "source", fileName: "HackConnectionService.js", line: 34 }, name: "text", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 34 }, kind: "string" }, optional: false }] } }], ["didOpenFile", { kind: "function", name: "didOpenFile", location: { type: "source", fileName: "HackConnectionService.js", line: 40 }, type: { location: { type: "source", fileName: "HackConnectionService.js", line: 40 }, kind: "function", argumentTypes: [{ name: "filename", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 40 }, kind: "named", name: "NuclideUri" } }], returnType: { location: { type: "source", fileName: "HackConnectionService.js", line: 40 }, kind: "void" } } }], ["didChangeFile", { kind: "function", name: "didChangeFile", location: { type: "source", fileName: "HackConnectionService.js", line: 46 }, type: { location: { type: "source", fileName: "HackConnectionService.js", line: 46 }, kind: "function", argumentTypes: [{ name: "filename", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 47 }, kind: "named", name: "NuclideUri" } }, { name: "version", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 48 }, kind: "number" } }, { name: "changes", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 49 }, kind: "array", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 49 }, kind: "named", name: "TextEdit" } } }], returnType: { location: { type: "source", fileName: "HackConnectionService.js", line: 50 }, kind: "void" } } }], ["didCloseFile", { kind: "function", name: "didCloseFile", location: { type: "source", fileName: "HackConnectionService.js", line: 56 }, type: { location: { type: "source", fileName: "HackConnectionService.js", line: 56 }, kind: "function", argumentTypes: [{ name: "filename", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 56 }, kind: "named", name: "NuclideUri" } }], returnType: { location: { type: "source", fileName: "HackConnectionService.js", line: 56 }, kind: "void" } } }], ["FileEventType", { kind: "alias", location: { type: "source", fileName: "HackConnectionService.js", line: 69 }, name: "FileEventType", definition: { location: { type: "source", fileName: "HackConnectionService.js", line: 70 }, kind: "union", types: [{ location: { type: "source", fileName: "HackConnectionService.js", line: 70 }, kind: "string-literal", value: "Created" }, { location: { type: "source", fileName: "HackConnectionService.js", line: 71 }, kind: "string-literal", value: "Changed" }, { location: { type: "source", fileName: "HackConnectionService.js", line: 72 }, kind: "string-literal", value: "Deleted" }, { location: { type: "source", fileName: "HackConnectionService.js", line: 73 }, kind: "string-literal", value: "Saved" }] } }], ["FileEvent", { kind: "alias", location: { type: "source", fileName: "HackConnectionService.js", line: 75 }, name: "FileEvent", definition: { location: { type: "source", fileName: "HackConnectionService.js", line: 75 }, kind: "object", fields: [{ location: { type: "source", fileName: "HackConnectionService.js", line: 76 }, name: "filename", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 76 }, kind: "named", name: "NuclideUri" }, optional: false }, { location: { type: "source", fileName: "HackConnectionService.js", line: 77 }, name: "type", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 77 }, kind: "named", name: "FileEventType" }, optional: false }] } }], ["didChangeWatchedFiles", { kind: "function", name: "didChangeWatchedFiles", location: { type: "source", fileName: "HackConnectionService.js", line: 83 }, type: { location: { type: "source", fileName: "HackConnectionService.js", line: 83 }, kind: "function", argumentTypes: [{ name: "changes", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 83 }, kind: "array", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 83 }, kind: "named", name: "FileEvent" } } }], returnType: { location: { type: "source", fileName: "HackConnectionService.js", line: 83 }, kind: "void" } } }], ["getCompletions", { kind: "function", name: "getCompletions", location: { type: "source", fileName: "HackConnectionService.js", line: 87 }, type: { location: { type: "source", fileName: "HackConnectionService.js", line: 87 }, kind: "function", argumentTypes: [{ name: "filename", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 88 }, kind: "named", name: "NuclideUri" } }, { name: "position", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 89 }, kind: "named", name: "Position" } }], returnType: { location: { type: "source", fileName: "HackConnectionService.js", line: 90 }, kind: "promise", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 90 }, kind: "array", type: { location: { type: "source", fileName: "HackConnectionService.js", line: 90 }, kind: "named", name: "HackCompletion" } } } } }], ["disconnect", { kind: "function", name: "disconnect", location: { type: "source", fileName: "HackConnectionService.js", line: 95 }, type: { location: { type: "source", fileName: "HackConnectionService.js", line: 95 }, kind: "function", argumentTypes: [], returnType: { location: { type: "source", fileName: "HackConnectionService.js", line: 95 }, kind: "void" } } }], ["HackParameterDetails", { kind: "alias", location: { type: "source", fileName: "rpc-types.js", line: 14 }, name: "HackParameterDetails", definition: { location: { type: "source", fileName: "rpc-types.js", line: 14 }, kind: "object", fields: [{ location: { type: "source", fileName: "rpc-types.js", line: 15 }, name: "name", type: { location: { type: "source", fileName: "rpc-types.js", line: 15 }, kind: "string" }, optional: false }, { location: { type: "source", fileName: "rpc-types.js", line: 16 }, name: "type", type: { location: { type: "source", fileName: "rpc-types.js", line: 16 }, kind: "string" }, optional: false }, { location: { type: "source", fileName: "rpc-types.js", line: 17 }, name: "variadic", type: { location: { type: "source", fileName: "rpc-types.js", line: 17 }, kind: "boolean" }, optional: false }] } }], ["HackFunctionDetails", { kind: "alias", location: { type: "source", fileName: "rpc-types.js", line: 20 }, name: "HackFunctionDetails", definition: { location: { type: "source", fileName: "rpc-types.js", line: 20 }, kind: "object", fields: [{ location: { type: "source", fileName: "rpc-types.js", line: 21 }, name: "min_arity", type: { location: { type: "source", fileName: "rpc-types.js", line: 21 }, kind: "number" }, optional: false }, { location: { type: "source", fileName: "rpc-types.js", line: 22 }, name: "return_type", type: { location: { type: "source", fileName: "rpc-types.js", line: 22 }, kind: "string" }, optional: false }, { location: { type: "source", fileName: "rpc-types.js", line: 23 }, name: "params", type: { location: { type: "source", fileName: "rpc-types.js", line: 23 }, kind: "array", type: { location: { type: "source", fileName: "rpc-types.js", line: 23 }, kind: "named", name: "HackParameterDetails" } }, optional: false }] } }], ["HackRange", { kind: "alias", location: { type: "source", fileName: "rpc-types.js", line: 27 }, name: "HackRange", definition: { location: { type: "source", fileName: "rpc-types.js", line: 27 }, kind: "object", fields: [{ location: { type: "source", fileName: "rpc-types.js", line: 28 }, name: "filename", type: { location: { type: "source", fileName: "rpc-types.js", line: 28 }, kind: "named", name: "NuclideUri" }, optional: false }, { location: { type: "source", fileName: "rpc-types.js", line: 29 }, name: "line", type: { location: { type: "source", fileName: "rpc-types.js", line: 29 }, kind: "number" }, optional: false }, { location: { type: "source", fileName: "rpc-types.js", line: 30 }, name: "char_start", type: { location: { type: "source", fileName: "rpc-types.js", line: 30 }, kind: "number" }, optional: false }, { location: { type: "source", fileName: "rpc-types.js", line: 31 }, name: "char_end", type: { location: { type: "source", fileName: "rpc-types.js", line: 31 }, kind: "number" }, optional: false }] } }], ["HackCompletion", { kind: "alias", location: { type: "source", fileName: "rpc-types.js", line: 34 }, name: "HackCompletion", definition: { location: { type: "source", fileName: "rpc-types.js", line: 34 }, kind: "object", fields: [{ location: { type: "source", fileName: "rpc-types.js", line: 35 }, name: "name", type: { location: { type: "source", fileName: "rpc-types.js", line: 35 }, kind: "string" }, optional: false }, { location: { type: "source", fileName: "rpc-types.js", line: 36 }, name: "type", type: { location: { type: "source", fileName: "rpc-types.js", line: 36 }, kind: "string" }, optional: false }, { location: { type: "source", fileName: "rpc-types.js", line: 37 }, name: "pos", type: { location: { type: "source", fileName: "rpc-types.js", line: 37 }, kind: "named", name: "HackRange" }, optional: false }, { location: { type: "source", fileName: "rpc-types.js", line: 38 }, name: "func_details", type: { location: { type: "source", fileName: "rpc-types.js", line: 38 }, kind: "nullable", type: { location: { type: "source", fileName: "rpc-types.js", line: 38 }, kind: "named", name: "HackFunctionDetails" } }, optional: false }, { location: { type: "source", fileName: "rpc-types.js", line: 39 }, name: "expected_ty", type: { location: { type: "source", fileName: "rpc-types.js", line: 39 }, kind: "boolean" }, optional: false }] } }]]) });