Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3836

LINQ3: Add the virtual CanBeRenderedAsPath method to AstExpression

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.14.0
    • Affects Version/s: None
    • Component/s: LINQ3
    • None

      The LINQ3 translator at times need to know if an AstExpression can be rendered as a path of the form "$x.y.z" or "$$var.x.y.z".

      This question is most easily answered by defining a new virtual method

      • the default implementation of CanBeRenderedAsPath returns false
      • AstVarExpression overrides CanBeRenderedAsPath and returns true
      • AstGetFieldExpression overrides CanBeRenderedAsPath and returns true if the Input CanBeRenderedAsPath and the field name is safe to use in a path

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: