|
2 | 2 |
|
3 | 3 | Requires all types to be valid JSDoc or Closure compiler types without syntax errors.
|
4 | 4 |
|
5 |
| -Also impacts behaviors on namepath-pointing or event-pointing tags: |
| 5 | +Also impacts behaviors on namepath (or event)-defining and pointing tags: |
6 | 6 |
|
7 |
| -1. `@alias`, `@augments`, `@extends`, `@lends`, `@memberof`, `@memberof!`, `@mixes`, `@name`, `@this` |
8 |
| -1. `@callback`, `@event`, `@listens`, `@fires`, `@emits` |
9 |
| -1. `@borrows` |
| 7 | +1. Name(path)-defining tags: `@alias`, `@augments`, `@extends`, `@lends`, `@memberof`, `@memberof!`, `@mixes`, `@this` |
| 8 | +1. Name(path)-pointing tags: `@class`, `@constructor`, `@constant`, `@const`, `@external`, `@host`, `@function`, `@func`, `@method`, `@interface`, `@member`, `@var`, `@mixin`, `@name`, `@namespace`, `@type`, `@typedef` |
| 9 | +1. Name(path)-defining tags (which may have value without namepath): `@callback`, `@event` |
| 10 | +1. Name(path)-pointing tags (which may have value without namepath): `@listens`, `@fires`, `@emits` |
| 11 | +1. Name(path)-pointing tags (multiple names in one): `@borrows` |
10 | 12 |
|
11 | 13 | The following apply to the above sets:
|
12 | 14 |
|
13 |
| -- Expect tags in set 1 or 2 to have a valid namepath if present |
14 |
| -- Prevent set 2 from being empty by setting `allowEmptyNamepaths` to `false` as these tags might have some indicative value without a path (but set 1 will always fail if empty) |
15 |
| -- For the special case of set 3, i.e., `@borrows <that namepath> as <this namepath>`, check that both namepaths are present and valid and ensure there is an `as ` between them. |
| 15 | +- Expect tags in set 1-4 to have a valid namepath if present |
| 16 | +- Prevent sets 3-4 from being empty by setting `allowEmptyNamepaths` to `false` as these tags might have some indicative value without a path (but sets 1-2 will always fail if empty) |
| 17 | +- For the special case of set 5, i.e., `@borrows <that namepath> as <this namepath>`, check that both namepaths are present and valid and ensure there is an `as ` between them. |
16 | 18 |
|
17 | 19 | |||
|
18 | 20 | |---|---|
|
|
0 commit comments