protobufjs 6.8.8 → 6.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/CHANGELOG.md +941 -921
  2. package/LICENSE +39 -39
  3. package/README.md +901 -879
  4. package/cli/LICENSE +33 -33
  5. package/cli/README.md +11 -11
  6. package/cli/index.d.ts +3 -3
  7. package/cli/index.js +3 -3
  8. package/cli/lib/tsd-jsdoc/LICENSE +20 -20
  9. package/cli/lib/tsd-jsdoc/README.md +23 -23
  10. package/cli/lib/tsd-jsdoc/plugin.js +21 -21
  11. package/cli/lib/tsd-jsdoc/publish.js +705 -693
  12. package/cli/lib/tsd-jsdoc.json +18 -18
  13. package/cli/package.json +1 -1
  14. package/cli/package.standalone.json +32 -32
  15. package/cli/pbjs.d.ts +9 -9
  16. package/cli/pbjs.js +329 -329
  17. package/cli/pbts.d.ts +9 -9
  18. package/cli/pbts.js +197 -197
  19. package/cli/targets/json-module.js +38 -38
  20. package/cli/targets/json.js +8 -8
  21. package/cli/targets/proto.js +326 -326
  22. package/cli/targets/proto2.js +10 -10
  23. package/cli/targets/proto3.js +10 -10
  24. package/cli/targets/static-module.js +29 -29
  25. package/cli/targets/static.js +702 -702
  26. package/cli/util.js +183 -183
  27. package/cli/wrappers/amd.js +7 -7
  28. package/cli/wrappers/closure.js +7 -7
  29. package/cli/wrappers/commonjs.js +7 -7
  30. package/cli/wrappers/default.js +15 -15
  31. package/cli/wrappers/es6.js +5 -5
  32. package/dist/README.md +31 -31
  33. package/dist/light/README.md +31 -31
  34. package/dist/light/protobuf.js +6058 -6032
  35. package/dist/light/protobuf.js.map +1 -1
  36. package/dist/light/protobuf.min.js +3 -3
  37. package/dist/light/protobuf.min.js.map +1 -1
  38. package/dist/minimal/README.md +31 -31
  39. package/dist/minimal/protobuf.js +1900 -1877
  40. package/dist/minimal/protobuf.js.map +1 -1
  41. package/dist/minimal/protobuf.min.js +3 -3
  42. package/dist/minimal/protobuf.min.js.map +1 -1
  43. package/dist/protobuf.js +7625 -7596
  44. package/dist/protobuf.js.map +1 -1
  45. package/dist/protobuf.min.js +3 -3
  46. package/dist/protobuf.min.js.map +1 -1
  47. package/ext/debug/README.md +4 -4
  48. package/ext/debug/index.js +71 -71
  49. package/ext/descriptor/README.md +72 -72
  50. package/ext/descriptor/index.js +1052 -1052
  51. package/ext/descriptor/test.js +54 -54
  52. package/google/LICENSE +27 -27
  53. package/google/README.md +1 -1
  54. package/google/api/annotations.proto +10 -10
  55. package/google/protobuf/descriptor.proto +286 -286
  56. package/google/protobuf/source_context.proto +7 -7
  57. package/index.d.ts +6 -6
  58. package/index.js +4 -4
  59. package/light.d.ts +2 -2
  60. package/light.js +3 -3
  61. package/minimal.d.ts +2 -2
  62. package/minimal.js +4 -4
  63. package/package-lock.json +4223 -3171
  64. package/package.json +122 -122
  65. package/scripts/changelog.js +150 -150
  66. package/scripts/postinstall.js +35 -35
  67. package/src/common.js +399 -399
  68. package/src/converter.js +293 -293
  69. package/src/decoder.js +106 -106
  70. package/src/encoder.js +100 -100
  71. package/src/enum.js +181 -181
  72. package/src/field.js +371 -371
  73. package/src/index-light.js +104 -104
  74. package/src/index-minimal.js +36 -36
  75. package/src/index.js +12 -12
  76. package/src/mapfield.js +126 -126
  77. package/src/message.js +138 -138
  78. package/src/method.js +151 -151
  79. package/src/namespace.js +433 -433
  80. package/src/object.js +200 -200
  81. package/src/oneof.js +203 -203
  82. package/src/parse.js +761 -758
  83. package/src/reader.js +411 -405
  84. package/src/reader_buffer.js +51 -44
  85. package/src/root.js +353 -351
  86. package/src/roots.js +18 -18
  87. package/src/rpc/service.js +142 -142
  88. package/src/rpc.js +36 -36
  89. package/src/service.js +167 -167
  90. package/src/tokenize.js +397 -397
  91. package/src/type.js +589 -589
  92. package/src/types.js +196 -196
  93. package/src/typescript.jsdoc +15 -15
  94. package/src/util/longbits.js +200 -200
  95. package/src/util/minimal.js +414 -414
  96. package/src/util.js +178 -178
  97. package/src/verifier.js +176 -176
  98. package/src/wrappers.js +83 -83
  99. package/src/writer.js +465 -459
  100. package/src/writer_buffer.js +85 -81
  101. package/tsconfig.json +6 -6
  102. package/cli/node_modules/os-tmpdir/index.js +0 -25
  103. package/cli/node_modules/os-tmpdir/license +0 -21
  104. package/cli/node_modules/os-tmpdir/readme.md +0 -32
  105. package/cli/node_modules/tmp/LICENSE +0 -21
  106. package/cli/node_modules/tmp/README.md +0 -314
  107. package/cli/node_modules/tmp/lib/tmp.js +0 -611
  108. package/cli/package-lock.json +0 -20
