27 lines
1 KiB
TypeScript
27 lines
1 KiB
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////var [|{| "isWriteAccess": true |}x|] = 0;
|
|
////var assignmentRightHandSide = [|{| "isWriteAccess": false |}x|];
|
|
////var assignmentRightHandSide2 = 1 + [|{| "isWriteAccess": false |}x|];
|
|
////
|
|
////[|{| "isWriteAccess": true |}x|] = 1;
|
|
////[|{| "isWriteAccess": true |}x|] = [|{| "isWriteAccess": false |}x|] + [|{| "isWriteAccess": false |}x|];
|
|
////
|
|
////[|{| "isWriteAccess": false |}x|] == 1;
|
|
////[|{| "isWriteAccess": false |}x|] <= 1;
|
|
////
|
|
////var preIncrement = ++[|{| "isWriteAccess": true |}x|];
|
|
////var postIncrement = [|{| "isWriteAccess": true |}x|]++;
|
|
////var preDecrement = --[|{| "isWriteAccess": true |}x|];
|
|
////var postDecrement = [|{| "isWriteAccess": true |}x|]--;
|
|
////
|
|
////[|{| "isWriteAccess": true |}x|] += 1;
|
|
////[|{| "isWriteAccess": true |}x|] <<= 1;
|
|
|
|
|
|
var firstRange = test.ranges()[0];
|
|
goTo.position(firstRange.start, firstRange.fileName);
|
|
|
|
test.ranges().forEach((range) => {
|
|
verify.occurrencesAtPositionContains(range, range.marker.data.isWriteAccess);
|
|
});
|