104 lines
1.8 KiB
Plaintext
104 lines
1.8 KiB
Plaintext
exports[`test class.js 1`] = `
|
|
"class A {
|
|
method() {
|
|
var x = 1;
|
|
while(typeof x == \"number\" || typeof x == \"string\") {
|
|
x = x + 1;
|
|
if (true) x = \"\";
|
|
}
|
|
var z:number = x;
|
|
}
|
|
}
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
class A {
|
|
method() {
|
|
var x = 1;
|
|
while (typeof x == \"number\" || typeof x == \"string\") {
|
|
x = x + 1;
|
|
if (true) x = \"\";
|
|
}
|
|
var z: number = x;
|
|
}
|
|
}
|
|
"
|
|
`;
|
|
|
|
exports[`test class.js 2`] = `
|
|
"class A {
|
|
method() {
|
|
var x = 1;
|
|
while(typeof x == \"number\" || typeof x == \"string\") {
|
|
x = x + 1;
|
|
if (true) x = \"\";
|
|
}
|
|
var z:number = x;
|
|
}
|
|
}
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
class A {
|
|
method() {
|
|
var x = 1;
|
|
while (typeof x == \"number\" || typeof x == \"string\") {
|
|
x = x + 1;
|
|
if (true) x = \"\";
|
|
}
|
|
var z: number = x;
|
|
}
|
|
}
|
|
"
|
|
`;
|
|
|
|
exports[`test nested-functions.spec.js 1`] = `
|
|
"const c = () => {};
|
|
|
|
function a() {
|
|
return function b() {
|
|
return () => {
|
|
return function() {
|
|
return c;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
const c = () => {};
|
|
|
|
function a() {
|
|
return function b() {
|
|
return () => {
|
|
return function() {
|
|
return c;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
"
|
|
`;
|
|
|
|
exports[`test nested-functions.spec.js 2`] = `
|
|
"const c = () => {};
|
|
|
|
function a() {
|
|
return function b() {
|
|
return () => {
|
|
return function() {
|
|
return c;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
const c = () => {};
|
|
|
|
function a() {
|
|
return function b() {
|
|
return () => {
|
|
return function() {
|
|
return c;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
"
|
|
`;
|