import type * as ts from 'typescript' ; import { Scope } from '../../scope/scope' ; import { core } from '../../core/core' ; import { GetMockPropertiesFromSymbol } from '../mock/mockProperties' ; export function GetObjectLiteralDescriptor ( node , scope ) { const typeChecker = core . typeChecker ; const type = typeChecker . getTypeAtLocation ( node ) ; const symbols = core . typeChecker . getPropertiesOfType ( type ) ; return GetMockPropertiesFromSymbol ( symbols , [ ] , scope ) ; }