Adopt CRTP on SDK AstNode and ParseNode

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 

            Assignee:
            Unassigned
            Reporter:
            Josh Siegel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: