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

LINQ3: Split AstFieldExpression into AstVarExpression and AstGetFieldExpression

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

      AstFieldExpression is serving too many purposes:

      1.  A variable reference when the path is of the form "$$var"

      2. A field reference when the path is of the form "$x" or "$$var.x"

      3. A nested field reference when the path is of the form "$x.y" or "$var.x.y"

      These are semantically different, and will instead be represented using:

      1. AstVarExpression
      2. AstVarExpression + AstGetFieldExpression
      3. AstVarExpression + AstGetFieldExpression + AstGetFieldExpression

            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: