Skip to content

Commit 3a687ac

Browse files
Copilotjakebailey
andcommitted
Delete unnecessary test file and merge from main with updated baselines
Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
1 parent e916f23 commit 3a687ac

File tree

436 files changed

+16824
-5820
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

436 files changed

+16824
-5820
lines changed

_submodules/TypeScript

Submodule TypeScript updated 2335 files

internal/ls/definition_link_support_test.go

Lines changed: 0 additions & 38 deletions
This file was deleted.

testdata/baselines/reference/fourslash/goToDefinition/declarationMapGoToDefinition.baseline.jsonc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// === goToDefinition ===
2-
// === /index.ts ===
3-
// export class Foo {
2+
// === /indexdef.d.ts ===
3+
// export declare class Foo {
44
// member: string;
5-
// [|methodName|](propName: SomeType): void {}
6-
// otherMethod() {
7-
// if (Math.random() > 0.5) {
8-
// return {x: 42};
5+
// [|methodName|](propName: SomeType): void;
6+
// otherMethod(): {
7+
// x: number;
8+
// y?: undefined;
99
// // --- (line: 7) skipped ---
1010

1111
// === /mymodule.ts ===

testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// === goToDefinition ===
2-
// === /index.ts ===
3-
// export class Foo {
2+
// === /out/indexdef.d.ts ===
3+
// export declare class Foo {
44
// member: string;
5-
// [|methodName|](propName: SomeType): void {}
6-
// otherMethod() {
7-
// if (Math.random() > 0.5) {
8-
// return {x: 42};
5+
// [|methodName|](propName: SomeType): void;
6+
// otherMethod(): {
7+
// x: number;
8+
// y?: undefined;
99
// // --- (line: 7) skipped ---
1010

1111
// === /mymodule.ts ===

testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// === goToDefinition ===
2-
// === /BaseClass/Source.ts ===
3-
// class [|Control|]{
4-
// constructor(){
5-
// return;
6-
// }
7-
// // --- (line: 5) skipped ---
2+
// === /BaseClass/Source.d.ts ===
3+
// declare class [|Control|] {
4+
// constructor();
5+
// /** this is a super var */
6+
// myVar: boolean | 'yeah';
7+
// }
8+
// //# sourceMappingURL=Source.d.ts.map
89

910
// === /buttonClass/Source.ts ===
1011
// // I cannot F12 navigate to Control
@@ -18,14 +19,13 @@
1819

1920

2021
// === goToDefinition ===
21-
// === /BaseClass/Source.ts ===
22-
// class Control{
23-
// constructor(){
24-
// return;
25-
// }
22+
// === /BaseClass/Source.d.ts ===
23+
// declare class Control {
24+
// constructor();
2625
// /** this is a super var */
27-
// public [|myVar|]: boolean | 'yeah' = true;
26+
// [|myVar|]: boolean | 'yeah';
2827
// }
28+
// //# sourceMappingURL=Source.d.ts.map
2929

3030
// === /buttonClass/Source.ts ===
3131
// --- (line: 3) skipped ---
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// === goToDefinition ===
2-
// === /home/src/workspaces/project/node_modules/a/src/index.ts ===
3-
// export class [|Foo|] {
2+
// === /home/src/workspaces/project/node_modules/a/dist/index.d.ts ===
3+
// export declare class [|Foo|] {
4+
// bar: any;
45
// }
5-
//
6+
// //# sourceMappingURL=index.d.ts.map
67

78
// === /home/src/workspaces/project/index.ts ===
89
// import { Foo/*GOTO DEF*/ } from "a";

testdata/baselines/reference/submodule/compiler/argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.errors.txt

Lines changed: 2 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,9 @@ argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(3,10): error
22
argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(9,10): error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
33
argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(15,15): error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
44
argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(21,15): error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
5-
argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(33,16): error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
6-
argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(40,7): error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
7-
argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(42,16): error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
8-
argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(66,6): error TS2585: 'Symbol' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later.
9-
argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(75,7): error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
10-
argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(77,9): error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
11-
argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(96,26): error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
12-
argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(102,15): error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
135

146

