* Don't count a write-only reference as a use * Split isWriteAccess to isWriteOnlyAccess and isReadOnlyAccess * Update "unusedParameterUsedInTypeOf" to use "b" * Update diagnostic messages: "is never used" -> "its value is never read" * Use a WriteKind enum * Rename enum and move documentation to enum members
23 lines
528 B
TypeScript
23 lines
528 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
// References to local inside a class.
|
|
|
|
////var n = 14;
|
|
////
|
|
////class foo {
|
|
//// private [|{| "isWriteAccess": true, "isDefinition": true |}n|] = 0;
|
|
////
|
|
//// public bar() {
|
|
//// this.[|{| "isWriteAccess": true |}n|] = 9;
|
|
//// }
|
|
////
|
|
//// constructor() {
|
|
//// this.[|{| "isWriteAccess": true |}n|] = 4;
|
|
//// }
|
|
////
|
|
//// public bar2() {
|
|
//// var n = 12;
|
|
//// }
|
|
////}
|
|
|
|
verify.singleReferenceGroup("(property) foo.n: number");
|