Migrate getTodoComments to use the new tree

Use `ts.map`.