Skip to content

Commit

Permalink
Update test refs
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Apr 15, 2024
1 parent 79b4263 commit 7f6712a
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@
//! 7 | var f4 = <T>(x: T, x: T) => { }
//! 8 |
//! 9 | function foo2(x: string, x: number) { }
//! : ^^^^|^^^^ ^^^^|^^^^
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! : | |
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! 10 | var f5 = function foo(x: string, x: number) { }
//! 11 | var f6 = function (x: string, x: number) { }
//! 12 | var f7 = (x: string, x: number) => { }
Expand All @@ -88,9 +88,9 @@
//! 8 |
//! 9 | function foo2(x: string, x: number) { }
//! 10 | var f5 = function foo(x: string, x: number) { }
//! : ^^^^|^^^^ ^^^^|^^^^
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! : | |
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! 11 | var f6 = function (x: string, x: number) { }
//! 12 | var f7 = (x: string, x: number) => { }
//! 13 | var f8 = <T>(x: T, y: T) => { }
Expand All @@ -102,9 +102,9 @@
//! 9 | function foo2(x: string, x: number) { }
//! 10 | var f5 = function foo(x: string, x: number) { }
//! 11 | var f6 = function (x: string, x: number) { }
//! : ^^^^|^^^^ ^^^^|^^^^
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! : | |
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! 12 | var f7 = (x: string, x: number) => { }
//! 13 | var f8 = <T>(x: T, y: T) => { }
//! `----
Expand Down Expand Up @@ -143,9 +143,9 @@
//! 15 | class C {
//! 16 | foo(x, x) { }
//! 17 | foo2(x: number, x: string) { }
//! : ^^^^|^^^^ ^^^^|^^^^
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! : | |
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! 18 | foo3<T>(x: T, x: T) { }
//! 19 | }
//! `----
Expand All @@ -156,9 +156,9 @@
//! 16 | foo(x, x) { }
//! 17 | foo2(x: number, x: string) { }
//! 18 | foo3<T>(x: T, x: T) { }
//! : ^^|^ ^^|^
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! : | |
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! 19 | }
//! 20 |
//! 21 | interface I {
Expand All @@ -184,9 +184,9 @@
//! 34 | var b = {
//! 35 | foo(x, x) { },
//! 36 | a: function foo(x: number, x: string) { },
//! : ^^^^|^^^^ ^^^^|^^^^
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! : | |
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! 37 | b: <T>(x: T, x: T) => { }
//! 38 | }
//! `----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@
//! 7 | var f4 = <T>(x: T, x: T) => { }
//! 8 |
//! 9 | function foo2(x: string, x: number) { }
//! : ^^^^|^^^^ ^^^^|^^^^
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! : | |
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! 10 | var f5 = function foo(x: string, x: number) { }
//! 11 | var f6 = function (x: string, x: number) { }
//! 12 | var f7 = (x: string, x: number) => { }
Expand All @@ -88,9 +88,9 @@
//! 8 |
//! 9 | function foo2(x: string, x: number) { }
//! 10 | var f5 = function foo(x: string, x: number) { }
//! : ^^^^|^^^^ ^^^^|^^^^
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! : | |
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! 11 | var f6 = function (x: string, x: number) { }
//! 12 | var f7 = (x: string, x: number) => { }
//! 13 | var f8 = <T>(x: T, y: T) => { }
Expand All @@ -102,9 +102,9 @@
//! 9 | function foo2(x: string, x: number) { }
//! 10 | var f5 = function foo(x: string, x: number) { }
//! 11 | var f6 = function (x: string, x: number) { }
//! : ^^^^|^^^^ ^^^^|^^^^
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! : | |
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! 12 | var f7 = (x: string, x: number) => { }
//! 13 | var f8 = <T>(x: T, y: T) => { }
//! `----
Expand Down Expand Up @@ -143,9 +143,9 @@
//! 15 | class C {
//! 16 | foo(x, x) { }
//! 17 | foo2(x: number, x: string) { }
//! : ^^^^|^^^^ ^^^^|^^^^
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! : | |
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! 18 | foo3<T>(x: T, x: T) { }
//! 19 | }
//! `----
Expand All @@ -156,9 +156,9 @@
//! 16 | foo(x, x) { }
//! 17 | foo2(x: number, x: string) { }
//! 18 | foo3<T>(x: T, x: T) { }
//! : ^^|^ ^^|^
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! : | |
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! 19 | }
//! 20 |
//! 21 | interface I {
Expand All @@ -184,9 +184,9 @@
//! 34 | var b = {
//! 35 | foo(x, x) { },
//! 36 | a: function foo(x: number, x: string) { },
//! : ^^^^|^^^^ ^^^^|^^^^
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! : | |
//! : | `-- used as parameter more than once
//! : `-- previous definition here
//! 37 | b: <T>(x: T, x: T) => { }
//! 38 | }
//! `----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
export var Foo = function Foo(/** @internal */ isInternal1, /** @internal */ isInternal2, /** @internal */ isInternal3, // @internal
isInternal4, // nothing
/** @internal */ isInternal5, /* @internal */ isInternal6 /* trailing */ , /* @internal */ isInternal7, /** @internal */ // not work
/** @internal */ isInternal5, /* @internal */ isInternal6/* trailing */ , /* @internal */ isInternal7, /** @internal */ // not work
notInternal1, // @internal
/* not work */ notInternal2, /* not work */ // @internal
/* not work */ notInternal3) {
Expand Down
2 changes: 1 addition & 1 deletion crates/swc/tests/tsc-references/parserindenter.1.normal.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ var Formatting;
}
return null;
};
_proto.GetIndentationDelta = function GetIndentationDelta(tokenStartPosition, childTokenStartPosition /*?*/ ) {
_proto.GetIndentationDelta = function GetIndentationDelta(tokenStartPosition, childTokenStartPosition/*?*/ ) {
Debug.Assert(childTokenStartPosition !== undefined, "Error: caller must pass 'null' for undefined position");
var indentationDeltaSize = this.offsetIndentationDeltas.GetValue(tokenStartPosition);
if (indentationDeltaSize === null) {
Expand Down

0 comments on commit 7f6712a

Please sign in to comment.