Add range info to AST nodes