// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingMicrosoft.Cci;
usingMicrosoft.CodeAnalysis.RuntimeMembers;
usingRoslyn.Utilities;
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Collections.Immutable;
usingSystem.Diagnostics;
usingSystem.Linq;
usingSystem.Runtime.InteropServices;
usingMicrosoft.Cci;
usingMicrosoft.CodeAnalysis.RuntimeMembers;
usingRoslyn.Utilities;
namespaceMicrosoft.CodeAnalysis.CSharp.Symbols
{
/// <summary>
/// A TupleTypeSymbol represents a tuple type, such as (int, byte) or (int a, long b).
// 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.Collections.Immutable;
usingMicrosoft.CodeAnalysis.Text;
namespaceMicrosoft.CodeAnalysis
{
/// <summary>
/// Represents a tuple.
/// </summary>
/// <remarks>
/// This interface is reserved for implementation by its associated APIs. We reserve the right to
@"class Program { static void Main ( string [ ] args ) { [| (int a, int b) x = (1, 2); |] System . Console . WriteLine ( x.a ); } } ",
@"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); } }",
@"class Program { static void Main ( string [ ] args ) { [| (int a, int b) x = (c: 1, d: 2); |] System . Console . WriteLine ( x.a ); } } ",
@"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); } }",
@@ -198,5 +199,25 @@ public async Task TestException4()
@"using System ; using System . Collections . Generic ; using System . Linq ; class Program : Exception { public Program ( ) { } public Program ( ) { } public Program ( string message ) : base ( message ) { } public Program ( string message , Exception innerException ) : base ( message , innerException ) { } protected Program ( System . Runtime . Serialization . SerializationInfo info , System . Runtime . Serialization . StreamingContext context ) : base ( info , context ) { } static void Main ( string [ ] args ) { } } ",
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// 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.Diagnostics;
usingSystem.Threading;
usingMicrosoft.CodeAnalysis;
usingMicrosoft.CodeAnalysis.Text;
usingRoslyn.Utilities;
namespaceMicrosoft.CodeAnalysis
{
...
...
@@ -71,9 +67,17 @@ public override SymbolKey VisitModule(IModuleSymbol moduleSymbol)