mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
66 lines
1.1 KiB
JSON
66 lines
1.1 KiB
JSON
// === findAllReferences ===
|
|
// === /referencesForUnionProperties.ts ===
|
|
// interface One {
|
|
// common: { /*FIND ALL REFS*/[|a|]: number; };
|
|
// }
|
|
//
|
|
// interface Base {
|
|
// --- (line: 6) skipped ---
|
|
|
|
// --- (line: 17) skipped ---
|
|
//
|
|
// var x : One | Two;
|
|
//
|
|
// x.common.[|a|];
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /referencesForUnionProperties.ts ===
|
|
// interface One {
|
|
// common: { a: number; };
|
|
// }
|
|
//
|
|
// interface Base {
|
|
// /*FIND ALL REFS*/[|a|]: string;
|
|
// b: string;
|
|
// }
|
|
//
|
|
// interface HasAOrB extends Base {
|
|
// [|a|]: string;
|
|
// b: string;
|
|
// }
|
|
//
|
|
// interface Two {
|
|
// common: HasAOrB;
|
|
// }
|
|
//
|
|
// var x : One | Two;
|
|
//
|
|
// x.common.[|a|];
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /referencesForUnionProperties.ts ===
|
|
// interface One {
|
|
// common: { [|a|]: number; };
|
|
// }
|
|
//
|
|
// interface Base {
|
|
// [|a|]: string;
|
|
// b: string;
|
|
// }
|
|
//
|
|
// interface HasAOrB extends Base {
|
|
// [|a|]: string;
|
|
// b: string;
|
|
// }
|
|
//
|
|
// interface Two {
|
|
// common: HasAOrB;
|
|
// }
|
|
//
|
|
// var x : One | Two;
|
|
//
|
|
// x.common./*FIND ALL REFS*/[|a|]; |