1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
=== tests/cases/compiler/unusedLocalsOnFunctionExpressionWithinFunctionExpression2.ts ===
var greeter = function (person: string, person2: string) {
>greeter : Symbol(greeter, Decl(unusedLocalsOnFunctionExpressionWithinFunctionExpression2.ts, 0, 3))
>person : Symbol(person, Decl(unusedLocalsOnFunctionExpressionWithinFunctionExpression2.ts, 0, 24))
>person2 : Symbol(person2, Decl(unusedLocalsOnFunctionExpressionWithinFunctionExpression2.ts, 0, 39))
var unused = 20;
>unused : Symbol(unused, Decl(unusedLocalsOnFunctionExpressionWithinFunctionExpression2.ts, 1, 7))
var maker = function (child: string): void {
>maker : Symbol(maker, Decl(unusedLocalsOnFunctionExpressionWithinFunctionExpression2.ts, 2, 7))
>child : Symbol(child, Decl(unusedLocalsOnFunctionExpressionWithinFunctionExpression2.ts, 2, 26))
var unused2 = 22;
>unused2 : Symbol(unused2, Decl(unusedLocalsOnFunctionExpressionWithinFunctionExpression2.ts, 3, 11))
}
var maker2 = function (child2: string): void {
>maker2 : Symbol(maker2, Decl(unusedLocalsOnFunctionExpressionWithinFunctionExpression2.ts, 5, 7))
>child2 : Symbol(child2, Decl(unusedLocalsOnFunctionExpressionWithinFunctionExpression2.ts, 5, 27))
var unused3 = 23;
>unused3 : Symbol(unused3, Decl(unusedLocalsOnFunctionExpressionWithinFunctionExpression2.ts, 6, 11))
}
maker2(person2);
>maker2 : Symbol(maker2, Decl(unusedLocalsOnFunctionExpressionWithinFunctionExpression2.ts, 5, 7))
>person2 : Symbol(person2, Decl(unusedLocalsOnFunctionExpressionWithinFunctionExpression2.ts, 0, 39))
}
|