Skip to content

Commit 943271d

Browse files
committed
Revert "fix(es/parser): Make the span of Program start at input start (#11199)"
This reverts commit b56e008.
1 parent 1aee3e5 commit 943271d

File tree

4,018 files changed

+4390
-4035
lines changed

Some content is hidden

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

4,018 files changed

+4390
-4035
lines changed

crates/swc/tests/fixture/issues-110xx/11167/input/.swcrc

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

crates/swc/tests/fixture/issues-110xx/11167/input/input.js

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

crates/swc/tests/fixture/issues-110xx/11167/output/input.js

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

crates/swc/tests/fixture/issues-1xxx/1333/case2/output/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
"use strict";
1+
/*
2+
* Copyright (c) 2020. MeLike2D All Rights Reserved.
3+
* Neo is licensed under the MIT License.
4+
* See the LICENSE file in the project root for more details.
5+
*/ "use strict";
26
Object.defineProperty(exports, "__esModule", {
37
value: true
48
});

crates/swc/tests/fixture/issues-1xxx/1345/output/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
1+
/** 등록된 계좌+회원의 정보 */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
22
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
33
import { _ as _ts_metadata } from "@swc/helpers/_/_ts_metadata";
44
export var AccountMemberView = function AccountMemberView() {

crates/swc/tests/fixture/issues-1xxx/1456/case1/output/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
// not work
12
"use strict";
23
Object.defineProperty(exports, "__esModule", {
34
value: true
45
});
56
const _ts_decorate = require("@swc/helpers/_/_ts_decorate");
67
const _ts_metadata = require("@swc/helpers/_/_ts_metadata");
78
const _ts_param = require("@swc/helpers/_/_ts_param");
8-
// not work
99
class MyClass1 {
1010
constructor(param1){
1111
this.param1 = param1;

crates/swc/tests/fixture/issues-1xxx/1456/case2/output/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
// work
12
"use strict";
23
Object.defineProperty(exports, "__esModule", {
34
value: true
45
});
56
const _ts_decorate = require("@swc/helpers/_/_ts_decorate");
67
const _ts_metadata = require("@swc/helpers/_/_ts_metadata");
78
const _ts_param = require("@swc/helpers/_/_ts_param");
8-
// work
99
class MyClass1 {
1010
constructor(param1){}
1111
}

crates/swc/tests/fixture/issues-2xxx/2056/1/output/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { _ as _instanceof } from "@swc/helpers/_/_instanceof";
2-
import { _ as _type_of } from "@swc/helpers/_/_type_of";
31
/*
42
Copyright (c) 2018-2020 Xiamen Yaji Software Co., Ltd.
53
@@ -26,7 +24,9 @@ import { _ as _type_of } from "@swc/helpers/_/_type_of";
2624
*/ /**
2725
* @packageDocumentation
2826
* @module core/math
29-
*/ import { CCClass } from "../data/class";
27+
*/ import { _ as _instanceof } from "@swc/helpers/_/_instanceof";
28+
import { _ as _type_of } from "@swc/helpers/_/_type_of";
29+
import { CCClass } from "../data/class";
3030
import { Mat3 } from "./mat3";
3131
import { Quat } from "./quat";
3232
import { enumerableProps, EPSILON } from "./utils";

crates/swc/tests/fixture/issues-2xxx/2964/case-3/output/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
// single line comment
12
"use strict";
23
Object.defineProperty(exports, "__esModule", {
34
value: true
45
});
56
const _object_without_properties = require("@swc/helpers/_/_object_without_properties");
6-
// single line comment
77
const x = (_param)=>/*todo: refactor any type*/ {
88
var { y } = _param, rest = _object_without_properties._(_param, [
99
"y"

crates/swc/tests/fixture/issues-3xxx/3067/amd/output/packages/c/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Simulate accessing a .js file in a third party package that shouldn't be edited
12
define([
23
"require",
34
"exports",

0 commit comments

Comments
 (0)