@@ -454,10 +451,7 @@ public async Task TestTupleDeclarationWithNames()
{
awaitTestAsync(
@"class Program { static void Main ( string [ ] args ) { [| (int a, int b) x = (1, 2); |] System . Console . WriteLine ( x.a ); } } "+TestResources.NetFX.ValueTuple.tuplelib_cs,
@"class Program { static void Main ( string [ ] args ) { (int a, int b) x = {|Rename:NewMethod|}(); System.Console.WriteLine(x.a); } private static (int a, int b) NewMethod() { return (1, 2); } }"+TestResources.NetFX.ValueTuple.tuplelib_cs,
index:0,
parseOptions:TestOptions.Regular,
withScriptOption:true);
@"class Program { static void Main ( string [ ] args ) { (int a, int b) x = {|Rename:NewMethod|}(); System.Console.WriteLine(x.a); } private static (int a, int b) NewMethod() { return (1, 2); } }"+TestResources.NetFX.ValueTuple.tuplelib_cs);
@@ -490,10 +478,7 @@ public async Task TestTupleDeclarationAndLiteralWithNames()
{
awaitTestAsync(
@"class Program { static void Main ( string [ ] args ) { [| (int a, int b) x = (c: 1, d: 2); |] System . Console . WriteLine ( x.a ); } } "+TestResources.NetFX.ValueTuple.tuplelib_cs,
@"class Program { static void Main ( string [ ] args ) { (int a, int b) x = {|Rename:NewMethod|}(); System.Console.WriteLine(x.a); } private static (int a, int b) NewMethod() { return (c: 1, d: 2); } }"+TestResources.NetFX.ValueTuple.tuplelib_cs,
index:0,
parseOptions:TestOptions.Regular,
withScriptOption:true);
@"class Program { static void Main ( string [ ] args ) { (int a, int b) x = {|Rename:NewMethod|}(); System.Console.WriteLine(x.a); } private static (int a, int b) NewMethod() { return (c: 1, d: 2); } }"+TestResources.NetFX.ValueTuple.tuplelib_cs);
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Threading;
usingSystem.Threading.Tasks;
usingMicrosoft.CodeAnalysis;
usingMicrosoft.CodeAnalysis.CodeActions;
usingMicrosoft.CodeAnalysis.CodeGeneration;
usingMicrosoft.CodeAnalysis.Collections;
usingMicrosoft.CodeAnalysis.CSharp.Extensions;
usingMicrosoft.CodeAnalysis.CSharp.Symbols;
usingMicrosoft.CodeAnalysis.CSharp.Syntax;
...
...
@@ -306,6 +309,8 @@ private OperationStatus CheckActiveStatements(IEnumerable<StatementSyntax> state