[code] build comment tree