how to use swc to make ast restore be code segment

My code segment is this:

<>
    <Divider orientation="left">{resultLinkTitle}</Divider>
    <Intension />
    <Form form={form} name="auditForm" ref={auditFormRef}>
      <Form.Item label="files">
        <Button type="link" onClick={() => handleDownLoadFile(aduitInfo?.fileUrl)}>
          download
        </Button>
      </Form.Item>
    </Form>
  </>

then I use swc.parse get ast.But I cannot get the original code with swc.printSync.It will get error unknown variant JSXElement, expected ModuleorScript“.
How can I do?

I what to get the original code with swc.