mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
33 lines
719 B
JSON
33 lines
719 B
JSON
// === goToDefinition ===
|
|
// === /goToDefinitionThis.ts ===
|
|
// function f(<|[|this|]: number|>) {
|
|
// return /*GOTO DEF*/this;
|
|
// }
|
|
// class C {
|
|
// constructor() { return this; }
|
|
// get self(this: number) { return this; }
|
|
// }
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /goToDefinitionThis.ts ===
|
|
// function f(this: number) {
|
|
// return this;
|
|
// }
|
|
// <|class [|C|] {
|
|
// constructor() { return /*GOTO DEF*/this; }
|
|
// get self(this: number) { return this; }
|
|
// }|>
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /goToDefinitionThis.ts ===
|
|
// function f(this: number) {
|
|
// return this;
|
|
// }
|
|
// class C {
|
|
// constructor() { return this; }
|
|
// get self(<|[|this|]: number|>) { return /*GOTO DEF*/this; }
|
|
// } |