From 8bfcf331d50ad7ba003a2468a8f2e21df1f09b01 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 15 Feb 2018 10:47:04 -0800 Subject: [PATCH] Add symbols for just-added test --- ...peFromPropertyAssignmentWithExport.symbols | 10 +++++++--- ...typeFromPropertyAssignmentWithExport.types | 20 +++++++++---------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/tests/baselines/reference/typeFromPropertyAssignmentWithExport.symbols b/tests/baselines/reference/typeFromPropertyAssignmentWithExport.symbols index 060018acdeb..8120c3bbaef 100644 --- a/tests/baselines/reference/typeFromPropertyAssignmentWithExport.symbols +++ b/tests/baselines/reference/typeFromPropertyAssignmentWithExport.symbols @@ -2,12 +2,16 @@ // this is a javascript file... export const Adapter = {}; ->Adapter : Symbol(Adapter, Decl(a.js, 2, 12), Decl(a.js, 4, 18)) +>Adapter : Symbol(Adapter, Decl(a.js, 2, 12), Decl(a.js, 2, 26), Decl(a.js, 4, 18)) Adapter.prop = {}; ->Adapter : Symbol(Adapter, Decl(a.js, 2, 12), Decl(a.js, 4, 18)) +>Adapter.prop : Symbol(prop, Decl(a.js, 2, 26)) +>Adapter : Symbol(Adapter, Decl(a.js, 2, 12), Decl(a.js, 2, 26), Decl(a.js, 4, 18)) +>prop : Symbol(prop, Decl(a.js, 2, 26)) // comment this out, and it works Adapter.asyncMethod = function() {} ->Adapter : Symbol(Adapter, Decl(a.js, 2, 12), Decl(a.js, 4, 18)) +>Adapter.asyncMethod : Symbol(asyncMethod, Decl(a.js, 4, 18)) +>Adapter : Symbol(Adapter, Decl(a.js, 2, 12), Decl(a.js, 2, 26), Decl(a.js, 4, 18)) +>asyncMethod : Symbol(asyncMethod, Decl(a.js, 4, 18)) diff --git a/tests/baselines/reference/typeFromPropertyAssignmentWithExport.types b/tests/baselines/reference/typeFromPropertyAssignmentWithExport.types index 82b0e0b48f9..a7c3979c329 100644 --- a/tests/baselines/reference/typeFromPropertyAssignmentWithExport.types +++ b/tests/baselines/reference/typeFromPropertyAssignmentWithExport.types @@ -2,21 +2,21 @@ // this is a javascript file... export const Adapter = {}; ->Adapter : { [x: string]: any; } ->{} : { [x: string]: any; } +>Adapter : { [x: string]: any; prop: { [x: string]: any; }; asyncMethod: () => void; } +>{} : { [x: string]: any; prop: { [x: string]: any; }; asyncMethod: () => void; } Adapter.prop = {}; ->Adapter.prop = {} : {} ->Adapter.prop : any ->Adapter : { [x: string]: any; } ->prop : any ->{} : {} +>Adapter.prop = {} : { [x: string]: any; } +>Adapter.prop : { [x: string]: any; } +>Adapter : { [x: string]: any; prop: { [x: string]: any; }; asyncMethod: () => void; } +>prop : { [x: string]: any; } +>{} : { [x: string]: any; } // comment this out, and it works Adapter.asyncMethod = function() {} >Adapter.asyncMethod = function() {} : () => void ->Adapter.asyncMethod : any ->Adapter : { [x: string]: any; } ->asyncMethod : any +>Adapter.asyncMethod : () => void +>Adapter : { [x: string]: any; prop: { [x: string]: any; }; asyncMethod: () => void; } +>asyncMethod : () => void >function() {} : () => void