SERVER-116146Backlog

Adopt CRTP on SDK AstNode and ParseNode

To avoid having to implement an identical `clone()` on every test implementation of AstNode and ParseNode, we should add a curiously-recursive templating pattern (CRTP) to the SDK for these classes. SERVER-115503 has an example of how to do this for `LiteParsedDocumentSource`. [https://github.com/10gen/mongo/pull/45657#discussion_r2658387022]

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification
dino-extensions-apidino-tech-debtquick-tech-debtrepo-10gen-mongosage-auto