15-
==== argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts (12 errors) ====
7+
==== argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts (4 errors) ====
168
function A() {
179
return class T {
1810
a = arguments
@@ -49,104 +41,4 @@ argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(102,15): erro
4941
return class T {
5042
a = function () { arguments }
5143
}
52-
}
53-
54-
function D() {
55-
return class T {
56-
a = () => arguments // should error
57-
~~~~~~~~~
58-
!!! error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
59-
}
60-
}
61-
62-
function D1() {
63-
return class T {
64-
a = () => {
65-
arguments; // should error
66-
~~~~~~~~~
67-
!!! error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
68-
const b = () => {
69-
return arguments; // should error
70-
~~~~~~~~~
71-
!!! error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
72-
}
73-
74-
function f() {
75-
return arguments; // ok
76-
}
77-
}
78-
}
79-
}
80-
81-
function D2() {
82-
return class {
83-
constructor() {
84-
arguments; // ok
85-
}
86-
get foo() {
87-
return arguments; // ok
88-
}
89-
set foo(foo: any) {
90-
arguments; // ok
91-
}
92-
bar() {
93-
arguments; // ok
94-
}
95-
[Symbol.iterator]() {
96-
~~~~~~
97-
!!! error TS2585: 'Symbol' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later.
98-
arguments; // ok
99-
}
100-
}
101-
}
102-
103-
function D3() {
104-
return class T {
105-
static {
106-
arguments; // should error
107-
~~~~~~~~~
108-
!!! error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
109-
while(1) {
110-
arguments // should error
111-
~~~~~~~~~
112-
!!! error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
113-
}
114-
}
115-
}
116-
}
117-
118-
function D4() {
119-
return class T {
120-
static {
121-
function f() {
122-
arguments; // ok
123-
}
124-
}
125-
}
126-
}
127-
128-
129-
function D5() {
130-
return class T {
131-
a = (() => { return arguments; })() // should error
132-
~~~~~~~~~
133-
!!! error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
134-
}
135-
}
136-
137-
function D6() {
138-
return class T {
139-
a = (x = arguments) => {} // should error
140-
~~~~~~~~~
141-
!!! error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
142-
}
143-
}
144-
145-
function D7() {
146-
return class T {
147-
a(x = arguments){ // ok
148-
149-
}
150-
}
151-
}
152-
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
--- old.argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.errors.txt
2+
+++ new.argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.errors.txt
3+
@@= skipped -0, +0 lines =@@
4+
-argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(3,10): error TS2815: 'arguments' cannot be referenced in property initializers.
5+
-argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(9,10): error TS2815: 'arguments' cannot be referenced in property initializers.
6+
-argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(15,15): error TS2815: 'arguments' cannot be referenced in property initializers.
7+
-argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(21,15): error TS2815: 'arguments' cannot be referenced in property initializers.
8+
+argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(3,10): error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
9+
+argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(9,10): error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
10+
+argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(15,15): error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
11+
+argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts(21,15): error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
12+
13+
14+
==== argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts (4 errors) ====
15+
@@= skipped -8, +8 lines =@@
16+
return class T {
17+
a = arguments
18+
~~~~~~~~~
19+
-!!! error TS2815: 'arguments' cannot be referenced in property initializers.
20+
+!!! error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
21+
}
22+
}
23+
24+
@@= skipped -8, +8 lines =@@
25+
return new class T {
26+
a = arguments
27+
~~~~~~~~~
28+
-!!! error TS2815: 'arguments' cannot be referenced in property initializers.
29+
+!!! error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
30+
}
31+
}
32+
33+
@@= skipped -8, +8 lines =@@
34+
return class T {
35+
a = { b: arguments }
36+
~~~~~~~~~
37+
-!!! error TS2815: 'arguments' cannot be referenced in property initializers.
38+
+!!! error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
39+
}
40+
}
41+
42+
@@= skipped -8, +8 lines =@@
43+
return new class T {
44+
a = { b: arguments }
45+
~~~~~~~~~
46+
-!!! error TS2815: 'arguments' cannot be referenced in property initializers.
47+
+!!! error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
48+
}
49+
}
50+

0 commit comments

Comments
 (0)