TypeScript/tests/cases/fourslash/tsxFindAllReferences2.ts

17 lines
592 B
TypeScript
Raw Normal View History

2016-11-08 20:07:17 +01:00
/// <reference path='fourslash.ts' />
//@Filename: file.tsx
//// declare module JSX {
//// interface Element { }
//// interface IntrinsicElements {
//// div: {
2019-06-13 21:25:02 +02:00
//// [|[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}name|]?: string;|]
2016-11-08 20:07:17 +01:00
//// isOpen?: boolean;
//// };
//// span: { n: string; };
//// }
//// }
2019-06-13 21:25:02 +02:00
//// var x = <div [|[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}name|]="hello"|] />;
2016-11-08 20:07:17 +01:00
verify.singleReferenceGroup("(property) name?: string", "name");