import * as ts from 'typescript' ; import { Scope } from '../../scope/scope' ; import { core } from '../../core/core' ; import { TypescriptHelper } from '../helper/helper' ; import { GetDescriptor } from '../descriptor' ; export const GetShorthandPropertyAssignmentDescriptor = ( node , scope ) => { const typeChecker = core . typeChecker ; const symbol = typeChecker . getShorthandAssignmentValueSymbol ( node ) ; if ( ! symbol ) { throw new Error ( `The type checker failed to look up a symbol for \`${ node . getText ( ) }'. 
        Perhaps, the checker was searching an outdated source.` ) ; } const declaration = TypescriptHelper . GetDeclarationFromSymbol ( symbol ) ; return GetDescriptor ( declaration , scope ) ; } ;