[CSHARP-3830] LINQ3: Split AstFieldExpression into AstVarExpression and AstGetFieldExpression Created: 06/Sep/21  Updated: 28/Oct/23  Resolved: 04/Oct/21

Status: Closed
Project: C# Driver
Component/s: LINQ3
Affects Version/s: None
Fix Version/s: 2.14.0

Type: Task Priority: Unknown
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CSHARP-3320 LINQ3: Move GroupBy accumulators back... Closed
Epic Link: CSHARP-2608

 Description   

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

Generated at Wed Feb 07 21:46:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.