Files
TypeScript/tests/cases/compiler
Sean Barag a46d2705ef Use documentation comments from inherited properties when @inheritDoc is present (#18804)
* Use documentation comments from inherited properties when @inheritDoc is present

The JSDoc `@ineheritDoc` [tag](http://usejsdoc.org/tags-inheritdoc.html)
"indicates that a symbol should inherit its documentation from its
parent class".  In the case of a TypeScript file, this also includes
implemented interfaces and parent interfaces.

With this change, a class method or property (or an interface property)
with the `@inheritDoc` tag in its JSDoc comment will automatically use
the comments from its nearest ancestor that has no `@inheritDoc` tag.
To prevent breaking backwards compatibility,
`Symbol.getDocumentationComment` now accepts an optional `TypeChecker`
instance to support this feature.

fixes #8912

* Use ts.getJSDocTags as per @andy-ms 's recommendation

* Convert @inheritDoc tests to verify.quickInfoAt

* Concatenate inherited and local docs when @inheritDoc is present

* Make typeChecker param explicitly `TypeChecker | undefined`

* Re-accept baseline after switch to explicit `| undefined`

* Update APISample_jsodc.ts to match new getDocumentationComment signature

* Re-accept baselines after rebasing
2017-11-06 13:18:21 -08:00
..
2017-08-24 15:06:06 -07:00
2017-03-08 21:50:23 -08:00
2017-03-08 21:50:23 -08:00
2017-03-08 21:50:23 -08:00
2017-03-08 21:50:23 -08:00
2017-03-07 13:48:37 -08:00
2017-08-30 17:14:16 -07:00
2017-03-23 11:23:26 -07:00
2017-08-02 12:07:09 -07:00
2017-07-30 18:08:10 -07:00
2017-03-27 11:44:49 +02:00
2017-03-09 11:57:56 -08:00
2017-09-08 15:51:25 -07:00
2017-04-04 14:53:48 -07:00
2017-08-25 08:55:43 -07:00
2017-07-24 17:07:24 -07:00
2017-06-12 13:17:24 -07:00
2017-03-13 13:24:14 -07:00
2017-04-03 12:32:54 -07:00
2017-10-06 09:22:10 -07:00
2017-05-04 10:20:13 -07:00