convert all expression nodes to classes