mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
65 lines
1.7 KiB
JSON
65 lines
1.7 KiB
JSON
// === goToDefinition ===
|
|
// === /definitions.ts ===
|
|
// export class Base {
|
|
// [|constructor(protected readonly cArg: string) {}|]
|
|
// }
|
|
//
|
|
// <|export class [|Derived|] extends Base {
|
|
// readonly email = this.cArg.getByLabel('Email')
|
|
// readonly password = this.cArg.getByLabel('Password')
|
|
// }|>
|
|
|
|
// === /main.ts ===
|
|
// import { Derived } from './definitions'
|
|
// const derived = new /*GOTO DEF*/[|Derived|](cArg)
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /defInSameFile.ts ===
|
|
// import { Base } from './definitions'
|
|
// <|class [|SameFile|] extends Base {
|
|
// readonly name: string = 'SameFile'
|
|
// }|>
|
|
// const SameFile = new /*GOTO DEF*/SameFile(cArg)
|
|
// const wrapper = new Base(cArg)
|
|
|
|
// === /definitions.ts ===
|
|
// export class Base {
|
|
// [|constructor(protected readonly cArg: string) {}|]
|
|
// }
|
|
//
|
|
// export class Derived extends Base {
|
|
// --- (line: 6) skipped ---
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /hasConstructor.ts ===
|
|
// import { Base } from './definitions'
|
|
// <|class [|HasConstructor|] extends Base {
|
|
// [|constructor() {}|]
|
|
// readonly name: string = '';
|
|
// }|>
|
|
// const hasConstructor = new /*GOTO DEF*/HasConstructor(cArg)
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /definitions.ts ===
|
|
// <|export class [|Base|] {
|
|
// [|constructor(protected readonly cArg: string) {}|]
|
|
// }|>
|
|
//
|
|
// export class Derived extends Base {
|
|
// readonly email = this.cArg.getByLabel('Email')
|
|
// readonly password = this.cArg.getByLabel('Password')
|
|
// }
|
|
|
|
// === /defInSameFile.ts ===
|
|
// import { Base } from './definitions'
|
|
// class SameFile extends Base {
|
|
// readonly name: string = 'SameFile'
|
|
// }
|
|
// const SameFile = new SameFile(cArg)
|
|
// const wrapper = new /*GOTO DEF*/[|Base|](cArg) |