1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
=== tests/cases/conformance/parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment1.ts ===
function foo(obj: { name?: string; id: number }) { }
>foo : Symbol(foo, Decl(parserShorthandPropertyAssignment1.ts, 0, 0))
>obj : Symbol(obj, Decl(parserShorthandPropertyAssignment1.ts, 0, 13))
>name : Symbol(name, Decl(parserShorthandPropertyAssignment1.ts, 0, 19))
>id : Symbol(id, Decl(parserShorthandPropertyAssignment1.ts, 0, 34))
var name:any, id: any;
>name : Symbol(name, Decl(parserShorthandPropertyAssignment1.ts, 1, 3))
>id : Symbol(id, Decl(parserShorthandPropertyAssignment1.ts, 1, 13))
foo({ name?, id? });
>foo : Symbol(foo, Decl(parserShorthandPropertyAssignment1.ts, 0, 0))
>name : Symbol(name, Decl(parserShorthandPropertyAssignment1.ts, 2, 5))
>id : Symbol(id, Decl(parserShorthandPropertyAssignment1.ts, 2, 12))
|