|
@@ -23,7 +23,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -65,7 +65,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -107,7 +107,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -150,7 +150,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -191,7 +191,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -272,7 +272,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -353,7 +353,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -435,7 +435,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -515,7 +515,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -557,7 +557,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -599,7 +599,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -642,7 +642,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -683,7 +683,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -764,7 +764,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -845,7 +845,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -927,7 +927,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -1007,7 +1007,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -1064,7 +1064,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -1121,7 +1121,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -1179,7 +1179,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -1235,7 +1235,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -1312,7 +1312,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -1389,7 +1389,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -1467,7 +1467,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -1543,7 +1543,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -1600,7 +1600,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -1657,7 +1657,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -1715,7 +1715,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -1771,7 +1771,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -1848,7 +1848,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -1925,7 +1925,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -2003,7 +2003,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -2079,7 +2079,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -2121,7 +2121,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -2163,7 +2163,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -2206,7 +2206,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -2247,7 +2247,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -2302,7 +2302,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -2357,7 +2357,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -2413,7 +2413,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -2467,7 +2467,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -2509,7 +2509,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -2551,7 +2551,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -2594,7 +2594,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -2635,7 +2635,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -2692,7 +2692,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -2749,7 +2749,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -2807,7 +2807,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -2863,7 +2863,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -2905,7 +2905,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -2947,7 +2947,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -2990,7 +2990,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -3031,7 +3031,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -3088,7 +3088,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -3145,7 +3145,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -3203,7 +3203,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -3259,7 +3259,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -3317,7 +3317,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -3375,7 +3375,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -3434,7 +3434,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -3491,7 +3491,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -3564,7 +3564,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -3637,7 +3637,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -3711,7 +3711,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -3783,7 +3783,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -3841,7 +3841,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -3899,7 +3899,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -3958,7 +3958,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -4015,7 +4015,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -4088,7 +4088,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -4161,7 +4161,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -4235,7 +4235,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -4307,7 +4307,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -4349,7 +4349,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -4391,7 +4391,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -4434,7 +4434,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
if (!await e.MoveNextAsync())
|
|
if (!await e.MoveNextAsync())
|
|
{
|
|
{
|
|
@@ -4475,7 +4475,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -4530,7 +4530,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -4585,7 +4585,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|
|
@@ -4641,7 +4641,7 @@ namespace System.Linq
|
|
|
|
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
var e = _source.GetConfiguredAsyncEnumerator(_cancellationToken, false);
|
|
|
|
|
|
- try // REVIEW: Can use `await using` if we get pattern bind (HAS_AWAIT_USING_PATTERN_BIND)
|
|
|
|
|
|
+ try // TODO: Switch to `await using` in preview 3 (https://github.com/dotnet/roslyn/pull/32731)
|
|
{
|
|
{
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// Start off knowing that we've a non-null value (or exit here, knowing we don't)
|
|
// so we don't have to keep testing for nullity.
|
|
// so we don't have to keep testing for nullity.
|