a34fdb203e
* Support template literals in enum declarations * Support template literals in const enum access * Support template literals in swith with typeof narrowing * Support template literals in element access discriminant * Support template literals in ambient module declaration * Unify symbols for template literals in computed properties * Unify expression position checks for template literals * Support template literals in rename and find all references * Mark computed properties with template literals as write access * Inline startsWithQuote
22 lines
582 B
TypeScript
22 lines
582 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////interface Obj {
|
|
//// [|[`[|{| "isDefinition": true, "contextRangeIndex": 0 |}num|]`]: number;|]
|
|
////}
|
|
////
|
|
////let o: Obj = {
|
|
//// [|[`[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}num|]`]: 0|]
|
|
////};
|
|
////
|
|
////o = {
|
|
//// [|['[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 4 |}num|]']: 1|]
|
|
////};
|
|
////
|
|
////o['[|num|]'] = 2;
|
|
////o[`[|num|]`] = 3;
|
|
////
|
|
////o['[|num|]'];
|
|
////o[`[|num|]`];
|
|
|
|
verify.singleReferenceGroup("(property) Obj[`num`]: number", "num");
|