Skip to content

Commit 38de65a

Browse files
author
Andy
authored
Merge pull request microsoft#10607 from Microsoft/remove_useless_inserts
Remove useless inserts that used to be required to trigger checks
2 parents 707d61d + d47b3e2 commit 38de65a

24 files changed

+0
-72
lines changed

tests/cases/fourslash/cloduleAsBaseClass.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
////d./*1*/
2424
////D./*2*/
2525

26-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
27-
edit.insert('');
28-
2926
goTo.marker('1');
3027
verify.completionListContains('foo');
3128
verify.completionListContains('foo2');

tests/cases/fourslash/cloduleAsBaseClass2.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
////d./*1*/
2929
////D./*2*/
3030

31-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
32-
edit.insert('');
33-
3431
goTo.marker('1');
3532
verify.completionListContains('foo');
3633
verify.completionListContains('foo2');

tests/cases/fourslash/cloduleTypeOf1.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
//// }
1515
////}
1616

17-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
18-
edit.insert('');
19-
20-
2117
goTo.marker('1');
2218
verify.completionListContains('f');
2319
verify.completionListContains('foo');

tests/cases/fourslash/cloduleWithRecursiveReference.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
//// }
1010
////}
1111

12-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
13-
edit.insert('');
14-
1512
goTo.marker();
1613
verify.quickInfoIs('var M.C.C: typeof M.C');
1714
verify.numberOfErrorsInCurrentFile(0);

tests/cases/fourslash/commentsClass.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@
5858
////}
5959
////var myVar = new m.m2.c/*33*/1();
6060

61-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
62-
edit.insert('');
63-
6461
goTo.marker('1');
6562
verify.quickInfoIs("class c2", "This is class c2 without constuctor");
6663

tests/cases/fourslash/commentsExternalModules.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
/////*10*/extMod./*11*/m1./*12*/fooExp/*13q*/ort(/*13*/);
3232
////var new/*14*/Var = new extMod.m1.m2./*15*/c();
3333

34-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
35-
edit.insert('');
36-
3734
goTo.file("commentsExternalModules_file0.ts");
3835
goTo.marker('1');
3936
verify.quickInfoIs("namespace m1", "Namespace comment");

tests/cases/fourslash/commentsMultiModuleMultiFile.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
////}
2727
////new /*7*/mu/*8*/ltiM.d();
2828

29-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
30-
edit.insert('');
3129
goTo.marker('1');
3230
verify.completionListContains("multiM", "namespace multiM", "this is multi declare namespace\nthi is multi namespace 2\nthis is multi namespace 3 comment");
3331

tests/cases/fourslash/commentsMultiModuleSingleFile.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
////new /*1*/mu/*4*/ltiM.b();
1717
////new mu/*5*/ltiM.c();
1818

19-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
20-
edit.insert('');
21-
2219
goTo.marker('1');
2320
verify.completionListContains("multiM", "namespace multiM", "this is multi declare namespace\nthi is multi namespace 2");
2421

tests/cases/fourslash/completionListAtEOF.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
////var a;
44

5-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
6-
edit.insert('');
7-
85
goTo.eof();
96
verify.completionListContains("a");
107

tests/cases/fourslash/completionListCladule.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
////var f = new Foo();
1313
////f/*c3*/;
1414

15-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
16-
edit.insert('');
17-
1815
goTo.marker("c1");
1916
edit.insert(".");
2017
verify.memberListContains("x");

tests/cases/fourslash/completionListErrorRecovery.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
////Foo./**/;
66
/////*1*/var bar;
77

8-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
9-
edit.insert('');
10-
118
goTo.marker();
129
verify.memberListContains("fun");
1310
verify.not.errorExistsAfterMarker("1");

tests/cases/fourslash/completionListErrorRecovery2.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
////var baz = Foo/**/;
55
/////*1*/baz.concat("y");
66

7-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
8-
edit.insert('');
9-
107
goTo.marker();
118
edit.insert(".b");
129
verify.not.errorExistsAfterMarker("1");

tests/cases/fourslash/contextualTyping.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@
194194
//// }
195195
////};
196196

