Use create_snapshot_for_diagnostic instead of clone for Parser
#98020
+3
−3
create_snapshot_for_diagnostic instead of clone for Parser
#98020