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 28 29 30 31 32 33
|
=== tests/cases/compiler/fatarrowfunctionsInFunctions.ts ===
declare function setTimeout(expression: any, msec?: number, language?: any): number;
>setTimeout : Symbol(setTimeout, Decl(lib.dom.d.ts, --, --), Decl(fatarrowfunctionsInFunctions.ts, 0, 0))
>expression : Symbol(expression, Decl(fatarrowfunctionsInFunctions.ts, 0, 28))
>msec : Symbol(msec, Decl(fatarrowfunctionsInFunctions.ts, 0, 44))
>language : Symbol(language, Decl(fatarrowfunctionsInFunctions.ts, 0, 59))
var messenger = {
>messenger : Symbol(messenger, Decl(fatarrowfunctionsInFunctions.ts, 2, 3))
message: "Hello World",
>message : Symbol(message, Decl(fatarrowfunctionsInFunctions.ts, 2, 17))
start: function() {
>start : Symbol(start, Decl(fatarrowfunctionsInFunctions.ts, 3, 27))
var _self = this;
>_self : Symbol(_self, Decl(fatarrowfunctionsInFunctions.ts, 5, 11))
setTimeout(function() {
>setTimeout : Symbol(setTimeout, Decl(lib.dom.d.ts, --, --), Decl(fatarrowfunctionsInFunctions.ts, 0, 0))
_self.message.toString();
>_self : Symbol(_self, Decl(fatarrowfunctionsInFunctions.ts, 5, 11))
}, 3000);
}
};
messenger.start();
>messenger.start : Symbol(start, Decl(fatarrowfunctionsInFunctions.ts, 3, 27))
>messenger : Symbol(messenger, Decl(fatarrowfunctionsInFunctions.ts, 2, 3))
>start : Symbol(start, Decl(fatarrowfunctionsInFunctions.ts, 3, 27))
|