File tree Expand file tree Collapse file tree 1 file changed +54
-9
lines changed Expand file tree Collapse file tree 1 file changed +54
-9
lines changed Original file line number Diff line number Diff line change @@ -6373,7 +6373,35 @@ function quux() {
6373
6373
6374
6374
}
6375
6375
// Settings: {"jsdoc":{"allowEmptyNamepaths":false}}
6376
- // Message: Syntax error in type:
6376
+ // Message: Tag @callback must have a namepath
6377
+
6378
+ /**
6379
+ * @constant {str%ng}
6380
+ */
6381
+ const FOO = ' foo' ;
6382
+ // Message: Syntax error in type: str%ng
6383
+
6384
+ /**
6385
+ * @typedef {str%ng} UserString
6386
+ */
6387
+ // Message: Syntax error in type: str%ng
6388
+
6389
+ /**
6390
+ * @typedef {string} UserStr%ng
6391
+ */
6392
+ // Message: Syntax error in type: UserStr%ng
6393
+
6394
+ /**
6395
+ * @extends
6396
+ */
6397
+ class Bar {};
6398
+ // Message: Tag @extends must have either a type or namepath
6399
+
6400
+ /**
6401
+ * @type
6402
+ */
6403
+ let foo;
6404
+ // Message: Tag @type must have a type
6377
6405
````
6378
6406
6379
6407
The following patterns are not considered problems:
@@ -6414,13 +6442,6 @@ function quux() {
6414
6442
6415
6443
}
6416
6444
6417
- /**
6418
- * @see foo%
6419
- */
6420
- function quux () {
6421
-
6422
- }
6423
-
6424
6445
/**
6425
6446
* @alias module:namespace.SomeClass#event:ext_anevent
6426
6447
*/
@@ -6429,7 +6450,7 @@ function quux() {
6429
6450
}
6430
6451
6431
6452
/**
6432
- * @callback
6453
+ * @callback foo
6433
6454
*/
6434
6455
function quux () {
6435
6456
@@ -6477,6 +6498,30 @@ function quux() {
6477
6498
function quux () {
6478
6499
6479
6500
}
6501
+
6502
+ /**
6503
+ * @constant {string}
6504
+ */
6505
+ const FOO = ' foo' ;
6506
+
6507
+ /**
6508
+ * @extends Foo
6509
+ */
6510
+ class Bar {};
6511
+
6512
+ /**
6513
+ * @extends {Foo<String>}
6514
+ */
6515
+ class Bar {};
6516
+
6517
+ /**
6518
+ * @typedef {number|string} UserDefinedType
6519
+ */
6520
+
6521
+ /**
6522
+ * @typedef {number|string}
6523
+ */
6524
+ let UserDefinedGCCType;
6480
6525
````
6481
6526
6482
6527
You can’t perform that action at this time.
0 commit comments