Conversion of an Esprima tree into a DOM like structure for easy searching.