Merge pull request #1333 from Microsoft/getOccurancesAssert

Handle const modifier in getOccurrences
This commit is contained in:
Mohamed Hegazy
2014-12-02 21:08:35 -08:00
2 changed files with 18 additions and 0 deletions

View File

@@ -3807,6 +3807,10 @@ module ts {
return undefined;
}
}
else {
// unsupported modifier
return undefined;
}
var keywords: Node[] = [];
var modifierFlag: NodeFlags = getFlagFromModifier(modifier);

View File

@@ -0,0 +1,14 @@
/// <reference path='fourslash.ts' />
/////*1*/const enum E1 {
//// v1,
//// v2
////}
////
/////*2*/const c = 0;
goTo.marker("1");
verify.occurrencesAtPositionCount(0);
goTo.marker("2");
verify.occurrencesAtPositionCount(0);