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 34 35 36 37 38 39 40 41 42 43 44 45
|
=== tests/cases/compiler/weird.js ===
someFunction(function(BaseClass) {
>someFunction(function(BaseClass) { 'use strict'; const DEFAULT_MESSAGE = "nop!"; class Hello extends BaseClass { constructor() { super(); this.foo = "bar"; } _render(error) { const message = error.message || DEFAULT_MESSAGE; } }}) : any
>someFunction : any
>function(BaseClass) { 'use strict'; const DEFAULT_MESSAGE = "nop!"; class Hello extends BaseClass { constructor() { super(); this.foo = "bar"; } _render(error) { const message = error.message || DEFAULT_MESSAGE; } }} : (BaseClass: any) => void
>BaseClass : any
'use strict';
>'use strict' : "use strict"
const DEFAULT_MESSAGE = "nop!";
>DEFAULT_MESSAGE : "nop!"
>"nop!" : "nop!"
class Hello extends BaseClass {
>Hello : Hello
>BaseClass : any
constructor() {
super();
>super() : void
>super : any
this.foo = "bar";
>this.foo = "bar" : "bar"
>this.foo : string
>this : this
>foo : string
>"bar" : "bar"
}
_render(error) {
>_render : (error: any) => void
>error : any
const message = error.message || DEFAULT_MESSAGE;
>message : any
>error.message || DEFAULT_MESSAGE : any
>error.message : any
>error : any
>message : any
>DEFAULT_MESSAGE : "nop!"
}
}
});
|