Get span from import_directive