mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
131 lines
3.2 KiB
JSON
131 lines
3.2 KiB
JSON
// === goToDefinition ===
|
|
// === /goToDefinitionObjectBindingPattern.ts ===
|
|
//
|
|
// interface SomeType {
|
|
// <|[|targetProperty|]: number;|>
|
|
// }
|
|
//
|
|
// function foo(callback: (p: SomeType) => void) {}
|
|
//
|
|
// foo(({ /*GOTO DEF*/targetProperty }) => {
|
|
// targetProperty
|
|
// });
|
|
//
|
|
// --- (line: 12) skipped ---
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /goToDefinitionObjectBindingPattern.ts ===
|
|
// --- (line: 4) skipped ---
|
|
//
|
|
// function foo(callback: (p: SomeType) => void) {}
|
|
//
|
|
// foo((<|{ [|targetProperty|] }|>) => {
|
|
// /*GOTO DEF*/targetProperty
|
|
// });
|
|
//
|
|
// let { targetProperty }: SomeType = { targetProperty: 42 };
|
|
// --- (line: 13) skipped ---
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /goToDefinitionObjectBindingPattern.ts ===
|
|
//
|
|
// interface SomeType {
|
|
// <|[|targetProperty|]: number;|>
|
|
// }
|
|
//
|
|
// function foo(callback: (p: SomeType) => void) {}
|
|
//
|
|
// foo(({ targetProperty }) => {
|
|
// targetProperty
|
|
// });
|
|
//
|
|
// let { /*GOTO DEF*/targetProperty }: SomeType = { targetProperty: 42 };
|
|
//
|
|
// let { targetProperty: alias_1 }: SomeType = { targetProperty: 42 };
|
|
//
|
|
// let { x: { targetProperty: {} } }: { x: SomeType } = { x: { targetProperty: 42 } };
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /goToDefinitionObjectBindingPattern.ts ===
|
|
//
|
|
// interface SomeType {
|
|
// <|[|targetProperty|]: number;|>
|
|
// }
|
|
//
|
|
// function foo(callback: (p: SomeType) => void) {}
|
|
//
|
|
// foo(({ targetProperty }) => {
|
|
// targetProperty
|
|
// });
|
|
//
|
|
// let { targetProperty }: SomeType = { /*GOTO DEF*/targetProperty: 42 };
|
|
//
|
|
// let { targetProperty: alias_1 }: SomeType = { targetProperty: 42 };
|
|
//
|
|
// let { x: { targetProperty: {} } }: { x: SomeType } = { x: { targetProperty: 42 } };
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /goToDefinitionObjectBindingPattern.ts ===
|
|
//
|
|
// interface SomeType {
|
|
// <|[|targetProperty|]: number;|>
|
|
// }
|
|
//
|
|
// function foo(callback: (p: SomeType) => void) {}
|
|
// --- (line: 7) skipped ---
|
|
|
|
// --- (line: 10) skipped ---
|
|
//
|
|
// let { targetProperty }: SomeType = { targetProperty: 42 };
|
|
//
|
|
// let { /*GOTO DEF*/targetProperty: alias_1 }: SomeType = { targetProperty: 42 };
|
|
//
|
|
// let { x: { targetProperty: {} } }: { x: SomeType } = { x: { targetProperty: 42 } };
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /goToDefinitionObjectBindingPattern.ts ===
|
|
// --- (line: 10) skipped ---
|
|
//
|
|
// let { targetProperty }: SomeType = { targetProperty: 42 };
|
|
//
|
|
// <|let { targetProperty: /*GOTO DEF*/[|alias_1|] }: SomeType = { targetProperty: 42 };|>
|
|
//
|
|
// let { x: { targetProperty: {} } }: { x: SomeType } = { x: { targetProperty: 42 } };
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /goToDefinitionObjectBindingPattern.ts ===
|
|
//
|
|
// interface SomeType {
|
|
// <|[|targetProperty|]: number;|>
|
|
// }
|
|
//
|
|
// function foo(callback: (p: SomeType) => void) {}
|
|
// --- (line: 7) skipped ---
|
|
|
|
// --- (line: 12) skipped ---
|
|
//
|
|
// let { targetProperty: alias_1 }: SomeType = { targetProperty: 42 };
|
|
//
|
|
// let { x: { /*GOTO DEF*/targetProperty: {} } }: { x: SomeType } = { x: { targetProperty: 42 } };
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /goToDefinitionObjectBindingPattern.ts ===
|
|
// --- (line: 12) skipped ---
|
|
//
|
|
// let { targetProperty: alias_1 }: SomeType = { targetProperty: 42 };
|
|
//
|
|
// let { x: { targetProperty: /*GOTO DEF*/{} } }: { x: SomeType } = { x: { targetProperty: 42 } }; |