package/src/message.js CHANGED
@@ -1,139 +1,139 @@
1
- "use strict";
2
- module.exports = Message;
3
-
4
- var util = require("./util/minimal");
5
-
6
- /**
7
- * Constructs a new message instance.
8
- * @classdesc Abstract runtime message.
9
- * @constructor
10
- * @param {Properties<T>} [properties] Properties to set
11
- * @template T extends object = object
12
- */
13
- function Message(properties) {
14
- // not used internally
15
- if (properties)
16
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17
- this[keys[i]] = properties[keys[i]];
18
- }
19
-
20
- /**
21
- * Reference to the reflected type.
22
- * @name Message.$type
23
- * @type {Type}
24
- * @readonly
25
- */
26
-
27
- /**
28
- * Reference to the reflected type.
29
- * @name Message#$type
30
- * @type {Type}
31
- * @readonly
32
- */
33
-
34
- /*eslint-disable valid-jsdoc*/
35
-
36
- /**
37
- * Creates a new message of this type using the specified properties.
38
- * @param {Object.<string,*>} [properties] Properties to set
39
- * @returns {Message<T>} Message instance
40
- * @template T extends Message<T>
41
- * @this Constructor<T>
42
- */
43
- Message.create = function create(properties) {
44
- return this.$type.create(properties);
45
- };
46
-
47
- /**
48
- * Encodes a message of this type.
49
- * @param {T|Object.<string,*>} message Message to encode
50
- * @param {Writer} [writer] Writer to use
51
- * @returns {Writer} Writer
52
- * @template T extends Message<T>
53
- * @this Constructor<T>
54
- */
55
- Message.encode = function encode(message, writer) {
56
- return this.$type.encode(message, writer);
57
- };
58
-
59
- /**
60
- * Encodes a message of this type preceeded by its length as a varint.
61
- * @param {T|Object.<string,*>} message Message to encode
62
- * @param {Writer} [writer] Writer to use
63
- * @returns {Writer} Writer
64
- * @template T extends Message<T>
65
- * @this Constructor<T>
66
- */
67
- Message.encodeDelimited = function encodeDelimited(message, writer) {
68
- return this.$type.encodeDelimited(message, writer);
69
- };
70
-
71
- /**
72
- * Decodes a message of this type.
73
- * @name Message.decode
74
- * @function
75
- * @param {Reader|Uint8Array} reader Reader or buffer to decode
76
- * @returns {T} Decoded message
77
- * @template T extends Message<T>
78
- * @this Constructor<T>
79
- */
80
- Message.decode = function decode(reader) {
81
- return this.$type.decode(reader);
82
- };
83
-
84
- /**
85
- * Decodes a message of this type preceeded by its length as a varint.
86
- * @name Message.decodeDelimited
87
- * @function
88
- * @param {Reader|Uint8Array} reader Reader or buffer to decode
89
- * @returns {T} Decoded message
90
- * @template T extends Message<T>
91
- * @this Constructor<T>
92
- */
93
- Message.decodeDelimited = function decodeDelimited(reader) {
94
- return this.$type.decodeDelimited(reader);
95
- };
96
-
97
- /**
98
- * Verifies a message of this type.
99
- * @name Message.verify
100
- * @function
101
- * @param {Object.<string,*>} message Plain object to verify
102
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
103
- */
104
- Message.verify = function verify(message) {
105
- return this.$type.verify(message);
106
- };
107
-
108
- /**
109
- * Creates a new message of this type from a plain object. Also converts values to their respective internal types.
110
- * @param {Object.<string,*>} object Plain object
111
- * @returns {T} Message instance
112
- * @template T extends Message<T>
113
- * @this Constructor<T>
114
- */
115
- Message.fromObject = function fromObject(object) {
116
- return this.$type.fromObject(object);
117
- };
118
-
119
- /**
120
- * Creates a plain object from a message of this type. Also converts values to other types if specified.
121
- * @param {T} message Message instance
122
- * @param {IConversionOptions} [options] Conversion options
123
- * @returns {Object.<string,*>} Plain object
124
- * @template T extends Message<T>
125
- * @this Constructor<T>
126
- */
127
- Message.toObject = function toObject(message, options) {
128
- return this.$type.toObject(message, options);
129
- };
130
-
131
- /**
132
- * Converts this message to JSON.
133
- * @returns {Object.<string,*>} JSON object
134
- */
135
- Message.prototype.toJSON = function toJSON() {
136
- return this.$type.toObject(this, util.toJSONOptions);
137
- };
138
-
1
+ "use strict";
2
+ module.exports = Message;
3
+
4
+ var util = require("./util/minimal");
5
+
6
+ /**
7
+ * Constructs a new message instance.
8
+ * @classdesc Abstract runtime message.
9
+ * @constructor
10
+ * @param {Properties<T>} [properties] Properties to set
11
+ * @template T extends object = object
12
+ */
13
+ function Message(properties) {
14
+ // not used internally
15
+ if (properties)
16
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17
+ this[keys[i]] = properties[keys[i]];
18
+ }
19
+
20
+ /**
21
+ * Reference to the reflected type.
22
+ * @name Message.$type
23
+ * @type {Type}
24
+ * @readonly
25
+ */
26
+
27
+ /**
28
+ * Reference to the reflected type.
29
+ * @name Message#$type
30
+ * @type {Type}
31
+ * @readonly
32
+ */
33
+
34
+ /*eslint-disable valid-jsdoc*/
35
+
36
+ /**
37
+ * Creates a new message of this type using the specified properties.
38
+ * @param {Object.<string,*>} [properties] Properties to set
39
+ * @returns {Message<T>} Message instance
40
+ * @template T extends Message<T>
41
+ * @this Constructor<T>
42
+ */
43
+ Message.create = function create(properties) {
44
+ return this.$type.create(properties);
45
+ };
46
+
47
+ /**
48
+ * Encodes a message of this type.
49
+ * @param {T|Object.<string,*>} message Message to encode
50
+ * @param {Writer} [writer] Writer to use
51
+ * @returns {Writer} Writer
52
+ * @template T extends Message<T>
53
+ * @this Constructor<T>
54
+ */
55
+ Message.encode = function encode(message, writer) {
56
+ return this.$type.encode(message, writer);
57
+ };
58
+
59
+ /**
60
+ * Encodes a message of this type preceeded by its length as a varint.
61
+ * @param {T|Object.<string,*>} message Message to encode
62
+ * @param {Writer} [writer] Writer to use
63
+ * @returns {Writer} Writer
64
+ * @template T extends Message<T>
65
+ * @this Constructor<T>
66
+ */
67
+ Message.encodeDelimited = function encodeDelimited(message, writer) {
68
+ return this.$type.encodeDelimited(message, writer);
69
+ };
70
+
71
+ /**
72
+ * Decodes a message of this type.
73
+ * @name Message.decode
74
+ * @function
75
+ * @param {Reader|Uint8Array} reader Reader or buffer to decode
76
+ * @returns {T} Decoded message
77
+ * @template T extends Message<T>
78
+ * @this Constructor<T>
79
+ */
80
+ Message.decode = function decode(reader) {
81
+ return this.$type.decode(reader);
82
+ };
83
+
84
+ /**
85
+ * Decodes a message of this type preceeded by its length as a varint.
86
+ * @name Message.decodeDelimited
87
+ * @function
88
+ * @param {Reader|Uint8Array} reader Reader or buffer to decode
89
+ * @returns {T} Decoded message
90
+ * @template T extends Message<T>
91
+ * @this Constructor<T>
92
+ */
93
+ Message.decodeDelimited = function decodeDelimited(reader) {
94
+ return this.$type.decodeDelimited(reader);
95
+ };
96
+
97
+ /**
98
+ * Verifies a message of this type.
99
+ * @name Message.verify
100
+ * @function
101
+ * @param {Object.<string,*>} message Plain object to verify
102
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
103
+ */
104
+ Message.verify = function verify(message) {
105
+ return this.$type.verify(message);
106
+ };
107
+
108
+ /**
109
+ * Creates a new message of this type from a plain object. Also converts values to their respective internal types.
110
+ * @param {Object.<string,*>} object Plain object
111
+ * @returns {T} Message instance
112
+ * @template T extends Message<T>
113
+ * @this Constructor<T>
114
+ */
115
+ Message.fromObject = function fromObject(object) {
116
+ return this.$type.fromObject(object);
117
+ };
118
+
119
+ /**
120
+ * Creates a plain object from a message of this type. Also converts values to other types if specified.
121
+ * @param {T} message Message instance
122
+ * @param {IConversionOptions} [options] Conversion options
123
+ * @returns {Object.<string,*>} Plain object
124
+ * @template T extends Message<T>
125
+ * @this Constructor<T>
126
+ */
127
+ Message.toObject = function toObject(message, options) {
128
+ return this.$type.toObject(message, options);
129
+ };
130
+
131
+ /**
132
+ * Converts this message to JSON.
133
+ * @returns {Object.<string,*>} JSON object
134
+ */
135
+ Message.prototype.toJSON = function toJSON() {
136
+ return this.$type.toObject(this, util.toJSONOptions);
137
+ };
138
+
139
139
  /*eslint-enable valid-jsdoc*/
