Skip to content

Commit d54c01a

Browse files
committed
Update baselines
1 parent 975c700 commit d54c01a

File tree

43 files changed

+192
-988
lines changed

Some content is hidden

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

43 files changed

+192
-988
lines changed

internal/ls/utilities.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -483,12 +483,9 @@ func getQuotePreference(sourceFile *ast.SourceFile, preferences *UserPreferences
483483
return quotePreferenceDouble
484484
}
485485
// ignore synthetic import added when importHelpers: true
486-
var firstModuleSpecifier *ast.Node
487-
if sourceFile.Imports != nil {
488-
firstModuleSpecifier = core.Find(sourceFile.Imports(), func(n *ast.Node) bool {
489-
return ast.IsStringLiteral(n) && !ast.NodeIsSynthesized(n.Parent)
490-
})
491-
}
486+
firstModuleSpecifier := core.Find(sourceFile.Imports(), func(n *ast.Node) bool {
487+
return ast.IsStringLiteral(n) && !ast.NodeIsSynthesized(n.Parent)
488+
})
492489
if firstModuleSpecifier != nil {
493490
return quotePreferenceFromString(firstModuleSpecifier.AsStringLiteral())
494491
}

testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ exports.f = ((arg) => arg)({ '0': 0 }); // Original prop uses string syntax
1212

1313
//// [declarationEmitMappedTypePropertyFromNumericStringKey.d.ts]
1414
export declare const f: {
15-
"0": string | number;
15+
'0': string | number;
1616
};

testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.js.diff

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

testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.types

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

33
=== declarationEmitMappedTypePropertyFromNumericStringKey.ts ===
44
export const f = (<T>(arg: {[K in keyof T]: T[K] | string}) => arg)({'0': 0}); // Original prop uses string syntax
5-
>f : { "0": string | number; }
6-
>(<T>(arg: {[K in keyof T]: T[K] | string}) => arg)({'0': 0}) : { "0": string | number; }
5+
>f : { '0': string | number; }
6+
>(<T>(arg: {[K in keyof T]: T[K] | string}) => arg)({'0': 0}) : { '0': string | number; }
77
>(<T>(arg: {[K in keyof T]: T[K] | string}) => arg) : <T>(arg: { [K in keyof T]: string | T[K]; }) => { [K in keyof T]: string | T[K]; }
88
><T>(arg: {[K in keyof T]: T[K] | string}) => arg : <T>(arg: { [K in keyof T]: string | T[K]; }) => { [K in keyof T]: string | T[K]; }
99
>arg : { [K in keyof T]: string | T[K]; }
1010
>arg : { [K in keyof T]: string | T[K]; }
11-
>{'0': 0} : { "0": number; }
11+
>{'0': 0} : { '0': number; }
1212
>'0' : number
1313
>0 : 0
1414

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
--- old.declarationEmitMappedTypePropertyFromNumericStringKey.types
22
+++ new.declarationEmitMappedTypePropertyFromNumericStringKey.types
3-
@@= skipped -1, +1 lines =@@
4-
5-
=== declarationEmitMappedTypePropertyFromNumericStringKey.ts ===
3+
@@= skipped -3, +3 lines =@@
64
export const f = (<T>(arg: {[K in keyof T]: T[K] | string}) => arg)({'0': 0}); // Original prop uses string syntax
7-
->f : { '0': string | number; }
8-
->(<T>(arg: {[K in keyof T]: T[K] | string}) => arg)({'0': 0}) : { '0': string | number; }
5+
>f : { '0': string | number; }
6+
>(<T>(arg: {[K in keyof T]: T[K] | string}) => arg)({'0': 0}) : { '0': string | number; }
97
->(<T>(arg: {[K in keyof T]: T[K] | string}) => arg) : <T>(arg: { [K in keyof T]: T[K] | string; }) => { [K in keyof T]: string | T[K]; }
108
-><T>(arg: {[K in keyof T]: T[K] | string}) => arg : <T>(arg: { [K in keyof T]: T[K] | string; }) => { [K in keyof T]: string | T[K]; }
11-
->arg : { [K in keyof T]: string | T[K]; }
12-
->arg : { [K in keyof T]: string | T[K]; }
13-
->{'0': 0} : { '0': number; }
14-
+>f : { "0": string | number; }
15-
+>(<T>(arg: {[K in keyof T]: T[K] | string}) => arg)({'0': 0}) : { "0": string | number; }
169
+>(<T>(arg: {[K in keyof T]: T[K] | string}) => arg) : <T>(arg: { [K in keyof T]: string | T[K]; }) => { [K in keyof T]: string | T[K]; }
1710
+><T>(arg: {[K in keyof T]: T[K] | string}) => arg : <T>(arg: { [K in keyof T]: string | T[K]; }) => { [K in keyof T]: string | T[K]; }
18-
+>arg : { [K in keyof T]: string | T[K]; }
19-
+>arg : { [K in keyof T]: string | T[K]; }
20-
+>{'0': 0} : { "0": number; }
21-
>'0' : number
22-
>0 : 0
11+
>arg : { [K in keyof T]: string | T[K]; }
12+
>arg : { [K in keyof T]: string | T[K]; }
13+
>{'0': 0} : { '0': number; }

testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export declare enum MouseButton {
5252
NO_BUTTON = 0
5353
}
5454
export declare const DOMMouseButton: {
55-
"-1": MouseButton;
55+
'-1': MouseButton;
5656
"0": MouseButton;
5757
"1": MouseButton;
5858
"2": MouseButton;

testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.js.diff

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

testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export enum MouseButton {
3030
}
3131

3232
export const DOMMouseButton = {
33-
>DOMMouseButton : { "-1": MouseButton; "0": MouseButton; "1": MouseButton; "2": MouseButton; "3": MouseButton; "4": MouseButton; }
34-
>{ '-1': MouseButton.NO_BUTTON, "0": MouseButton.LEFT_BUTTON, "1": MouseButton.MIDDLE_BUTTON, "2": MouseButton.RIGHT_BUTTON, "3": MouseButton.XBUTTON1_BUTTON, "4": MouseButton.XBUTTON2_BUTTON,} : { "-1": MouseButton; "0": MouseButton; "1": MouseButton; "2": MouseButton; "3": MouseButton; "4": MouseButton; }
33+
>DOMMouseButton : { '-1': MouseButton; "0": MouseButton; "1": MouseButton; "2": MouseButton; "3": MouseButton; "4": MouseButton; }
34+
>{ '-1': MouseButton.NO_BUTTON, "0": MouseButton.LEFT_BUTTON, "1": MouseButton.MIDDLE_BUTTON, "2": MouseButton.RIGHT_BUTTON, "3": MouseButton.XBUTTON1_BUTTON, "4": MouseButton.XBUTTON2_BUTTON,} : { '-1': MouseButton; "0": MouseButton; "1": MouseButton; "2": MouseButton; "3": MouseButton; "4": MouseButton; }
3535

3636
'-1': MouseButton.NO_BUTTON,
3737
>'-1' : MouseButton

testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.types.diff

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

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/index.ts(7,7): error TS2322: Type '{ default: { configs: { "stage-0": PluginConfig; }; }; configs: { "stage-0": PluginConfig; }; }' is not assignable to type 'Plugin'.
1+
/index.ts(7,7): error TS2322: Type '{ default: { configs: { 'stage-0': PluginConfig; }; }; configs: { 'stage-0': PluginConfig; }; }' is not assignable to type 'Plugin'.
22
Types of property 'configs' are incompatible.
3-
Type '{ "stage-0": PluginConfig; }' is not assignable to type 'Record<string, { parser: string | null; }>'.
3+
Type '{ 'stage-0': PluginConfig; }' is not assignable to type 'Record<string, { parser: string | null; }>'.
44
Property ''stage-0'' is incompatible with index signature.
55
Type 'PluginConfig' is not assignable to type '{ parser: string | null; }'.
66
Types of property 'parser' are incompatible.
@@ -43,9 +43,9 @@
4343

4444
const p: Plugin = pluginImportX;
4545
~
46-
!!! error TS2322: Type '{ default: { configs: { "stage-0": PluginConfig; }; }; configs: { "stage-0": PluginConfig; }; }' is not assignable to type 'Plugin'.
46+
!!! error TS2322: Type '{ default: { configs: { 'stage-0': PluginConfig; }; }; configs: { 'stage-0': PluginConfig; }; }' is not assignable to type 'Plugin'.
4747
!!! error TS2322: Types of property 'configs' are incompatible.
48-
!!! error TS2322: Type '{ "stage-0": PluginConfig; }' is not assignable to type 'Record<string, { parser: string | null; }>'.
48+
!!! error TS2322: Type '{ 'stage-0': PluginConfig; }' is not assignable to type 'Record<string, { parser: string | null; }>'.
4949
!!! error TS2322: Property ''stage-0'' is incompatible with index signature.
5050
!!! error TS2322: Type 'PluginConfig' is not assignable to type '{ parser: string | null; }'.
5151
!!! error TS2322: Types of property 'parser' are incompatible.

0 commit comments

Comments
 (0)