Building ast in client.