package/src/method.js CHANGED
@@ -1,151 +1,151 @@
1
- "use strict";
2
- module.exports = Method;
3
-
4
- // extends ReflectionObject
5
- var ReflectionObject = require("./object");
6
- ((Method.prototype = Object.create(ReflectionObject.prototype)).constructor = Method).className = "Method";
7
-
8
- var util = require("./util");
9
-
10
- /**
11
- * Constructs a new service method instance.
12
- * @classdesc Reflected service method.
13
- * @extends ReflectionObject
14
- * @constructor
15
- * @param {string} name Method name
16
- * @param {string|undefined} type Method type, usually `"rpc"`
17
- * @param {string} requestType Request message type
18
- * @param {string} responseType Response message type
19
- * @param {boolean|Object.<string,*>} [requestStream] Whether the request is streamed
20
- * @param {boolean|Object.<string,*>} [responseStream] Whether the response is streamed
21
- * @param {Object.<string,*>} [options] Declared options
22
- * @param {string} [comment] The comment for this method
23
- */
24
- function Method(name, type, requestType, responseType, requestStream, responseStream, options, comment) {
25
-
26
- /* istanbul ignore next */
27
- if (util.isObject(requestStream)) {
28
- options = requestStream;
29
- requestStream = responseStream = undefined;
30
- } else if (util.isObject(responseStream)) {
31
- options = responseStream;
32
- responseStream = undefined;
33
- }
34
-
35
- /* istanbul ignore if */
36
- if (!(type === undefined || util.isString(type)))
37
- throw TypeError("type must be a string");
38
-
39
- /* istanbul ignore if */
40
- if (!util.isString(requestType))
41
- throw TypeError("requestType must be a string");
42
-
43
- /* istanbul ignore if */
44
- if (!util.isString(responseType))
45
- throw TypeError("responseType must be a string");
46
-
47
- ReflectionObject.call(this, name, options);
48
-
49
- /**
50
- * Method type.
51
- * @type {string}
52
- */
53
- this.type = type || "rpc"; // toJSON
54
-
55
- /**
56
- * Request type.
57
- * @type {string}
58
- */
59
- this.requestType = requestType; // toJSON, marker
60
-
61
- /**
62
- * Whether requests are streamed or not.
63
- * @type {boolean|undefined}
64
- */
65
- this.requestStream = requestStream ? true : undefined; // toJSON
66
-
67
- /**
68
- * Response type.
69
- * @type {string}
70
- */
71
- this.responseType = responseType; // toJSON
72
-
73
- /**
74
- * Whether responses are streamed or not.
75
- * @type {boolean|undefined}
76
- */
77
- this.responseStream = responseStream ? true : undefined; // toJSON
78
-
79
- /**
80
- * Resolved request type.
81
- * @type {Type|null}
82
- */
83
- this.resolvedRequestType = null;
84
-
85
- /**
86
- * Resolved response type.
87
- * @type {Type|null}
88
- */
89
- this.resolvedResponseType = null;
90
-
91
- /**
92
- * Comment for this method
93
- * @type {string|null}
94
- */
95
- this.comment = comment;
96
- }
97
-
98
- /**
99
- * Method descriptor.
100
- * @interface IMethod
101
- * @property {string} [type="rpc"] Method type
102
- * @property {string} requestType Request type
103
- * @property {string} responseType Response type
104
- * @property {boolean} [requestStream=false] Whether requests are streamed
105
- * @property {boolean} [responseStream=false] Whether responses are streamed
106
- * @property {Object.<string,*>} [options] Method options
107
- */
108
-
109
- /**
110
- * Constructs a method from a method descriptor.
111
- * @param {string} name Method name
112
- * @param {IMethod} json Method descriptor
113
- * @returns {Method} Created method
114
- * @throws {TypeError} If arguments are invalid
115
- */
116
- Method.fromJSON = function fromJSON(name, json) {
117
- return new Method(name, json.type, json.requestType, json.responseType, json.requestStream, json.responseStream, json.options, json.comment);
118
- };
119
-
120
- /**
121
- * Converts this method to a method descriptor.
122
- * @param {IToJSONOptions} [toJSONOptions] JSON conversion options
123
- * @returns {IMethod} Method descriptor
124
- */
125
- Method.prototype.toJSON = function toJSON(toJSONOptions) {
126
- var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false;
127
- return util.toObject([
128
- "type" , this.type !== "rpc" && /* istanbul ignore next */ this.type || undefined,
129
- "requestType" , this.requestType,
130
- "requestStream" , this.requestStream,
131
- "responseType" , this.responseType,
132
- "responseStream" , this.responseStream,
133
- "options" , this.options,
134
- "comment" , keepComments ? this.comment : undefined
135
- ]);
136
- };
137
-
138
- /**
139
- * @override
140
- */
141
- Method.prototype.resolve = function resolve() {
142
-
143
- /* istanbul ignore if */
144
- if (this.resolved)
145
- return this;
146
-
147
- this.resolvedRequestType = this.parent.lookupType(this.requestType);
148
- this.resolvedResponseType = this.parent.lookupType(this.responseType);
149
-
150
- return ReflectionObject.prototype.resolve.call(this);
151
- };
1
+ "use strict";
2
+ module.exports = Method;
3
+
4
+ // extends ReflectionObject
5
+ var ReflectionObject = require("./object");
6
+ ((Method.prototype = Object.create(ReflectionObject.prototype)).constructor = Method).className = "Method";
7
+
8
+ var util = require("./util");
9
+
10
+ /**
11
+ * Constructs a new service method instance.
12
+ * @classdesc Reflected service method.
13
+ * @extends ReflectionObject
14
+ * @constructor
15
+ * @param {string} name Method name
16
+ * @param {string|undefined} type Method type, usually `"rpc"`
17
+ * @param {string} requestType Request message type
18
+ * @param {string} responseType Response message type
19
+ * @param {boolean|Object.<string,*>} [requestStream] Whether the request is streamed
20
+ * @param {boolean|Object.<string,*>} [responseStream] Whether the response is streamed
21
+ * @param {Object.<string,*>} [options] Declared options
22
+ * @param {string} [comment] The comment for this method
23
+ */
24
+ function Method(name, type, requestType, responseType, requestStream, responseStream, options, comment) {
25
+
26
+ /* istanbul ignore next */
27
+ if (util.isObject(requestStream)) {
28
+ options = requestStream;
29
+ requestStream = responseStream = undefined;
30
+ } else if (util.isObject(responseStream)) {
31
+ options = responseStream;
32
+ responseStream = undefined;
33
+ }
34
+
35
+ /* istanbul ignore if */
36
+ if (!(type === undefined || util.isString(type)))
37
+ throw TypeError("type must be a string");
38
+
39
+ /* istanbul ignore if */
40
+ if (!util.isString(requestType))
41
+ throw TypeError("requestType must be a string");
42
+
43
+ /* istanbul ignore if */
44
+ if (!util.isString(responseType))
45
+ throw TypeError("responseType must be a string");
46
+
47
+ ReflectionObject.call(this, name, options);
48
+
49
+ /**
50
+ * Method type.
51
+ * @type {string}
52
+ */
53
+ this.type = type || "rpc"; // toJSON
54
+
55
+ /**
56
+ * Request type.
57
+ * @type {string}
58
+ */
59
+ this.requestType = requestType; // toJSON, marker
60
+
61
+ /**
62
+ * Whether requests are streamed or not.
63
+ * @type {boolean|undefined}
64
+ */
65
+ this.requestStream = requestStream ? true : undefined; // toJSON
66
+
67
+ /**
68
+ * Response type.
69
+ * @type {string}
70
+ */
71
+ this.responseType = responseType; // toJSON
72
+
73
+ /**
74
+ * Whether responses are streamed or not.
75
+ * @type {boolean|undefined}
76
+ */
77
+ this.responseStream = responseStream ? true : undefined; // toJSON
78
+
79
+ /**
80
+ * Resolved request type.
81
+ * @type {Type|null}
82
+ */
83
+ this.resolvedRequestType = null;
84
+
85
+ /**
86
+ * Resolved response type.
87
+ * @type {Type|null}
88
+ */
89
+ this.resolvedResponseType = null;
90
+
91
+ /**
92
+ * Comment for this method
93
+ * @type {string|null}
94
+ */
95
+ this.comment = comment;
96
+ }
97
+
98
+ /**
99
+ * Method descriptor.
100
+ * @interface IMethod
101
+ * @property {string} [type="rpc"] Method type
102
+ * @property {string} requestType Request type
103
+ * @property {string} responseType Response type
104
+ * @property {boolean} [requestStream=false] Whether requests are streamed
105
+ * @property {boolean} [responseStream=false] Whether responses are streamed
106
+ * @property {Object.<string,*>} [options] Method options
107
+ */
108
+
109
+ /**
110
+ * Constructs a method from a method descriptor.
111
+ * @param {string} name Method name
112
+ * @param {IMethod} json Method descriptor
113
+ * @returns {Method} Created method
114
+ * @throws {TypeError} If arguments are invalid
115
+ */
116
+ Method.fromJSON = function fromJSON(name, json) {
117
+ return new Method(name, json.type, json.requestType, json.responseType, json.requestStream, json.responseStream, json.options, json.comment);
118
+ };
119
+
120
+ /**
121
+ * Converts this method to a method descriptor.
122
+ * @param {IToJSONOptions} [toJSONOptions] JSON conversion options
123
+ * @returns {IMethod} Method descriptor
124
+ */
125
+ Method.prototype.toJSON = function toJSON(toJSONOptions) {
126
+ var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false;
127
+ return util.toObject([
128
+ "type" , this.type !== "rpc" && /* istanbul ignore next */ this.type || undefined,
129
+ "requestType" , this.requestType,
130
+ "requestStream" , this.requestStream,
131
+ "responseType" , this.responseType,
132
+ "responseStream" , this.responseStream,
133
+ "options" , this.options,
134
+ "comment" , keepComments ? this.comment : undefined
135
+ ]);
136
+ };
137
+
138
+ /**
139
+ * @override
140
+ */
141
+ Method.prototype.resolve = function resolve() {
142
+
143
+ /* istanbul ignore if */
144
+ if (this.resolved)
145
+ return this;
146
+
147
+ this.resolvedRequestType = this.parent.lookupType(this.requestType);
148
+ this.resolvedResponseType = this.parent.lookupType(this.responseType);
149
+
150
+ return ReflectionObject.prototype.resolve.call(this);
151
+ };