TypeScript/tests/cases/fourslash/quickInfoForGetterAndSetter.ts
Wenlu Wang 8d78984558
Add support of contextual quick info (#37451)
* Add support of contextual quick info

* Avoid document comment map

* Make lint happy

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-05-06 15:05:31 -07:00

24 lines
529 B
TypeScript

/// <reference path='fourslash.ts'/>
//// class Test {
//// constructor() {
//// this.value;
//// }
////
//// /** Getter text */
//// get val/*1*/ue() {
//// return this.value;
//// }
////
//// /** Setter text */
//// set val/*2*/ue(value) {
//// this.value = value;
//// }
//// }
goTo.marker("1");
verify.quickInfoIs("(property) Test.value: any", "Getter text");
goTo.marker("2");
verify.quickInfoIs("(property) Test.value: any", "Setter text");