-
Notifications
You must be signed in to change notification settings - Fork 30
Feature/optimize closures #180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...reMemberAccessTests.CapturedIQueryableField_SubqueryInlinedViaAny.DotNet10_0.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE EXISTS ( | ||
| SELECT 1 | ||
| FROM [Entity] AS [e0] | ||
| WHERE [e0].[Id] >= 1 AND [e0].[Id] <= 5 AND [e0].[Id] = [e].[Id]) |
6 changes: 6 additions & 0 deletions
6
...ureMemberAccessTests.CapturedIQueryableField_SubqueryInlinedViaAny.DotNet9_0.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE EXISTS ( | ||
| SELECT 1 | ||
| FROM [Entity] AS [e0] | ||
| WHERE [e0].[Id] >= 1 AND [e0].[Id] <= 5 AND [e0].[Id] = [e].[Id]) |
6 changes: 6 additions & 0 deletions
6
...Tests/ClosureMemberAccessTests.CapturedIQueryableField_SubqueryInlinedViaAny.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE EXISTS ( | ||
| SELECT 1 | ||
| FROM [Entity] AS [e0] | ||
| WHERE [e0].[Id] >= 1 AND [e0].[Id] <= 5 AND [e0].[Id] = [e].[Id]) |
5 changes: 5 additions & 0 deletions
5
...MemberAccessTests.CapturedIQueryableField_SubqueryInlinedViaCount.DotNet10_0.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| SELECT [e].[Id], ( | ||
| SELECT COUNT(*) | ||
| FROM [Entity] AS [e0] | ||
| WHERE [e0].[Id] * 2 > 4) AS [SubsetCount] | ||
| FROM [Entity] AS [e] |
5 changes: 5 additions & 0 deletions
5
...eMemberAccessTests.CapturedIQueryableField_SubqueryInlinedViaCount.DotNet9_0.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| SELECT [e].[Id], ( | ||
| SELECT COUNT(*) | ||
| FROM [Entity] AS [e0] | ||
| WHERE [e0].[Id] * 2 > 4) AS [SubsetCount] | ||
| FROM [Entity] AS [e] |
5 changes: 5 additions & 0 deletions
5
...sts/ClosureMemberAccessTests.CapturedIQueryableField_SubqueryInlinedViaCount.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| SELECT [e].[Id], ( | ||
| SELECT COUNT(*) | ||
| FROM [Entity] AS [e0] | ||
| WHERE [e0].[Id] * 2 > 4) AS [SubsetCount] | ||
| FROM [Entity] AS [e] |
6 changes: 6 additions & 0 deletions
6
...berAccessTests.CapturedIQueryable_DeclaredAsIEnumerable_IsInlined.DotNet10_0.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE EXISTS ( | ||
| SELECT 1 | ||
| FROM [Entity] AS [e0] | ||
| WHERE [e0].[Id] >= 1 AND [e0].[Id] <= 5 AND [e0].[Id] = [e].[Id]) |
6 changes: 6 additions & 0 deletions
6
...mberAccessTests.CapturedIQueryable_DeclaredAsIEnumerable_IsInlined.DotNet9_0.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE EXISTS ( | ||
| SELECT 1 | ||
| FROM [Entity] AS [e0] | ||
| WHERE [e0].[Id] >= 1 AND [e0].[Id] <= 5 AND [e0].[Id] = [e].[Id]) |
6 changes: 6 additions & 0 deletions
6
.../ClosureMemberAccessTests.CapturedIQueryable_DeclaredAsIEnumerable_IsInlined.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE EXISTS ( | ||
| SELECT 1 | ||
| FROM [Entity] AS [e0] | ||
| WHERE [e0].[Id] >= 1 AND [e0].[Id] <= 5 AND [e0].[Id] = [e].[Id]) |
5 changes: 5 additions & 0 deletions
5
...ClosureMemberAccessTests.CapturedIntField_UsedInProjectableMethod.DotNet10_0.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| DECLARE @lowerBound int = 3; | ||
|
|
||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE [e].[Id] >= @lowerBound AND [e].[Id] <= 10 |
5 changes: 5 additions & 0 deletions
5
.../ClosureMemberAccessTests.CapturedIntField_UsedInProjectableMethod.DotNet9_0.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| DECLARE @__lowerBound_0 int = 3; | ||
|
|
||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE [e].[Id] >= @__lowerBound_0 AND [e].[Id] <= 10 |
5 changes: 5 additions & 0 deletions
5
...ionalTests/ClosureMemberAccessTests.CapturedIntField_UsedInProjectableMethod.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| DECLARE @__lowerBound_0 int = 3; | ||
|
|
||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE [e].[Id] >= @__lowerBound_0 AND [e].[Id] <= 10 |
8 changes: 8 additions & 0 deletions
8
...sTests.CapturedMixedFields_IntAndIQueryable_BothResolvedCorrectly.DotNet10_0.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| DECLARE @minCount int = 1; | ||
|
|
||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE ([e].[Id] >= @minCount AND [e].[Id] <= 50) OR EXISTS ( | ||
| SELECT 1 | ||
| FROM [Entity] AS [e0] | ||
| WHERE [e0].[Id] >= 10 AND [e0].[Id] <= 100 AND [e0].[Id] = [e].[Id]) |
8 changes: 8 additions & 0 deletions
8
...ssTests.CapturedMixedFields_IntAndIQueryable_BothResolvedCorrectly.DotNet9_0.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| DECLARE @__minCount_0 int = 1; | ||
|
|
||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE ([e].[Id] >= @__minCount_0 AND [e].[Id] <= 50) OR EXISTS ( | ||
| SELECT 1 | ||
| FROM [Entity] AS [e0] | ||
| WHERE [e0].[Id] >= 10 AND [e0].[Id] <= 100 AND [e0].[Id] = [e].[Id]) |
8 changes: 8 additions & 0 deletions
8
...MemberAccessTests.CapturedMixedFields_IntAndIQueryable_BothResolvedCorrectly.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| DECLARE @__minCount_0 int = 1; | ||
|
|
||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE ([e].[Id] >= @__minCount_0 AND [e].[Id] <= 50) OR EXISTS ( | ||
| SELECT 1 | ||
| FROM [Entity] AS [e0] | ||
| WHERE [e0].[Id] >= 10 AND [e0].[Id] <= 100 AND [e0].[Id] = [e].[Id]) |
6 changes: 6 additions & 0 deletions
6
...mberAccessTests.CapturedMultipleIntFields_UsedInProjectableMethod.DotNet10_0.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| DECLARE @lower int = 2; | ||
| DECLARE @upper int = 8; | ||
|
|
||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE [e].[Id] >= @lower AND [e].[Id] <= @upper |
6 changes: 6 additions & 0 deletions
6
...emberAccessTests.CapturedMultipleIntFields_UsedInProjectableMethod.DotNet9_0.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| DECLARE @__lower_0 int = 2; | ||
| DECLARE @__upper_1 int = 8; | ||
|
|
||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE [e].[Id] >= @__lower_0 AND [e].[Id] <= @__upper_1 |
6 changes: 6 additions & 0 deletions
6
...s/ClosureMemberAccessTests.CapturedMultipleIntFields_UsedInProjectableMethod.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| DECLARE @__lower_0 int = 2; | ||
| DECLARE @__upper_1 int = 8; | ||
|
|
||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE [e].[Id] >= @__lower_0 AND [e].[Id] <= @__upper_1 |
5 changes: 5 additions & 0 deletions
5
...sureMemberAccessTests.CapturedStringField_UsedInProjectableMethod.DotNet10_0.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| DECLARE @targetName nvarchar(4000) = N'Alice'; | ||
|
|
||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE [e].[Name] = @targetName |
5 changes: 5 additions & 0 deletions
5
...osureMemberAccessTests.CapturedStringField_UsedInProjectableMethod.DotNet9_0.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| DECLARE @__targetName_0 nvarchar(4000) = N'Alice'; | ||
|
|
||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE [e].[Name] = @__targetName_0 |
5 changes: 5 additions & 0 deletions
5
...alTests/ClosureMemberAccessTests.CapturedStringField_UsedInProjectableMethod.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| DECLARE @__targetName_0 nvarchar(4000) = N'Alice'; | ||
|
|
||
| SELECT [e].[Id], [e].[Name] | ||
| FROM [Entity] AS [e] | ||
| WHERE [e].[Name] = @__targetName_0 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.