You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/data/comments.js
+9-10Lines changed: 9 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -14,21 +14,20 @@ $root.Test1 = (function() {
14
14
/**
15
15
* Properties of a Test1.
16
16
* @interface ITest1
17
-
* @name ITest1
18
17
* @property {string} [field1] Field with a comment.
19
18
* @property {number} [field2] Test1 field2.
20
19
* @property {boolean} [field3] Field with a comment and a <a href="http://example.com/foo/">link</a>
21
20
*/
22
21
23
22
/**
24
23
* Constructs a new Test1.
24
+
* @exports Test1
25
25
* @classdesc Message
26
26
* with
27
27
* a
28
28
* comment.
29
29
* @constructor
30
30
* @param {ITest1=} [properties] Properties to set
31
-
* @name Test1
32
31
*/
33
32
functionTest1(properties){
34
33
if(properties)
@@ -140,7 +139,7 @@ $root.Test1 = (function() {
140
139
/**
141
140
* Verifies a Test1 message.
142
141
* @param {Object.<string,*>} message Plain object to verify
143
-
* @returns {?string} `null` if valid, otherwise the reason why it is not
142
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
144
143
*/
145
144
Test1.verify=functionverify(message){
146
145
if(typeofmessage!=="object"||message===null)
@@ -215,14 +214,14 @@ $root.Test2 = (function() {
215
214
/**
216
215
* Properties of a Test2.
217
216
* @interface ITest2
218
-
* @name ITest2
219
217
*/
220
218
221
219
/**
222
220
* Constructs a new Test2.
221
+
* @exports Test2
222
+
* @classdesc Represents a Test2
223
223
* @constructor
224
224
* @param {ITest2=} [properties] Properties to set
225
-
* @name Test2
226
225
*/
227
226
functionTest2(properties){
228
227
if(properties)
@@ -301,7 +300,7 @@ $root.Test2 = (function() {
301
300
/**
302
301
* Verifies a Test2 message.
303
302
* @param {Object.<string,*>} message Plain object to verify
304
-
* @returns {?string} `null` if valid, otherwise the reason why it is not
303
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
305
304
*/
306
305
Test2.verify=functionverify(message){
307
306
if(typeofmessage!=="object"||message===null)
@@ -343,18 +342,18 @@ $root.Test2 = (function() {
343
342
344
343
/**
345
344
* Test3 enum.
346
-
* @name Test3
347
-
* @enum {number}
348
-
* @name Test3
345
+
* @enum {number} Test3
349
346
* @property {number} ONE=1 Value with a comment.
350
347
* @property {number} TWO=2 TWO value
351
-
* @property {number} THREE=3 Value with a comment.
348
+
* @property {number} THREE=3 Preferred value with a comment.
349
+
* @property {number} FOUR=4 Other value with a comment.
0 commit comments