82 lines
2.8 KiB
Plaintext
82 lines
2.8 KiB
Plaintext
=== tests/cases/compiler/arrayconcat.ts ===
|
|
interface IOptions {
|
|
>IOptions : Symbol(IOptions, Decl(arrayconcat.ts, 0, 0))
|
|
|
|
name?: string;
|
|
>name : Symbol(name, Decl(arrayconcat.ts, 0, 20))
|
|
|
|
flag?: boolean;
|
|
>flag : Symbol(flag, Decl(arrayconcat.ts, 1, 18))
|
|
|
|
short?: string;
|
|
>short : Symbol(short, Decl(arrayconcat.ts, 2, 19))
|
|
|
|
usage?: string;
|
|
>usage : Symbol(usage, Decl(arrayconcat.ts, 3, 19))
|
|
|
|
set?: (s: string) => void;
|
|
>set : Symbol(set, Decl(arrayconcat.ts, 4, 19))
|
|
>s : Symbol(s, Decl(arrayconcat.ts, 5, 11))
|
|
|
|
type?: string;
|
|
>type : Symbol(type, Decl(arrayconcat.ts, 5, 30))
|
|
|
|
experimental?: boolean;
|
|
>experimental : Symbol(experimental, Decl(arrayconcat.ts, 6, 18))
|
|
}
|
|
|
|
class parser {
|
|
>parser : Symbol(parser, Decl(arrayconcat.ts, 8, 1))
|
|
|
|
public options: IOptions[];
|
|
>options : Symbol(options, Decl(arrayconcat.ts, 10, 14))
|
|
>IOptions : Symbol(IOptions, Decl(arrayconcat.ts, 0, 0))
|
|
|
|
public m() {
|
|
>m : Symbol(m, Decl(arrayconcat.ts, 11, 28))
|
|
|
|
this.options = this.options.sort(function(a, b) {
|
|
>this.options : Symbol(options, Decl(arrayconcat.ts, 10, 14))
|
|
>this : Symbol(parser, Decl(arrayconcat.ts, 8, 1))
|
|
>options : Symbol(options, Decl(arrayconcat.ts, 10, 14))
|
|
>this.options.sort : Symbol(Array.sort, Decl(lib.d.ts, 1054, 45))
|
|
>this.options : Symbol(options, Decl(arrayconcat.ts, 10, 14))
|
|
>this : Symbol(parser, Decl(arrayconcat.ts, 8, 1))
|
|
>options : Symbol(options, Decl(arrayconcat.ts, 10, 14))
|
|
>sort : Symbol(Array.sort, Decl(lib.d.ts, 1054, 45))
|
|
>a : Symbol(a, Decl(arrayconcat.ts, 14, 44))
|
|
>b : Symbol(b, Decl(arrayconcat.ts, 14, 46))
|
|
|
|
var aName = a.name.toLowerCase();
|
|
>aName : Symbol(aName, Decl(arrayconcat.ts, 15, 15))
|
|
>a.name.toLowerCase : Symbol(String.toLowerCase, Decl(lib.d.ts, 399, 51))
|
|
>a.name : Symbol(IOptions.name, Decl(arrayconcat.ts, 0, 20))
|
|
>a : Symbol(a, Decl(arrayconcat.ts, 14, 44))
|
|
>name : Symbol(IOptions.name, Decl(arrayconcat.ts, 0, 20))
|
|
>toLowerCase : Symbol(String.toLowerCase, Decl(lib.d.ts, 399, 51))
|
|
|
|
var bName = b.name.toLowerCase();
|
|
>bName : Symbol(bName, Decl(arrayconcat.ts, 16, 15))
|
|
>b.name.toLowerCase : Symbol(String.toLowerCase, Decl(lib.d.ts, 399, 51))
|
|
>b.name : Symbol(IOptions.name, Decl(arrayconcat.ts, 0, 20))
|
|
>b : Symbol(b, Decl(arrayconcat.ts, 14, 46))
|
|
>name : Symbol(IOptions.name, Decl(arrayconcat.ts, 0, 20))
|
|
>toLowerCase : Symbol(String.toLowerCase, Decl(lib.d.ts, 399, 51))
|
|
|
|
if (aName > bName) {
|
|
>aName : Symbol(aName, Decl(arrayconcat.ts, 15, 15))
|
|
>bName : Symbol(bName, Decl(arrayconcat.ts, 16, 15))
|
|
|
|
return 1;
|
|
} else if (aName < bName) {
|
|
>aName : Symbol(aName, Decl(arrayconcat.ts, 15, 15))
|
|
>bName : Symbol(bName, Decl(arrayconcat.ts, 16, 15))
|
|
|
|
return -1;
|
|
} else {
|
|
return 0;
|
|
}
|
|
});
|
|
}
|
|
}
|