add line and src to docObject returned by .code