mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
fix test/basellines (#59663)
This commit is contained in:
@@ -1,18 +1,37 @@
|
||||
// === goToDefinition ===
|
||||
// === /tests/cases/fourslash/definitions.ts ===
|
||||
// export class Base {
|
||||
// [|{| defId: 1 |}constructor(protected readonly cArg: string) {}|]
|
||||
// }
|
||||
//
|
||||
// <|export class [|{| defId: 0 |}Derived|] extends Base {
|
||||
// readonly email = this.cArg.getByLabel('Email')
|
||||
// readonly password = this.cArg.getByLabel('Password')
|
||||
// }|>
|
||||
|
||||
// === /tests/cases/fourslash/main.ts ===
|
||||
// <|import { [|Derived|] } from './base'|>
|
||||
// const derived = new /*GOTO DEF*/Derived(cArg)
|
||||
// import { Derived } from './definitions'
|
||||
// const derived = new /*GOTO DEF*/[|Derived|](cArg)
|
||||
|
||||
// === Details ===
|
||||
[
|
||||
{
|
||||
"kind": "alias",
|
||||
"defId": 0,
|
||||
"kind": "class",
|
||||
"name": "Derived",
|
||||
"containerName": "",
|
||||
"isLocal": true,
|
||||
"containerName": "\"/tests/cases/fourslash/definitions\"",
|
||||
"isLocal": false,
|
||||
"isAmbient": false,
|
||||
"unverified": false,
|
||||
"failedAliasResolution": true
|
||||
"unverified": false
|
||||
},
|
||||
{
|
||||
"defId": 1,
|
||||
"kind": "constructor",
|
||||
"name": "__constructor",
|
||||
"containerName": "Base",
|
||||
"isLocal": false,
|
||||
"isAmbient": false,
|
||||
"unverified": false
|
||||
}
|
||||
]
|
||||
|
||||
@@ -20,16 +39,25 @@
|
||||
|
||||
// === goToDefinition ===
|
||||
// === /tests/cases/fourslash/defInSameFile.ts ===
|
||||
// import { Base } from './base'
|
||||
// <|class [|SameFile|] extends Base {
|
||||
// import { Base } from './definitions'
|
||||
// <|class [|{| defId: 0 |}SameFile|] extends Base {
|
||||
// readonly name: string = 'SameFile'
|
||||
// }|>
|
||||
// const SameFile = new /*GOTO DEF*/SameFile(cArg)
|
||||
// const wrapper = new Base(cArg)
|
||||
|
||||
// === /tests/cases/fourslash/definitions.ts ===
|
||||
// export class Base {
|
||||
// [|{| defId: 1 |}constructor(protected readonly cArg: string) {}|]
|
||||
// }
|
||||
//
|
||||
// export class Derived extends Base {
|
||||
// --- (line: 6) skipped ---
|
||||
|
||||
// === Details ===
|
||||
[
|
||||
{
|
||||
"defId": 0,
|
||||
"kind": "class",
|
||||
"name": "SameFile",
|
||||
"containerName": "",
|
||||
@@ -37,6 +65,16 @@
|
||||
"isAmbient": false,
|
||||
"unverified": false,
|
||||
"failedAliasResolution": false
|
||||
},
|
||||
{
|
||||
"defId": 1,
|
||||
"kind": "constructor",
|
||||
"name": "__constructor",
|
||||
"containerName": "Base",
|
||||
"isLocal": false,
|
||||
"isAmbient": false,
|
||||
"unverified": false,
|
||||
"failedAliasResolution": false
|
||||
}
|
||||
]
|
||||
|
||||
@@ -44,7 +82,7 @@
|
||||
|
||||
// === goToDefinition ===
|
||||
// === /tests/cases/fourslash/hasConstructor.ts ===
|
||||
// import { Base } from './base'
|
||||
// import { Base } from './definitions'
|
||||
// <|class [|{| defId: 0 |}HasConstructor|] extends Base {
|
||||
// [|{| defId: 1 |}constructor() {}|]
|
||||
// readonly name: string = '';
|
||||
@@ -78,23 +116,42 @@
|
||||
|
||||
|
||||
// === goToDefinition ===
|
||||
// === /tests/cases/fourslash/definitions.ts ===
|
||||
// <|export class [|{| defId: 0 |}Base|] {
|
||||
// [|{| defId: 1 |}constructor(protected readonly cArg: string) {}|]
|
||||
// }|>
|
||||
//
|
||||
// export class Derived extends Base {
|
||||
// readonly email = this.cArg.getByLabel('Email')
|
||||
// readonly password = this.cArg.getByLabel('Password')
|
||||
// }
|
||||
|
||||
// === /tests/cases/fourslash/defInSameFile.ts ===
|
||||
// <|import { [|Base|] } from './base'|>
|
||||
// import { Base } from './definitions'
|
||||
// class SameFile extends Base {
|
||||
// readonly name: string = 'SameFile'
|
||||
// }
|
||||
// const SameFile = new SameFile(cArg)
|
||||
// const wrapper = new /*GOTO DEF*/Base(cArg)
|
||||
// const wrapper = new /*GOTO DEF*/[|Base|](cArg)
|
||||
|
||||
// === Details ===
|
||||
[
|
||||
{
|
||||
"kind": "alias",
|
||||
"defId": 0,
|
||||
"kind": "class",
|
||||
"name": "Base",
|
||||
"containerName": "",
|
||||
"isLocal": true,
|
||||
"containerName": "\"/tests/cases/fourslash/definitions\"",
|
||||
"isLocal": false,
|
||||
"isAmbient": false,
|
||||
"unverified": false,
|
||||
"failedAliasResolution": true
|
||||
"unverified": false
|
||||
},
|
||||
{
|
||||
"defId": 1,
|
||||
"kind": "constructor",
|
||||
"name": "__constructor",
|
||||
"containerName": "Base",
|
||||
"isLocal": false,
|
||||
"isAmbient": false,
|
||||
"unverified": false
|
||||
}
|
||||
]
|
||||
@@ -11,11 +11,11 @@
|
||||
//// }
|
||||
|
||||
// @filename: main.ts
|
||||
//// import { Derived } from './base'
|
||||
//// import { Derived } from './definitions'
|
||||
//// const derived = new [|/*Derived*/Derived|](cArg)
|
||||
|
||||
// @filename: defInSameFile.ts
|
||||
//// import { Base } from './base'
|
||||
//// import { Base } from './definitions'
|
||||
//// class SameFile extends Base {
|
||||
//// readonly name: string = 'SameFile'
|
||||
//// }
|
||||
@@ -23,7 +23,7 @@
|
||||
//// const wrapper = new [|/*Base*/Base|](cArg)
|
||||
|
||||
// @filename: hasConstructor.ts
|
||||
//// import { Base } from './base'
|
||||
//// import { Base } from './definitions'
|
||||
//// class HasConstructor extends Base {
|
||||
//// constructor() {}
|
||||
//// readonly name: string = '';
|
||||
|
||||
Reference in New Issue
Block a user