1/// <reference path='fourslash.ts'/> 2 3////[|[|declare|] [|abstract|] class [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -3 |}C1|] { 4//// [|[|static|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -2 |}a|];|] 5//// [|[|readonly|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -2 |}b|];|] 6//// [|[|public|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -2 |}c|];|] 7//// [|[|protected|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -2 |}d|];|] 8//// [|[|private|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -2 |}e|];|] 9////}|] 10////[|[|const|] enum [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -2 |}E|] { 11////}|] 12////[|[|async|] function [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -2 |}fn|]() {}|] 13////[|[|export|] [|default|] class [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -3 |}C2|] {}|] 14 15const [ 16 class1Def, declareKeyword, abstractKeyword, class1Name, 17 aDef, staticKeyword, aName, 18 bDef, readonlyKeyword, bName, 19 cDef, publicKeyword, cName, 20 dDef, protectedKeyword, dName, 21 eDef, privateKeyword, eName, 22 enumDef, constKeyword, enumName, 23 functionDef, asyncKeyword, functionName, 24 class2Def, exportKeyword, defaultKeyword, class2Name, 25] = test.ranges(); 26verify.renameLocations([declareKeyword, abstractKeyword], [{ range: class1Name }]); 27verify.renameLocations([staticKeyword], [{ range: aName }]); 28verify.renameLocations([readonlyKeyword], [{ range: bName }]); 29verify.renameLocations([publicKeyword], [{ range: cName }]); 30verify.renameLocations([protectedKeyword], [{ range: dName }]); 31verify.renameLocations([privateKeyword], [{ range: eName }]); 32verify.renameLocations([constKeyword], [{ range: enumName }]); 33verify.renameLocations([asyncKeyword], [{ range: functionName }]); 34verify.renameLocations([exportKeyword, defaultKeyword], [{ range: class2Name }]); 35