197-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
198-
edit.insert('');
199-
200197
goTo.marker('1');
201198
verify.quickInfoIs("(property) C1T5.foo: (i: number, s: string) => number");
202199
goTo.marker('2');

tests/cases/fourslash/extendInterfaceOverloadedMethod.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
////var b: B<number>;
1212
////var /**/x = b.foo2().foo(5).foo(); // 'x' is of type 'void'
1313

14-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
15-
edit.insert('');
16-
1714
goTo.marker();
1815
verify.quickInfoIs('var x: void');
1916
verify.numberOfErrorsInCurrentFile(0);

tests/cases/fourslash/funduleWithRecursiveReference.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
//// }
88
////}
99

10-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
11-
edit.insert('');
12-
1310
goTo.marker();
1411
verify.quickInfoIs('var M.C.C: typeof M.C');
1512
verify.numberOfErrorsInCurrentFile(0);

tests/cases/fourslash/genericCombinators1.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@
5050

5151
////var /*23*/r8a = _.map</*error1*/B/*error2*/, string>(c5, (/*8*/x) => { return x.foo() });
5252

53-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
54-
edit.insert('');
55-
5653
goTo.marker('1');
5754
verify.quickInfoIs('(parameter) x: number');
5855
goTo.marker('2');

tests/cases/fourslash/genericCombinators2.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@
5656
////
5757
////var /*23*/r8a = _.map<number, /*error1*/B/*error2*/, string>(c5, (/*8a*/x,/*8b*/y) => { return y.foo() });
5858

59-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
60-
edit.insert('');
61-
6259
goTo.marker('2a');
6360
verify.quickInfoIs('(parameter) x: Collection<number, number>');
6461
goTo.marker('2b');

tests/cases/fourslash/goToDefinitionFunctionOverloadsInClass.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
//// constructor() { }
1212
////}
1313

14-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
15-
edit.insert('');
16-
1714
goTo.marker('staticFunctionOverload');
1815
goTo.definition();
1916
verify.caretAtMarker('staticFunctionOverloadDefinition');

tests/cases/fourslash/goToDefinitionPartialImplementation.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
//// var x: /*Part2Use*/IA;
1717
////}
1818

19-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
20-
edit.insert('');
21-
2219
goTo.marker('Part2Use');
2320
goTo.definition();
2421
verify.caretAtMarker('Part1Definition');

tests/cases/fourslash/mergedDeclarationsWithExportAssignment1.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
////var /*3*/z = new /*2*/Foo();
1616
////var /*5*/r2 = Foo./*4*/x;
1717

18-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
19-
edit.insert('');
20-
2118
goTo.marker('1');
2219
verify.quickInfoIs("import Foo = require('./mergedDeclarationsWithExportAssignment1_file0')");
2320

tests/cases/fourslash/quickInfoInFunctionTypeReference.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
////}
55
////var x = <{ (fn: (va/*2*/riable2: string) => void, a: string): void; }> () => { };
66

7-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
8-
edit.insert('');
9-
107
goTo.marker("1");
118
verify.quickInfoIs("(parameter) variable1: string", undefined);
129

tests/cases/fourslash/quickInfoOnConstructorWithGenericParameter.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
////}
1717
////var x = new /*2*/B(/*1*/
1818

19-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
20-
edit.insert('');
21-
2219
goTo.marker("1");
2320
verify.currentSignatureHelpIs("B(a: Foo<I>, b: number): B");
2421
edit.insert("null,");

tests/cases/fourslash/signatureHelpForSuperCalls1.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
//// }
1818
////}
1919

20-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
21-
edit.insert('');
22-
2320
goTo.marker('1');
2421
verify.signatureHelpPresent();
2522
verify.currentSignatureHelpIs('B(): B');

tests/cases/fourslash/signatureHelpSimpleSuperCall.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
//// }
1111
////}
1212

13-
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
14-
edit.insert('');
15-
1613
goTo.marker('superCall');
1714
verify.signatureHelpCountIs(1);
1815
verify.currentSignatureHelpIs("SuperCallBase(b: boolean): SuperCallBase");

0 commit comments

Comments
 (0)