mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 14:16:12 +03:00
feat(es/codegen): Emit comments in emit_module
(#5132)
This commit is contained in:
parent
b433b69263
commit
1ef541eec4
@ -1,4 +1,8 @@
|
||||
"use strict";
|
||||
/*
|
||||
* Copyright (c) 2020. MeLike2D All Rights Reserved.
|
||||
* Neo is licensed under the MIT License.
|
||||
* See the LICENSE file in the project root for more details.
|
||||
*/ "use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
@ -1,4 +1,4 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
/** 등록된 계좌+회원의 정보 */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs";
|
||||
import _ts_metadata from "@swc/helpers/src/_ts_metadata.mjs";
|
||||
export var AccountMemberView = function AccountMemberView() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
// not work
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
@ -5,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
||||
const _tsDecorate = require("@swc/helpers/lib/_ts_decorate.js").default;
|
||||
const _tsMetadata = require("@swc/helpers/lib/_ts_metadata.js").default;
|
||||
const _tsParam = require("@swc/helpers/lib/_ts_param.js").default;
|
||||
// not work
|
||||
class MyClass1 {
|
||||
constructor(param1){
|
||||
this.param1 = param1;
|
||||
|
@ -1,3 +1,4 @@
|
||||
// work
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
@ -5,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
||||
const _tsDecorate = require("@swc/helpers/lib/_ts_decorate.js").default;
|
||||
const _tsMetadata = require("@swc/helpers/lib/_ts_metadata.js").default;
|
||||
const _tsParam = require("@swc/helpers/lib/_ts_param.js").default;
|
||||
// work
|
||||
class MyClass1 {
|
||||
constructor(param1){}
|
||||
}
|
||||
|
@ -1,5 +1,3 @@
|
||||
import _instanceof from "@swc/helpers/src/_instanceof.mjs";
|
||||
import _type_of from "@swc/helpers/src/_type_of.mjs";
|
||||
/*
|
||||
Copyright (c) 2018-2020 Xiamen Yaji Software Co., Ltd.
|
||||
|
||||
@ -26,7 +24,9 @@ import _type_of from "@swc/helpers/src/_type_of.mjs";
|
||||
*/ /**
|
||||
* @packageDocumentation
|
||||
* @module core/math
|
||||
*/ import { CCClass } from "../data/class";
|
||||
*/ import _instanceof from "@swc/helpers/src/_instanceof.mjs";
|
||||
import _type_of from "@swc/helpers/src/_type_of.mjs";
|
||||
import { CCClass } from "../data/class";
|
||||
import { Mat3 } from "./mat3";
|
||||
import { Quat } from "./quat";
|
||||
import { enumerableProps, EPSILON } from "./utils";
|
||||
|
@ -1,9 +1,9 @@
|
||||
// single line comment
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
const _objectWithoutProperties = require("@swc/helpers/lib/_object_without_properties.js").default;
|
||||
// single line comment
|
||||
const x = (_param)=>/*todo: refactor any type*/ {
|
||||
var { y } = _param, rest = _objectWithoutProperties(_param, [
|
||||
"y"
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"mappings": "AACA;;;;;;;;IAAYA,GAAG;IAIFC,IAAI,MAAJA,IAAI;;qBAJI,OAAO;AAIrB,MAAMA,IAAI,GAAG,CAACC,EAAU,GAAsB;IACjD,sBAAsB;IACtB,OAAO,IAAIC,OAAO,CAAC,CAACC,OAAO,GACvBC,UAAU,CAAC,IAAM;YACbD,OAAO,CAAC,QAAQ,CAAC,CAAC;SACrB,EAAE,IAAI,CAAC,CACX,CAAC;CACL,AAAC",
|
||||
"mappings": "AAAA,WAAW;AACX;;;;;;;;IAAYA,GAAG;IAIFC,IAAI,MAAJA,IAAI;;qBAJI,OAAO;AAIrB,MAAMA,IAAI,GAAG,CAACC,EAAU,GAAsB;IACjD,sBAAsB;IACtB,OAAO,IAAIC,OAAO,CAAC,CAACC,OAAO,GACvBC,UAAU,CAAC,IAAM;YACbD,OAAO,CAAC,QAAQ,CAAC,CAAC;SACrB,EAAE,IAAI,CAAC,CACX,CAAC;CACL,AAAC",
|
||||
"names": [
|
||||
"get",
|
||||
"byID",
|
||||
|
@ -1,3 +1,4 @@
|
||||
// index.ts
|
||||
"use strict";
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
|
@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
/**
|
||||
* This is a
|
||||
* long
|
||||
* license
|
||||
* header
|
||||
*/ console.log(new Error().stack);
|
||||
*/ "use strict";
|
||||
console.log(new Error().stack);
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"mappings": "AAMAA;AANA;;;;;GAKG,CACHA,OAAO,CAACC,GAAG,CAAC,IAAIC,KAAK,EAAE,CAACC,KAAK,CAAC,CAAC",
|
||||
"mappings": "AAAA;;;;;GAKG,CACHA;AAAAA,OAAO,CAACC,GAAG,CAAC,IAAIC,KAAK,EAAE,CAACC,KAAK,CAAC,CAAC",
|
||||
"names": [
|
||||
"console",
|
||||
"log",
|
||||
|
@ -1,3 +1,4 @@
|
||||
// @filename: module.d.ts
|
||||
// @filename: test.ts
|
||||
var cl;
|
||||
var cl = Point();
|
||||
|
@ -1,3 +1,4 @@
|
||||
// @filename: module.d.ts
|
||||
// @filename: test.ts
|
||||
var cl;
|
||||
var cl = Point();
|
||||
|
@ -1,3 +1,4 @@
|
||||
// @filename: module.d.ts
|
||||
// @filename: test.ts
|
||||
var p;
|
||||
var p = A.Point.Origin;
|
||||
|
@ -1,3 +1,4 @@
|
||||
// @filename: module.d.ts
|
||||
// @filename: test.ts
|
||||
var p;
|
||||
var p = A.Point.Origin;
|
||||
|
@ -1,3 +1,4 @@
|
||||
// @filename: module.d.ts
|
||||
// @filename: classPoint.ts
|
||||
var A;
|
||||
(function(A) {
|
||||
|
@ -1,3 +1,4 @@
|
||||
// @filename: module.d.ts
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
// @filename: classPoint.ts
|
||||
var A;
|
||||
|
@ -1,3 +1,4 @@
|
||||
// @filename: module.d.ts
|
||||
// @filename: function.ts
|
||||
function Point() {
|
||||
return {
|
||||
|
@ -1,3 +1,4 @@
|
||||
// @filename: module.d.ts
|
||||
// @filename: function.ts
|
||||
function Point() {
|
||||
return {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
// all expected to be errors
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var clodule1 = function clodule1() {
|
||||
"use strict";
|
||||
_class_call_check(this, clodule1);
|
||||
|
@ -1,6 +1,6 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
// @target: ES6
|
||||
// @filename: class.ts
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var X;
|
||||
(function(X) {
|
||||
var Y;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
// @filename: class.ts
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var X;
|
||||
(function(X) {
|
||||
var Y;
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@target: ES3
|
||||
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
||||
try {
|
||||
//@target: ES3
|
||||
for(var _iterator = ""[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
||||
var v = _step.value;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs";
|
||||
//@sourcemap: true
|
||||
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs";
|
||||
for(var _i = 0, _iter = [
|
||||
2,
|
||||
3
|
||||
|
@ -1,6 +1,6 @@
|
||||
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs";
|
||||
//@sourcemap: true
|
||||
//@downlevelIteration: true
|
||||
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs";
|
||||
for(var _i = 0, _iter = [
|
||||
2,
|
||||
3
|
||||
|
@ -1,6 +1,6 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
//@target: ES5
|
||||
// In ES3/5, you cannot for...of over an arbitrary iterable.
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var StringIterator = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
function StringIterator() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@target: ES5
|
||||
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
||||
try {
|
||||
//@target: ES5
|
||||
for(var _iterator = 0[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
||||
var v = _step.value;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@target: ES5
|
||||
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
||||
try {
|
||||
//@target: ES5
|
||||
for(var _iterator = ""[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
||||
var v = _step.value;
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
//@target: ES5
|
||||
var Symbol;
|
||||
var obj = {
|
||||
[Symbol.foo]: 0
|
||||
|
@ -1,3 +1,4 @@
|
||||
//@target: ES5
|
||||
import _define_property from "@swc/helpers/src/_define_property.mjs";
|
||||
var Symbol;
|
||||
var obj = _define_property({}, Symbol.foo, 0);
|
||||
|
@ -1,5 +1,5 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
//@target: ES5
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var M;
|
||||
(function(M) {
|
||||
var _$Symbol;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
//@target: ES5
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var Symbol;
|
||||
var C = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
|
@ -1,5 +1,5 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
//@target: ES5
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var Symbol;
|
||||
var C = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
|
@ -1,5 +1,5 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
//@target: ES5
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var Symbol;
|
||||
var C = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
|
@ -1,5 +1,5 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
//@target: ES5
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var C = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
function C() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
//@target: ES5
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var Symbol;
|
||||
var C = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: es6
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
var _marked = regeneratorRuntime.mark(foo);
|
||||
// @target: es6
|
||||
function foo() {
|
||||
var v;
|
||||
return regeneratorRuntime.wrap(function foo$(_ctx) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: es6
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
var _marked = regeneratorRuntime.mark(foo);
|
||||
// @target: es6
|
||||
function foo() {
|
||||
return regeneratorRuntime.wrap(function foo$(_ctx) {
|
||||
while(1)switch(_ctx.prev = _ctx.next){
|
||||
|
@ -1,7 +1,7 @@
|
||||
// @target: es6
|
||||
import _define_property from "@swc/helpers/src/_define_property.mjs";
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
var _marked = regeneratorRuntime.mark(foo);
|
||||
// @target: es6
|
||||
function foo() {
|
||||
var v;
|
||||
return regeneratorRuntime.wrap(function foo$(_ctx) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
// @target: es6
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
var v = regeneratorRuntime.mark(function v() {
|
||||
return regeneratorRuntime.wrap(function v$(_ctx) {
|
||||
while(1)switch(_ctx.prev = _ctx.next){
|
||||
|
@ -1,5 +1,5 @@
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
// @target: es6
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
var v = regeneratorRuntime.mark(function foo() {
|
||||
return regeneratorRuntime.wrap(function foo$(_ctx) {
|
||||
while(1)switch(_ctx.prev = _ctx.next){
|
||||
|
@ -1,5 +1,5 @@
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
// @target: es6
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
var v = {
|
||||
foo: regeneratorRuntime.mark(function foo() {
|
||||
return regeneratorRuntime.wrap(function foo$(_ctx) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: es6
|
||||
import _define_property from "@swc/helpers/src/_define_property.mjs";
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
// @target: es6
|
||||
var v = _define_property({}, foo(), regeneratorRuntime.mark(function _callee() {
|
||||
return regeneratorRuntime.wrap(function _callee$(_ctx) {
|
||||
while(1)switch(_ctx.prev = _ctx.next){
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: es6
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
// @target: es6
|
||||
var C = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
function C() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: es6
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
// @target: es6
|
||||
var C = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
function C() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: es6
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
// @target: es6
|
||||
var C = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
function C() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: es6
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
// @target: es6
|
||||
var C = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
function C() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
// @Filename: module.ts
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var X;
|
||||
(function(X) {
|
||||
var Y;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
//@filename: part1.ts
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var A;
|
||||
(function(A) {
|
||||
var Utils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
//@filename: part1.ts
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
export var A;
|
||||
(function(A) {
|
||||
var Utils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
//@filename: part1.ts
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var Root;
|
||||
(function(Root) {
|
||||
var A;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
//@filename: part1.ts
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var A;
|
||||
(function(A) {
|
||||
var Utils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
// @target: es6
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
var v = {
|
||||
foo: regeneratorRuntime.mark(function foo1() {
|
||||
return regeneratorRuntime.wrap(function foo$(_ctx) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: es6
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
// @target: es6
|
||||
var C = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
function C() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: es6
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
var _marked = regeneratorRuntime.mark(foo);
|
||||
// @target: es6
|
||||
function foo() {
|
||||
return regeneratorRuntime.wrap(function foo$(_ctx) {
|
||||
while(1)switch(_ctx.prev = _ctx.next){
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: es6
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
var _marked = regeneratorRuntime.mark(foo);
|
||||
// @target: es6
|
||||
function foo() {
|
||||
var bar;
|
||||
return regeneratorRuntime.wrap(function foo$(_ctx) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: es6
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
var _marked = regeneratorRuntime.mark(foo);
|
||||
// @target: es6
|
||||
function foo() {
|
||||
return regeneratorRuntime.wrap(function foo$(_ctx) {
|
||||
while(1)switch(_ctx.prev = _ctx.next){
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: es6
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
var _marked = regeneratorRuntime.mark(foo);
|
||||
// @target: es6
|
||||
function foo() {
|
||||
return regeneratorRuntime.wrap(function foo$(_ctx) {
|
||||
while(1)switch(_ctx.prev = _ctx.next){
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: es6
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
var _marked = regeneratorRuntime.mark(foo);
|
||||
// @target: es6
|
||||
function foo() {
|
||||
return regeneratorRuntime.wrap(function foo$(_ctx) {
|
||||
while(1)switch(_ctx.prev = _ctx.next){
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: es6
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
var _marked = regeneratorRuntime.mark(foo);
|
||||
// @target: es6
|
||||
function foo() {
|
||||
return regeneratorRuntime.wrap(function foo$(_ctx) {
|
||||
while(1)switch(_ctx.prev = _ctx.next){
|
||||
|
@ -1,5 +1,5 @@
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
// @target: es6
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
var v = regeneratorRuntime.mark(function v() {
|
||||
return regeneratorRuntime.wrap(function v$(_ctx) {
|
||||
while(1)switch(_ctx.prev = _ctx.next){
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: es6
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
var _marked = regeneratorRuntime.mark(g);
|
||||
// @target: es6
|
||||
function g() {
|
||||
return regeneratorRuntime.wrap(function g$(_ctx) {
|
||||
while(1)switch(_ctx.prev = _ctx.next){
|
||||
|
@ -1,9 +1,9 @@
|
||||
// @target: es2015,esnext
|
||||
// @useDefineForClassFields: true
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _create_class from "@swc/helpers/src/_create_class.mjs";
|
||||
import _inherits from "@swc/helpers/src/_inherits.mjs";
|
||||
import _create_super from "@swc/helpers/src/_create_super.mjs";
|
||||
// @target: es2015,esnext
|
||||
// @useDefineForClassFields: true
|
||||
var A = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
function A() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _create_class from "@swc/helpers/src/_create_class.mjs";
|
||||
// @target: ES3
|
||||
// error to use accessors in ES3 mode
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _create_class from "@swc/helpers/src/_create_class.mjs";
|
||||
var C = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
function C() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: ES5
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _create_class from "@swc/helpers/src/_create_class.mjs";
|
||||
// @target: ES5
|
||||
var C = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
function C() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @target: ES5
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _create_class from "@swc/helpers/src/_create_class.mjs";
|
||||
// @target: ES5
|
||||
var C = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
function C() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
// accessors are not contextually typed
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _create_class from "@swc/helpers/src/_create_class.mjs";
|
||||
// accessors are not contextually typed
|
||||
var C = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
function C() {
|
||||
|
@ -1,9 +1,9 @@
|
||||
// @target: esnext
|
||||
// @useDefineForClassFields: true
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _create_class from "@swc/helpers/src/_create_class.mjs";
|
||||
import _inherits from "@swc/helpers/src/_inherits.mjs";
|
||||
import _create_super from "@swc/helpers/src/_create_super.mjs";
|
||||
// @target: esnext
|
||||
// @useDefineForClassFields: true
|
||||
var A = /*#__PURE__*/ function() {
|
||||
"use strict";
|
||||
function A() {
|
||||
|
@ -1,9 +1,9 @@
|
||||
// @target: esnext
|
||||
// @useDefineForClassFields: true
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _create_class from "@swc/helpers/src/_create_class.mjs";
|
||||
import _inherits from "@swc/helpers/src/_inherits.mjs";
|
||||
import _create_super from "@swc/helpers/src/_create_super.mjs";
|
||||
// @target: esnext
|
||||
// @useDefineForClassFields: true
|
||||
var Base = function Base() {
|
||||
"use strict";
|
||||
_class_call_check(this, Base);
|
||||
|
@ -1,3 +1,5 @@
|
||||
// @target: esnext
|
||||
// @useDefineForClassFields: true
|
||||
class Lion extends Animal {
|
||||
get sound() {
|
||||
return this._sound;
|
||||
|
@ -1,3 +1,5 @@
|
||||
// @target: esnext
|
||||
// @useDefineForClassFields: true
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _create_class from "@swc/helpers/src/_create_class.mjs";
|
||||
import _inherits from "@swc/helpers/src/_inherits.mjs";
|
||||
|
@ -1,3 +1,5 @@
|
||||
// @target: esnext
|
||||
// @useDefineForClassFields: true
|
||||
class Lion extends Animal {
|
||||
get sound() {
|
||||
return this._sound;
|
||||
|
@ -1,3 +1,5 @@
|
||||
// @target: esnext
|
||||
// @useDefineForClassFields: true
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _create_class from "@swc/helpers/src/_create_class.mjs";
|
||||
import _inherits from "@swc/helpers/src/_inherits.mjs";
|
||||
|
@ -1,3 +1,5 @@
|
||||
// @target: esnext
|
||||
// @useDefineForClassFields: true
|
||||
class B {
|
||||
}
|
||||
class C extends B {
|
||||
|
@ -1,3 +1,5 @@
|
||||
// @target: esnext
|
||||
// @useDefineForClassFields: true
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _create_class from "@swc/helpers/src/_create_class.mjs";
|
||||
import _inherits from "@swc/helpers/src/_inherits.mjs";
|
||||
|
@ -1,9 +1,9 @@
|
||||
// @target: esnext
|
||||
// @useDefineForClassFields: false
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _create_class from "@swc/helpers/src/_create_class.mjs";
|
||||
import _inherits from "@swc/helpers/src/_inherits.mjs";
|
||||
import _create_super from "@swc/helpers/src/_create_super.mjs";
|
||||
// @target: esnext
|
||||
// @useDefineForClassFields: false
|
||||
var A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
|
@ -1,9 +1,9 @@
|
||||
// @target: esnext
|
||||
// @useDefineForClassFields: true
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _create_class from "@swc/helpers/src/_create_class.mjs";
|
||||
import _inherits from "@swc/helpers/src/_inherits.mjs";
|
||||
import _create_super from "@swc/helpers/src/_create_super.mjs";
|
||||
// @target: esnext
|
||||
// @useDefineForClassFields: true
|
||||
var A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
|
@ -1,5 +1,5 @@
|
||||
var // If one operand is the null or undefined value, it is treated as having the type of the other operand.
|
||||
E;
|
||||
// If one operand is the null or undefined value, it is treated as having the type of the other operand.
|
||||
var E;
|
||||
(function(E) {
|
||||
E[E["a"] = 0] = "a";
|
||||
E[E["b"] = 1] = "b";
|
||||
|
@ -1,5 +1,5 @@
|
||||
var // If one operand is the null or undefined value, it is treated as having the type of the other operand.
|
||||
E;
|
||||
// If one operand is the null or undefined value, it is treated as having the type of the other operand.
|
||||
var E;
|
||||
(function(E) {
|
||||
E[E["a"] = 0] = "a";
|
||||
E[E["b"] = 1] = "b";
|
||||
|
@ -1,5 +1,5 @@
|
||||
var // type parameter type is not a valid operand of addition operator
|
||||
E;
|
||||
// type parameter type is not a valid operand of addition operator
|
||||
var E;
|
||||
(function(E) {
|
||||
E[E["a"] = 0] = "a";
|
||||
E[E["b"] = 1] = "b";
|
||||
|
@ -1,5 +1,5 @@
|
||||
var // type parameter type is not a valid operand of addition operator
|
||||
E;
|
||||
// type parameter type is not a valid operand of addition operator
|
||||
var E;
|
||||
(function(E) {
|
||||
E[E["a"] = 0] = "a";
|
||||
E[E["b"] = 1] = "b";
|
||||
|
@ -1,5 +1,5 @@
|
||||
var // If one operand is the null or undefined value, it is treated as having the type of the other operand.
|
||||
E;
|
||||
// If one operand is the null or undefined value, it is treated as having the type of the other operand.
|
||||
var E;
|
||||
(function(E) {
|
||||
E[E["a"] = 0] = "a";
|
||||
E[E["b"] = 1] = "b";
|
||||
|
@ -1,5 +1,5 @@
|
||||
var // If one operand is the null or undefined value, it is treated as having the type of the other operand.
|
||||
E;
|
||||
// If one operand is the null or undefined value, it is treated as having the type of the other operand.
|
||||
var E;
|
||||
(function(E) {
|
||||
E[E["a"] = 0] = "a";
|
||||
E[E["b"] = 1] = "b";
|
||||
|
@ -0,0 +1,3 @@
|
||||
// @target: es3, es5
|
||||
// @declaration: true
|
||||
// ok to use accessors in ambient class in ES3
|
@ -0,0 +1,3 @@
|
||||
// @target: es3, es5
|
||||
// @declaration: true
|
||||
// ok to use accessors in ambient class in ES3
|
@ -1,3 +1,5 @@
|
||||
//@Filename: decls.ts
|
||||
// Ambient external module with export assignment
|
||||
// Ambient external import declaration referencing ambient external module using top level module name
|
||||
//@Filename: consumer.ts
|
||||
/// <reference path="decls.ts" />
|
||||
@ -6,6 +8,4 @@ const imp1 = require('equ');
|
||||
const imp3 = require('equ2');
|
||||
var n = imp3.x;
|
||||
var n;
|
||||
//@Filename: decls.ts
|
||||
// Ambient external module with export assignment
|
||||
export { };
|
||||
|
@ -1,3 +1,5 @@
|
||||
//@Filename: decls.ts
|
||||
// Ambient external module with export assignment
|
||||
// Ambient external import declaration referencing ambient external module using top level module name
|
||||
//@Filename: consumer.ts
|
||||
/// <reference path="decls.ts" />
|
||||
@ -6,6 +8,4 @@ var imp1 = require("equ");
|
||||
var imp3 = require("equ2");
|
||||
var n = imp3.x;
|
||||
var n;
|
||||
//@Filename: decls.ts
|
||||
// Ambient external module with export assignment
|
||||
export { };
|
||||
|
@ -1,3 +1,4 @@
|
||||
// @Filename: declarations.d.ts
|
||||
// @Filename: user.ts
|
||||
///<reference path="declarations.d.ts" />
|
||||
import { foo, baz } from "foobarbaz";
|
||||
|
@ -1,3 +1,4 @@
|
||||
// @Filename: declarations.d.ts
|
||||
// @Filename: user.ts
|
||||
///<reference path="declarations.d.ts" />
|
||||
import { foo, baz } from "foobarbaz";
|
||||
|
@ -1,4 +1,4 @@
|
||||
// @filename: types.ts
|
||||
ohno.a // oh no
|
||||
;
|
||||
// @filename: types.ts
|
||||
export { };
|
||||
|
@ -1,4 +1,4 @@
|
||||
// @filename: types.ts
|
||||
ohno.a // oh no
|
||||
;
|
||||
// @filename: types.ts
|
||||
export { };
|
||||
|
@ -1,3 +1,4 @@
|
||||
// Ambient variable without type annotation
|
||||
var // Ambient enum
|
||||
E1;
|
||||
(function(E1) {
|
||||
|
@ -1,3 +1,4 @@
|
||||
// Ambient variable without type annotation
|
||||
var // Ambient enum
|
||||
E1;
|
||||
(function(E1) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
var // In ambient enum declarations, all values specified in enum member declarations must be classified as constant enum expressions.
|
||||
E;
|
||||
// In ambient enum declarations, all values specified in enum member declarations must be classified as constant enum expressions.
|
||||
var E;
|
||||
(function(E) {
|
||||
E[E["a"] = 10] = "a";
|
||||
E[E["b"] = 11] = "b";
|
||||
|
@ -1,5 +1,5 @@
|
||||
var // In ambient enum declarations, all values specified in enum member declarations must be classified as constant enum expressions.
|
||||
E;
|
||||
// In ambient enum declarations, all values specified in enum member declarations must be classified as constant enum expressions.
|
||||
var E;
|
||||
(function(E) {
|
||||
E[E["a"] = 10] = "a";
|
||||
E[E["b"] = 11] = "b";
|
||||
|
@ -1,6 +1,6 @@
|
||||
var // In ambient enum declarations that specify no const modifier, enum member declarations
|
||||
// In ambient enum declarations that specify no const modifier, enum member declarations
|
||||
// that omit a value are considered computed members (as opposed to having auto- incremented values assigned).
|
||||
E;
|
||||
var E;
|
||||
(function(E) {
|
||||
E[E["a"] = 0] = "a";
|
||||
E[E["b"] = 1] = "b";
|
||||
|
@ -1,6 +1,6 @@
|
||||
var // In ambient enum declarations that specify no const modifier, enum member declarations
|
||||
// In ambient enum declarations that specify no const modifier, enum member declarations
|
||||
// that omit a value are considered computed members (as opposed to having auto- incremented values assigned).
|
||||
E;
|
||||
var E;
|
||||
(function(E) {
|
||||
E[E["a"] = 0] = "a";
|
||||
E[E["b"] = 1] = "b";
|
||||
|
@ -0,0 +1 @@
|
||||
// @declaration: true
|
@ -0,0 +1 @@
|
||||
// @declaration: true
|
@ -1,3 +1,4 @@
|
||||
// @Filename: declarations.d.ts
|
||||
// @Filename: user.ts
|
||||
///<reference path="declarations.d.ts"/>
|
||||
import foo, { bar } from "jquery";
|
||||
|
@ -1,3 +1,4 @@
|
||||
// @Filename: declarations.d.ts
|
||||
// @Filename: user.ts
|
||||
///<reference path="declarations.d.ts"/>
|
||||
import foo, { bar } from "jquery";
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user