TypeScript/tests/cases/fourslash/quickInfoPropertyTag.ts
Andy a77c6014b3
Parse comment on @property tag and use as documentation comment (#21119)
* Parse comment on @property tag and use as documentation comment

* Fix comment parsing bug -- back up after seeing `@` character

* Add test for indent

* Don't default comment to ""
2018-01-11 10:49:39 -08:00

16 lines
372 B
TypeScript

/// <reference path='fourslash.ts' />
// @allowJs: true
// @Filename: /a.js
/////**
//// * @typedef I
//// * @property {number} x Doc
//// * More doc
//// */
////
/////** @type {I} */
////const obj = { /**/x: 10 };
// TODO: GH#21123 There shouldn't be a " " before "More doc"
verify.quickInfoAt("", "(property) x: number", "Doc\n More doc");