import * as ts from "typescript" ; export function getId ( node ) { const expression = node . expression as ts . PropertyAccessExpression ; const name = expression . name . getText ( ) ; return name ; }