update getSymbolInfo

This commit is contained in:
Mohamed Hegazy
2014-08-21 00:13:29 -07:00
parent e0ffc47acc
commit bbeeb8df7f
4 changed files with 53 additions and 14 deletions

View File

@@ -0,0 +1,15 @@
/// <reference path='fourslash.ts'/>
////class Foo {
//// /*1*/"blah"() { return 0; }
////}
////
////var x: Foo;
////x./*2*/blah;
goTo.marker("1");
verify.referencesCountIs(2);
goTo.marker("2");
verify.referencesCountIs(2);

View File

@@ -0,0 +1,15 @@
/// <reference path='fourslash.ts'/>
////class Foo2 {
//// get /*1*/"42"() { return 0; }
//// set /*2*/42(n) { }
////}
////
////var y: Foo2;
////y[42];
goTo.marker("1");
verify.referencesCountIs(3);
goTo.marker("2");
verify.referencesCountIs(3);